Skip to content

Binomial Distribution

Definition

Let nn be a nonnegative integer, 0≤p≤10\le p\le1 and q=1−pq=1-p. A discrete random variable XX has a binomial distribution with parameters nn and pp, written X∼Bin⁡(n,p)X\sim\operatorname{Bin}(n,p), if

P(X=k)=(nk)pkqn−k,k=0,1,…,n,\begin{gathered} \mathbb{P}(X=k)=\binom{n}{k}p^kq^{n-k},\\ k=0,1,\ldots,n, \end{gathered}

and the PMF is zero elsewhere. Equivalently, XX is the sum of nn i.i.d. Bernoulli variables with success probability pp.


Interpretation

A binomial variable counts the successes in a fixed number nn of independent trials that each succeed with the same probability pp.

Probability bars of the Binomial(10, 0.3) distribution for 0 to 10 successes, peaking at 3, which is also the mean.

The figure shows X∼Bin⁡(10,0.3)X\sim\operatorname{Bin}(10,0.3), the number of successes in ten trials with success probability 0.30.3. The bars give P(X=k)=(10k)0.3k0.710−k\mathbb{P}(X=k)=\binom{10}{k}0.3^k0.7^{10-k} for k=0,…,10k=0,\ldots,10. The tallest bar is at k=3k=3, with probability about 0.270.27, and the bars for k≥8k\ge8 are nearly invisible: together they have probability about 0.00160.0016. The marked value np=3np=3 is the mean of the distribution: in ten trials with success probability 0.30.3, about three successes are typical.

Change nn and pp: the bars sit around EX=np\mathbb{E}X=np with spread npq\sqrt{npq}. Use cc and dd to add up P(c≤X≤d)\mathbb{P}(c\le X\le d), and hover over a bar for its formula.

The PMF has two factors. Each trial is a Bernoulli trial, and by independence any one fixed sequence with kk successes and n−kn-k failures, such as kk successes followed by n−kn-k failures, has probability pkqn−kp^kq^{n-k}. The binomial coefficient (nk)\binom nk counts how many such sequences there are, one for each choice of the kk positions of the successes. Forgetting it is a common slip: for three fair tosses, P(X=2)=(32)⋅18=38\mathbb{P}(X=2)=\binom32\cdot\tfrac{1}{8}=\tfrac{3}{8}, not 18\tfrac{1}{8}.

All three conditions matter. When the draws are made without replacement from a small population, the trials are not independent and the count is hypergeometric instead. When the number of trials is not fixed but one waits for the first success, the first success distribution applies.


Key Results

  • EX=np\mathbb{E}X=np and Var⁡(X)=np(1−p)\operatorname{Var}(X)=np(1-p).
  • MGF MX(t)=(1−p+pet)nM_X(t)=(1-p+p\mathrm{e}^t)^n.

Examples

  • For three fair tosses, P(X=2)=(32)(1/2)3=3/8\mathbb{P}(X=2)=\binom32(1/2)^3=3/8.
  • For n=10n=10, p=0.2p=0.2, the count has mean 22, variance 1.61.6, and no-success probability 0.8100.8^{10}.

Further Properties

The binomial count is a sum of independent Bernoulli trials. In the rare-event limit n→∞n\to\infty, pn→0p_n\to0, and npn→λnp_n\to\lambda, its distribution converges to Pois⁡(λ)\operatorname{Pois}(\lambda).

Prerequisites

Sources

Aliases: Bin(n,p), binomial random variable, binomial r.v., binomial variable Symbols: infinity, lambda, square root

Last updated: 20 October 2026 03:02