MulaiMulai sekarang secara gratis

Extreme events during the crisis

You can use the Generalized Extreme Value (GEV) distribution to examine extreme values in the losses of General Electric (GE) during the financial crisis in 2008 and 2009.

This period coincided with GE's liquidity crisis, and its eventual requirement of an emergency investment of $3 billion from Berkshire Hathaway's Warren Buffet to stave off defaulting on its commercial paper obligations.

GE's losses and weekly maximum losses weekly_max are available, as is the GEV genextreme distribution from scipy.stats.

Latihan ini adalah bagian dari kursus

Quantitative Risk Management in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Plot the log daily losses of GE over the period 2007-2009
losses.____()

# Find all daily losses greater than 10%
extreme_losses = losses[____]

# Scatter plot the extreme losses
____.plot(style='o')
plt.show()
Edit dan Jalankan Kode