Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Eisenhauer committed Sep 30, 2019
2 parents eb050b4 + fa34be1 commit ef1f6de
Show file tree
Hide file tree
Showing 24 changed files with 761 additions and 962 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ __pycache__/
*/jupyter/migrated*
*.pbs
*.png
fixp_results_1000_10_10_4292.pkl
fixp_results_1000_10_10_2223.pkl
fixp_results_5000_50_400_2223.pkl
fixp_results_5000_50_400_4292.pkl
sim_results/
val_results/
demonstration.pkl


15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# analysis
# Robust bus replacement problem

This repository hosts our analysis of the robust bus replacement problem as documented in:

> Blesch, M. & Eisenhauer, P. (2019). Robust investments under risk and ambiguity. *Unpublished Working Paper*, submitted.
## Miscellaneous

There are several commands available to ease the workflow.

* `execute-notebooks`, runs all notebooks in the repository

* `update-repository`, updates the whole repository including all submodules

... respository for our analysis

[![Build Status](https://travis-ci.org/robustzurcher/analysis.svg?branch=master)](https://travis-ci.org/robustzurcher/analysis)
154 changes: 77 additions & 77 deletions notebooks/01_introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -120,201 +120,201 @@
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <td>0</td>\n",
" <td>10000</td>\n",
" <td>274.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>1</td>\n",
" <td>20000</td>\n",
" <td>238.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>2</td>\n",
" <td>30000</td>\n",
" <td>240.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>3</td>\n",
" <td>40000</td>\n",
" <td>199.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>4</td>\n",
" <td>50000</td>\n",
" <td>196.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>5</td>\n",
" <td>60000</td>\n",
" <td>192.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>6</td>\n",
" <td>70000</td>\n",
" <td>191.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>7</td>\n",
" <td>80000</td>\n",
" <td>176.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>8</td>\n",
" <td>90000</td>\n",
" <td>181.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>9</td>\n",
" <td>100000</td>\n",
" <td>157.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>10</td>\n",
" <td>110000</td>\n",
" <td>141.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>11</td>\n",
" <td>120000</td>\n",
" <td>143.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>12</td>\n",
" <td>130000</td>\n",
" <td>131.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>13</td>\n",
" <td>140000</td>\n",
" <td>124.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>14</td>\n",
" <td>150000</td>\n",
" <td>109.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>15</td>\n",
" <td>160000</td>\n",
" <td>103.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>16</td>\n",
" <td>170000</td>\n",
" <td>103.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>17</td>\n",
" <td>180000</td>\n",
" <td>104.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>18</td>\n",
" <td>190000</td>\n",
" <td>101.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>19</td>\n",
" <td>200000</td>\n",
" <td>101.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>20</td>\n",
" <td>210000</td>\n",
" <td>115.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>21</td>\n",
" <td>220000</td>\n",
" <td>99.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>22</td>\n",
" <td>230000</td>\n",
" <td>93.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>23</td>\n",
" <td>240000</td>\n",
" <td>94.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>24</td>\n",
" <td>250000</td>\n",
" <td>94.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>25</td>\n",
" <td>260000</td>\n",
" <td>93.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>26</td>\n",
" <td>270000</td>\n",
" <td>84.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>27</td>\n",
" <td>280000</td>\n",
" <td>70.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>28</td>\n",
" <td>290000</td>\n",
" <td>65.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>29</td>\n",
" <td>300000</td>\n",
" <td>60.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>30</td>\n",
" <td>310000</td>\n",
" <td>52.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>31</td>\n",
" <td>320000</td>\n",
" <td>45.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>32</td>\n",
" <td>330000</td>\n",
" <td>42.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>33</td>\n",
" <td>340000</td>\n",
" <td>28.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>34</td>\n",
" <td>350000</td>\n",
" <td>31.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>35</td>\n",
" <td>360000</td>\n",
" <td>11.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>36</td>\n",
" <td>370000</td>\n",
" <td>5.0</td>\n",
" </tr>\n",
" <tr>\n",
" <td>37</td>\n",
" <td>380000</td>\n",
" <td>4.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Num_Obs\n",
"0 274.0\n",
"1 238.0\n",
"2 240.0\n",
"3 199.0\n",
"4 196.0\n",
"5 192.0\n",
"6 191.0\n",
"7 176.0\n",
"8 181.0\n",
"9 157.0\n",
"10 141.0\n",
"11 143.0\n",
"12 131.0\n",
"13 124.0\n",
"14 109.0\n",
"15 103.0\n",
"16 103.0\n",
"17 104.0\n",
"18 101.0\n",
"19 101.0\n",
"20 115.0\n",
"21 99.0\n",
"22 93.0\n",
"23 94.0\n",
"24 94.0\n",
"25 93.0\n",
"26 84.0\n",
"27 70.0\n",
"28 65.0\n",
"29 60.0\n",
"30 52.0\n",
"31 45.0\n",
"32 42.0\n",
"33 28.0\n",
"34 31.0\n",
"35 11.0\n",
"36 5.0\n",
"37 4.0"
" Num_Obs\n",
"10000 274.0\n",
"20000 238.0\n",
"30000 240.0\n",
"40000 199.0\n",
"50000 196.0\n",
"60000 192.0\n",
"70000 191.0\n",
"80000 176.0\n",
"90000 181.0\n",
"100000 157.0\n",
"110000 141.0\n",
"120000 143.0\n",
"130000 131.0\n",
"140000 124.0\n",
"150000 109.0\n",
"160000 103.0\n",
"170000 103.0\n",
"180000 104.0\n",
"190000 101.0\n",
"200000 101.0\n",
"210000 115.0\n",
"220000 99.0\n",
"230000 93.0\n",
"240000 94.0\n",
"250000 94.0\n",
"260000 93.0\n",
"270000 84.0\n",
"280000 70.0\n",
"290000 65.0\n",
"300000 60.0\n",
"310000 52.0\n",
"320000 45.0\n",
"330000 42.0\n",
"340000 28.0\n",
"350000 31.0\n",
"360000 11.0\n",
"370000 5.0\n",
"380000 4.0"
]
},
"execution_count": 5,
Expand Down
4 changes: 2 additions & 2 deletions notebooks/02_framework.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"\n",
"\n",
"\n",
"fig.savefig('{:}/fig-framework-ambiguity-set-calibration'.format(DIR_FIGURES))"
"fig.savefig('{:}/fig-framework-ambiguity-set-calibration-sw'.format(DIR_FIGURES))"
]
},
{
Expand All @@ -76,7 +76,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
927 changes: 310 additions & 617 deletions notebooks/03_application.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions notebooks/Exploration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -124,26 +124,26 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
"obs_per_state = 4292 / scale\n",
"rho = chi2.ppf(0.5, len(p_external) - 1) / (2 * obs_per_state)"
"rho = chi2.ppf(0.95, len(p_external) - 1) / (2 * obs_per_state)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 22,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.456"
"0.121"
]
},
"execution_count": 12,
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Binary file not shown.
Binary file modified pre_processed_data/fixp_results_5000_50_400_4292.zip
Binary file not shown.
Binary file not shown.
Binary file modified pre_processed_data/simulation_results.zip
Binary file not shown.
Binary file modified pre_processed_data/validation_results.zip
Binary file not shown.
Binary file removed pre_processed_data/validation_results_explore.zip
Binary file not shown.
Loading

0 comments on commit ef1f6de

Please sign in to comment.