Derivation of the Poisson Distribution
We kick off the distributions series by deriving the Poisson from scratch — starting with the binomial and cranking n to infinity to see what shakes out.
Some original drawings have corrections. Read the notes on those drawings alongside the worked steps.
OK so — let’s finally march into distributions!!!!
So I’m actually a physics major, and the field I want to specialize in is statistical physics, which means I’ve been grinding statistical physics pretty hard. And in stat mech… well, you start from Gaussian, then it’s Fermi-Dirac, Bose-Einstein, all that good stuff~~~ so I figured I knew distributions a little bit…….
But in statistics………. I started running into distributions I’d never heard of, never seen before……… I was, uh, not a little shook……. So…….
My original plan was to only cover the distributions I didn’t know in the basics post — the Γ-distribution, the
-distribution, t-distribution, F-distribution — but honestly I think it’ll be way better to build up step by step from some more basic distributions first.
First up: the Poisson Distribution!!!! Funny enough, I’ve actually covered the Poisson distribution before.
What count are we trying to model?
Examples people use it for include deaths from accidents in the military, or traffic-accident counts in a particular area. Whether Poisson is a good model still depends on the event-rate and independence assumptions, of course.
Poisson is a distribution for counts. In the simple arrival model, we count independent events during a specified interval at a constant average rate. The average count $\lambda$ might be 1, 10, or much larger; it doesn’t have to be tiny! Here we’ll derive the distribution by starting with lots of independent opportunities, each with a small success probability.
For a purely hypothetical example, suppose each person has probability 0.00001 of dying from a certain blood disease during one year. Among 200,000 people, what’s the probability that at least 5 die from that disease in the year? Assume the outcomes are independent and have that same probability. The expected count is $np=2$. We could use the binomial exactly — but Poisson gives us a much simpler approximation. That’s what this limit buys us!
The account I first learned described Poisson as having been developed to approximate the binomial distribution. That’s the connection we’re going to work through here.
What stays fixed as the binomial model changes?
So, fixing $np = \lambda$ in the binomial distribution $B(n, p)$, let’s look at what the binomial approximates to as we crank n up to infinity (so p shrinks along with it) — the probability mass function of the binomial:
For this limit, fix $\lambda>0$ and a nonnegative integer $x$. Take $n\ge x$ with $n>\lambda$ and set $p=\lambda/n$. In selectable notation, the starting probability is
$$P_n(X=x)=\binom{n}{x}\left(\frac{\lambda}{n}\right)^x\left(1-\frac{\lambda}{n}\right)^{n-x}.$$![]()
(The modeling logic for this PMF is super natural if you remember combinations/permutations from high school, so I’ll skip the derivation of that and jump straight in.)

Why do only x factors survive the factorial cancellation?
I’m gonna pick at this part first!!!!

Red is $n(n-1)(n-2)$ ~~~~~, green is $(n-x)(n-x-1)(n-x-2)$ ~~~~, and blue is $n$ to the power of $x$.
Now — when n is heading off to the limit, do the $-1$, $-2$ in $n(n-1)(n-2)$ ~~~ actually matter?
It’s like scooping a paper cup of water out of the Han River and then calling the Han River Management Office in a panic going “THE HAN RIVER IS DRYING UP, THE HAN RIVER IS DISAPPEARING!!!”
OK so what order is the red term???? What power of $n$ does the red term work out to?
Let’s play a little counting trick first: write the red product as $(n-0)(n-1)(n-2)\cdots(n-(n-1))$. From 1 through $n-1$ there are $n-1$ indices; include 0 and that makes n factors. Don’t forget the zero!
Careful: we cannot replace all of $n!$ by $n^n$ in an asymptotic calculation. The useful step is canceling the factorials first. For a fixed event count $x$,
$$\frac{n!}{(n-x)!}=n(n-1)\cdots(n-x+1).$$Only $x$ factors survive. Each divided by $n$ tends to one as $n$ grows. The counting sketch below is a reminder of where the factors come from; it isn’t a proof that $n!\sim n^n$.
(Need the bookkeeping? How to count integers inside inequalities — keep < and ≤ straight! )

Now count the green product too!!!! It is $(n-x-0)(n-x-1)\cdots(n-x-(n-x-1))$. The indices 1 through $n-x-1$ give $n-x-1$ factors; include index 0, and we get $n-x$ factors. Counting them is fine. Replacing the whole factorial by $n^{n-x}$ is the step we mustn’t take literally.
So the red-to-green ratio, divided by the blue $n^x$, is
$$\frac{n!}{(n-x)!n^x}=\prod_{j=0}^{x-1}\left(1-\frac{j}{n}\right)\longrightarrow1.$$We keep $x$ fixed here — that’s why there are only finitely many factors in this limit.
Now let’s tidy it all up:

If you just stare at the colored bits, they all bow their heads together and flip upside down.

One honest caveat: counting every factor as a plain n is much too crude for the red term on its own (n! is far smaller than n to the power of n), and the same goes for the green term. It does no harm here only because red and green share almost all of their factors: for a fixed x, red divided by green is just x factors, each about n, so about n to the power of x. That is exactly the blue term, so the ratio really does go to 1.
Alright ~ one thing handled.
Why does the remaining power become an exponential?
Now if we look at the other terms with $n$ going to infinity,

It turns into this. The natural constant… that thing….. ….. Don’t need to walk through it, right?????? Nah, you know what, I’ll do it once anyway. It’s easy enough, so —
The next two original drawings have a sign slip. The identity is $\lim_{t\to0}(1+t)^{1/t}=e$; replacing $1+t$ by $1-t$ gives $e^{-1}$. For the binomial limit here, the factor we actually need is $\lim_{n\to\infty}(1-\lambda/n)^n=e^{-\lambda}$.
The power in the binomial formula is $n-x$, so separate it into two pieces:
$$\left(1-\frac{\lambda}{n}\right)^{n-x}=\left(1-\frac{\lambda}{n}\right)^n\left(1-\frac{\lambda}{n}\right)^{-x}\longrightarrow e^{-\lambda}\cdot1.$$The second factor tends to one because $x$ stays fixed. That is the corrected limit to use while reading the preserved drawings below.

Right, the definition is just this,

and so

How do the pieces give the Poisson formula?
For fixed $\lambda>0$ and fixed $x=0,1,2,\ldots$, put the finite-product cancellation and exponential limit together:
$$\begin{aligned} P_n(X=x)&=\frac{\lambda^x}{x!}\prod_{j=0}^{x-1}\left(1-\frac{j}{n}\right)\left(1-\frac{\lambda}{n}\right)^n\left(1-\frac{\lambda}{n}\right)^{-x}\\ &\longrightarrow \frac{e^{-\lambda}\lambda^x}{x!}. \end{aligned}$$When $x=0$, the empty product is one. This is the probability mass function: it assigns probabilities to integer counts. Use this selectable expression as the corrected result beside the original notes. NIST’s Poisson reference gives the same PMF and its common properties.
Derivation: complete!!!!
“Why’d you bother deriving it?” — you ask?????
The point is, we can now see exactly where and how the Poisson distribution comes from — and that’s what the derivation just bought us!!!!!
Since the probability mass function looks like that, if you wanted to write down the cumulative distribution function,

Obviously if it were continuous you’d use an integral, right?
The problem-solving practice for the Poisson distribution lives over here!!!! ( Chapter 3 Practice Problems (Thermal & Statistical Mechanics I Studied #2) ) You only need Prob 3.3! >_<

↓ One-page summary, written nice and neat on the iPad

How can we plot and check the probabilities?
import numpy as np
import matplotlib.pyplot as plt
import os
import scipy.stats as sc
pdp = []
pd = sc.poisson(1)
for num in range(40):
pdp.append(pd.pmf(num))
plt.plot(pdp, linewidth=2.0, label=r'$\lambda =$1')
pdp = []
pd = sc.poisson(4)
for num in range(40):
pdp.append(pd.pmf(num))
plt.plot(pdp, linewidth=2.0, label=r'$\lambda =$4')
pdp = []
pd = sc.poisson(10)
for num in range(40):
pdp.append(pd.pmf(num))
plt.plot(pdp, linewidth=2.0, label=r'$\lambda =$10')
plt.grid(True)
plt.legend()
plt.ylabel('Probability')
plt.xlabel('Number of Event')
plt.title('Poisson Distribution')
plt.savefig('1.Poisson Distribution.jpeg')
The archived plot below came from an older version of the code: each curve is shifted one count to the left. Use the corrected code above when plotting your own. A quick check is $P(0)=e^{-\lambda}$: about 0.367879 for $\lambda=1$, 0.018316 for $\lambda=4$, and 0.0000454 for $\lambda=10$.

Back to the counting question
For that hypothetical blood-disease example, let $X$ count deaths during the year. Then $X\approx\operatorname{Poisson}(2)$, so
$$P(X\ge5)\approx1-e^{-2}\sum_{k=0}^{4}\frac{2^k}{k!}\approx0.05265.$$That’s about 5.27%, under the independent, equal-probability assumptions. The derivation gives us a count model and a calculation we can actually use. It doesn’t excuse ignoring whether the model fits the situation.
Can you compare two counts without evaluating an exponential?
Try this before reading the next paragraph: for a Poisson count with $\lambda=2$, which is larger, $P(X=2)$ or $P(X=3)$? Use the PMF to find their ratio.
Check your answer. Divide neighboring masses and cancel the common exponential:
$$\frac{P(X=3)}{P(X=2)}=\frac{2^3/3!}{2^2/2!}=\frac23.$$So $P(X=3)$ is two thirds of $P(X=2)$: approximately $0.180447$ versus $0.270671$. The same PMF now answers a comparison question as well as the tail-probability question above.
Heads-up. The figures here are the original notes, slips and all. A few things to watch for:
- In the two pictures that restate the definition of $e$, the limit is $\lim_{t\to 0}(1+t)^{1/t} = e$; the pictures write $1-t$, which would give $e^{-1}$.
- In the "Let’s check" picture, $P(3) = 0.02055\ldots$ (the picture drops a zero), and the observed shares it is compared with for 3 and 4 are 0.015 and 0.005, not 0.15 and 0.05.
- In the one-page summary, the binomial formula is a probability mass function (the binomial is discrete); the picture says probability density function.
- The plot was made with an earlier version of the code: each curve sits one step to the left (the value drawn at $k$ is $P(k+1)$), and the title misspells Poisson. The code shown above is corrected.
Questions or corrections?
Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.
Feedback goes to me privately by email; it is not posted as a public comment.