Python में Quantitative Risk Management
Jamsheed Shorish
Computational Economist






उदाहरण: 2007 - 2009 के लिए ब्लॉक मैक्सिमा
maxima = losses.resample("W").max()
Generalized Extreme Value Distribution (GEV)
scipy.stats.genextreme से पैरामीट्रिक आकलनfrom scipy.stats import genextreme
params = genextreme.fit(maxima)
.ppf() percent point फंक्शन का उपयोग करेंparams चाहिए.expect() मेथड का उपयोग करेंVaR_99 = genextreme.ppf(0.99, *params)
CVar_99 = ( 1 / (1 - 0.99) ) * genextreme.expect(lambda x: x, *params, lb = VaR_99)
Python में Quantitative Risk Management