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
.
This exercise is part of the course
Quantitative Risk Management in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# 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()