-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
Rethinking_2/Chp_02.ipynb: Mistake in quadratic approximation ("Code 2.6")? #222
Comments
I think I hit the same problem. I'm running PyMC 5.0.2. I dug online and got to this. Worked for me but doesn't look efficient (two models).
|
Had the same issue! Did you find a solution for that? |
Something like the below works for me. Still no fundamental solutions. This is trying to work with actual samples from the posterior (there is some variability because they are just samples). The original method I think is faster and fancier but running into difficulties with how its handled behind the scenes.
I'm basing this on a discussion in the pymc forum. |
This issue seems to describe what is the problem: pymc-devs/pymc#5443 It seems like we need to use Hope it helps |
Hi, @LukeBenjaminT. Your solution works. Could you please provide the link of your post on the forum?
|
When I run the code for the quadratic approximation (attached below), I get a SD that is 4 times larger than the one in the book (0.64, instead of 0.16 as expected). Similarly, the "approximations" of the binomial with a gaussian have a much-too-large SD. Since I don't have an equation to compare, I assume that there is a mistake in the current code:
produces on my computer
instead of the expected SD=0.16
I have been running the code on Win64, Python 3.10, PyMC 4
The text was updated successfully, but these errors were encountered: