Skip to content

Commit d2aeab0

Browse files
author
Andrew
committed
Updates for Mk 28.3
1 parent 1cdb9f0 commit d2aeab0

28 files changed

+2587
-1179
lines changed

Examples/bonus/debt_compression_question.ipynb

Lines changed: 5 additions & 14 deletions
Large diffs are not rendered by default.

Examples/correg/lmm_notebook.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@
698698
{
699699
"data": {
700700
"text/plain": [
701-
"<map at 0x7f15cce5e7c0>"
701+
"<map at 0x7f169dea5a60>"
702702
]
703703
},
704704
"execution_count": 15,
@@ -714,7 +714,7 @@
714714
],
715715
"metadata": {
716716
"kernelspec": {
717-
"display_name": "Python 3",
717+
"display_name": "Python 3 (ipykernel)",
718718
"language": "python",
719719
"name": "python3"
720720
},
@@ -728,7 +728,7 @@
728728
"name": "python",
729729
"nbconvert_exporter": "python",
730730
"pygments_lexer": "ipython3",
731-
"version": "3.9.1"
731+
"version": "3.8.10"
732732
},
733733
"latex_envs": {
734734
"LaTeX_envs_menu_present": true,

Examples/correg/quantile_linreg_easy.ipynb

Lines changed: 598 additions & 413 deletions
Large diffs are not rendered by default.

Examples/correg/quantile_linreg_pandas.ipynb

Lines changed: 600 additions & 415 deletions
Large diffs are not rendered by default.

Examples/fit/dim2_spline_ts_sctr.ipynb

Lines changed: 20 additions & 56 deletions
Large diffs are not rendered by default.

Examples/mv/iris.ipynb

Lines changed: 105 additions & 90 deletions
Large diffs are not rendered by default.

Examples/opt/bounds_quasi_func_easy.ipynb

Lines changed: 12 additions & 30 deletions
Large diffs are not rendered by default.

Examples/simple/Simple.ipynb renamed to Examples/simple_exception/Simple.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
],
197197
"metadata": {
198198
"kernelspec": {
199-
"display_name": "Python 3",
199+
"display_name": "Python 3 (ipykernel)",
200200
"language": "python",
201201
"name": "python3"
202202
},
@@ -210,7 +210,7 @@
210210
"name": "python",
211211
"nbconvert_exporter": "python",
212212
"pygments_lexer": "ipython3",
213-
"version": "3.5.2"
213+
"version": "3.8.10"
214214
},
215215
"latex_envs": {
216216
"LaTeX_envs_menu_present": true,

Examples/simple/SimpleException.ipynb renamed to Examples/simple_exception/SimpleException.ipynb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 47,
16+
"execution_count": 1,
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"cell_type": "code",
32-
"execution_count": 48,
32+
"execution_count": 2,
3333
"metadata": {},
3434
"outputs": [],
3535
"source": [
@@ -48,7 +48,7 @@
4848
},
4949
{
5050
"cell_type": "code",
51-
"execution_count": 49,
51+
"execution_count": 3,
5252
"metadata": {},
5353
"outputs": [],
5454
"source": [
@@ -65,7 +65,7 @@
6565
},
6666
{
6767
"cell_type": "code",
68-
"execution_count": 50,
68+
"execution_count": 4,
6969
"metadata": {},
7070
"outputs": [],
7171
"source": [
@@ -83,7 +83,7 @@
8383
},
8484
{
8585
"cell_type": "code",
86-
"execution_count": 51,
86+
"execution_count": 5,
8787
"metadata": {},
8888
"outputs": [
8989
{
@@ -118,7 +118,7 @@
118118
},
119119
{
120120
"cell_type": "code",
121-
"execution_count": 52,
121+
"execution_count": 6,
122122
"metadata": {},
123123
"outputs": [
124124
{
@@ -142,7 +142,7 @@
142142
},
143143
{
144144
"cell_type": "code",
145-
"execution_count": 53,
145+
"execution_count": 7,
146146
"metadata": {},
147147
"outputs": [
148148
{
@@ -169,7 +169,7 @@
169169
},
170170
{
171171
"cell_type": "code",
172-
"execution_count": 54,
172+
"execution_count": 8,
173173
"metadata": {},
174174
"outputs": [
175175
{
@@ -197,7 +197,7 @@
197197
},
198198
{
199199
"cell_type": "code",
200-
"execution_count": 55,
200+
"execution_count": 9,
201201
"metadata": {},
202202
"outputs": [
203203
{
@@ -218,7 +218,7 @@
218218
],
219219
"metadata": {
220220
"kernelspec": {
221-
"display_name": "Python 3",
221+
"display_name": "Python 3 (ipykernel)",
222222
"language": "python",
223223
"name": "python3"
224224
},
@@ -232,7 +232,7 @@
232232
"name": "python",
233233
"nbconvert_exporter": "python",
234234
"pygments_lexer": "ipython3",
235-
"version": "3.5.2"
235+
"version": "3.8.10"
236236
},
237237
"latex_envs": {
238238
"LaTeX_envs_menu_present": true,

Examples/tsa/cp_pelt_new.ipynb

Lines changed: 16 additions & 34 deletions
Large diffs are not rendered by default.

hands-on-exercises/fix_this-q.ipynb

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7+
"![title](../NAG_logo.png)\n",
78
"# Principal component analysis\n",
89
"\n",
9-
"The following program uses the routine `mv.prin_comp` to performs principal component analysis on a variance-covariance matrix, which consists of _the first two columns_ of the following matrix `x`. Use `help` and follow the error messages to fix the program. "
10+
"The following program uses the routine `mv.prin_comp` to performs principal component analysis on a variance-covariance matrix, which consists of _the first two columns_ of the following matrix `x`. Use `help` and follow the error messages to fix the program.\n",
11+
"\n",
12+
"## hints\n",
13+
"\n",
14+
" 1. All arrays have to be contiguous (there is a speed advantage if they are also column-major (Fortran-like))\n",
15+
" 2. Documentation for mv.prin_comp can be requested inside this notebook by using `?mv.prin_comp`\n",
16+
" 3. Make sure that `s` is of the right length\n",
17+
" 3. Make sure that the returned object from `prin_comp` as a `stat` member\n",
18+
" 4. See also the `iris` PCA example notebook"
1019
]
1120
},
1221
{
@@ -62,7 +71,7 @@
6271
],
6372
"metadata": {
6473
"kernelspec": {
65-
"display_name": "Python 3",
74+
"display_name": "Python 3 (ipykernel)",
6675
"language": "python",
6776
"name": "python3"
6877
},
@@ -76,7 +85,7 @@
7685
"name": "python",
7786
"nbconvert_exporter": "python",
7887
"pygments_lexer": "ipython3",
79-
"version": "3.9.2"
88+
"version": "3.8.10"
8089
}
8190
},
8291
"nbformat": 4,

hands-on-exercises/implied-volatility-q.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"![title](../nag_logo.png)\n",
7+
"![title](../NAG_logo.png)\n",
88
"\n",
99
"# Exercises - Implied Volatility\n",
1010
"\n",
@@ -26,7 +26,7 @@
2626
"- q = 0.015 \n",
2727
"- $\\sigma$ = 0.09\n",
2828
"\n",
29-
"You should get an answer of $12.35008695$."
29+
"You should get an answer of 12.35008695."
3030
]
3131
},
3232
{
@@ -54,7 +54,7 @@
5454
],
5555
"metadata": {
5656
"kernelspec": {
57-
"display_name": "Python 3",
57+
"display_name": "Python 3 (ipykernel)",
5858
"language": "python",
5959
"name": "python3"
6060
},
@@ -68,7 +68,7 @@
6868
"name": "python",
6969
"nbconvert_exporter": "python",
7070
"pygments_lexer": "ipython3",
71-
"version": "3.8.5"
71+
"version": "3.8.10"
7272
}
7373
},
7474
"nbformat": 4,

hands-on-exercises/odes-q.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"![title](../nag_logo.png)\n",
7+
"![title](../NAG_logo.png)\n",
88
"\n",
99
"# Exercises - Ordinary Differential Equations\n",
1010
"\n",
@@ -51,7 +51,7 @@
5151
],
5252
"metadata": {
5353
"kernelspec": {
54-
"display_name": "Python 3",
54+
"display_name": "Python 3 (ipykernel)",
5555
"language": "python",
5656
"name": "python3"
5757
},
@@ -65,7 +65,7 @@
6565
"name": "python",
6666
"nbconvert_exporter": "python",
6767
"pygments_lexer": "ipython3",
68-
"version": "3.8.5"
68+
"version": "3.8.10"
6969
}
7070
},
7171
"nbformat": 4,

hands-on-exercises/opt-q.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"![title](../nag_logo.png)\n",
7+
"![title](../NAG_logo.png)\n",
88
"\n",
99
"# Exercises - Optimization\n",
1010
"\n",
@@ -108,7 +108,7 @@
108108
],
109109
"metadata": {
110110
"kernelspec": {
111-
"display_name": "Python 3",
111+
"display_name": "Python 3 (ipykernel)",
112112
"language": "python",
113113
"name": "python3"
114114
},
@@ -122,7 +122,7 @@
122122
"name": "python",
123123
"nbconvert_exporter": "python",
124124
"pygments_lexer": "ipython3",
125-
"version": "3.8.5"
125+
"version": "3.8.10"
126126
}
127127
},
128128
"nbformat": 4,

hands-on-exercises/option-pricing-q.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"![title](../nag_logo.png)\n",
7+
"![title](../NAG_logo.png)\n",
88
"\n",
99
"# Exercises - Option Pricing\n",
1010
"\n",
@@ -62,7 +62,7 @@
6262
],
6363
"metadata": {
6464
"kernelspec": {
65-
"display_name": "Python 3",
65+
"display_name": "Python 3 (ipykernel)",
6666
"language": "python",
6767
"name": "python3"
6868
},
@@ -76,7 +76,7 @@
7676
"name": "python",
7777
"nbconvert_exporter": "python",
7878
"pygments_lexer": "ipython3",
79-
"version": "3.8.5"
79+
"version": "3.8.10"
8080
}
8181
},
8282
"nbformat": 4,

hands-on-exercises/polyfit-q.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"![title](../nag_logo.png)\n",
7+
"![title](../NAG_logo.png)\n",
88
"\n",
99
"# Exercises - interpolation\n",
1010
"\n",
@@ -57,7 +57,7 @@
5757
],
5858
"metadata": {
5959
"kernelspec": {
60-
"display_name": "Python 3",
60+
"display_name": "Python 3 (ipykernel)",
6161
"language": "python",
6262
"name": "python3"
6363
},
@@ -71,7 +71,7 @@
7171
"name": "python",
7272
"nbconvert_exporter": "python",
7373
"pygments_lexer": "ipython3",
74-
"version": "3.8.5"
74+
"version": "3.8.10"
7575
}
7676
},
7777
"nbformat": 4,

hands-on-exercises/reg-q.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7+
"![title](../NAG_logo.png)\n",
78
"# Regression\n",
89
"\n",
910
"## Fitting linear regression models\n",
@@ -99,7 +100,7 @@
99100
],
100101
"metadata": {
101102
"kernelspec": {
102-
"display_name": "Python 3",
103+
"display_name": "Python 3 (ipykernel)",
103104
"language": "python",
104105
"name": "python3"
105106
},
@@ -113,7 +114,7 @@
113114
"name": "python",
114115
"nbconvert_exporter": "python",
115116
"pygments_lexer": "ipython3",
116-
"version": "3.8.5"
117+
"version": "3.8.10"
117118
}
118119
},
119120
"nbformat": 4,

hands-on-exercises/short-q.ipynb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"![title](../nag_logo.png)\n",
8-
" \n",
7+
"![title](../NAG_logo.png)\n",
98
"\n",
109
"# Exercises - short questions\n",
1110
"These questions are not necessarily designed to be answered in order! Choose\n",
@@ -262,7 +261,7 @@
262261
],
263262
"metadata": {
264263
"kernelspec": {
265-
"display_name": "Python 3",
264+
"display_name": "Python 3 (ipykernel)",
266265
"language": "python",
267266
"name": "python3"
268267
},
@@ -276,7 +275,7 @@
276275
"name": "python",
277276
"nbconvert_exporter": "python",
278277
"pygments_lexer": "ipython3",
279-
"version": "3.9.2"
278+
"version": "3.8.10"
280279
}
281280
},
282281
"nbformat": 4,

0 commit comments

Comments
 (0)