Python을 활용한 정량적 리스크 관리
Jamsheed Shorish
Computational Economist
scipy.stats.norm.fit(), 데이터에 정규분포 적합
norm.fit()으로 정규분포 적합
norm.fit()t.fit()
critical_values보다 크면 정규분포 기각scipy.stats.anderson 임포트loss 데이터로 검정 수행from scipy.stats import andersonanderson(loss)
AndersonResult(statistic=11.048641503898523,
critical_values=array([0.57 , 0.649, 0.779, 0.909, 1.081]),
significance_level=array([15. , 10. , 5. , 2.5, 1. ]))


scipy.stats의 skewnorm 사용 가능
scipy.stats.skewtestscipy.stats에서 skewtest 임포트loss 데이터로 검정 수행from scipy.stats import skewtestskewtest(loss)
SkewtestResult(statistic=-7.786120875514511,
pvalue=6.90978472959861e-15)
Python을 활용한 정량적 리스크 관리