Poisson Distribution
Probability Distributions
The Law of Rare Events — Counting Occurrences
The Poisson distribution models the number of events occurring in a fixed interval when events happen independently at a constant average rate. It is the mathematics of rarity.
- Customer arrivals — calls per hour at a call center
- Defect detection — potholes per mile of highway
- Particle physics — radioactive decay counts
- Network traffic — packets arriving at a server per millisecond
The Poisson distribution is the language of random arrivals and rare occurrences.
What is the Poisson Distribution?
Definition
A random variable has a Poisson distribution with parameter , written , if its probability mass function is:
where is the average rate of events per interval.
Derivation from First Principles
This derivation also explains when the Poisson approximation to the binomial is valid: when is large and is small, with moderate.
Moments
Higher Moments and Skewness
From the MGF:
where are Stirling numbers of the second kind. Specifically:
- Skewness: (always positively skewed)
- Kurtosis: (excess kurtosis)
As , the skewness and kurtosis approach 0, and the Poisson converges to the normal.
Normal Approximation
The approximation is adequate when . Apply a continuity correction () for improved accuracy.
Assumptions
| Assumption | What It Means | Example Violation |
|---|---|---|
| Events occur independently | One event doesn't trigger or prevent another | Earthquake aftershocks |
| Constant rate | doesn't change over the interval | Bus arrivals (rush hour vs. midnight) |
| No simultaneous events | Two events can't happen at exactly the same time | Web server requests (may need -model) |
| Countable events | Events are countable (not continuous) | Waiting times (use exponential instead) |
Worked Example: Call Center
Worked Example: Rare Disease Screening
Worked Example: Software Bugs
Relationship to Other Distributions
| Distribution | Relationship |
|---|---|
| Binomial | Poisson is the limit as , , |
| Exponential | Inter-arrival times of a Poisson process are |
| Gamma | Sum of i.i.d. is |
| Normal | Limit as (CLT) |
| Negative Binomial | Alternative for overdispersed count data |
Python Implementation
import numpy as np
from scipy import stats
import matplotlib.pyplot as plt
np.random.seed(42)
# Poisson distribution: lambda = 5
lam = 5
x = np.arange(0, 20)
pmf = stats.poisson.pmf(x, lam)
print(f"Poisson(λ={lam})")
print(f"Mean: {stats.poisson.mean(lam):.1f}")
print(f"Variance: {stats.poisson.var(lam):.2f}")
print(f"Std Dev: {stats.poisson.std(lam):.2f}")
print(f"P(X=5): {stats.poisson.pmf(5, lam):.4f}")
print(f"P(X<=5): {stats.poisson.cdf(5, lam):.4f}")
# Compare different lambda values
fig, axes = plt.subplots(1, 2, figsize=(12, 5))
# PMF for different lambdas
for lam_val, color in [(2, '#ef4444'), (5, '#6366f1'), (10, '#22c55e')]:
x_vals = np.arange(0, 25)
pmf_vals = stats.poisson.pmf(x_vals, lam_val)
axes[0].bar(x_vals, pmf_vals, alpha=0.6, label=f'λ={lam_val}', color=color)
axes[0].set_xlabel('k')
axes[0].set_ylabel('P(X=k)')
axes[0].set_title('Poisson Distribution for Different λ')
axes[0].legend()
# Mean = Variance check
np.random.seed(42)
lambdas = [1, 3, 5, 10, 20, 50]
means = []
vars_ = []
for l in lambdas:
samples = np.random.poisson(l, 10000)
means.append(np.mean(samples))
vars_.append(np.var(samples))
axes[1].scatter(means, vars_, s=100, c='steelblue', edgecolors='black')
axes[1].plot([0, 55], [0, 55], 'r--', lw=2, label='y=x (Mean=Var)')
axes[1].set_xlabel('Sample Mean')
axes[1].set_ylabel('Sample Variance')
axes[1].set_title('Poisson: Mean = Variance')
axes[1].legend()
axes[1].grid(True, alpha=0.3)
plt.tight_layout()
plt.savefig('poisson_distribution.png', dpi=150)
plt.show()
Key Takeaways
Models count of events in a fixed interval at constant rate
PMF:
Mean = Variance = (equidispersion) — a quick diagnostic check
Derived as the limit of Bin() as , ,
Normal approximation valid for
Always positively skewed with skewness
"The Poisson distribution is the true distribution of the rare." — L.J. Bortkiewicz
Extended Learning: Beyond the Basics
Key Concepts Summary
This lesson covers fundamental concepts that serve as building blocks for more advanced topics. Master these basics before moving to intermediate and advanced material.
Prerequisite Knowledge
Before studying this topic in depth, ensure you understand:
- Basic definitions and terminology
- Core formulas and their derivations
- Common applications in real-world scenarios
- Typical pitfalls and misconceptions
Step-by-Step Walkthrough
Let us work through a complete example to solidify understanding:
Step 1: Identify the problem type. Determine which category this problem falls into and which approach is most appropriate.
Step 2: Apply the relevant formula. Substitute known values into the appropriate equation, paying attention to units and constraints.
Step 3: Simplify and solve. Work through the algebra step by step, checking each intermediate result.
Step 4: Verify the answer. Check that the solution satisfies the original conditions and makes logical sense.
Common Mistakes to Avoid
- Misidentifying the problem type — Always start by categorizing the problem
- Incorrect formula application — Verify the formula applies to your specific case
- Unit errors — Always check units are consistent throughout
- Sign errors — Pay careful attention to positive and negative values
- Rounding too early — Keep full precision until the final answer
- Forgetting constraints — Check that solutions satisfy all given conditions
Real-World Applications
Understanding this concept is essential for:
- Advanced problem solving in examinations
- Building intuition for more complex topics
- Developing analytical thinking skills
- Applying mathematical reasoning to practical situations
Practice Exercises
- Basic: Solve 5 problems of increasing difficulty using the core concept.
- Intermediate: Apply the concept to word problems with multiple steps.
- Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
- Challenge: Create your own problem that requires this concept plus additional knowledge.
Interview and Exam Tips
- Common question patterns: Identify which exam or interview formats test this topic
- Time management: Practice completing problems within time constraints
- Common traps: Know the typical mistakes examiners set as distractors
- Verification strategy: Develop a quick method to check your answer
Related Topics
- Previous Topic — Build on the foundation laid here
- Next Topic — See how this concept extends to more advanced material
- Practice Problems — Additional exercises with solutions
- Video Explanation — Visual walkthrough of key concepts
Quick Reference Card
| Concept | Formula/Rule | Key Insight | Common Use |
|---|---|---|---|
| Core Definition | See main text | Understand the intuition | Foundation for all applications |
| Key Formula | See main text | Memorize the derivation | Direct problem solving |
| Special Case | See main text | Recognize when it applies | Simplifies complex problems |
| Edge Case | See main text | Know the limitations | Avoids errors |
Further Reading
For students who want to go deeper:
- Standard textbooks on the subject
- Research papers applying this concept
- Online courses with video explanations
- Practice problem collections with detailed solutions