NDA Maths · Binomial Distribution

Mean, Variance, and Recovering the Parameters

B(n, p) has mean np and variance npq, and most PYQs run this backwards — given the mean and variance, recover n and p.

Why this matters

The other 15 PYQs live here, and they are remarkably formulaic: two facts, mean = np and variance = npq, generate almost every question. The signature move is the back-solve — divide variance by mean to get q, then read off p and n. A second family gives you a relation between two probabilities (like 9·P(X=4) = P(X=2)) and asks for p. Both reduce to one or two lines once you know the pattern.

Concept 1 of 7

Why the Mean Is np and the Variance npq

Intuition

Think of XX as a sum of nn one-or-zero scores, one per trial. Each trial contributes an average of pp and the contributions add up; because the trials are independent, their variances add too.

Definition

Write X=I1+I2++InX = I_1 + I_2 + \dots + I_n, where Ij=1I_j = 1 on success and 00 on failure.

  • One trial: mean =p= p, variance =pq= pq.
  • Means always add: E(X)=npE(X) = np.
  • Variances add for INDEPENDENT trials: Var(X)=npq\operatorname{Var}(X) = npq.

That independence is exactly why the binomial conditions matter — drop it and the variance formula breaks.

Mean and variance of one trial

E(I)=p,Var(I)=pqE(I) = p, \qquad \operatorname{Var}(I) = pq

Worked example

Use the single-trial values to write the mean and variance of B(n,p)B(n, p).
  1. Each of the nn trials contributes mean pp; means add, so E(X)=npE(X) = np.
  2. Each contributes variance pqpq; for independent trials variances add, so Var(X)=npq\operatorname{Var}(X) = npq.
Answer:E(X)=np, Var(X)=npqE(X) = np,\ \operatorname{Var}(X) = npq

Concept 2 of 7

Mean, Variance, and Standard Deviation

Intuition

Given nn and pp, the three summary numbers drop straight out. Standard deviation is just the square root of the variance — and the variance is always smaller than the mean.

Definition

For XB(n,p)X \sim B(n, p) with q=1pq = 1 - p:

  • Mean: μ=np\mu = np.
  • Variance: σ2=npq\sigma^2 = npq.
  • Standard deviation: σ=npq\sigma = \sqrt{npq}.

A built-in check: since q<1q < 1, the variance npqnpq is always less than the mean npnp. If a computed variance exceeds the mean, something is wrong.

The three summary measures

μ=np,σ2=npq,σ=npq\mu = np, \qquad \sigma^2 = npq, \qquad \sigma = \sqrt{npq}

Visualization · mean np at the centre, spread √(npq)

012345678910mean = np = 4±σ

For B(10, 0.4): mean np = 4 (the dashed centre), variance npq = 2.4, so σ = √2.4 ≈ 1.55 (the shaded band). Notice σ² = 2.4 is less than the mean 4 — the variance npq is always below the mean np because q < 1, a quick sanity check on any answer.

Worked example

A fair coin is tossed 12 times. Find the mean, variance, and standard deviation of the number of heads.
  1. n=12n = 12, p=12p = \tfrac12, q=12q = \tfrac12.
  2. μ=np=1212=6\mu = np = 12 \cdot \tfrac12 = 6.
  3. σ2=npq=121212=3\sigma^2 = npq = 12 \cdot \tfrac12 \cdot \tfrac12 = 3, so σ=3\sigma = \sqrt{3}.
Answer:μ=6, σ2=3, σ=3\mu = 6,\ \sigma^2 = 3,\ \sigma = \sqrt{3}

From the bank · past-year question

Example 2Binomial DistributionMODERATE
In eight throws of a die, 5 or 6 is considered a success. The mean and standard deviation of total number of successes is respectively given by

[Q114 · Apr · 2019]

Standard deviation is √(npq), not npq

Questions love to give the standard deviation and call it the variance, or vice versa. Square the SD to get the variance before using σ2=npq\sigma^2 = npq — e.g. SD =2= \sqrt2 means variance =2= 2.

Concept 3 of 7

Recovering n and p from the Moments

Intuition

Given the mean and the variance, dividing one by the other cancels npnp and hands you qq directly. From qq you get pp, and from the mean you get nn.

Definition

The standard back-solve:

Var(X)E(X)=npqnp=q.\frac{\operatorname{Var}(X)}{E(X)} = \frac{npq}{np} = q.

  • Step 1: q=variancemeanq = \dfrac{\text{variance}}{\text{mean}}, then p=1qp = 1 - q.
  • Step 2: n=meanpn = \dfrac{\text{mean}}{p}.

If you are handed the standard deviation, square it to the variance first.

Divide variance by mean to get q

q=σ2μ=npqnpq = \dfrac{\sigma^2}{\mu} = \dfrac{npq}{np}

Worked example

A binomial distribution has mean 8 and standard deviation 2. Find n and p.
  1. Variance =σ2=22=4= \sigma^2 = 2^2 = 4; mean =8= 8.
  2. q=48=12q = \dfrac{4}{8} = \tfrac12, so p=12p = \tfrac12.
  3. n=meanp=81/2=16n = \dfrac{\text{mean}}{p} = \dfrac{8}{1/2} = 16.
Answer:n=16, p=12n = 16,\ p = \tfrac12
Practice this conceptself-check · 2 quick reps

Try it yourself

In B(n,p)B(n, p) the mean is 23\tfrac23 and the variance is 59\tfrac59. Find P(X=2)P(X = 2).

Practice — Level 1 (2 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Mean 200, variance 160. Find n.
  2. 2.
    Mean 6, SD 2\sqrt2. Find n and p.

From the bank · past-year question

Example 3Binomial DistributionMODERATE
The mean and standard deviation of a binomial distribution are 12 and 2 respectively. What is the number of trials?

[Q120 · Apr · 2017]

Variance over mean gives q, not p

The ratio σ2/μ=q\sigma^2/\mu = q (the FAILURE probability). Forgetting the final p=1qp = 1 - q step lands you on the complement and the wrong nn.

Concept 4 of 7

When You Are Given a Relation, Not the Values

Intuition

Sometimes the question gives a relationship like 'the mean is three times the variance' instead of numbers. Substituting npnp and npqnpq into the relation still collapses to a single equation in qq.

Definition

Replace the words with μ=np\mu = np and σ2=npq\sigma^2 = npq, then cancel the common npnp:

μ=cσ2  np=c(npq)  1=cq  q=1c.\mu = c\,\sigma^2 \ \Longrightarrow\ np = c\,(npq) \ \Longrightarrow\ 1 = cq \ \Longrightarrow\ q = \tfrac1c.
So 'mean =c×= c \times variance' gives q=1cq = \tfrac1c immediately. With pp known you can then find any probability, given nn.

Mean equals c times variance

np=c(npq)  q=1cnp = c\,(npq) \ \Longrightarrow\ q = \dfrac{1}{c}

Worked example

In a binomial distribution the mean is 4 times the variance. Find p.
  1. np=4(npq)np = 4(npq); cancel npnp: 1=4q1 = 4q.
  2. q=14q = \tfrac14, so p=114=34p = 1 - \tfrac14 = \tfrac34.
Answer:p=34p = \tfrac34

From the bank · past-year question

Example 4Binomial DistributionMODERATE
In Binomial distribution, mean is three times variance. What is the probability of exactly 3 successes in 5 trials?

[Q101 · Apr · 2018]

Cancel np, do not cancel the wrong factor

From np=cnpqnp = c\,npq, the surviving factor is qq (giving q=1/cq = 1/c). Cancelling to leave pp instead — a common slip — inverts the answer.

Concept 5 of 7

Finding p from a Probability Equation

Intuition

When two binomial probabilities are set equal (or in a fixed ratio), the messy parts cancel. Write both with the formula, divide, and a clean equation in pp survives.

Definition

Given a relation between P(X=a)P(X = a) and P(X=b)P(X = b), write each as (nk)pkqnk\binom{n}{k}p^k q^{\,n-k} and take the ratio so common powers cancel. Two handles make this fast:

  • Binomial coefficients are symmetric: (na)=(nna)\binom{n}{a} = \binom{n}{n-a} (e.g. (64)=(62)\binom{6}{4} = \binom{6}{2}), so they often cancel outright.
  • A ratio P(X=b)P(X=a)\dfrac{P(X=b)}{P(X=a)} reduces to powers of pp and qq only.

Solve the resulting equation (take the positive root, since 0<p<10 < p < 1).

Ratio of two probabilities

P(X=b)P(X=a)=(nb)(na)pbaqab\dfrac{P(X=b)}{P(X=a)} = \dfrac{\binom{n}{b}}{\binom{n}{a}}\, p^{\,b-a}\, q^{\,a-b}

Worked example

For XB(5,p)X \sim B(5, p), P(X=2)=P(X=3)P(X = 2) = P(X = 3). Find p.
  1. (52)p2q3=(53)p3q2\binom{5}{2}p^2 q^3 = \binom{5}{3}p^3 q^2; since (52)=(53)=10\binom{5}{2} = \binom{5}{3} = 10, they cancel.
  2. q3/q2=p3/p2q^3 \,/\, q^2 = p^3 \,/\, p^2 gives q=pq = p.
  3. With p+q=1p + q = 1 and p=qp = q: p=12p = \tfrac12.
Answer:p=12p = \tfrac12
Practice this conceptself-check

Try it yourself

For XB(4,p)X \sim B(4, p), P(X=1)=P(X=2)P(X = 1) = P(X = 2). Find p.

From the bank · past-year question

Example 5Binomial DistributionMODERATE
In B(n,p)B(n,p), n=6n=6 and 9P(X=4)=P(X=2)9P(X=4)=P(X=2). What is pp equal to?

[Q115 · Sep · 2023]

Use coefficient symmetry before brute force

Spotting (64)=(62)\binom{6}{4} = \binom{6}{2} cancels the coefficients in one step. Expanding them numerically still works but invites arithmetic slips — and forgetting to take the positive root of 9p2=(1p)29p^2 = (1-p)^2 loses the intended answer.

Concept 6 of 7

Variance Is Unchanged by Y = n − X

Intuition

Counting failures instead of successes (Y=nXY = n - X) is the same distribution with pp and qq swapped — and since variance is npqnpq, swapping pp and qq leaves it untouched.

Definition

If XB(n,p)X \sim B(n, p) and Y=nXY = n - X (so YB(n,q)Y \sim B(n, q)):

  • Variance is symmetric in p,qp, q: Var(Y)=nqp=npq=Var(X)\operatorname{Var}(Y) = n q p = npq = \operatorname{Var}(X).
  • The means are complementary: E(Y)=nq=nnpE(Y) = nq = n - np.

So whenever X+Y=nX + Y = n with XX binomial, Var(Y)=Var(X)\operatorname{Var}(Y) = \operatorname{Var}(X) — no recomputation needed.

Variance survives the swap

Var(nX)=npq=Var(X)\operatorname{Var}(n - X) = npq = \operatorname{Var}(X)

Worked example

XB(50,35)X \sim B(50, \tfrac35) and Y=50XY = 50 - X. Find Var(Y)\operatorname{Var}(Y).
  1. Var(Y)=Var(X)=npq=503525\operatorname{Var}(Y) = \operatorname{Var}(X) = npq = 50 \cdot \tfrac35 \cdot \tfrac25.
  2. =50625=12= 50 \cdot \dfrac{6}{25} = 12.
Answer:Var(Y)=12\operatorname{Var}(Y) = 12

From the bank · past-year question

Example 6Binomial DistributionEASY
Let XX and YY be two random variables such that X+Y=100X+Y=100. If XX follows Binomial distribution with parameters n=100n=100 and p=45p=\frac{4}{5}, what is the variance of YY?

[Q105 · Apr · 2023]

Variance does not flip; the mean does

Y=nXY = n - X leaves the variance equal to Var(X)\operatorname{Var}(X), but its mean becomes nnpn - np. Do not 'adjust' the variance for the swap — only the mean changes.

Concept 7 of 7

The Symmetric Case: Mean = n/2 when p = ½

Intuition

When success and failure are equally likely, the distribution is symmetric and balances exactly in the middle, at n/2n/2. A distribution whose frequencies are the binomial coefficients is precisely this case.

Definition

For p=12p = \tfrac12: μ=np=n2\mu = np = \tfrac{n}{2} and σ2=npq=n4\sigma^2 = npq = \tfrac{n}{4}. A variable taking values 0,1,,n0, 1, \dots, n with frequencies (n0),(n1),,(nn)\binom{n}{0}, \binom{n}{1}, \dots, \binom{n}{n} has total frequency 2n2^n and mean

kk(nk)k(nk)=n2n12n=n2,\frac{\sum_{k} k\binom{n}{k}}{\sum_{k}\binom{n}{k}} = \frac{n\,2^{\,n-1}}{2^{n}} = \frac{n}{2},
the same n/2n/2 — because those frequencies are exactly B(n,12)B(n, \tfrac12) up to the factor 2n2^n.

Symmetric binomial mean

p=12  μ=n2p = \tfrac12 \ \Longrightarrow\ \mu = \dfrac{n}{2}

Worked example

A fair coin is tossed 8 times. Without summing, state the mean number of heads.
  1. p=12p = \tfrac12, so the distribution is symmetric about its centre.
  2. μ=n2=82=4\mu = \dfrac{n}{2} = \dfrac{8}{2} = 4.
Answer:μ=4\mu = 4

From the bank · past-year question

Example 7Binomial DistributionMODERATE
If a variable takes values 0,1,2,3,,n0, 1, 2, 3, \ldots, n with frequencies 1,C(n,1),C(n,2),C(n,3),,C(n,n)1, C(n,1), C(n,2), C(n,3), \ldots, C(n,n) respectively, then the arithmetic mean is

[Q115 · Sep · 2017]

Symmetry needs p = ½, not just 'two outcomes'

The mean is n/2n/2 ONLY when p=q=12p = q = \tfrac12. With a biased trial the peak shifts to npnp — do not default to n/2n/2 unless success and failure are equally likely.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (7)

Watch out for (6)

Mastery check — 5 interleaved questions

Try each one before clicking. Questions are interleaved across the concepts above, not grouped — interleaving sharpens transfer.

Example 1Binomial DistributionMODERATE
In a binomial distribution, the mean is 23\dfrac{2}{3} and the variance is 59\dfrac{5}{9}. What is the probability that X=2X = 2?

[Q109 · Sep · 2017]

Example 2Binomial DistributionMODERATE
Let X be a random variable following binomial distribution with parameters n=6n = 6 and p=kp = k. Further, 9P(X=4)=P(X=2)9P(X=4) = P(X=2).
What is the value of P(X=3)P(X=3)?

[Q108 · Apr · 2025]

Example 3Binomial DistributionHARD
If a random variable XX follows binomial distribution with mean 5 and variance 4523\frac{45}{23}, P(X=3)=λ4λP(X=3)=\lambda\cdot4^{\lambda}, then what is the value of λ\lambda?

[Q102 · Apr · 2024]

Example 4Binomial DistributionMODERATE
Let X be a random variable following binomial distribution with parameters n=6n = 6 and p=kp = k. Further, 9P(X=4)=P(X=2)9P(X=4) = P(X=2).
What is the value of kk?

[Q107 · Apr · 2025]

Example 5Binomial DistributionHARD
In a binomial distribution, the mean is 23\frac{2}{3} and variance is 59\frac{5}{9}. What is the probability that random variable X=2X=2?

[Q118 · Apr · 2021]

Drill every past-year question on this subtopic

15 questions from the bank — paginated, with cart and Word-export support.