The Bernoulli and Binomial Distributions

How many heads turn up in 20 flips of a biased coin? This simple question hides one of the most important structures in all of probability. The answer comes from adding up many identical, independent yes/no experiments. This pattern is so common it deserves its own name. At the single-trial level, it is the Bernoulli distribution. At the aggregate level, it is the Binomial distribution. Together they form the arithmetic backbone of discrete probability. Quality control, polling, genetics, network reliability, and randomized algorithms all rely on it. Each of these, at some point, reduces to counting successes among independent trials. The idea matters because it is the first genuine bridge. It connects a single random experiment to a sum of many. Once we understand the Bernoulli variable as the atomic unit of "success or failure," the Binomial distribution follows almost automatically. It emerges as a sum of independent copies. Its mean, variance, and shape can all be derived from that additive structure. They need not be memorized. This is also the first place where the reader sees the payoff of treating a random variable as an object to be manipulated algebraically. It can be added, scaled, and analyzed, rather than just tabulated. The big picture: the Binomial distribution is what you get when independence and identical trial probabilities combine with simple counting (binomial coefficients). It is simultaneously a distribution in its own right and a stepping stone. Its large-nn, small-pp limit gives the Poisson distribution. Its structure as a sum of independent, identically distributed pieces makes it the natural first example. This applies for Moment Generating Functions and later the Central Limit Theorem. This article gives the exact definitions of Bernoulli and Binomial random variables. It proves the core theorem that a Binomial variable is a sum of independent Bernoullis. This includes a full derivation of its PMF, mean, and variance. It works through two asymmetric numerical examples. It also shows precisely what breaks when the trials are not independent or not identically distributed.

Key takeaways
  • A Bernoulli(pp) random variable takes value 11 ("success") with probability pp and 00 ("failure") with probability 1−p1-p.
  • A Binomial(n,pn,p) random variable counts the number of successes in nn independent Bernoulli(pp) trials.
  • Its PMF is P(X=k)=(nk)pk(1−p)n−kP(X=k) = \binom{n}{k}p^k(1-p)^{n-k} for k=0,1,…,nk=0,1,\dots,n, derived by counting arrangements.
  • Mean and variance add trial-by-trial: E[X]=npE[X] = np, Var(X)=np(1−p)\mathrm{Var}(X) = np(1-p).
  • Both independence and a common success probability pp across trials are essential — drop either and the simple formulas fail.
  • Key idea: the Binomial is not a new primitive object — it is literally a sum of nn independent Bernoulli variables, and every one of its properties inherits from that sum.

Where this lives today

The Bernoulli/Binomial pair is the working model wherever a fixed procedure is repeated independently with a constant success chance. In statistics, estimating an unknown proportion pp (an election poll, a clinical trial response rate, a defect rate) is modeled as observing a Binomial count and inverting it — the sample proportion p^=X/n\hat p = X/n is the natural unbiased estimator, with variance p(1−p)/np(1-p)/n derived directly from the theorem above. In reliability engineering, the number of failed components among nn identical, independently operating units is Binomial, feeding directly into redundancy design (kk-out-of-nn systems). In genetics, the number of offspring inheriting a given allele under simple Mendelian independence assumptions is Binomial. In computer science and cryptography, Binomial counting underlies random graph models (Erdős–Rényi G(n,p)G(n,p), where each of the (n2)\binom{n}{2} possible edges is an independent Bernoulli(pp) trial), randomized algorithm analysis (number of "successful" random probes), and hash-collision estimates. In statistical physics, the Binomial distribution is the discrete analogue of a two-state system (e.g., spins that are up/down independently), and its large-nn behavior (via Poisson and normal limits) connects directly to the emergence of the moment-generating-function machinery used to prove the Central Limit Theorem.

:::quiz[If X∼Binomial(n,p)X \sim \mathrm{Binomial}(n,p), what is E[X2]E[X^2] in terms of nn and pp?]

  • n2p2n^2p^2
  • np(1−p)np(1-p)
  • np(1−p)+(np)2np(1-p) + (np)^2 ✓
  • np+p2np + p^2

Ask the tutor: How does the Binomial distribution's proof structure foreshadow the moment generating function proof of the Poisson limit?

DefinitionBernoulli and Binomial random variables

Let p∈[0,1]p \in [0,1]. A random variable XX has the Bernoulli distribution with parameter pp, written X∼Bernoulli(p)X \sim \mathrm{Bernoulli}(p), if XX takes values in {0,1}\{0,1\} with

P(X=1)=p,P(X=0)=1−p.P(X = 1) = p, \qquad P(X = 0) = 1-p.

Equivalently, its probability mass function is P(X=x)=px(1−p)1−xP(X=x) = p^x(1-p)^{1-x} for x∈{0,1}x \in \{0,1\}. A collection of Bernoulli trials X1,…,XnX_1, \dots, X_n is called a sequence of independent, identically distributed (i.i.d.) Bernoulli(pp) trials if each Xi∼Bernoulli(p)X_i \sim \mathrm{Bernoulli}(p) and X1,…,XnX_1, \dots, X_n are mutually independent random variables (meaning P(X1=x1,…,Xn=xn)=∏i=1nP(Xi=xi)P(X_1 = x_1, \dots, X_n = x_n) = \prod_{i=1}^n P(X_i = x_i) for every choice of x1,…,xn∈{0,1}x_1,\dots,x_n \in \{0,1\}). A random variable XX has the Binomial distribution with parameters n∈Nn \in \mathbb{N} and p∈[0,1]p \in [0,1], written X∼Binomial(n,p)X \sim \mathrm{Binomial}(n,p), if

X=X1+X2+⋯+XnX = X_1 + X_2 + \cdots + X_n

where X1,…,XnX_1, \dots, X_n are i.i.d. Bernoulli(p)\mathrm{Bernoulli}(p) trials. Equivalently (as proved below), XX takes values in {0,1,…,n}\{0,1,\dots,n\} with PMF

P(X=k)=(nk)pk(1−p)n−k,k=0,1,…,n.P(X=k) = \binom{n}{k} p^k (1-p)^{n-k}, \qquad k = 0, 1, \dots, n.

Intuition

Think of a Bernoulli variable as a single coin flip, possibly with an unfair coin: it is "on" with probability pp and "off" otherwise, and it carries no memory of any other flip. The Binomial distribution is simply what happens when you flip that same coin nn times, independently, and tally the total number of heads. The word "independent" is doing real work here: it guarantees that knowing the outcome of flip 3 tells you nothing about flip 7, so the only source of randomness in the total count XX is the raw combinatorics of which subset of the nn trials happened to succeed. The binomial coefficient (nk)\binom{n}{k} enters because there are exactly that many ways to choose which kk of the nn trials are successes; each such arrangement, by independence, has the same probability pk(1−p)n−kp^k(1-p)^{n-k}. This is the essential mental picture: the Binomial PMF is (number of ways to succeed kk times) ×\times (probability of any one specific way). The shape of the distribution — roughly bell-shaped, peaked near npnp, skewed right for small pp and left for pp near 11 — is a direct visual consequence of this counting formula.

Figure
Binomial(10, 0.3) PMF: bars at each kk, peak near np=3np=3
k (number of successes, n=10, p=0.3) P(X=k) 012 345 678 9 peak at k=3
TheoremBernoulli sum representation and Binomial PMF, mean, variance

Let X1,…,XnX_1, \dots, X_n be i.i.d. Bernoulli(p)\mathrm{Bernoulli}(p) random variables for some n∈Nn \in \mathbb{N} and p∈[0,1]p \in [0,1], and let

X=X1+⋯+Xn.X = X_1 + \cdots + X_n.

Then: 1. (PMF) For every k∈{0,1,…,n}k \in \{0, 1, \dots, n\},

P(X=k)=(nk)pk(1−p)n−k,P(X = k) = \binom{n}{k} p^k (1-p)^{n-k},

and P(X=k)=0P(X=k)=0 for k∉{0,…,n}k \notin \{0,\dots,n\}. 2. (Mean) E[X]=npE[X] = np. 3. (Variance) Var(X)=np(1−p)\mathrm{Var}(X) = np(1-p).

Proof

Part 1: the PMF. We use the technique of partitioning the event by which coordinates succeed. Fix k∈{0,1,…,n}k \in \{0,1,\dots,n\}. The event {X=k}\{X = k\} occurs exactly when precisely kk of the nn variables X1,…,XnX_1,\dots,X_n equal 11 and the remaining n−kn-k equal 00. Formally, let S⊆{1,…,n}S \subseteq \{1,\dots,n\} range over subsets of size ∣S∣=k|S| = k, and define the event

AS={Xi=1 for all i∈S, Xi=0 for all i∉S}.A_S = \{X_i = 1 \text{ for all } i \in S,\ X_i = 0 \text{ for all } i \notin S\}.

Then

{X=k}=⋃S:∣S∣=kAS,\{X = k\} = \bigcup_{S : |S| = k} A_S,

and this union is disjoint: if S≠S′S \neq S' both have size kk, then some index lies in one but not the other, so ASA_S and AS′A_{S'} specify contradictory values at that index and cannot both hold simultaneously. By finite additivity of probability over disjoint events,

P(X=k)=∑S:∣S∣=kP(AS).P(X = k) = \sum_{S : |S| = k} P(A_S).

By the mutual independence of X1,…,XnX_1, \dots, X_n (part of the hypothesis), for any fixed SS,

P(AS)=∏i∈SP(Xi=1)⋅∏i∉SP(Xi=0)=∏i∈Sp⋅∏i∉S(1−p)=pk(1−p)n−k,P(A_S) = \prod_{i \in S} P(X_i = 1) \cdot \prod_{i \notin S} P(X_i = 0) = \prod_{i \in S} p \cdot \prod_{i \notin S}(1-p) = p^{k}(1-p)^{n-k},

using that each Xi∼Bernoulli(p)X_i \sim \mathrm{Bernoulli}(p) so P(Xi=1)=pP(X_i=1)=p, P(Xi=0)=1−pP(X_i=0)=1-p, and this value does not depend on which particular set SS we chose — only on its size kk. There are exactly (nk)\binom{n}{k} subsets S⊆{1,…,n}S \subseteq \{1,\dots,n\} of size kk (a standard combinatorial fact: choosing kk elements out of nn unordered). Hence

P(X=k)=(nk)pk(1−p)n−k.P(X=k) = \binom{n}{k} p^k (1-p)^{n-k}.

Since X=X1+⋯+XnX = X_1 + \cdots + X_n with each Xi∈{0,1}X_i \in \{0,1\}, the sum can only take integer values between 00 and nn, so P(X=k)=0P(X=k) = 0 automatically for k∉{0,…,n}k \notin \{0,\dots,n\}. This proves Part 1. (Sanity check that this is a valid PMF: by the Binomial Theorem, ∑k=0n(nk)pk(1−p)n−k=(p+(1−p))n=1\sum_{k=0}^n \binom{n}{k}p^k(1-p)^{n-k} = (p + (1-p))^n = 1, and each term is nonnegative since p∈[0,1]p \in [0,1], so it is indeed a valid probability distribution.)

Part 2: the mean. We use linearity of expectation, which requires no independence assumption at all — only that expectations of the individual terms exist, which they do since each XiX_i takes only the values 0,10,1. First compute E[Xi]E[X_i] for a single Bernoulli(pp) variable directly from the definition of expectation for a discrete random variable:

E[Xi]=1⋅P(Xi=1)+0⋅P(Xi=0)=p.E[X_i] = 1 \cdot P(X_i = 1) + 0 \cdot P(X_i = 0) = p.

By linearity of expectation (valid for any random variables with finite expectation, dependent or not),

E[X]=E[X1+⋯+Xn]=∑i=1nE[Xi]=∑i=1np=np.E[X] = E[X_1 + \cdots + X_n] = \sum_{i=1}^n E[X_i] = \sum_{i=1}^n p = np.

Part 3: the variance. Here we do use independence, via the fact that variance is additive over independent random variables: if Y1,…,YnY_1, \dots, Y_n are pairwise independent with finite variance, then Var(Y1+⋯+Yn)=∑i=1nVar(Yi)\mathrm{Var}(Y_1 + \cdots + Y_n) = \sum_{i=1}^n \mathrm{Var}(Y_i). We first establish this additivity fact, then apply it. Additivity of variance under independence. For any random variables Y1,Y2Y_1, Y_2,

Var(Y1+Y2)=E[(Y1+Y2)2]−(E[Y1+Y2])2=E[Y12]+2E[Y1Y2]+E[Y22]−(E[Y1]+E[Y2])2.\mathrm{Var}(Y_1+Y_2) = E[(Y_1+Y_2)^2] - (E[Y_1+Y_2])^2 = E[Y_1^2] + 2E[Y_1Y_2] + E[Y_2^2] - (E[Y_1]+E[Y_2])^2.

Expanding (E[Y1]+E[Y2])2=E[Y1]2+2E[Y1]E[Y2]+E[Y2]2(E[Y_1]+E[Y_2])^2 = E[Y_1]^2 + 2E[Y_1]E[Y_2] + E[Y_2]^2 and subtracting term by term gives

Var(Y1+Y2)=Var(Y1)+Var(Y2)+2(E[Y1Y2]−E[Y1]E[Y2]).\mathrm{Var}(Y_1+Y_2) = \mathrm{Var}(Y_1) + \mathrm{Var}(Y_2) + 2\big(E[Y_1Y_2] - E[Y_1]E[Y_2]\big).

If Y1,Y2Y_1, Y_2 are independent, then for discrete random variables,

E[Y1Y2]=∑y1,y2y1y2 P(Y1=y1,Y2=y2)=∑y1,y2y1y2 P(Y1=y1)P(Y2=y2)=E[Y1]E[Y2],E[Y_1 Y_2] = \sum_{y_1,y_2} y_1 y_2\, P(Y_1=y_1, Y_2=y_2) = \sum_{y_1,y_2} y_1y_2\, P(Y_1=y_1)P(Y_2=y_2) = E[Y_1]E[Y_2],

so the cross term vanishes and Var(Y1+Y2)=Var(Y1)+Var(Y2)\mathrm{Var}(Y_1+Y_2) = \mathrm{Var}(Y_1)+\mathrm{Var}(Y_2). Extending to nn pairwise-independent variables by induction on nn (group the first n−1n-1 terms, which remain independent of YnY_n and pairwise independent among themselves, apply the two-variable case to (Y1+⋯+Yn−1)(Y_1+\cdots+Y_{n-1}) and YnY_n, then the inductive hypothesis to the first group) gives

Var(Y1+⋯+Yn)=∑i=1nVar(Yi).\mathrm{Var}(Y_1 + \cdots + Y_n) = \sum_{i=1}^n \mathrm{Var}(Y_i).

Variance of a single Bernoulli(pp) variable. Since Xi2=XiX_i^2 = X_i (as Xi∈{0,1}X_i \in \{0,1\}, and 02=00^2=0, 12=11^2=1),

E[Xi2]=E[Xi]=p.E[X_i^2] = E[X_i] = p.

Hence

Var(Xi)=E[Xi2]−(E[Xi])2=p−p2=p(1−p).\mathrm{Var}(X_i) = E[X_i^2] - (E[X_i])^2 = p - p^2 = p(1-p).

Conclusion. Since X1,…,XnX_1, \dots, X_n are (mutually, hence pairwise) independent, additivity of variance gives

Var(X)=∑i=1nVar(Xi)=∑i=1np(1−p)=np(1−p).\mathrm{Var}(X) = \sum_{i=1}^n \mathrm{Var}(X_i) = \sum_{i=1}^n p(1-p) = np(1-p).

This completes the proof of all three parts. ■\blacksquare

∎

Worked examples

Example 1 — asymmetric parameters, direct PMF computation. A factory's inspection line has a defect rate of p=0.04p = 0.04 per unit (i.e., each unit is independently defective with probability 0.040.04). A quality inspector samples n=15n = 15 units. What is the probability that exactly 22 units are defective, and what is the expected number of defective units in the sample? Let XX be the number of defective units among the 1515 sampled. Assuming each unit's defect status is an independent Bernoulli(0.040.04) trial (a reasonable model if units are produced independently and sampled without strong correlation), X∼Binomial(15,0.04)X \sim \mathrm{Binomial}(15, 0.04) by the sum representation proved above. Using the PMF from Part 1 of the theorem:

P(X=2)=(152)(0.04)2(0.96)13.P(X=2) = \binom{15}{2}(0.04)^2(0.96)^{13}.

Compute each factor:

(152)=15⋅142=105,(0.04)2=0.0016.\binom{15}{2} = \frac{15 \cdot 14}{2} = 105, \qquad (0.04)^2 = 0.0016.

For (0.96)13(0.96)^{13}: ln⁡(0.96)≈−0.040822\ln(0.96) \approx -0.040822, so 13ln⁡(0.96)≈−0.53068613\ln(0.96) \approx -0.530686, giving (0.96)13≈e−0.530686≈0.58813(0.96)^{13} \approx e^{-0.530686} \approx 0.58813. Therefore

P(X=2)≈105×0.0016×0.58813≈0.16800×0.58813≈0.09881.P(X=2) \approx 105 \times 0.0016 \times 0.58813 \approx 0.16800 \times 0.58813 \approx 0.09881.

So there is about a 9.88%9.88\% chance of exactly 22 defective units. By Part 2 of the theorem, the expected number of defective units is

E[X]=np=15×0.04=0.6,E[X] = np = 15 \times 0.04 = 0.6,

and by Part 3, the variance is

Var(X)=np(1−p)=15×0.04×0.96=0.576,\mathrm{Var}(X) = np(1-p) = 15 \times 0.04 \times 0.96 = 0.576,

so the standard deviation is 0.576≈0.759\sqrt{0.576} \approx 0.759. Note that the mean 0.60.6 is not one of the more likely outcomes in absolute terms — since XX is discrete and skewed for small pp, the mode is actually at k=0k=0 — but it correctly represents the long-run average defect count per sample of 15.

Example 2 — comparing two binomials via the sum representation, without recomputing PMFs. Suppose two independent batches are inspected under the same process as above: batch A has n1=15n_1 = 15 units (defect probability p=0.04p=0.04 each) and batch B has n2=25n_2 = 25 units, same defect probability p=0.04p = 0.04, inspected independently of batch A. Let X1∼Binomial(15,0.04)X_1 \sim \mathrm{Binomial}(15, 0.04) be the number of defects in A and X2∼Binomial(25,0.04)X_2 \sim \mathrm{Binomial}(25, 0.04) the number of defects in B, with X1,X2X_1, X_2 independent. What is the distribution of the total number of defects T=X1+X2T = X_1 + X_2 across both batches, and what are its mean and variance? This is exactly where the sum representation earns its keep: rather than treating TT as some new, unfamiliar object requiring a fresh derivation, we recognize that

X1=∑i=115Yi,X2=∑j=125Zj,X_1 = \sum_{i=1}^{15} Y_i, \qquad X_2 = \sum_{j=1}^{25} Z_j,

where all Yi,ZjY_i, Z_j are i.i.d. Bernoulli(0.04)\mathrm{Bernoulli}(0.04) (the YiY_i independent within batch A, the ZjZ_j independent within batch B, and the two batches independent of each other by hypothesis). Then

T=X1+X2=∑i=115Yi+∑j=125ZjT = X_1 + X_2 = \sum_{i=1}^{15} Y_i + \sum_{j=1}^{25} Z_j

is literally a sum of 15+25=4015 + 25 = 40 i.i.d. Bernoulli(0.04)\mathrm{Bernoulli}(0.04) variables — the independence across the two groups combined with independence within each group gives mutual independence of all 4040 variables together (independence of the batches means the joint distribution of (Y1,…,Y15)(Y_1,\dots,Y_{15}) and (Z1,…,Z25)(Z_1,\dots,Z_{25}) factors, and combined with within-batch independence this factors the joint distribution of all 40 variables into a product of 40 marginals). By the definition of the Binomial distribution as a sum of i.i.d. Bernoulli trials,

T∼Binomial(40,0.04).T \sim \mathrm{Binomial}(40, 0.04).

Consequently, without any further computation, Parts 2 and 3 of the theorem give

E[T]=40×0.04=1.6,Var(T)=40×0.04×0.96=1.536.E[T] = 40 \times 0.04 = 1.6, \qquad \mathrm{Var}(T) = 40 \times 0.04 \times 0.96 = 1.536.

As a check, additivity of expectation and (independent) variance directly gives the same numbers: E[T]=E[X1]+E[X2]=0.6+1.0=1.6E[T] = E[X_1]+E[X_2] = 0.6 + 1.0 = 1.6 (since E[X2]=25×0.04=1.0E[X_2] = 25\times 0.04=1.0), and Var(T)=Var(X1)+Var(X2)=0.576+25(0.04)(0.96)=0.576+0.96=1.536\mathrm{Var}(T) = \mathrm{Var}(X_1)+\mathrm{Var}(X_2) = 0.576 + 25(0.04)(0.96) = 0.576 + 0.96 = 1.536. This illustrates the general fact — provable the same way — that Binomial(n1,p)+Binomial(n2,p)\mathrm{Binomial}(n_1,p) + \mathrm{Binomial}(n_2,p) (independent, common pp) is Binomial(n1+n2,p)\mathrm{Binomial}(n_1+n_2,p).

Counterexamplewhy identical distribution (constant pp) cannot be dropped

The theorem requires the trials to be identically distributed — the same success probability pp for every trial — not merely independent. Drop this and the clean Binomial PMF formula fails. Consider n=2n = 2 independent trials with different success probabilities: X1∼Bernoulli(0.1)X_1 \sim \mathrm{Bernoulli}(0.1) and X2∼Bernoulli(0.9)X_2 \sim \mathrm{Bernoulli}(0.9), independent. Let S=X1+X2S = X_1 + X_2. Since X1,X2X_1, X_2 are still independent, the disjoint-partition argument in Part 1 of the proof still applies structurally, but the probability of any particular configuration is no longer the same across configurations with the same number of successes. Concretely:

P(S=0)=P(X1=0)P(X2=0)=(0.9)(0.1)=0.09,P(S=0) = P(X_1=0)P(X_2=0) = (0.9)(0.1) = 0.09,
P(S=2)=P(X1=1)P(X2=1)=(0.1)(0.9)=0.09,P(S=2) = P(X_1=1)P(X_2=1) = (0.1)(0.9) = 0.09,
P(S=1)=P(X1=1,X2=0)+P(X1=0,X2=1)=(0.1)(0.1)+(0.9)(0.9)=0.01+0.81=0.82.P(S=1) = P(X_1=1,X_2=0) + P(X_1=0,X_2=1) = (0.1)(0.1) + (0.9)(0.9) = 0.01 + 0.81 = 0.82.

If we had (incorrectly) applied the Binomial formula with, say, an "average" p=0.5p = 0.5 and n=2n=2, we would predict P(S=0)=(20)(0.5)0(0.5)2=0.25P(S=0) = \binom{2}{0}(0.5)^0(0.5)^2 = 0.25, P(S=1)=(21)(0.5)(0.5)=0.5P(S=1) = \binom{2}{1}(0.5)(0.5)=0.5, P(S=2)=0.25P(S=2)=0.25 — utterly wrong compared to the true values 0.09,0.82,0.090.09, 0.82, 0.09. The distribution of SS here is called Poisson-binomial, not Binomial, precisely because the per-trial probabilities differ. The mean is still additive, E[S]=0.1+0.9=1.0E[S] = 0.1+0.9 = 1.0, matching npnp with p=0.5,n=2p=0.5, n=2 by coincidence of this symmetric example — but the variance is not: Var(S)=0.1(0.9)+0.9(0.1)=0.18\mathrm{Var}(S) = 0.1(0.9)+0.9(0.1) = 0.18, whereas a true Binomial(2,0.5)\mathrm{Binomial}(2,0.5) would have variance 2(0.5)(0.5)=0.52(0.5)(0.5)=0.5. This shows identical distribution across trials is not a technical nicety but is essential to both the PMF and second-moment formulas.

Scope, edge cases & common traps

SituationWhat holdsWhat can fail
p=0p=0 or p=1p=1XX is degenerate (X≡0X\equiv 0 or X≡nX\equiv n); formulas still valid (variance =0=0)Binomial coefficient formula still technically correct but distribution is trivial
Independent, common ppFull theorem applies: PMF, mean npnp, variance np(1−p)np(1-p)—
Independent, varying pip_iMean still ∑pi\sum p_i (linearity always holds); variance still additivePMF is not Binomial — it is Poisson-binomial (see counterexample)
Dependent trials, common ppMarginal mean per trial still pp, so E[X]=npE[X]=np still holds (linearity needs no independence)Variance formula np(1−p)np(1-p) generally fails; PMF is not Binomial
Sampling without replacement from a finite population—Trials are dependent (not independent) — correct model is [[Hypergeometric distributionHypergeometric]], not Binomial
Large nn, small pp, npnp moderateBinomial PMF is well approximated by [[The Poisson DistributionPoisson(np)(np)]]Approximation, not equality — needs nn large and pp small jointly

The mathematician behind it

Origins · 1 minJacob Bernoulli and how this was discovered
JB
Jacob Bernoulli
1655–1705 · Basel, Switzerland

Jacob (Jakob/James) Bernoulli was a member of the remarkable Bernoulli family of mathematicians in Basel. He is best known in probability for his posthumously published treatise Ars Conjectandi (1713), which contains the first rigorous treatment of what we now call Bernoulli trials and a proof of an early version of the Law of Large Numbers (the "Golden Theorem," today called Bernoulli's theorem). He also made foundational contributions to calculus, the calculus of variations, and the theory of series, and the number ee appears in his work on compound interest.

History
- 1655 — Jacob Bernoulli born in Basel, Switzerland.
- 1680s–1690s — Develops the combinatorial and probabilistic ideas that will become Ars Conjectandi, including repeated independent trials with fixed success probability.
- 1705 — Jacob Bernoulli dies; the manuscript of Ars Conjectandi remains unpublished.
- 1713 — Ars Conjectandi is published posthumously by his nephew Nicolaus Bernoulli, formalizing the binomial trial model and proving a law-of-large-numbers result for it.
- 19th–20th century — the Bernoulli/Binomial framework becomes the standard building block for statistical inference (proportion estimation), reliability theory, and eventually the Poisson and normal approximations built on top of it.
Is the Bernoulli distribution just a special case of the Binomial distribution?

Yes: Bernoulli(p)\mathrm{Bernoulli}(p) is exactly Binomial(1,p)\mathrm{Binomial}(1,p). Setting n=1n=1 in the PMF (nk)pk(1−p)n−k\binom{n}{k}p^k(1-p)^{n-k} gives (10)(1−p)=1−p\binom{1}{0}(1-p) = 1-p at k=0k=0 and (11)p=p\binom{1}{1}p = p at k=1k=1, which is precisely the Bernoulli PMF. Conceptually, the Bernoulli distribution is the "atomic" building block — a single trial — while the Binomial distribution describes the aggregate outcome of nn such atoms combined by independent summation. Every theorem about the Binomial distribution can, and in this article does, get proved by first establishing facts about the underlying Bernoulli pieces (mean pp, variance p(1−p)p(1-p)) and then using linearity of expectation and additivity of variance under independence to lift those facts to the sum.

Why does the Binomial PMF involve a binomial coefficient specifically, and not some other count?

The binomial coefficient (nk)\binom{n}{k} counts the number of ways to choose which kk of the nn trials are the "successful" ones, treating the trials as distinguishable but the successes among them as an unordered subset. In the proof, the event {X=k}\{X=k\} is partitioned into disjoint events ASA_S, one for each subset SS of size kk specifying exactly which trials succeed. Because the trials are independent and identically distributed, every such subset SS contributes the same probability pk(1−p)n−kp^k(1-p)^{n-k}, so the total probability is just that common value multiplied by the number of subsets, (nk)\binom{n}{k}. If trials were not identically distributed, different subsets would contribute different probabilities and no single binomial coefficient could summarize the count — this is exactly the failure mode illustrated in the counterexample block.

How are the mean and variance formulas npnp and np(1−p)np(1-p) actually used in practice?

They give instant summary statistics without ever writing out the full PMF. For instance, if X∼Binomial(1000,0.02)X \sim \mathrm{Binomial}(1000, 0.02) models defective items in a large shipment, you immediately know the expected number of defects is 2020 and the standard deviation is 1000×0.02×0.98≈4.43\sqrt{1000 \times 0.02 \times 0.98} \approx 4.43, letting you assess whether an observed count (say 3535 defects) is unusually high without ever summing 10001000 terms of the PMF. These two numbers are also the inputs to normal or Poisson approximations to the Binomial, and np(1−p)/n=p(1−p)/nnp(1-p)/n = p(1-p)/n is the variance of the sample proportion p^=X/n\hat p = X/n, the workhorse quantity in confidence intervals for proportions.

Does the Binomial theorem require the number of trials nn to be random or fixed?

Fixed. The entire construction — the sum X=X1+⋯+XnX = X_1 + \cdots + X_n, the combinatorial count (nk)\binom{n}{k}, and the proof of the PMF — presupposes that nn is a deterministic, known constant chosen in advance, not a random stopping time. If instead you flip a coin until you observe a fixed number of successes and count the trials needed, you get the (different) Negative Binomial distribution; if you flip until the first success, you get the Geometric distribution. Both are built from the same Bernoulli atoms but organized around a random rather than fixed number of trials, so their PMFs and proofs differ from the one given here even though Bernoulli trials remain the common ancestor.

What goes wrong if trials are sampled without replacement from a finite population?

Independence fails. If you draw balls without replacement from an urn with a finite number of red and non-red balls, learning that the first draw was red changes the probability that the second draw is red, because one red ball has been removed from the urn. The trials are then dependent, violating a hypothesis of the theorem, and the correct distribution for the number of red balls drawn is the Hypergeometric distribution, not the Binomial. However, if the population is very large relative to the sample size, removing a few items barely changes the remaining proportions, and the Hypergeometric distribution is well approximated by the Binomial — this is why survey sampling from a large population is often modeled as (approximately) Binomial even though sampling without replacement is technically dependent.

How does the Binomial distribution connect to the Poisson distribution?

When nn is large and pp is small in such a way that np=λnp = \lambda stays roughly constant (a "rare events, many trials" regime), the Binomial PMF (nk)pk(1−p)n−k\binom{n}{k}p^k(1-p)^{n-k} converges term-by-term to the Poisson PMF e−λλk/k!e^{-\lambda}\lambda^k/k!. This is a genuine limiting theorem, not a coincidence: it reflects that a Poisson process can be thought of as the limit of many independent, individually-unlikely Bernoulli trials packed into a fixed interval. This connection is typically the very next construction built on top of the material in this article, since it requires nothing more than careful limit-taking in the Binomial PMF formula proved here.

Why does variance require independence but the mean formula does not?

Linearity of expectation, E[X1+⋯+Xn]=∑E[Xi]E[X_1+\cdots+X_n] = \sum E[X_i], is an algebraic identity about integrals (or sums, in the discrete case) that holds unconditionally — it never uses independence, only that each expectation exists. Variance, by contrast, expands as Var(∑Xi)=∑Var(Xi)+2∑i<jCov(Xi,Xj)\mathrm{Var}(\sum X_i) = \sum \mathrm{Var}(X_i) + 2\sum_{i<j}\mathrm{Cov}(X_i,X_j), and the covariance cross-terms Cov(Xi,Xj)=E[XiXj]−E[Xi]E[Xj]\mathrm{Cov}(X_i,X_j) = E[X_iX_j]-E[X_i]E[X_j] vanish precisely when Xi,XjX_i,X_j are independent (since then E[XiXj]=E[Xi]E[Xj]E[X_iX_j]=E[X_i]E[X_j]). Without independence, these cross terms can be positive or negative and generally do not cancel, so the simple formula np(1−p)np(1-p) can fail even though E[X]=npE[X]=np still holds — exactly the asymmetry noted in the scope table above.

Before this

Where this leads