SECTION 1
Historical Context & Motivation
The question of how to predict outcomes in repeated games of chance has occupied mathematicians for centuries. Long before probability theory was formalized, gamblers intuitively understood that certain outcomes were more likely than others when dice were thrown multiple times or coins were flipped repeatedly. The binomial distribution arose as the mathematical answer to a deceptively simple question: if an experiment with two possible outcomes is repeated a fixed number of times, what is the probability of obtaining exactly k successes? This question, rooted in the combinatorial structure of repeated independent trials, connects the earliest work in probability theory to modern applications in quality control, genetics, clinical trials, and machine learning.
1654 • The Pascal–Fermat Correspondence
1713 • Bernoulli's Ars Conjectandi
1733 • De Moivre's Normal Approximation
1837 • Poisson's Limit
20th c. • Modern Statistical Applications
The central question that the binomial distribution answers can be stated precisely: given n independent trials, each with a constant probability of success p, what is P(X = k)? Answering this question requires not just the probability of any single sequence of outcomes, but a counting argument—how many distinct sequences contain exactly k successes? This interplay between combinatorics and probability is what makes the binomial distribution a cornerstone of discrete mathematics.
SECTION 2
Core Principles & Definitions
The binomial distribution rests on a small set of precisely defined conditions. When all four of these conditions are satisfied simultaneously, the random variable counting the number of successes follows a binomial distribution. Violating even one condition—such as allowing the probability of success to change between trials—means the binomial model no longer applies, and a different distribution (such as the hypergeometric or negative binomial) may be needed instead.
Fixed Number of Trials (n)
Two Outcomes per Trial
Constant Probability (p)
Independence
When all four conditions hold, we write X ~ Bin(n, p) to denote that the random variable X follows a binomial distribution with parameters n and p. The support of X is {0, 1, 2, …, n}. A single trial (n = 1) reduces to the Bernoulli distribution, so the binomial is essentially a sum of n independent and identically distributed Bernoulli random variables.
KEY TAKEAWAY
SECTION 3
Visualizing the Binomial Distribution
A probability mass function (PMF) bar chart is the most informative way to visualize a binomial distribution. The horizontal axis represents the number of successes k, ranging from 0 to n, while the vertical axis shows P(X = k). The shape of the distribution depends critically on p: when p = 0.5, the distribution is symmetric; when p < 0.5, it is right-skewed; and when p > 0.5, it is left-skewed. The following diagram compares the PMF for Bin(10, 0.5) and Bin(10, 0.2).
The diagram above reveals several important structural features. For the symmetric case (p = 0.5), the tallest bar sits at k = 5, which equals the mean np = 10 × 0.5. The bars decrease symmetrically on either side, and the probabilities at the extremes (k = 0 or 10) are negligibly small. For the right-skewed case (p = 0.2), the peak shifts to k = 2, and the probability of obtaining more than 5 successes becomes vanishingly small. As n increases, both distributions would grow taller and narrower relative to their range, converging toward the bell shape predicted by the normal approximation.
SECTION 4
Mathematical Framework
The derivation of the binomial PMF proceeds from first principles. Consider n independent Bernoulli trials with constant success probability p. Any specific sequence of k successes and n − k failures has probability pk × (1 − p)n−k by independence. Since there are C(n, k) = n! / (k! × (n − k)!) distinct arrangements, the total probability is their product.
BINOMIAL PROBABILITY MASS FUNCTION
where n = number of trials, k = number of successes, p = probability of success on a single trial, and C(n, k) = n! / (k!(n − k)!) is the binomial coefficient.
EXPECTED VALUE (MEAN)
Derived from linearity of expectation: E[X] = E[X₁ + X₂ + … + Xₙ] = n × E[X₁] = n × p, where each Xᵢ is a Bernoulli(p) random variable.
VARIANCE AND STANDARD DEVIATION
The variance is maximized when p = 0.5 and decreases as p moves toward 0 or 1. Independence of trials ensures Var(X) = Σ Var(Xᵢ) = n × p(1 − p).
MOMENT GENERATING FUNCTION
The MGF is the product of n identical Bernoulli MGFs, reflecting the sum-of-independent-Bernoullis structure. Derivatives of the MGF evaluated at t = 0 yield the raw moments.
Verification: PMF sums to 1
SECTION 5
Properties & Cumulative Distribution
Beyond the PMF, several structural properties of the binomial distribution are essential for both theoretical work and practical computation. The cumulative distribution function (CDF) F(k) = P(X ≤ k) = Σ (i = 0 to k) C(n, i) × pⁱ × (1 − p)ⁿ⁻ⁱ is used whenever we need the probability of "at most" or "at least" a certain number of successes, which is far more common in applications than computing exact-value probabilities.
The additivity property is particularly powerful in practice. Suppose two independent labs each run a clinical trial with the same drug, one with n1 = 50 patients and the other with n2 = 75 patients. If the success probability p is the same in both, the total number of successes across both labs follows Bin(125, p). This is a direct consequence of the moment generating function factoring as a product, which uniquely determines the distribution.
| Property | Formula / Value |
|---|---|
| Mean | μ = np |
| Variance | σ² = np(1 − p) |
| Skewness | (1 − 2p) / √(np(1 − p)) |
| Kurtosis (excess) | (1 − 6p(1 − p)) / (np(1 − p)) |
| MGF | (1 − p + peᵗ)ⁿ |
| PGF | (1 − p + pz)ⁿ |
Summary of key distributional properties
SECTION 6
Worked Example: Quality Control in Manufacturing
A semiconductor manufacturer knows that 3% of chips produced on a given assembly line are defective. An inspector randomly selects a sample of 20 chips from the line. We wish to find (a) the probability that exactly 2 chips are defective, (b) the probability that at most 1 chip is defective, and (c) the expected number of defective chips and the standard deviation.
Semiconductor Defect Inspection
- 1
Step 1 — Verify Binomial Conditions
Each chip is inspected independently, with a constant defect probability p = 0.03 (assuming the production line runs at steady state). There are n = 20 trials (the sample size is fixed in advance), and each trial has two outcomes: defective (success) or non-defective (failure). All four binomial conditions are satisfied, so X ~ Bin(20, 0.03).X ~ Bin(20, 0.03) - 2
Step 2 — Compute P(X = 2)
Applying the PMF: P(X = 2) = C(20, 2) × (0.03)² × (0.97)¹⁸. First, C(20, 2) = 20! / (2! × 18!) = 190. Next, (0.03)² = 0.0009, and (0.97)¹⁸ ≈ 0.5820. Therefore, P(X = 2) = 190 × 0.0009 × 0.5820 ≈ 0.0988.P(X = 2) ≈ 0.0988 (about 9.9%) - 3
Step 3 — Compute P(X ≤ 1)
P(X ≤ 1) = P(X = 0) + P(X = 1). For P(X = 0): C(20, 0) × (0.03)⁰ × (0.97)²⁰ = 1 × 1 × (0.97)²⁰ ≈ 0.5438. For P(X = 1): C(20, 1) × (0.03)¹ × (0.97)¹⁹ = 20 × 0.03 × (0.97)¹⁹ ≈ 20 × 0.03 × 0.5599 ≈ 0.3359. Summing: P(X ≤ 1) ≈ 0.5438 + 0.3359 = 0.8797.P(X ≤ 1) ≈ 0.8797 (about 88%) - 4
Step 4 — Compute Mean and Standard Deviation
The expected number of defective chips is E[X] = np = 20 × 0.03 = 0.6. The variance is Var(X) = np(1 − p) = 20 × 0.03 × 0.97 = 0.582. The standard deviation is σ = √0.582 ≈ 0.763.E[X] = 0.6, σ ≈ 0.763 - 5
Step 5 — Interpret the Results
On average, we expect fewer than one defective chip per sample of 20. There is about an 88% chance that the inspector finds at most one defect, and roughly a 10% chance of finding exactly two defects. If the inspector observes 3 or more defects, this would be a relatively unusual event (P(X ≥ 3) ≈ 1 − P(X ≤ 2) ≈ 1 − 0.9790 ≈ 0.021), potentially warranting investigation into the production process.3 or more defects is a ≈ 2% event — a signal to investigate
SECTION 7
Strengths, Limitations & Related Distributions
The binomial distribution is remarkably versatile, but it is not a universal model for counting events. Understanding when it applies—and when it breaks down—is crucial for selecting the correct probability model. The table below contrasts the binomial with closely related discrete distributions, highlighting the structural differences that determine which model to use.
| Distribution | Key Difference from Binomial | When to Use Instead |
|---|---|---|
| Bernoulli | Special case: n = 1. Only one trial. | Modeling a single binary outcome (pass/fail, yes/no). |
| Geometric | Number of trials until first success is random, not fixed. | "How many attempts until the first success?" — number of trials is the random variable. |
| Negative Binomial | Counts trials until a fixed number r of successes. | "How many trials until the r-th success?" — generalizes the geometric. |
| Hypergeometric | Sampling without replacement — trials are not independent. | Drawing from a finite population without replacement (e.g., card games, small-lot inspection). |
| Poisson | No fixed n; models count of rare events in a continuum. | n very large, p very small, np = λ moderate (rare events per unit time/area). |
| Multinomial | More than two outcomes per trial. | Categorical data with k > 2 categories (e.g., dice outcomes, survey responses). |
Comparison of the binomial distribution with related discrete distributions
KEY TAKEAWAY
SECTION 8
Connections to Advanced Theory
The binomial distribution serves as a gateway to several major theoretical results in probability and statistics. Two of the most important connections are the normal approximation via the central limit theorem and the Poisson approximation for rare events. These approximations are not merely computational shortcuts—they reveal deep structural relationships between probability distributions and inform the design of statistical tests, confidence intervals, and sampling procedures.
| Feature | Normal Approximation | Poisson Approximation |
|---|---|---|
| Conditions | np ≥ 5 and n(1−p) ≥ 5 (rule of thumb) | n ≥ 20, p ≤ 0.05, np ≤ 10 |
| Approximating distribution | N(np, np(1−p)) | Poisson(λ = np) |
| Continuity correction | P(X ≤ k) ≈ Φ((k + 0.5 − np) / √(np(1−p))) | Not needed (both discrete) |
| Theoretical basis | Central Limit Theorem (de Moivre–Laplace) | Poisson limit theorem (law of small numbers) |
| Typical applications | Election polling, A/B testing, large-sample hypothesis tests | Rare disease incidence, radioactive decay counts, network packet errors |
Normal vs. Poisson approximation to the binomial
Beyond these classical approximations, the binomial distribution connects to Bayesian inference through its conjugate prior, the Beta distribution. If the prior on p is Beta(α, β) and we observe k successes in n trials, the posterior is Beta(α + k, β + n − k). This Beta-Binomial conjugacy is foundational in Bayesian statistics and finds applications in Thompson sampling for multi-armed bandits, empirical Bayes methods, and hierarchical models for overdispersed count data.
Looking Ahead
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
The binomial distribution models the number of successes in n independent trials, each with a constant success probability p. Its PMF, P(X = k) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ, elegantly combines the binomial coefficient (counting favorable arrangements) with the probability of each arrangement. The mean μ = np and variance σ² = np(1 − p) follow from its decomposition as a sum of independent Bernoulli random variables.
In practice, the binomial distribution is applied to quality control, clinical trials, genetics, and A/B testing. For large n, it is well approximated by the normal distribution (when both np and n(1−p) are large) or the Poisson distribution (when p is small). These connections place the binomial at the crossroads of discrete and continuous probability, making mastery of this distribution essential for advanced work in statistics, stochastic processes, and machine learning.