Skip to content

Commit

Permalink
add Bayesian workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elizavetasemenova committed Mar 19, 2024
1 parent cd9a0ba commit d9f13a3
Show file tree
Hide file tree
Showing 8 changed files with 1,218 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 04_probability_distributions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Measuring distances btween distributions\n",
"## Measuring distances between distributions\n",
"\n",
"There are several ways to measure distances between two probability distributions with PDFs $p(x)$ and $q(x)$, each with its own characteristics and applications. \n",
"\n",
Expand Down
6 changes: 3 additions & 3 deletions 05_Bayesian_inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@
"\n",
"What does it take?\n",
"\n",
"- <font color='red'>`Data`</font>\n",
"- A generative model (how does the conditional <font color='teal'>`likelihood`</font> come about?)\n",
"- Our <font color='purple'>`beliefs`</font> before seeing the data.\n",
"- Data,\n",
"- A generative model,\n",
"- Our beliefs before seeing the data.\n",
"\n",
"What does it make?\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion 09_intro_to_Numpyro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
"`````{admonition} Task: Point estimates for Bernoulli-beta coin flips\n",
":class: tip\n",
"- You might have correctly noticed that we have not looked at the `Predictive` capability. Study the documentation of Numpyro (in particular, `numpyro.infer`) and demonstrate the `Predictive` command on the example shown above.\n",
"- Study the documentation of Numpyro (in particular, `numpyro.diagnostics`) to undertand what the `hpdi` command does. Apply it to the example shown above.\n",
"- Study the documentation of Numpyro (in particular, `numpyro.diagnostics`) to understand what the `hpdi` command does. Apply it to the example shown above.\n",
"`````"
]
},
Expand Down
1,211 changes: 1,211 additions & 0 deletions 11_Bayesian_workflow.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 999_acknowledgements.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Acknowledgements and links
- AIMS and Ulrich personally for the invitation
- [Machine Learning and Global Health](mlgh.net/people) network for many things, but in particular for the (virtual, at the time) space where I learnt Numpyro through a reading group together with some MLGH members: Swapnil Mishra, Iwona Hawryluk, Tim Wolock, Theo Rashid, Giovanni Charles
- [Deep Learning Indaba](https://deeplearningindaba.com/) for showing me how much ML enthisuams there is on the African continent and making me want to contribute
- Co-authors of the paper [Bayesian workflow for disease transmission modeling in Stan](https://onlinelibrary.wiley.com/doi/abs/10.1002/sim.9164) and all particiapnts of the regular Thursday Stan call which enabled me to co-author
- Lorenzo Ciardo from Kellogg College at Oxford for telling me about the Buffon's needle problem
- Richard McEarlth for posting the [prior-likelihood conflict example](https://twitter.com/rlmcelreath/status/1701165075493470644)
Expand Down
1 change: 1 addition & 0 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ chapters:
- file: 08_PPLs.ipynb
- file: 09_intro_to_Numpyro.ipynb
- file: 10_focus_on_priors.ipynb
- file: 11_Bayesian_workflow.ipynb
- file: 999_acknowledgements.md
Binary file added assets/bayes_workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/boxes_loop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d9f13a3

Please sign in to comment.