Skip to content

Commit 035ad99

Browse files
authored
Merge pull request #32 from canyon289/02_student
Add ArviZ to 02-Student-Parameter
2 parents a223fdf + c6fc25c commit 035ad99

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

notebooks/02-Student-Parameter_estimation_hypothesis_testing.ipynb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"import matplotlib.pyplot as plt\n",
2121
"import pymc3 as pm\n",
2222
"from ipywidgets import interact\n",
23+
"import arviz as az\n",
2324
"%matplotlib inline\n",
2425
"sns.set()"
2526
]
@@ -366,7 +367,7 @@
366367
" samples = ___\n",
367368
"\n",
368369
"# Plot posterior\n",
369-
"pm.plot_posterior(samples);"
370+
"az.plot_posterior(samples);"
370371
]
371372
},
372373
{
@@ -451,7 +452,7 @@
451452
" samples = ___\n",
452453
"\n",
453454
"# Plot posterior\n",
454-
"pm.plot_posterior(samples);"
455+
"az.plot_posterior(samples);"
455456
]
456457
},
457458
{
@@ -533,7 +534,7 @@
533534
"source": [
534535
"with Model:\n",
535536
" samples = pm.sample(2000, njobs=1)\n",
536-
"pm.plot_posterior(samples);"
537+
"az.plot_posterior(samples);"
537538
]
538539
},
539540
{
@@ -588,7 +589,7 @@
588589
"# bust it out & sample\n",
589590
"with model:\n",
590591
" samples = pm.sample(2000, njobs=1)\n",
591-
"pm.plot_posterior(samples, varnames=['μ_1', 'μ_2', 'diff_means', 'effect_size']);"
592+
"az.plot_posterior(samples, var_names=['μ_1', 'μ_2', 'diff_means', 'effect_size']);"
592593
]
593594
}
594595
],
@@ -608,7 +609,7 @@
608609
"name": "python",
609610
"nbconvert_exporter": "python",
610611
"pygments_lexer": "ipython3",
611-
"version": "3.6.6"
612+
"version": "3.6.8"
612613
}
613614
},
614615
"nbformat": 4,

0 commit comments

Comments
 (0)