I have a set of data that has actual frequency. I have difficulty to find the method of building the negative binomial distribution model. How to relate the parameters in negative binomial distribution with the data?
2026-02-24 04:32:21.1771907541
How to make negative binomial distribution model based on data?
193 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
It is possible to reproduce the results in the table.
You can find the mean of the data is $0.03561302$ and the variance (without a Bessel correction) is $0.06156488$, so overdispersed compared to a Poisson distribution.
Since the mean of a negative binomial distribution is $\frac{(1-p)r}{p}$ and the variance is $\frac{(1-p)r}{p^2}$, the method of moments could suggest using $\hat p=0.5783977$ and $\hat r=0.04887077$. While these parameters are useful, they are not particularly meaningful in themselves: in the standard construction of the negative binomial, $r$ is the number of successes when you stop so a positive integer, but since they are just curve-fitting they might have ignored that point and that this $hat r$ is very small.
Using R to do the calculations, you then get
which seems to match the numbers in the table