In Bulk RNA-seq with DESeq2 you saw that ratios of small counts are noisy, and the fan in the MA plot. Now we name that noise: Poisson is the counting noise, the negative binomial adds the biological spread between replicates.
Every statistical analysis makes an assumption about how the data scatter around the truth — the error model, or likelihood. Choosing it well is most of the battle in genomics.
What an error model is: the probability distribution you assume generated your data.
Gaussian for continuous measurements; Poisson for counts; exponential for waiting times; negative binomial for overdispersed counts.
The signature of Poisson counts: mean = variance.
Why real RNA-seq counts break Poisson (overdispersion) and need the negative binomial.
Why the wrong error model misleads — the practical cost is false discoveries.
Problem: read counts break the t-test’s equal-variance assumption
You sequence RNA from two groups of cells and, for one gene, count how many reads map to it in each sample:
Group A: 12, 9, 15, 11, 8
Group B: 41, 38, 52, 44, 47
You want to know if the gene is differentially expressed. A first instinct from earlier stats courses: run a t-test, which assumes the data are Gaussian with constant variance.
But look: group B has a much larger spread than group A. That is not sloppy data — it is what counts do. A t-test’s constant-variance assumption is already wrong here.
You met the same thing in Bulk RNA-seq with DESeq2: the noise depends on the count.
An error model is the assumed distribution of noise
A measurement is signal + noise. The error model is the probability distribution you assume for the noise — equivalently, the distribution the data are drawn from given the underlying truth.
It answers: “If the true value were \mu, how likely is the number I actually observed?”
That “how likely” is the likelihood — the same likelihood that multiplied the prior in Bayes’ theorem in Bayesian vs frequentist.
Fitting a model (a t-test, a linear model with lm, a genomics tool) always assumes some error model, whether or not you named it.
Choosing the error model = choosing the distribution that matches your data type.
Gaussian spread does not depend on the mean
The Gaussian (normal) distribution fits measurements that are continuous and scatter symmetrically around a mean: the familiar bell.
Two separate knobs: the mean \mu and the spread (variance \sigma^2). The spread does not depend on the mean.
Good for: protein concentration, cell diameter, \log-transformed intensities, height, temperature.
The default assumption behind the t-test, linear regression, and lm.
It can take any real value — including negatives — which is exactly why it is wrong for counts.
Counts are not Gaussian
Sequencing gives counts: reads per gene, molecules per cell, variants per kilobase, colonies per plate. Counts have structure a Gaussian ignores:
Non-negative integers — you cannot observe -2 or 3.7 reads.
Discrete, especially near zero (many genes have 0, 1, 2 reads).
Spread grows with the mean — highly expressed genes vary more, in absolute terms, than lowly expressed ones (we saw this in the two groups).
In relative terms it is the other way round: about n \pm \sqrt{n}, so small counts are the noisiest (the MA-plot fan).
A distribution built for counts should be discrete, non-negative, and let variance depend on the mean. That distribution is the Poisson.
Poisson counts have variance equal to their mean
The Poisson distribution models the number of independent events in a fixed window (of time, of genome, of sequencing depth), when events happen at a constant average rate.
One knob: the rate \lambda, the average count per window.
Discrete and non-negative by construction: 0, 1, 2, 3, …
That single knob sets both the centre and the spread:
\boxed{\text{mean} = \text{variance} = \lambda}
Poisson: a small example
A gene gets on average 3 reads per sample: read the bars. In R, dpois(0:8, 3) gives the red dots.
Many rare, independent events give Poisson counts
Poisson is what you get from many independent chances, each very unlikely.
A library has millions of reads; each one has a tiny chance of landing on our gene.
Add up all those tiny chances and the number of reads on the gene is (close to) Poisson, with mean = expected reads.
So idealised counts of independent molecules are Poisson.
This same “stream of random events” also has a waiting-time description — which is where the exponential enters.
Waiting times between random events are exponential
The exponential distribution models the waiting time (or distance) until the next event, in a stream of random events at rate \lambda.
Continuous and non-negative (a time, a distance, a length).
Short gaps are the most common, long gaps get steadily rarer.
Mean gap = 1 / rate: mutations at 2 per Mb lie on average 1/2 = 0.5 Mb apart.
Memoryless: however long you have already waited, the wait still to come looks the same.
Biology: time between action-potential spikes, intervals between mutations along a genome, survival/dwell times, gaps between binding events.
One process: counts are Poisson, gaps are exponential
One stream of mutations: count per window → Poisson (mean = rate), gap to the next → exponential (mean = 1 / rate).
Waiting longer does not bring the next event closer
Keep only gaps longer than 0.5 Mb and look at what is left after 0.5: it looks just like all gaps.
Clumped events make counts vary more than Poisson
Same average rate, but events now come in bursts: the counts spread far more than the Poisson allows.
Real counts are overdispersed
Poisson makes a strict promise: variance = mean. Real RNA-seq counts break it — their variance is larger than the mean. This excess is called overdispersion.
Why? Poisson assumes every sample has the identical underlying rate. But biological replicates differ:
genetically and environmentally variable individuals,
cell-state and batch differences,
the true rate \lambda itself varies from sample to sample.
Extra variation in \lambda adds variance on top of the Poisson counting noise. Technical replicates can look Poisson; biological replicates almost never do.
The negative binomial allows extra spread in counts
The negative binomial (NB) is a count distribution with a separate dispersion knob, letting variance exceed the mean.
X \sim \text{NB}(\mu, \phi), \qquad \text{Var}(X) = \mu + \phi\,\mu^2
\mu = mean; \phi \ge 0 = dispersion.
Example: \mu = 50, \phi = 0.5 gives variance 50 + 0.5 \cdot 2500 = 1300, against 50 for a Poisson.
The extra \phi\mu^2 term is why highly expressed genes vary disproportionately more.
It arises naturally as a Poisson whose rate itself varies from sample to sample (following a Gamma distribution) — exactly the “rate varies between replicates” story.
The workhorse error model of DESeq2 and edgeR for RNA-seq differential expression: the count model DESeq2 fit for you in Bulk RNA-seq with DESeq2.
Try it: Poisson vs negative binomial
Too little assumed variance gives false positives
Using an error model whose variance is too small makes you overconfident — you declare differences “significant” that are just noise.
Gaussian / t-test on counts: assumes one shared variance and allows negative values; mis-estimates spread, especially for low counts and near zero.
Poisson on overdispersed RNA-seq: variance assumed = \mu, but true variance is \mu + \phi\mu^2 (larger). The test understates noise \Rightarrow p-values too small \Rightarrowinflated false positives.
# same mean (mu = 50), very different spreadmean(rpois(1e5, 50)); var(rpois(1e5, 50)) # ~50, ~50mu <-50; phi <-0.5x <-rnbinom(1e5, mu = mu, size =1/ phi) # R's knob is size = 1/phimean(x) # ~50var(x) # ~1300 >> 50 (overdispersed)
Right shape, right conclusions. The error model is not a technicality — it sets your false-discovery rate.
Choose the error model from the data type
Match the data type to the distribution:
Your data
Distribution
Key feature
Continuous, symmetric spread
Gaussian\mathcal{N}(\mu,\sigma^2)
mean and variance independent
Counts, idealised / technical
Poisson(\lambda)
variance = mean
Counts, biological replicates
Negative binomial(\mu,\phi)
variance = \mu + \phi\mu^2
Waiting times / gaps (continuous, \ge 0)
Exponential(\lambda)
memoryless, mean 1/\lambda
Diagnostic: for counts, compare the sample variance to the sample mean. Variance \approx mean \to Poisson may do; variance \gg mean \to overdispersed, use NB.
Summary
Idea
Key fact
Error model
the distribution you assume generated the data (the likelihood)
Gaussian
continuous, symmetric; mean and variance independent
Poisson
counts; variance = mean = \lambda; limit of many rare events
Exponential
waiting times/gaps; memoryless; mean 1/\lambda
Poisson process
one process: counts \to Poisson, gaps \to exponential
Connects to:Bayesian vs frequentist (this likelihood plugs into Bayes’ theorem); Hierarchical models (stacking technical and biological variation); Single-cell RNA-seq: data & QC (the same counts, per cell, with many zeros).
Optional: the maths behind these distributions
For those who want the formulas; nothing in the lecture needs them.
Poisson probabilities:P(X = k) = \dfrac{\lambda^k e^{-\lambda}}{k!}. With \lambda = 3: P(0) = e^{-3} \approx 0.050, P(3) = 27 e^{-3}/6 \approx 0.224 (the bars in the demo).
Where Poisson comes from: Binomial(n, p) with n \to \infty, p \to 0, np = \lambda fixed, becomes Poisson(\lambda).
Exponential density:f(t) = \lambda e^{-\lambda t} for t \ge 0; mean 1/\lambda, variance 1/\lambda^2; tail P(T > t) = e^{-\lambda t}. At 2 per Mb: P(T > 1) = e^{-2} \approx 0.135, so about 13.5% of gaps are longer than 1 Mb (pexp(1, 2, lower.tail = FALSE)).
Memoryless:P(T > s + t \mid T > s) = P(T > t).
Negative binomial in R:dnbinom/rnbinom use size= 1/\phi, so \text{Var} = \mu + \mu^2/\text{size}.