updates volatility_model test

This commit is contained in:
Danglewood
2023-02-27 19:01:04 -08:00
parent cfbad0905c
commit 4913488433
3 changed files with 15 additions and 27 deletions

View File

@@ -1,13 +1 @@
,Realized,Min,Lower 5%,Median,Upper 95%,Max
3,0.6661056307619542,0.0012641310217003411,0.06321294826523875,0.2555634077814052,0.7150492477099004,2.1612967455941043
10,0.8162088269672413,0.07959844307594884,0.1494211718471571,0.2914460949938292,0.5940865070370007,1.283272887530981
30,0.9564751647343839,0.15508374995295376,0.18481673654297404,0.30414866067934165,0.5023792266449142,0.9564751647343839
60,0.7074188020337612,0.17433590471783383,0.1929335727094341,0.31626915255046145,0.4594505516493541,0.7074188020337612
90,0.5985665640998008,0.18665103933427296,0.19710887104278185,0.3307598851762795,0.4386556614219454,0.5985665640998008
120,0.5561822000429192,0.1872535703103611,0.20337632303943762,0.3475716912579452,0.4093657019078056,0.5561822000429192
150,0.5445941290454114,0.19535562996434117,0.2072675358413156,0.34269398673918977,0.39552078157374204,0.5445941290454114
180,0.5245714551095421,0.20675464602013052,0.21872987280867054,0.3314919646817599,0.38395713065150183,0.5245714551095421
210,0.49497228966463114,0.22079300834100155,0.23131715641994954,0.320226331717437,0.37460242812927996,0.49497228966463114
240,0.4783769806126088,0.23231114137312567,0.24022870898947504,0.31042826718167726,0.373686873939579,0.4783769806126088
300,0.44614464947013754,0.25200428128757724,0.2556465774014713,0.3005234806648158,0.3538789172049389,0.4462547356884943
360,0.41661681556107044,0.2614129015000436,0.26884560050381257,0.2988437705630911,0.34207882188528543,0.41661681556107044
""
1 Realized Min Lower 5% Median Upper 95% Max
3 0.6661056307619542 0.0012641310217003411 0.06321294826523875 0.2555634077814052 0.7150492477099004 2.1612967455941043
10 0.8162088269672413 0.07959844307594884 0.1494211718471571 0.2914460949938292 0.5940865070370007 1.283272887530981
30 0.9564751647343839 0.15508374995295376 0.18481673654297404 0.30414866067934165 0.5023792266449142 0.9564751647343839
60 0.7074188020337612 0.17433590471783383 0.1929335727094341 0.31626915255046145 0.4594505516493541 0.7074188020337612
90 0.5985665640998008 0.18665103933427296 0.19710887104278185 0.3307598851762795 0.4386556614219454 0.5985665640998008
120 0.5561822000429192 0.1872535703103611 0.20337632303943762 0.3475716912579452 0.4093657019078056 0.5561822000429192
150 0.5445941290454114 0.19535562996434117 0.2072675358413156 0.34269398673918977 0.39552078157374204 0.5445941290454114
180 0.5245714551095421 0.20675464602013052 0.21872987280867054 0.3314919646817599 0.38395713065150183 0.5245714551095421
210 0.49497228966463114 0.22079300834100155 0.23131715641994954 0.320226331717437 0.37460242812927996 0.49497228966463114
240 0.4783769806126088 0.23231114137312567 0.24022870898947504 0.31042826718167726 0.373686873939579 0.4783769806126088
300 0.44614464947013754 0.25200428128757724 0.2556465774014713 0.3005234806648158 0.3538789172049389 0.4462547356884943
360 0.41661681556107044 0.2614129015000436 0.26884560050381257 0.2988437705630911 0.34207882188528543 0.41661681556107044

View File

@@ -1,13 +1,13 @@
,Realized,Min,Lower 5%,Median,Upper 95%,Max
3,0.6661056307619542,0.0012641310217003411,0.06321294826523875,0.2555634077814052,0.7150492477099004,2.1612967455941043
10,0.8162088269672413,0.07959844307594884,0.1494211718471571,0.2914460949938292,0.5940865070370007,1.283272887530981
30,0.9564751647343839,0.15508374995295376,0.18481673654297404,0.30414866067934165,0.5023792266449142,0.9564751647343839
60,0.7074188020337612,0.17433590471783383,0.1929335727094341,0.31626915255046145,0.4594505516493541,0.7074188020337612
90,0.5985665640998008,0.18665103933427296,0.19710887104278185,0.3307598851762795,0.4386556614219454,0.5985665640998008
120,0.5561822000429192,0.1872535703103611,0.20337632303943762,0.3475716912579452,0.4093657019078056,0.5561822000429192
150,0.5445941290454114,0.19535562996434117,0.2072675358413156,0.34269398673918977,0.39552078157374204,0.5445941290454114
180,0.5245714551095421,0.20675464602013052,0.21872987280867054,0.3314919646817599,0.38395713065150183,0.5245714551095421
210,0.49497228966463114,0.22079300834100155,0.23131715641994954,0.320226331717437,0.37460242812927996,0.49497228966463114
240,0.4783769806126088,0.23231114137312567,0.24022870898947504,0.31042826718167726,0.373686873939579,0.4783769806126088
300,0.44614464947013754,0.25200428128757724,0.2556465774014713,0.3005234806648158,0.3538789172049389,0.4462547356884943
360,0.41661681556107044,0.2614129015000436,0.26884560050381257,0.2988437705630911,0.34207882188528543,0.41661681556107044
,Realized,Min,Lower 10%,Median,Upper 90%,Max
3,0.801658250714326,0.0015213819201179636,0.11305146677726653,0.3075706088751697,0.6745294920713447,2.601121035961819
10,0.9823074753109012,0.09579674107071617,0.20745994299818224,0.3507554296200961,0.618509936764153,1.5444191592111771
30,1.1511180389446096,0.1866433219597456,0.23919254274220417,0.36604296978903805,0.5623912417201387,1.1511180389446096
60,0.8513786600363932,0.20981329380586372,0.24454921192710366,0.3806299840139208,0.5243526898419408,0.8513786600363932
90,0.7203749714042171,0.2246345606109993,0.24223275388401727,0.3980695834286474,0.48818653076754775,0.7203749714042171
120,0.6693653813657545,0.22535970675297004,0.25162553268211907,0.41830259517989166,0.4848985135090444,0.6693653813657545
150,0.6554191357614512,0.23511053705591023,0.2640005463745692,0.41243227688287637,0.46877621129380315,0.6554191357614512
180,0.6313218439495035,0.24882925500263528,0.2760084446103023,0.398950641249876,0.45786606312070316,0.6313218439495035
210,0.5956992428223693,0.26572442667108376,0.2834252558460264,0.38539244987857946,0.4433605736618711,0.5956992428223693
240,0.5757267852866332,0.2795865019210186,0.2924459938079513,0.37360047738445973,0.4318795101347866,0.5757267852866332
300,0.5369351687519389,0.30328719947679944,0.31084943608330384,0.3616800649662024,0.41666847258867606,0.5370676575362398
360,0.5013984151414815,0.31461047565528394,0.32965736811204155,0.3596585335458547,0.3940115466194192,0.5013984151414815
1 Realized Min Lower 5% Lower 10% Median Upper 95% Upper 90% Max
2 3 0.6661056307619542 0.801658250714326 0.0012641310217003411 0.0015213819201179636 0.06321294826523875 0.11305146677726653 0.2555634077814052 0.3075706088751697 0.7150492477099004 0.6745294920713447 2.1612967455941043 2.601121035961819
3 10 0.8162088269672413 0.9823074753109012 0.07959844307594884 0.09579674107071617 0.1494211718471571 0.20745994299818224 0.2914460949938292 0.3507554296200961 0.5940865070370007 0.618509936764153 1.283272887530981 1.5444191592111771
4 30 0.9564751647343839 1.1511180389446096 0.15508374995295376 0.1866433219597456 0.18481673654297404 0.23919254274220417 0.30414866067934165 0.36604296978903805 0.5023792266449142 0.5623912417201387 0.9564751647343839 1.1511180389446096
5 60 0.7074188020337612 0.8513786600363932 0.17433590471783383 0.20981329380586372 0.1929335727094341 0.24454921192710366 0.31626915255046145 0.3806299840139208 0.4594505516493541 0.5243526898419408 0.7074188020337612 0.8513786600363932
6 90 0.5985665640998008 0.7203749714042171 0.18665103933427296 0.2246345606109993 0.19710887104278185 0.24223275388401727 0.3307598851762795 0.3980695834286474 0.4386556614219454 0.48818653076754775 0.5985665640998008 0.7203749714042171
7 120 0.5561822000429192 0.6693653813657545 0.1872535703103611 0.22535970675297004 0.20337632303943762 0.25162553268211907 0.3475716912579452 0.41830259517989166 0.4093657019078056 0.4848985135090444 0.5561822000429192 0.6693653813657545
8 150 0.5445941290454114 0.6554191357614512 0.19535562996434117 0.23511053705591023 0.2072675358413156 0.2640005463745692 0.34269398673918977 0.41243227688287637 0.39552078157374204 0.46877621129380315 0.5445941290454114 0.6554191357614512
9 180 0.5245714551095421 0.6313218439495035 0.20675464602013052 0.24882925500263528 0.21872987280867054 0.2760084446103023 0.3314919646817599 0.398950641249876 0.38395713065150183 0.45786606312070316 0.5245714551095421 0.6313218439495035
10 210 0.49497228966463114 0.5956992428223693 0.22079300834100155 0.26572442667108376 0.23131715641994954 0.2834252558460264 0.320226331717437 0.38539244987857946 0.37460242812927996 0.4433605736618711 0.49497228966463114 0.5956992428223693
11 240 0.4783769806126088 0.5757267852866332 0.23231114137312567 0.2795865019210186 0.24022870898947504 0.2924459938079513 0.31042826718167726 0.37360047738445973 0.373686873939579 0.4318795101347866 0.4783769806126088 0.5757267852866332
12 300 0.44614464947013754 0.5369351687519389 0.25200428128757724 0.30328719947679944 0.2556465774014713 0.31084943608330384 0.3005234806648158 0.3616800649662024 0.3538789172049389 0.41666847258867606 0.4462547356884943 0.5370676575362398
13 360 0.41661681556107044 0.5013984151414815 0.2614129015000436 0.31461047565528394 0.26884560050381257 0.32965736811204155 0.2988437705630911 0.3596585335458547 0.34207882188528543 0.3940115466194192 0.41661681556107044 0.5013984151414815

View File

@@ -36,5 +36,5 @@ is_crypto: bool = False
],
)
def test_cones(recorder, model, lower_q, upper_q, is_crypto):
result = volatility_model.cones(data=MOCK_DATA, upper_q=0.95, lower_q=0.05)
result = volatility_model.cones(data=MOCK_DATA, upper_q=upper_q, lower_q=lower_q, is_crypto=is_crypto)
recorder.capture(result)