Tutorials › Statistical Methods for Single-Cell RNA Sequencing › Why Excess Zeros Do Not Prove Zero Inflation

Noise Models and Dropout · Tutorial 65 of 700

Why Excess Zeros Do Not Prove Zero Inflation

Learn to distinguish a large zero fraction from evidence for a separate structural-zero mechanism by comparing plausible count models and sources of heterogeneity.

Intermediate 12 min read

What You'll Learn

  • Explain why a low-mean Poisson count can have many zeros.
  • Calculate the zero probability under a negative-binomial model.
  • Show how variation in cell-specific means increases the marginal zero fraction.
  • Distinguish a model’s zero probability from a claim about the biological source of zeros.
  • Identify diagnostics and limitations when comparing zero fractions with a count model.

Why a Large Zero Fraction Is Not a Mechanism

A gene can be undetected in many cells simply because its expected count is small. Counts can also be more variable than a Poisson model allows, or cells can have different expected counts. Each of these features can raise the fraction of zeros without requiring a separate class of cells that is guaranteed to produce zero counts.

The important distinction is between a pattern and an explanation. A high observed fraction of zeros is a pattern in the data. A zero-inflated model is one possible statistical description of that pattern, but the observed zeros alone do not establish that a distinct structural-zero process generated them. The introductory material on diagnosing excess zeros gives the model-comparison context; here the focus is on why ordinary count variation can itself produce many zeros.

Definition: For a specified count model, the zero probability is \(P(X=0)\). In a sample of \(n\) cells, the zero fraction is the number of cells with count zero divided by \(n\). A zero fraction is “excess” only relative to a stated reference model: it is larger than that model would typically predict, accounting for uncertainty and the way its parameters were estimated. It does not, by itself, identify the mechanism that produced the zeros.

A sampling zero is an observed count of zero even though the model permits a positive expected count. A structural zero refers to a distinct state or process that makes the count zero with certainty, as represented in a particular model. These descriptions concern different claims: one is about an observed outcome, while the other proposes a data-generating explanation.

Three Ordinary Routes to Many Zeros

For a Poisson count with mean \(\mu\), \(P(X=0)=e^{-\mu}\). When \(\mu\) is small, this probability is large. For example, a mean of 0.5 counts per cell gives a zero probability of about 0.607. A dataset can therefore be sparse even when a homogeneous Poisson model is adequate.

Overdispersion also raises zero probability relative to a Poisson model with the same mean. One common negative-binomial parameterization has mean \(\mu\), dispersion parameter \(\theta>0\), and variance \(\mu+\mu^2/\theta\). In this parameterization, its zero probability is \((\theta/(\theta+\mu))^\theta\). Smaller \(\theta\) means greater overdispersion; for a fixed mean, the negative-binomial zero probability exceeds the Poisson value.

Finally, cells may differ in their underlying expected counts. Even if each cell’s count follows a Poisson distribution conditional on its own mean, mixing cells with different means increases the overall zero probability compared with assigning every cell the average mean. The next example derives this point.

Worked Example: Many Zeros from a Low Poisson Mean

Suppose, hypothetically, that counts for a gene in 400 independent cells follow the same Poisson distribution with mean \(\mu=0.5\) counts per cell. Assume the Poisson model is appropriate and there is no separate structural-zero state.

The probability of a zero in one cell is

$$ P(X=0)=e^{-0.5}\approx 0.6065. $$

Thus the expected number of zero-count cells is

$$ 400e^{-0.5}\approx 242.6\text{ cells}. $$

The model predicts that about 60.65% of cells are zero on average. This is a large zero fraction, but it follows directly from the low mean under an ordinary Poisson model. The expected number is not a guarantee that exactly 242.6 cells will be zero; the realized number varies from sample to sample.

Overdispersion and Heterogeneous Cell Means

Worked Example: Negative-Binomial Overdispersion Raises the Zero Probability

Consider a hypothetical gene measured in 600 independent cells. Compare a Poisson model and a negative-binomial model, each with mean \(\mu=1\) count per cell. For the negative binomial, take \(\theta=0.5\), so its variance is \(\mu+\mu^2/\theta=1+1/0.5=3\) counts squared. Assume this model adequately describes the count variation; the comparison does not posit a structural-zero class.

Under the Poisson model, the zero probability and expected number of zero cells are

$$ P(X=0)=e^{-1}\approx 0.3679,\qquad 600e^{-1}\approx 220.7\text{ cells}. $$

Under the negative-binomial model,

$$ P(X=0)=\left(\frac{0.5}{0.5+1}\right)^{0.5} =\left(\frac{1}{3}\right)^{0.5} \approx 0.5774, $$

so the expected number of zero cells is

$$ 600\left(\frac{1}{3}\right)^{0.5}\approx 346.4\text{ cells}. $$

Both models have the same mean, but the negative binomial allows more variability and predicts more zeros. Observing more zeros than the Poisson prediction would not, on its own, distinguish negative-binomial overdispersion from an additional zero-generating process.

Derivation: Let \(X\mid \Lambda=\lambda\sim\operatorname{Poisson}(\lambda)\), where the cell-specific mean \(\Lambda\) varies across cells. Conditional on \(\Lambda\), the mean and variance of \(X\) are both \(\Lambda\). The law of total variance gives
$$ E(X)=E(\Lambda),\qquad \operatorname{Var}(X)=E\{\operatorname{Var}(X\mid\Lambda)\} +\operatorname{Var}\{E(X\mid\Lambda)\} =E(\Lambda)+\operatorname{Var}(\Lambda). $$

The marginal zero probability is \(E\{P(X=0\mid\Lambda)\}=E(e^{-\Lambda})\). Since \(e^{-\lambda}\) is a convex function of \(\lambda\), Jensen’s inequality implies

$$ E(e^{-\Lambda})\geq e^{-E(\Lambda)}. $$

Therefore, mixing Poisson counts with variable means gives at least as high a zero probability as a homogeneous Poisson distribution with the same average mean. If the means genuinely vary, the inequality is strict. This conclusion requires that the conditional count model is Poisson and that the distribution of \(\Lambda\) describes the cells being pooled; it does not say that every possible model of heterogeneity has the same zero probability.

Worked Example: Positive Cell Means Can Still Produce Many Zeros

Suppose, hypothetically, that 1,000 independent cells fall into two equally sized groups with Poisson means of 0.2 and 1.8 counts per cell. Every cell has a positive mean; neither group is a structural-zero group. The average mean across cells is

$$ E(\Lambda)=\frac{0.2+1.8}{2}=1.0\text{ count per cell}. $$

The zero probability in the first group is \(e^{-0.2}\approx0.8187\), and in the second it is \(e^{-1.8}\approx0.1653\). With 500 cells in each group, the expected number of zeros is

$$ 500e^{-0.2}+500e^{-1.8} \approx 500(0.8187)+500(0.1653) \approx 492.0\text{ cells}. $$

If all 1,000 cells instead had the homogeneous Poisson mean of 1.0, the expected number of zeros would be

$$ 1000e^{-1}\approx 367.9\text{ cells}. $$

The mixture therefore predicts substantially more zeros, despite having the same average mean and no group with a zero mean. Its mean of 1.0 and variance of the cell means of 0.64 imply marginal count variance \(1.0+0.64=1.64\), by the total-variance calculation above. This example illustrates how pooled cell heterogeneity can generate both overdispersion and extra zeros relative to a homogeneous Poisson reference.

What a Zero-Inflated Model Adds

A zero-inflated model combines a structural-zero component with an ordinary count component. Let \(\pi\) be the probability of entering the structural-zero component, and let \(f_0\) be the zero probability under the ordinary count distribution. The model’s overall zero probability is

$$ P(X=0)=\pi+(1-\pi)f_0. $$

This formula makes clear why the zero fraction alone cannot identify \(\pi\): a larger \(f_0\), arising from a low mean, overdispersion, or heterogeneity, can also yield a large overall zero probability. Different combinations of baseline count variation and a structural-zero component can produce similar observed zero fractions. Establishing that a zero-inflated model fits better than a specified alternative is a model-comparison result, not proof that the structural component corresponds to a distinct biological state.

ExplanationWhy zeros may be commonWhat the zero fraction alone establishes
Low-mean Poisson countsThe Poisson probability \(e^{-\mu}\) is high when \(\mu\) is small.Not that a separate zero-generating process exists.
Negative-binomial countsOverdispersion increases the zero probability at a fixed mean.Not which source of overdispersion is responsible.
Heterogeneous cell meansA mixture of rates can have more zeros than a homogeneous model at the same average mean.Not that some cells have a guaranteed zero count.
Zero-inflated countsA structural-zero component adds probability mass at zero.It is one candidate explanation that must be assessed against alternatives.

Diagnostics, Comparisons, and Failure Modes

A useful diagnostic begins by specifying a plausible reference count model and asking whether the observed zero fraction is unusual under that model. Under independent, identically distributed counts with known zero probability \(p_0\), the number of zeros \(Z\) has a binomial distribution with size \(n\) and probability \(p_0\). Its expected value is \(np_0\), and its standard deviation is \(\sqrt{np_0(1-p_0)}\). This provides a basic measure of ordinary sampling variation. When model parameters are estimated, uncertainty in those estimates must also be considered; the simple binomial calculation alone can understate uncertainty.

The independence and common-probability assumptions can also fail. Cells from different batches, cell types, or biological samples may have different expected counts. Pooling them can create an overall zero fraction that is poorly described by a single common-mean model. Useful checks include examining whether zeros and count distributions differ across known groups, checking whether the mean-variance relationship is compatible with the chosen count model, and comparing the observed zero fraction with predictions from a model that accounts for relevant heterogeneity. These checks can reveal model mismatch; they do not by themselves assign a biological cause.

The main alternatives answer different questions. A Poisson model is a simple baseline with variance equal to its mean. A negative-binomial model allows overdispersion while retaining a single count distribution. A model with cell-specific means represents variation in expected counts across cells. A zero-inflated model adds a distinct zero component. Comparing them requires attention to assumptions, fit, and uncertainty—not just which model can reproduce a high zero fraction.

The most common mistake is to reason, “There are many zeros, so the data must be zero-inflated.” The correction is to ask, “Many compared with what model, with what mean, dispersion, and cell composition?” A large fraction may be exactly what a low-mean or overdispersed model predicts. Conversely, if zeros exceed a carefully specified reference model’s predictions, that indicates a mismatch worth investigating; it still does not uniquely identify the mechanism.

All of these comparisons have limits. A marginal count distribution can conceal multiple underlying mechanisms, and different mechanisms can yield similar observable distributions. A model’s fit does not validate its causal or biological interpretation. Conclusions also depend on the sampled cells and on whether important sources of variation have been represented. Thus, zero inflation should be treated as a modeling hypothesis, not inferred directly from sparsity.

Key takeaway: A high zero fraction is a descriptive fact; zero inflation is a specific modeling claim. Low means, overdispersion, and cell-to-cell heterogeneity can each generate many zeros without a structural-zero process. Evaluate zeros relative to an appropriate count model, and keep model fit separate from mechanism.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. A Poisson model has mean 0.2 counts per cell. What is its zero probability, and does that probability alone indicate zero inflation?
  2. For a negative-binomial model with mean 2 and \(\theta=2\), calculate the zero probability using \(P(X=0)=(\theta/(\theta+\mu))^\theta\).
  3. Two equally sized cell groups have Poisson means 0.5 and 1.5. Find the mean across cells and compare the mixture zero probability with that of a homogeneous Poisson model at the same mean.
  4. State one reason an observed zero fraction might exceed a homogeneous Poisson model’s prediction without requiring structural zeros.

Solutions. 1. \(P(X=0)=e^{-0.2}\approx0.8187\), so about 81.87% of counts are expected to be zero. This follows from the low mean under the Poisson model and does not, by itself, indicate zero inflation. 2. \(P(X=0)=(2/(2+2))^2=(1/2)^2=0.25\). 3. The average mean is \((0.5+1.5)/2=1.0\). The mixture zero probability is \((e^{-0.5}+e^{-1.5})/2\approx(0.6065+0.2231)/2=0.4148\), while the homogeneous probability is \(e^{-1}\approx0.3679\). Heterogeneity raises the zero probability. 4. Overdispersion or cell-to-cell differences in expected counts can raise the zero fraction relative to a homogeneous Poisson model; either is a statistical explanation that does not require a structural-zero component.

Clinical Biostats