13
13
},
14
14
{
15
15
"cell_type": "code",
16
- "execution_count": 1 ,
16
+ "execution_count": 21 ,
17
17
"metadata": {},
18
18
"outputs": [],
19
19
"source": [
57
57
},
58
58
{
59
59
"cell_type": "code",
60
- "execution_count": 2 ,
60
+ "execution_count": 22 ,
61
61
"metadata": {},
62
62
"outputs": [],
63
63
"source": [
68
68
},
69
69
{
70
70
"cell_type": "code",
71
- "execution_count": 3 ,
71
+ "execution_count": 23 ,
72
72
"metadata": {},
73
73
"outputs": [
74
74
{
115
115
},
116
116
{
117
117
"cell_type": "code",
118
- "execution_count": 4 ,
118
+ "execution_count": 24 ,
119
119
"metadata": {},
120
120
"outputs": [
121
121
{
174
174
},
175
175
{
176
176
"cell_type": "code",
177
- "execution_count": 5 ,
177
+ "execution_count": 25 ,
178
178
"metadata": {},
179
179
"outputs": [
180
180
{
217
217
"d 3.23674 5.023089"
218
218
]
219
219
},
220
- "execution_count": 5 ,
220
+ "execution_count": 25 ,
221
221
"metadata": {},
222
222
"output_type": "execute_result"
223
223
}
246
246
},
247
247
{
248
248
"cell_type": "code",
249
- "execution_count": 6 ,
249
+ "execution_count": 26 ,
250
250
"metadata": {},
251
251
"outputs": [
252
252
{
256
256
"================== Sensitivity Analysis ==================\n",
257
257
"\n",
258
258
"------------------ Scenario ------------------\n",
259
- "Null Hypothesis: theta=0.0\n",
260
259
"Significance Level: level=0.95\n",
261
260
"Sensitivity parameters: cf_y=0.03; cf_d=0.03, rho=1.0\n",
262
261
"\n",
263
- "------------------ Robustness Values ------------------\n",
264
- " RV (%) RVa (%)\n",
265
- "d 34.277832 29.773191\n",
266
- "\n",
267
262
"------------------ Bounds with CI ------------------\n",
268
263
" CI lower theta lower theta theta upper CI upper\n",
269
- "d 3.097583 3.832391 4.129914 4.427438 5.192852\n"
264
+ "d 3.097583 3.832391 4.129914 4.427438 5.192852\n",
265
+ "\n",
266
+ "------------------ Robustness Values ------------------\n",
267
+ " H_0 RV (%) RVa (%)\n",
268
+ "d 0.0 34.277832 29.773191\n"
270
269
]
271
270
}
272
271
],
277
276
},
278
277
{
279
278
"cell_type": "code",
280
- "execution_count": 7 ,
279
+ "execution_count": 27 ,
281
280
"metadata": {},
282
281
"outputs": [
283
282
{
292
291
" 'cf_d': 0.03,\n",
293
292
" 'rho': 1.0,\n",
294
293
" 'level': 0.95,\n",
295
- " 'theta ': 0.0 }}"
294
+ " 'null_hypothesis ': array([0.]) }}"
296
295
]
297
296
},
298
- "execution_count": 7 ,
297
+ "execution_count": 27 ,
299
298
"metadata": {},
300
299
"output_type": "execute_result"
301
300
}
318
317
},
319
318
{
320
319
"cell_type": "code",
321
- "execution_count": 8 ,
320
+ "execution_count": 28 ,
322
321
"metadata": {},
323
322
"outputs": [
324
323
{
@@ -11658,12 +11657,12 @@
11658
11657
"cell_type": "markdown",
11659
11658
"metadata": {},
11660
11659
"source": [
11661
- "To consider a different null hypothesis and add a different scenario to the the contour plot, we can adjust the parameter `theta `."
11660
+ "To consider a different null hypothesis and add a different scenario to the the contour plot, we can adjust the parameter `null_hypothesis `."
11662
11661
]
11663
11662
},
11664
11663
{
11665
11664
"cell_type": "code",
11666
- "execution_count": 9 ,
11665
+ "execution_count": 29 ,
11667
11666
"metadata": {},
11668
11667
"outputs": [
11669
11668
{
@@ -11673,28 +11672,27 @@
11673
11672
"================== Sensitivity Analysis ==================\n",
11674
11673
"\n",
11675
11674
"------------------ Scenario ------------------\n",
11676
- "Null Hypothesis: theta=5.0\n",
11677
11675
"Significance Level: level=0.95\n",
11678
11676
"Sensitivity parameters: cf_y=0.1; cf_d=0.1, rho=1.0\n",
11679
11677
"\n",
11680
- "------------------ Robustness Values ------------------\n",
11681
- " RV (%) RVa (%)\n",
11682
- "d 8.520003 1.16567\n",
11683
- "\n",
11684
11678
"------------------ Bounds with CI ------------------\n",
11685
11679
" CI lower theta lower theta theta upper CI upper\n",
11686
- "d 2.396879 3.100324 4.129914 5.159504 5.96804\n"
11680
+ "d 2.396879 3.100324 4.129914 5.159504 5.96804\n",
11681
+ "\n",
11682
+ "------------------ Robustness Values ------------------\n",
11683
+ " H_0 RV (%) RVa (%)\n",
11684
+ "d 5.0 8.520003 1.16567\n"
11687
11685
]
11688
11686
}
11689
11687
],
11690
11688
"source": [
11691
- "dml_obj.sensitivity_analysis(cf_y=cf_y, cf_d=cf_d, theta =theta)\n",
11689
+ "dml_obj.sensitivity_analysis(cf_y=cf_y, cf_d=cf_d, null_hypothesis =theta)\n",
11692
11690
"print(dml_obj.sensitivity_summary)"
11693
11691
]
11694
11692
},
11695
11693
{
11696
11694
"cell_type": "code",
11697
- "execution_count": 10 ,
11695
+ "execution_count": 30 ,
11698
11696
"metadata": {},
11699
11697
"outputs": [
11700
11698
{
23026
23024
}
23027
23025
],
23028
23026
"source": [
23029
- "dml_obj.sensitivity_plot(theta=theta )"
23027
+ "dml_obj.sensitivity_plot()"
23030
23028
]
23031
23029
},
23032
23030
{
23054
23052
},
23055
23053
{
23056
23054
"cell_type": "code",
23057
- "execution_count": 11 ,
23055
+ "execution_count": 31 ,
23058
23056
"metadata": {},
23059
23057
"outputs": [
23060
23058
{
23105
23103
},
23106
23104
{
23107
23105
"cell_type": "code",
23108
- "execution_count": 12 ,
23106
+ "execution_count": 32 ,
23109
23107
"metadata": {},
23110
23108
"outputs": [],
23111
23109
"source": [
23117
23115
},
23118
23116
{
23119
23117
"cell_type": "code",
23120
- "execution_count": 13 ,
23118
+ "execution_count": 33 ,
23121
23119
"metadata": {},
23122
23120
"outputs": [
23123
23121
{
23179
23177
},
23180
23178
{
23181
23179
"cell_type": "code",
23182
- "execution_count": 14 ,
23180
+ "execution_count": 34 ,
23183
23181
"metadata": {},
23184
23182
"outputs": [
23185
23183
{
@@ -23189,17 +23187,16 @@
23189
23187
"================== Sensitivity Analysis ==================\n",
23190
23188
"\n",
23191
23189
"------------------ Scenario ------------------\n",
23192
- "Null Hypothesis: theta=0.0\n",
23193
23190
"Significance Level: level=0.95\n",
23194
23191
"Sensitivity parameters: cf_y=0.04; cf_d=0.03, rho=1.0\n",
23195
23192
"\n",
23196
- "------------------ Robustness Values ------------------\n",
23197
- " RV (%) RVa (%)\n",
23198
- "e401 7.142167 5.344182\n",
23199
- "\n",
23200
23193
"------------------ Bounds with CI ------------------\n",
23201
23194
" CI lower theta lower theta theta upper CI upper\n",
23202
- "e401 2466.628749 4688.643738 8923.15163 13157.659522 15368.317475\n"
23195
+ "e401 2466.628749 4688.643738 8923.15163 13157.659522 15368.317475\n",
23196
+ "\n",
23197
+ "------------------ Robustness Values ------------------\n",
23198
+ " H_0 RV (%) RVa (%)\n",
23199
+ "e401 0.0 7.142167 5.344182\n"
23203
23200
]
23204
23201
}
23205
23202
],
23218
23215
},
23219
23216
{
23220
23217
"cell_type": "code",
23221
- "execution_count": 15 ,
23218
+ "execution_count": 35 ,
23222
23219
"metadata": {},
23223
23220
"outputs": [
23224
23221
{
34565
34562
},
34566
34563
{
34567
34564
"cell_type": "code",
34568
- "execution_count": 16 ,
34565
+ "execution_count": 36 ,
34569
34566
"metadata": {},
34570
34567
"outputs": [
34571
34568
{
34622
34619
},
34623
34620
{
34624
34621
"cell_type": "code",
34625
- "execution_count": 17 ,
34622
+ "execution_count": 37 ,
34626
34623
"metadata": {},
34627
34624
"outputs": [
34628
34625
{
@@ -34632,17 +34629,16 @@
34632
34629
"================== Sensitivity Analysis ==================\n",
34633
34630
"\n",
34634
34631
"------------------ Scenario ------------------\n",
34635
- "Null Hypothesis: theta=0.0\n",
34636
34632
"Significance Level: level=0.95\n",
34637
34633
"Sensitivity parameters: cf_y=0.04; cf_d=0.03, rho=1.0\n",
34638
34634
"\n",
34639
- "------------------ Robustness Values ------------------\n",
34640
- " RV (%) RVa (%)\n",
34641
- "e401 5.921927 4.52499\n",
34642
- "\n",
34643
34635
"------------------ Bounds with CI ------------------\n",
34644
34636
" CI lower theta lower theta theta upper CI upper\n",
34645
- "e401 1557.650883 3467.844007 8180.537217 12893.230427 14796.611327\n"
34637
+ "e401 1557.650883 3467.844007 8180.537217 12893.230427 14796.611327\n",
34638
+ "\n",
34639
+ "------------------ Robustness Values ------------------\n",
34640
+ " H_0 RV (%) RVa (%)\n",
34641
+ "e401 0.0 5.921927 4.52499\n"
34646
34642
]
34647
34643
}
34648
34644
],
34653
34649
},
34654
34650
{
34655
34651
"cell_type": "code",
34656
- "execution_count": 18 ,
34652
+ "execution_count": 38 ,
34657
34653
"metadata": {},
34658
34654
"outputs": [
34659
34655
{
0 commit comments