5
votes
Negative binomial distributed continuous data for animal modelling
You are making the mistake of assuming that the distribution applies to your entire data where in actuality it applies to each observation. A single observation of milk yield, if that's what you are ...
2
votes
Accepted
Can you use the beta-binomial distribution instead of MCMC?
Yes - if the model is simple enough to calculate the posterior analytically, there is no reason you can't do that instead of sampling the posterior. In practice, this is rarely the case, hence MCMC, ...
1
vote
Metropolis Hastings chain getting stuck at high values
I have converted your code to R (see below), and it appears to be working correctly. There are three main differences between your code and the R code below:
Your Python code uses ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
markov-chain-montecarlo × 1646bayesian × 707
metropolis-hastings × 334
sampling × 212
gibbs × 190
monte-carlo × 148
markov-process × 134
r × 116
posterior × 98
simulation × 77
pymc × 71
hierarchical-bayesian × 65
probability × 62
convergence × 60
machine-learning × 53
jags × 53
prior × 49
hamiltonian-monte-carlo × 42
likelihood × 40
python × 37
stan × 37
distributions × 36
regression × 34
self-study × 34
autocorrelation × 34