Skip to main content
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 ...
Gavin Simpson's user avatar
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, ...
Jacob Weverka's user avatar
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 ...
Adam Check's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible