Unit 1 built discrete random variables from scratch: a table of probabilities, then E(X) and Var(X) from that table. This topic is about the situations that come up so often they have named distributions, with formulae you can quote instead of tabulating.
Named discrete distributions
Distribution
Situation
P(X=x)
E(X)
Var(X)
Binomial B(n,p)
x successes in n fixed trials
(xn)pxqn−x
np
npq
Geometric Geo(p)
the first success is on trial x
qx−1p
p1
p2q
Poisson Po(λ)
x events in a fixed interval
x!e−λλx
λ
λ
with q=1−p throughout.
The geometric distribution
Trials are repeated until the first success. X is the trial number on which it occurs, so X=1,2,3,… with no upper limit.
P(X=x)=qx−1p
The reasoning is direct: x−1 failures, then a success.
15% of tyres from a production line are faulty. Tyres are tested one at a time until a faulty one is found.
P(X=4)=0.853×0.15=0.0921
E(X)=0.151=6.67Var(X)=0.1520.85=37.8
The tail probability has a shortcut worth memorising — "more than n trials" means the first n all failed:
P(X>n)=qnsoP(X>5)=0.855=0.4437
and therefore P(X≤3)=1−0.853=0.3859.
The Poisson distribution
Events occur at random, independently, at a constant average rate λ per interval. Then
P(X=x)=x!e−λλx,x=0,1,2,…
A switchboard receives calls at an average of 3 per five-minute period.
P(X=2)=2!e−332=0.2240
P(X≥1)=1−P(X=0)=1−e−3=0.9502
P(X≤2)=e−3(1+3+29)=0.4232
Changing the interval, and adding variables
Two properties make the Poisson unusually convenient.
Scaling. If events occur at λ per interval, then over k intervals the count is Po(kλ). Three five-minute periods give λ=9:
P(X=10)=10!e−9910=0.1186
Addition. If X∼Po(λ1) and Y∼Po(λ2) are independent, then
X+Y∼Po(λ1+λ2)
Emails arriving at 4 per hour and texts at 6 per hour give a combined Po(10), so P(8 messages in an hour)=e−10108/8!=0.1126.
Poisson as an approximation to the binomial
When n is large and p is small, B(n,p)≈Po(np). The usual working rule is n>50 and np<5.
A component has a 1% failure rate; 200 are installed.
Here λ=np=2, so
P(X=3)≈3!e−223=0.1804
The exact binomial value is 0.1814 — an error of about half a percent, for a fraction of the arithmetic.
P(X≥2)=1−e−2(1+2)=0.5940
Choosing the right model
Before writing anything down, ask three questions.
Is there a fixed number of trials? Yes → binomial.
Are you counting trials until the first success? Yes → geometric.
Are you counting events in an interval, with no natural maximum? Yes → Poisson.