← All Tutorials

Tutorial 4: Handling Overdispersion

Step 3: Choose the Distribution Family

3
4
5
6

Remember: Our Data is Overdispersed!

From Tutorial 3, we found Deviance/df = 524.1 (should be ~1). This means the variance in our data is 524 times larger than Poisson assumes! The consequence: Poisson gives standard errors that are far too small.

Step 3: Select the Distribution Family

Which distribution properly models overdispersed count data?

Hint: We need a distribution where Variance > Mean is allowed.

Negative Binomial
Y ~ NegBin(μ, θ)

Variance: μ + μ²/θ

Counts with extra dispersion parameter θ. Allows Var > Mean.

Poisson
Y ~ Poisson(μ)

Variance: μ (equals mean)

Standard count distribution. Assumes Variance = Mean.

Quasi-Poisson
Y ~ QuasiPoisson(μ, φ)

Variance: φ × μ

Quick fix - inflates SEs by φ. Not a proper probability model.

Gaussian
Y ~ Normal(μ, σ²)

Variance: σ² (constant)

For continuous outcomes. Allows negative values.

✓ Negative Binomial Selected

The Negative Binomial distribution properly handles overdispersed count data by estimating a dispersion parameter θ from the data.

✔ Correct! Negative Binomial handles overdispersion.

The Negative Binomial distribution is perfect for overdispersed count data:

Metric Poisson (Tutorial 3) Negative Binomial
Deviance/df 524.1 1.04
AIC 387,415 12,840
SE(temp) 0.0032 0.0813
Key insight: The standard errors are ~25x larger with Negative Binomial. This gives honest uncertainty estimates - Poisson was massively overconfident!

❌ We already know Poisson doesn't fit!

We tried Poisson in Tutorial 3 and discovered severe problems:

The overdispersion problem: Poisson assumes Var(Y) = μ. But our bike rental counts have far more variability than that. Days with similar predicted counts can have wildly different actual counts.

Try selecting Negative Binomial to properly model this extra variance.

⚠ Quick fix, but not ideal.

The Quasi-Poisson is a pragmatic workaround:

When to use Quasi-Poisson:
  • Quick exploratory analysis
  • When you just need corrected SEs
  • Teaching/simple demonstrations
Why Negative Binomial is better:
  • Proper probability model with full likelihood
  • Can compute AIC, do model selection
  • More flexible variance structure: Var = μ + μ²/θ
Try selecting Negative Binomial for the proper solution.

❌ Wrong data type - counts, not continuous!

The Gaussian distribution is wrong for several reasons:

When to use Gaussian: Tutorial 1 (heart rate) was continuous and could theoretically take any value. Bike rental counts are fundamentally different.

Try selecting Negative Binomial - it's designed for overdispersed counts.