DISCRETE MATH • DISCRETE PROBABILITY

Binomial Distribution and Applications

The foundational discrete probability model for counting successes in a fixed number of independent trials.

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
Blaise Pascal and Pierre de Fermat exchange letters on the problem of points, laying the groundwork for combinatorial probability by counting favorable outcomes in repeated trials of a game of chance.
1713
Bernoulli's Ars Conjectandi
Jacob Bernoulli posthumously publishes Ars Conjectandi, which formalizes the notion of Bernoulli trials and establishes the law of large numbers, providing the theoretical backbone for the binomial distribution.
1733
De Moivre's Normal Approximation
Abraham de Moivre discovers that for large n, the binomial distribution is well approximated by a bell-shaped curve, anticipating the central limit theorem and the normal distribution.
1837
Poisson's Limit
Siméon Denis Poisson shows that the binomial distribution converges to the Poisson distribution when n is large and p is small, extending the binomial framework to rare-event modeling.
20th c.
Modern Statistical Applications
The binomial distribution becomes a pillar of hypothesis testing (binomial tests), quality assurance (acceptance sampling), and computational statistics, underpinning methods from clinical trial design to A/B testing in technology.

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.

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.

1

Fixed Number of Trials (n)

The experiment consists of a predetermined number of trials n, decided before observation begins. The value of n is not random.
2

Two Outcomes per Trial

Each trial yields exactly one of two mutually exclusive outcomes: success (with probability p) or failure (with probability q = 1 − p).
3

Constant Probability (p)

The probability of success p remains identical across all trials. No learning, fatigue, or environmental change alters p from one trial to the next.
4

Independence

The outcome of any one trial has no influence on the outcome of any other trial. Formally, P(A ∩ B) = P(A) × P(B) for events from different trials.

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
Think of a binomial experiment like a basketball player shooting n free throws in a row. Each shot either goes in (success, probability p) or misses (failure), and we assume each shot is independent with the same probability. The binomial distribution tells us the probability that exactly k of those n shots go in. The key insight is that it combines the probability of any single arrangement of k successes with the number of ways to choose which trials are the successful ones—hence the binomial coefficient.

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).

Left: when p = 0.5, the PMF is symmetric about the mean np = 5. Right: when p = 0.2, the distribution is strongly right-skewed, with most probability mass concentrated on low values of k. Notice how the mode shifts from 5 to 2 as p decreases.

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.

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 nk failures has probability pk × (1 − p)n−k by independence. Since there are C(n, k) = n! / (k! × (nk)!) distinct arrangements, the total probability is their product.

BINOMIAL PROBABILITY MASS FUNCTION
P(X = k) = C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ, k = 0, 1, 2, …, n
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)
E[X] = μ = n × p
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
Var(X) = σ² = n × p × (1 − p), σ = √(n × p × (1 − p))
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
M_X(t) = E[eᵗˣ] = (1 − p + p × eᵗ)ⁿ
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
By the binomial theorem, Σ (k = 0 to n) C(n,k) × pᵏ × (1−p)ⁿ⁻ᵏ = (p + (1−p))ⁿ = 1ⁿ = 1. This algebraic identity—the very reason the distribution is called binomial—confirms that the PMF is a valid probability distribution.

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(Xk) = Σ (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.

Four key structural properties of the binomial distribution: symmetry and skewness depend on p; additivity allows merging independent binomials with the same p; the mode locates the most likely outcome; and limiting distributions connect the binomial to both the normal and Poisson families.

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.

Summary of key distributional properties
PropertyFormula / 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)ⁿ

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 ConditionsEach 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 DeviationThe 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 ResultsOn 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

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.

Comparison of the binomial distribution with related discrete distributions
DistributionKey Difference from BinomialWhen to Use Instead
BernoulliSpecial case: n = 1. Only one trial.Modeling a single binary outcome (pass/fail, yes/no).
GeometricNumber of trials until first success is random, not fixed."How many attempts until the first success?" — number of trials is the random variable.
Negative BinomialCounts trials until a fixed number r of successes."How many trials until the r-th success?" — generalizes the geometric.
HypergeometricSampling without replacement — trials are not independent.Drawing from a finite population without replacement (e.g., card games, small-lot inspection).
PoissonNo fixed n; models count of rare events in a continuum.n very large, p very small, np = λ moderate (rare events per unit time/area).
MultinomialMore than two outcomes per trial.Categorical data with k > 2 categories (e.g., dice outcomes, survey responses).
KEY TAKEAWAY
The binomial distribution is to discrete probability what the normal distribution is to continuous probability: a foundational building block that connects to many other models. When any of its four conditions (fixed n, binary outcomes, constant p, independence) is violated, there is usually a named distribution designed to handle the generalization. Learning to check these conditions is the single most important skill for applied discrete probability.

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.

Normal vs. Poisson approximation to the binomial
FeatureNormal ApproximationPoisson Approximation
Conditionsnp ≥ 5 and n(1−p) ≥ 5 (rule of thumb)n ≥ 20, p ≤ 0.05, np ≤ 10
Approximating distributionN(np, np(1−p))Poisson(λ = np)
Continuity correctionP(X ≤ k) ≈ Φ((k + 0.5 − np) / √(np(1−p)))Not needed (both discrete)
Theoretical basisCentral Limit Theorem (de Moivre–Laplace)Poisson limit theorem (law of small numbers)
Typical applicationsElection polling, A/B testing, large-sample hypothesis testsRare disease incidence, radioactive decay counts, network packet errors

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, β + nk). 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
In a course on mathematical statistics, you will prove that the binomial maximum likelihood estimator p̂ = k/n is unbiased and achieves the Cramér–Rao lower bound, making it a uniformly minimum-variance unbiased estimator (UMVUE) for p. The Fisher information for a single Bernoulli trial is 1/(p(1 − p)), and for n trials it is n/(p(1 − p)), which determines the width of confidence intervals and the power of hypothesis tests.

Practice Problems

PROBLEM 1CONCEPTUAL
A researcher draws 5 cards from a standard 52-card deck without replacement and counts the number of aces. Explain why this experiment does not satisfy the binomial model, and identify which condition(s) are violated.
PROBLEM 2BASIC CALCULATION
A fair coin is flipped 8 times. Calculate the probability of obtaining exactly 3 heads.
PROBLEM 3INTERMEDIATE
A pharmaceutical company reports that a new vaccine has an 85% efficacy rate. In a group of 12 vaccinated individuals who are exposed to the pathogen, find (a) the probability that all 12 are protected, (b) the probability that at least 10 are protected, and (c) the expected number of protected individuals.
PROBLEM 4APPLIED
An internet service provider finds that 2% of data packets transmitted over a particular link are corrupted. During a file transfer, 500 packets are sent. Use an appropriate approximation to estimate the probability that more than 15 packets are corrupted. State which approximation you choose and why.
PROBLEM 5CRITICAL THINKING
Prove that the variance of a Bin(n, p) random variable is np(1 − p) by expressing X as a sum of independent Bernoulli random variables and using properties of variance. Then explain intuitively why the variance is maximized at p = 0.5.

Lesson 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.

Varsity Tutors • Discrete Math • Binomial distribution and applications