The Zero-inflated Negative Binomial (ZINB) model adresses both zero inflation and overdispersion in the data. It can be expressed as:

\begin{equation*}
 X_j \sim (1-\pi_j)\; \mathds{1}_{w_j=0} + \pi_j\; \operatorname{NegativeBinomial}(\mu_j, r)
\end{equation*}

where the are indivicator variables such that with probability and with probability . We typically model the using a logistic model.

Sample

We can use the method described in (neelon) to sample the ZINB model with a logistic mode:

  1. Use the Gibbs sampler in (polson2013) to sample the parameter of the logistic regression model;
  2. Use the Gibbs sampler in to sample the parameter of the negative binomial;
  3. Update using a MCMC step;
  4. Update the from their discrete full conditional distributions.