-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Added Rat Tumour Example #3054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Rat Tumour Example #3054
Conversation
Added notebook for rat tumor example in chapter 5 of BDA
Looks nice! A few comments:
|
I've omitted a discussion about transforms (as per your request on discourse) because the example no longer uses Alternatively, we could use |
docs/source/examples.rst
Outdated
@@ -35,6 +35,7 @@ GLM | |||
=== | |||
|
|||
.. toctree:: | |||
notebooks/RatTumorExample.ipynb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please move this to the last session of GLM, also change the title of the notebook:
rat tumor
--> Hierarchical Binominal Model: Rat Tumor Example
"\n", | ||
"We are free to specify a prior distribution for $\\alpha, \\beta$. We choose a weakly informative prior distribution to reflect our ignorance about the true values of $\\alpha, \\beta$. The authors of BDA3 choose the joint hyperprior for $\\alpha, \\beta$ to be\n", | ||
"\n", | ||
"$$ p(\\alpha, \\beta) \\propto (\\alpha + \\beta) ^{-5/2} \\>.$$\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes made. |
"Our joint posterior distribution is\n", | ||
"\n", | ||
"$$p(\\alpha,\\beta,\\theta \\lvert y) \n", | ||
"\\propto \\>\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few \\>
still need to be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got em
Awesome, thanks! |
Added notebook for rat tumor example in chapter 5 of BDA.
I was looking for some resources in python for Gelman's first example of hierarchical models in BDA but couldn't find any. I decided to write one myself.
I'd appreciate any feedback re: this example.