Open ghost opened 8 years ago
Can you post what version of PyMC you are using? I remember there are some regressions in PyMC2 around this.
Hi Cam, I appear to have PyMC version 2.3.4. I've had enormous difficulty with installing PyMC on OSX, so I haven't updated in awhile.
Assuming there's no bug in PyMC for a minute.
I'd say it converges towards a uni-modal distribution.
Cluster 0 has a probability close to 0.0. It can have any distribution since it's not used. We can't expect its parameters to converge.
Cluster 1 has a probability close to 1.0. This one cluster is enough to describe the observed data.
The distribution of the observed data is the same as the distribution of cluster 1, Normal(170, 45)
.
Can you check that you're using the correct observation data?
Chapter3_MCMC/data/mixture_data.csv
) contains the same data as the online version.Let me know if you're not sure how to check the points above.
Duplicate issue: #255 and #245. It's a bug in PyMC2. It's fixed in PyMC 2.3.5.
@jasonnett Happy to close this issue?
I'm working through this book--which has mostly been fantastic--but I am running into a converge issue with the bimodal example given in section 3.1. No matter what I do or how many time I run it (even just a direct copy and paste from the online page), the value of
p
always converges to zero regardless of its inherent value and one of the standard deviation values is wildly erratic, never converging to anything.Has anybody else run into this issue? Again, I am directly running the code from the book as-is in a current jupyter notebook: