Six families cover most discrete modelling. A Bernoulli is one yes/no trial, a binomial counts successes, a geometric counts the wait for the first success, and a Poisson counts rare events. A categorical is one draw among K labels, and a multinomial counts each label over many draws. Each comes with a story, a mean and a variance. This page covers how they connect (Poisson as the law of rare events, superposition and thinning) and how they size radiation-hardened memory, reliability and classification.
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.
Six stories about counting
Many random things are counts, and a few standard stories cover most of them:
one yes/no try (does this part pass inspection?);
how many successes in a fixed number of tries (how many of 10 free throws go in?);
how long until the first success (how many attempts until a connection works?);
how many rare events happen in a stretch of time (how many cosmic-ray hits on a chip today?);
which of several categories one item falls in, or how many of each among many items.
Each story has a named distribution family, with a formula and known averages, so you don’t have to re-derive them every time.
The discrete families
P(k) = C(n,k) pᵏ (1−p)ⁿ⁻ᵏ · mean = 6.000 · variance = 4.200 · sum of shown bars = 1.0000
Story: successes in n independent trials: engines working, packets delivered. Dashed line: the mean; shaded band: ± one standard deviation.
Why engineers care
Spacecraft memory gets hit by radiation. How often do two hits land in the same memory word before the error-correcting code can clean up? That’s a Poisson calculation, and it decides how often the computer must “scrub” its memory.
📝 Quick check (Level 0)
0/3 answered
1. 'How many of 10 tries succeed?' is modelled by the…
2. 'How many tries until the first success?' is modelled by the…
3. Rare events per hour are modelled by the…
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.
The families
Family
Story
PMF
Mean
Variance
Bernoulli(p)
one trial
pk(1−p)1−k
p
p(1−p)
Binomial(n,p)
successes in n trials
(kn)pk(1−p)n−k
np
np(1−p)
Geometric(p)
trials until the first success
(1−p)k−1p
1/p
(1−p)/p2
Poisson(λ)
rare events in a window
e−λλk/k!
λ
λ
Categorical(p)
one draw among K
pi
n/a
n/a
Multinomial(n,p)
counts of each class in n draws
∏ni!n!∏pini
npi
npi(1−pi)
Examples:
10 free throws at 70%: P(≥8)=∑k=810(k10)0.7k0.310−k≈0.383.
A chip with 2 upsets per day on average: P(none today)=e−2≈0.135.
📝 Quick check (Level 1)
0/3 answered
1. Binomial(10, 0.3) mean?
2. Geometric(0.2) mean (trials until success)?
3. For Poisson(λ), mean vs variance?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.
How the families connect
Binomial = a sum of Bernoullis.X=∑i=1n1i, so EX=np and VarX=np(1−p) by linearity and independence (A4.1-7).
Poisson = the law of rare events. As n→∞ with np=λ fixed, Binomial(n,λ/n) → Poisson(λ). Le Cam’s bound gives total-variation error ≤np2.
Thinning: keep each Poisson event independently with probability q and you get Poisson(qλ). Kept and dropped counts are independent.
Geometric is memoryless:P(X>s+t∣X>s)=P(X>t). It’s the only discrete distribution with this property.
Multinomial generalizes binomial. Each count is Binomial(n,pi), and counts are negatively correlated: Cov(Ni,Nj)=−npipj.
Overdispersion
Real counts often have variance > mean, for example failures that cluster in bad batches. The Poisson model then underestimates the tails. A negative binomial (a Poisson with a gamma-distributed rate) is the standard fix (A4.2-5).
🐍 Exercise 1: the families, their moments, and the Poisson limit
Implement Bernoulli, binomial, geometric and Poisson PMFs (Poisson iteratively, to avoid huge factorials). Verify their means and variances, and measure the total-variation distance from Binomial(n, λ/n) to Poisson(λ) against Le Cam's bound λ²/n.
📝 Quick check (Level 2)
0/3 answered
1. Poisson(2) + Poisson(3), independent, is…
2. Thinning Poisson(8) with q = 0.3 gives…
3. Multinomial counts Nᵢ, Nⱼ are…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.
Derivations
Binomial PMF. Any specific sequence with k successes has probability pk(1−p)n−k, and there are (kn) such sequences (A4.1-4). ∎
Geometric memorylessness.P(X>m)=(1−p)m, so P(X>s)P(X>s+t)=(1−p)t. ∎
Superposition. By convolution, ∑jj!e−λ1λ1j(k−j)!e−λ2λ2k−j=k!e−(λ1+λ2)(λ1+λ2)k, using the binomial theorem. ∎
Where the Poisson comes from physically
Events that occur independently, one at a time, at a constant average rate form a Poisson process. The counts in any window of length t are Poisson(λt), and the gaps between events are exponential (A4.2-2). Examples:
radioactive decays;
photon arrivals at a star tracker’s detector, which is photon “shot noise”, with variance = mean;
micrometeoroid impacts;
network packets, at moderate load.
Exercise 3.1: Use indicators to derive Var(Binomial(n, p))
X=∑1i with independent indicators, so VarX=∑Var1i=np(1−p).
📝 Quick check (Level 3)
0/3 answered
1. (1 − λ/n)ⁿ → ?
2. The only memoryless discrete distribution is the…
3. Photon shot noise has variance equal to…
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.
Radiation upsets and memory scrubbing
In orbit, energetic particles flip memory bits (single-event upsets) at roughly 10−7 to 10−10 upsets per bit per day, depending on the device, orbit and shielding. Error-correcting codes such as SECDED (single-error correct, double-error detect; Hamming, 1950) fix one flipped bit per word but fail if two accumulate before the word is rewritten. Scrubbing periodically reads and corrects all memory. With λ=rate×bits×h per word per scrub interval h, a double error has probability P(N≥2)≈λ2/2. Summed over the mission, the risk is roughly proportional to h, which sets the scrub rate. This analysis is standard for spacecraft computers (Saleh, Serrano and Patel, 1990).
🐍 Exercise 2 (research): sizing memory scrubbing against radiation
Compute the probability of an uncorrectable double upset per word between scrubs, summing the Poisson tail directly to avoid cancellation. Find the longest scrub interval meeting a mission-level risk target for 128 MiB over 5 years, and check the rare-event formula by simulation at an exaggerated rate.
The families in AI and robotics
Classification. A softmax output is a categorical distribution, and cross-entropy is its negative log-likelihood (A3.3-4). Counts of labels across a dataset are multinomial, and their Dirichlet prior comes next (A4.2-3).
Language and token models sample from categoricals at every step. Temperature reshapes the categorical’s probabilities.
Event cameras and photon counting produce Poisson-like event streams. Denoising and reconstruction use Poisson likelihoods (Gallego et al., 2022).
Reliability. k-out-of-n systems and fleet failure counts are binomial. Rare failures are Poisson, and overdispersed ones are negative binomial (Rausand and Høyland, 2004).
Exploration in RL. ε-greedy exploration makes the number of steps until a random action geometric.
References
D. Bertsekas, J. Tsitsiklis (2008). Introduction to Probability, 2nd ed., Ch. 2, 6. Athena Scientific.
L. Le Cam (1960). “An approximation theorem for the Poisson binomial distribution.” Pacific Journal of Mathematics, 10(4).
R. Hamming (1950). “Error detecting and error correcting codes.” Bell System Technical Journal, 29(2).
A. Saleh, J. Serrano, J. Patel (1990). “Reliability of scrubbing recovery-techniques for memory systems.” IEEE Transactions on Reliability, 39(1).
G. Gallego et al. (2022). “Event-based vision: a survey.” IEEE TPAMI, 44(1).
M. Rausand, A. Høyland (2004). System Reliability Theory, 2nd ed. Wiley.
Variance > mean signals rate heterogeneity. Use the negative binomial.
Practice
Show:
Level 0
Problem 1Level 0
What is P(heads) in one fair toss?
0.5.
Problem 2Level 0
What is the expected number of heads in 10 tosses?
5.
Problem 3Level 0
A rare event averages 2 per day. What is P(none today)?
e−2.
Level 1
Problem 4Level 1
What is the mean of Binomial(10, 0.3)?
3.
Problem 5Level 1
What is its variance?
10⋅0.3⋅0.7.
Problem 6Level 1
What is the mean of Geometric(0.2)?
5.
Problem 7Level 1
For Poisson(4), what is P(0)?
e−4.
Level 2
Problem 8Level 2
For Binomial(10, 0.7), what is P(X≥8)?
≈0.3828.
Problem 9Level 2
For Poisson(3), what is P(X≥2)?
1−4e−3.
Problem 10Level 2
For Geometric(0.2), what is P(X>5)?
0.85.
Problem 11Level 2
What is the Multinomial probability of counts (2, 1, 1) with probabilities (0.5, 0.3, 0.2)?
12⋅0.25⋅0.3⋅0.2=0.18.
Problem 12Level 2
With n=20 and p1,p2=0.5,0.3, what is Cov(N1,N2)?
−20⋅0.15=−3.
Problem 13Level 2
Use the Poisson approximation for Binomial(1000, 0.002). What is P(0)?
e−2.
Level 3
Problem 14Level 3
DeriveE[Binomial]=np using indicators.
X=∑1i, so EX=∑p=np. ∎
Problem 15Level 3
Prove that the geometric distribution is memoryless.
P(X>s+t)/P(X>s)=(1−p)s+t/(1−p)s=(1−p)t=P(X>t). ∎
Problem 16Level 3
Derive the Poisson distribution as a limit of binomials.
Set p=λ/n. Then (kn)pk(1−p)n−k→k!λke−λ, since the falling-factorial ratio tends to 1 and (1−λ/n)n→e−λ. ∎
Problem 17Level 3
X∼Pois(2) and Y∼Pois(3), independent. What is P(X+Y=0)?
e−5.
Level 4
Problem 18Level 4
What is P(Pois(0.01)≥2)?
1−e−0.01(1.01)≈4.97×10−5≈λ2/2.
Problem 19Level 4
A detector with 30% efficiency sees a Poisson(8) stream. What is the mean detected count?
2.4.
Problem 20Level 4
5 engines, each OK with probability 0.99. What is P(at least 3 OK)?
≈0.99999.
Coding practice
🐍 Code 1 (Level 1): Bernoulli
Return the mean and variance of a Bernoulli trial.
🐍 Code 2 (Level 2): binomial tails
Compute P(X ≥ k) for a binomial, as in k-out-of-n reliability.
🐍 Code 3 (Level 2): the geometric is memoryless
Check P(X > s + t | X > s) = P(X > t).
🐍 Code 4 (Level 3): multinomial probabilities and covariances
Compute multinomial probabilities and the covariance matrix n(diag(p) − ppᵀ), and confirm by simulation.
🐍 Code 5 (Level 4): superposing and thinning Poisson streams
Merge Poisson streams, thin a stream through a detector, and confirm the results are Poisson and that kept and missed counts are independent.
Topic test
A timed test drawn at random from this topic's question bank. Each attempt gets new questions. For a longer test across the whole chapter, see the chapter test, or mix topics in the question bag.
Discrete Distributions: Bernoulli, Binomial, Geometric, Poisson, Categorical, Multinomial: topic test
10 questions, drawn at random from a bank of 16. Every attempt is different.
⏱ Time limit: 15 minutes. The test submits itself when time runs out.
Levels covered: 0, 1, 2, 3, 4. No hints or solutions until you submit.