Tutorials › Statistical Methods for Single-Cell RNA Sequencing › Capture Variation And Apparent Overdispersion

Noise Models and Dropout · Tutorial 68 of 700

Capture Variation And Apparent Overdispersion

See how mixing cells with different capture efficiencies changes count variance and zero probabilities, and learn how to distinguish that effect from constant-efficiency sampling.

Intermediate 10 min read

What You'll Learn

  • State a mixed-efficiency capture model and its assumptions.
  • Derive the mean and variance of pooled captured counts.
  • Compare mixed-rate and constant-rate zero probabilities.
  • Work through Poisson and fixed-molecule examples of capture heterogeneity.
  • Recognize when pooled overdispersion may reflect capture variation rather than a different within-cell count process.

Why Capture Variation Matters

Even if cells contain molecules according to the same count process, they may not capture the same fraction of those molecules. A cell with higher capture efficiency tends to contribute larger observed counts; a cell with lower efficiency tends to contribute smaller counts and more zeros. Pooling the cells can therefore make counts look more variable than a constant-efficiency model predicts.

The key distinction is between variation within a cell at a fixed capture efficiency and variation between cells in their capture efficiencies. The first is sampling noise. The second mixes cells with different expected observed counts. This tutorial quantifies how that mixing affects the variance and the probability of observing zero counts.

A Mixed-Efficiency Capture Model

Definition: For a given gene, let \(X_i\) be the number of molecules in cell \(i\) before capture, and let \(C_i\in[0,1]\) be that cell's capture probability for each molecule. The observed count is \(Y_i\). Under binomial thinning, \(Y_i\mid X_i,C_i\sim\operatorname{Binomial}(X_i,C_i)\). In the Poisson version of the model, \(X_i\sim\operatorname{Poisson}(\lambda)\), independently of \(C_i\). Capture efficiencies vary across cells according to a distribution with mean \(\bar c=E[C_i]\) and variance \(\operatorname{Var}(C_i)\).

The assumptions matter. Conditional on a cell's \(C_i\), each molecule is captured independently with the same probability. The efficiency is shared by the molecules in that cell, but varies between cells. The baseline Poisson model assumes a common \(\lambda\) and independence between \(X_i\) and \(C_i\). These assumptions isolate capture variation; biological differences in molecule abundance or dependence between abundance and capture efficiency would add further variation.

By binomial thinning, \(Y_i\mid C_i\sim\operatorname{Poisson}(\lambda C_i)\). Thus, conditional on capture efficiency, the observed count is Poisson; pooled across cells, it is a mixture of Poisson distributions with different means. The marginal mean is \(\lambda\bar c\), but the marginal variance also reflects how much \(C_i\) varies.

How Efficiency Variation Inflates the Variance

$$ E[Y_i]=E\{E[Y_i\mid C_i]\}=\lambda E[C_i]=\lambda\bar c. $$

To obtain the variance, apply the law of total variance: total variance is the expected conditional variance plus the variance of the conditional mean. Since both the mean and variance of a Poisson variable equal its rate, \(E[Y_i\mid C_i]=\operatorname{Var}(Y_i\mid C_i)=\lambda C_i\).

$$ \begin{aligned} \operatorname{Var}(Y_i) &=E\{\operatorname{Var}(Y_i\mid C_i)\} +\operatorname{Var}\{E[Y_i\mid C_i]\}\\ &=E[\lambda C_i]+\operatorname{Var}(\lambda C_i)\\ &=\lambda\bar c+\lambda^2\operatorname{Var}(C_i). \end{aligned} $$

The first term, \(\lambda\bar c\), is the variance expected under a Poisson model with constant efficiency \(\bar c\). The second term is the additional variance from cell-to-cell efficiency differences. If \(\operatorname{Var}(C_i)>0\) and \(\lambda>0\), the pooled variance exceeds the pooled mean. The ratio of variance to mean is

$$ \frac{\operatorname{Var}(Y_i)}{E[Y_i]} =1+\frac{\lambda\operatorname{Var}(C_i)}{\bar c}. $$

This ratio equals 1 under constant-efficiency Poisson sampling and is greater than 1 when capture efficiency varies. The extra variance is not evidence, by itself, that counts within each cell follow a different distribution: conditional on \(C_i\), they still follow the specified Poisson model.

Worked Example: Two Capture-Efficiency Groups

Suppose each cell has a Poisson mean of \(\lambda=5\) molecules before capture. Half the cells have efficiency \(C_i=0.2\), and half have \(C_i=0.8\). Compute the pooled mean, variance, and zero probability, then compare them with constant-efficiency sampling at the same mean efficiency.

The mean efficiency is \(\bar c=(0.2+0.8)/2=0.5\). The efficiency variance is \( \operatorname{Var}(C_i)=\{(0.2-0.5)^2+(0.8-0.5)^2\}/2=0.09 \). Therefore,

$$ E[Y_i]=5(0.5)=2.5,\qquad \operatorname{Var}(Y_i)=5(0.5)+5^2(0.09)=2.5+2.25=4.75. $$

The pooled variance-to-mean ratio is \(4.75/2.5=1.90\). If every cell instead had the constant efficiency \(0.5\), the captured count would be \(\operatorname{Poisson}(2.5)\), with variance \(2.5\). The mean is unchanged, but mixing the two efficiencies raises the variance by \(2.25\) counts squared.

For the mixed-efficiency cells, the zero probability is the average of the two conditional zero probabilities: \( \{e^{-5(0.2)}+e^{-5(0.8)}\}/2=(e^{-1}+e^{-4})/2\approx(0.3679+0.01832)/2=0.1931 \). Under constant efficiency \(0.5\), it is \(e^{-2.5}\approx0.08208\). Thus about 19.31% of cells are expected to have zero captured counts under the mixture, compared with about 8.208% under constant-efficiency sampling.

Why the Mixture Has More Zeros

For a cell with efficiency \(C_i\), the conditional probability of a zero count is \(e^{-\lambda C_i}\). Averaging over cells gives the marginal probability \(E[e^{-\lambda C_i}]\). A constant-efficiency model with the same mean efficiency instead gives \(e^{-\lambda\bar c}\). These quantities need not agree.

$$ P(Y_i=0)=E[e^{-\lambda C_i}] \ \geq\ e^{-\lambda E[C_i]} =e^{-\lambda\bar c}. $$

This inequality follows from Jensen's inequality: \(f(c)=e^{-\lambda c}\) is convex for \(\lambda>0\), since \(f''(c)=\lambda^2e^{-\lambda c}>0\). The inequality is strict when efficiency varies across cells. Low-efficiency cells contribute disproportionately many zeros, and their effect is not cancelled by high-efficiency cells when comparing with a single cell at the average efficiency. This is a change in sampling-zero probability under the mixture; it does not, on its own, identify why a particular cell has a zero count.

Worked Example: Fixed Molecule Number

The same direction of effect appears if each cell contains exactly four molecules before capture. Let half the cells have capture probability \(0.25\) and half have probability \(0.75\). Find the mean and variance of the captured count and compare the zero probabilities with constant efficiency \(0.5\).

Here \(X_i=4\), \(\bar c=0.5\), and \( \operatorname{Var}(C_i)=\{(0.25-0.5)^2+(0.75-0.5)^2\}/2=0.0625 \). For a fixed molecule number \(m\), conditional on \(C_i\), \(Y_i\) is binomial with mean \(mC_i\) and variance \(mC_i(1-C_i)\). The mean is \(4(0.5)=2\). Using total variance,

$$ \begin{aligned} \operatorname{Var}(Y_i) &=m\bar c(1-\bar c)+m(m-1)\operatorname{Var}(C_i)\\ &=4(0.5)(0.5)+4(3)(0.0625)\\ &=1+0.75=1.75. \end{aligned} $$

At constant efficiency \(0.5\), the count would be \(\operatorname{Binomial}(4,0.5)\), with variance \(4(0.5)(0.5)=1\). The mixed-efficiency variance is higher by \(0.75\).

The mixed zero probability is \( \{(1-0.25)^4+(1-0.75)^4\}/2=(0.75^4+0.25^4)/2=(0.3164+0.003906)/2\approx0.1602 \). At constant efficiency \(0.5\), it is \((1-0.5)^4=0.0625\). Even with a fixed number of starting molecules, cell-to-cell capture variation increases both the variance and the probability of a zero.

Using the Variance Relationship

The variance formula can be rearranged to describe how much capture heterogeneity would be needed to account for an observed variance, if \(\lambda\) and \(\bar c\) were known. The rearrangement is a method-of-moments calculation, not proof that the assumptions hold.

Worked Example: Translating Excess Variance Into Efficiency Variation

Suppose a hypothetical gene has a pre-capture mean \(\lambda=5\), mean capture efficiency \(\bar c=0.6\), and pooled observed variance \(4.5\) counts squared. Under the mixed-efficiency Poisson model, what efficiency variance corresponds to these values?

The expected observed mean is \(5(0.6)=3\) counts. Constant-efficiency Poisson sampling at that mean would have variance 3 counts squared, so the excess variance is \(4.5-3=1.5\) counts squared. From \( \operatorname{Var}(Y_i)=\lambda\bar c+\lambda^2\operatorname{Var}(C_i) \),

$$ \operatorname{Var}(C_i) =\frac{4.5-5(0.6)}{5^2} =\frac{1.5}{25} =0.06. $$

The implied standard deviation of efficiency is \(\sqrt{0.06}\approx0.2449\), and its coefficient of variation relative to the mean efficiency is \(0.2449/0.6\approx0.4082\), or about 40.82%. Since \(C_i\) lies between 0 and 1, its variance cannot exceed \(\bar c(1-\bar c)=0.24\); the calculated value 0.06 satisfies that necessary bound. This calculation is compatible with the model, but other sources of variability could also contribute to the observed excess variance.

Diagnostics, Alternatives, and Limitations

A useful diagnostic is to ask whether counts vary systematically with information related to capture efficiency. If cells can be divided into efficiency groups, compare the count mean and zero frequency within each group with the conditional model, rather than comparing only the pooled data with a single-rate model. In the two-group example, the conditional means are 1 and 4 counts, and the corresponding zero probabilities are \(e^{-1}\) and \(e^{-4}\). Pooling hides that difference and produces the higher overall zero probability.

When efficiencies are known or credibly estimated, an alternative is to model counts conditional on each cell's efficiency, using \(\lambda C_i\) as the Poisson rate. This accounts for the expected change in counts with efficiency. If efficiency is unknown, a constant-rate Poisson model is simpler but may misrepresent pooled variance and zeros. A negative binomial model can accommodate extra marginal variance, but its dispersion parameter does not by itself establish that capture efficiency is the cause. The mixed-efficiency distribution need not be negative binomial.

Several features can make the calculation an imperfect description of real data. Capture efficiency may be estimated with error, may differ by gene, or may be associated with the number of molecules in a cell. Pre-capture abundance may also vary between cells. In those settings, the simple independence assumption fails or additional sources of variation enter the marginal distribution. A larger observed variance or zero frequency is therefore a reason to check the assumptions and relevant cell-level information, not a unique diagnosis of capture heterogeneity.

Common pitfall: “The mean efficiency is the same, so the pooled count distribution must be the same as if every cell had that efficiency.” Equal means do not imply equal distributions. With variable efficiency, the conditional Poisson rates \(\lambda C_i\) vary across cells, adding \(\lambda^2\operatorname{Var}(C_i)\) to the variance and, by convexity, raising the zero probability above \(e^{-\lambda\bar c}\). A constant-efficiency model matches the mean but misses those mixture effects.
Key takeaway: Under Poisson molecule counts and independent binomial capture, cell-to-cell variation in capture efficiency leaves the pooled mean at \(\lambda\bar c\), but raises the variance to \(\lambda\bar c+\lambda^2\operatorname{Var}(C_i)\). It also raises the pooled zero probability relative to constant efficiency at \(\bar c\).

Check Your Understanding

Answer each question, then check the solutions below.

  1. If \(\lambda=4\), \(\bar c=0.5\), and \(\operatorname{Var}(C_i)=0.04\), what are the pooled mean and variance under the mixed-efficiency Poisson model?
  2. Why does mixing efficiencies increase the zero probability relative to constant efficiency at the same mean?
  3. For fixed \(m=3\) molecules, what is the additional variance term due to efficiency variation?
  4. Does a pooled variance greater than the pooled mean prove that capture efficiency varies? Explain.

Solutions. (1) The mean is \(4(0.5)=2\). The variance is \(4(0.5)+4^2(0.04)=2+0.64=2.64\). (2) The function \(e^{-\lambda c}\) is convex, so Jensen's inequality gives \(E[e^{-\lambda C_i}]\geq e^{-\lambda E[C_i]}\); the inequality is strict for nonconstant efficiency when \(\lambda>0\). (3) For fixed \(m\), the added term is \(m(m-1)\operatorname{Var}(C_i)=3(2)\operatorname{Var}(C_i)=6\operatorname{Var}(C_i)\). (4) No. Capture variation can produce overdispersion relative to the constant-efficiency Poisson model, but other sources of variability or model misspecification can also do so.

Clinical Biostats