Poisson Distribution
📊 Poisson Distribution in Python
The Poisson Distribution models the number of events occurring in a fixed interval of time or space, assuming the events happen independently at a constant rate.
It’s widely used in traffic flow, call center arrivals, and natural event counts.
1. Characteristics of Poisson Distribution
λ (lam)→ expected number of events per intervalsize→ number of random samplesValues are non-negative integers: 0,1,2,…
Probability Mass Function (PMF):
P(X=k)=e−λλkk!P(X=k) = \frac{e^{-\lambda} \lambda^k}{k!}
Where k=0,1,2,…k = 0,1,2,…
2. Generate Poisson Data Using NumPy
Output (example):
3. Visualize Poisson Distribution
Peaks near λ
Discrete integer values
4. Change λ to See Effect
Smaller λ → peak closer to 0
Larger λ → distribution spreads and peak moves right
5. Compute Mean and Variance
Theoretical property of Poisson:
Mean = Variance = λ
🎯 Practice Exercises
Model number of calls per hour with λ=3 for 1000 hours.
Generate Poisson data with λ=7 and plot histogram.
Compare λ=2, λ=5, λ=10 in one plot.
