Skip to content
GATEiit

GATE EC · Engineering Mathematics

Binomial distribution

The binomial distribution for the number of successes in n independent Bernoulli trials: PMF, mean, variance and mode, at-least-one and cumulative probabilities, Poisson and normal approximations, and bit errors in coded blocks.

Before you start

This topic comes before: Normal distribution, Poisson distribution

Concept notes

1. Bernoulli trials and the binomial PMF

A Bernoulli trial has two outcomes: success with probability p, failure with probability q=1−p.

Repeat it n times under these conditions:

  1. the number of trials n is fixed in advance;
  2. the trials are independent;
  3. p is the same in every trial.

Then X, the number of successes, is binomial, X∼Bin(n,p), with

P(X=k)=(nk)pkq n−k,k=0,1,…,n

(nk) counts the ways to place k successes among n trials; pkqn−k is the probability of any one such arrangement. The probabilities add to (p+q)n=1 by the binomial theorem, hence the name.

n=1 gives the Bernoulli distribution. A binomial variable is a sum of n independent Bernoulli variables: X=X1+⋯+Xn.

Recognise it in a question by the words "out of n", "exactly k", "at least one", with independent identical trials: coin tosses, dice, bits through a channel with error probability p, components that fail independently.

Not binomial: drawing without replacement from a small lot (trials are dependent, that is hypergeometric), or "number of trials until the first success" (that is geometric, P(N=k)=qk−1p).

kP(X = k)0.10.20.30.16800.36010.30920.13230.02840.0025mean np = 1.5Bin(5, 0.3): the mode is k = 1, and the tail to the right is longer
PMF of Bin(5, 0.3); the bars add to 1 and the mean np = 1.5 lies between the two tallest bars

2. Mean, variance, mode and shape

Because X is a sum of n independent Bernoulli variables, each with mean p and variance pq:

E[X]=np,Var(X)=npq,σ=npq

Useful consequences:

  • Var(X)=npq<np=E[X] for 0<p<1: the variance is always less than the mean. A question saying mean 3, variance 4 describes no binomial.
  • Given mean and variance: q=Varmean, then p=1−q and n=mean/p.
  • For fixed n, the variance is largest at p=1/2, where it equals n/4.

Mode (most likely value): let m=(n+1)p.

  • If m is not an integer, the mode is ⌊m⌋.
  • If m is an integer, there are two modes, m−1 and m.

Shape. p=1/2 gives a symmetric PMF: P(X=k)=P(X=n−k). For p<1/2 the PMF leans left with a longer right tail; for p>1/2 the reverse.

Ratio of successive terms (handy for finding the mode or computing a run of terms):

P(X=k+1)P(X=k)=n−kk+1⋅pq

Sum rule. If X∼Bin(n1,p) and Y∼Bin(n2,p) are independent with the same p, then X+Y∼Bin(n1+n2,p).

The moment generating function is M(t)=(q+pet)n.

3. At least, at most, and how many trials

Most GATE questions need a sum of a few PMF terms. Use the complement whenever it is shorter.

Event Formula
no success qn
at least one success 1−qn
exactly one npq n−1
at most one qn+npq n−1
at least two 1−qn−npq n−1
at least k 1−∑j=0k−1(nj)pjqn−j

How many trials are needed? For P(at least one success)≥P0:

1−qn≥P0  ⟺  n≥ln⁡(1−P0)ln⁡q

and round up to the next integer (both logarithms are negative, so the inequality direction stays).

Conditional questions. "Given that at least one success occurred, find the probability of exactly one" is npqn−11−qn. Divide by the probability of the condition.

Write q correctly: if p is the probability of a defect, then "good items" is binomial with parameter q. Decide which outcome you are counting before writing the formula.

4. Bit errors, coding and approximations

Bit errors. A block of n bits passes through a binary symmetric channel with bit error probability p, errors independent. The number of bit errors is Bin(n,p).

  • Block received with no error: (1−p)n≈1−np for small np.
  • A code that corrects up to t errors fails when more than t errors occur: Pblock error=1−∑j=0t(nj)pj(1−p)n−j.
  • Repetition code (send each bit 3 times, decide by majority): the decision is wrong when 2 or 3 copies flip, Pe=3p2(1−p)+p3. For p=0.1 this is 0.028, much less than 0.1.

Poisson approximation. When n is large and p small with λ=np moderate,

(nk)pkqn−k≈e−λλkk!

Normal approximation. When npq is large (a common rule is np≥5 and nq≥5), X is close to N(np,npq). Use a continuity correction: P(X≤k)≈Φ ⁣(k+0.5−npnpq).

Situation Use
small n, any p exact binomial
large n, small p, np moderate Poisson with λ=np
large n, p not extreme normal with continuity correction

Formulas to remember

Binomial PMF
P(X=k)=(nk)pk(1−p)n−k,k=0,…,n
Mean and variance
E[X]=np,Var(X)=np(1−p)
ModeTwo modes, (n+1)p−1 and (n+1)p, when (n+1)p is an integer
mode=⌊(n+1)p⌋
At least one success
P(X≥1)=1−(1−p)n
Trials neededRound up
n≥ln⁡(1−P0)ln⁡(1−p)
Successive-term ratio
P(k+1)P(k)=n−kk+1⋅p1−p
Poisson approximation
P(X=k)≈e−np(np)kk!
Majority vote of 3 repetitions
Pe=3p2(1−p)+p3

Common mistakes

  • Forgetting the factor nCk and giving only p^k q^(n−k), the probability of one particular arrangement.
  • Summing many terms for at least one instead of using 1 − q^n.
  • Rounding down the number of trials needed; the answer from the logarithm must be rounded up.
  • Using the binomial for draws without replacement from a small lot, where the trials are not independent.
  • Mixing up p and q when the question counts failures (defects, errors) rather than successes.
  • Accepting a mean smaller than the variance; no binomial has that.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Errors in an 8-bit packet

numerical

Bits of an 8-bit packet are flipped independently with probability 0.1. Find the probability of (a) no error, (b) exactly one error. (c) If a code corrects any single error, what is the probability that the packet is decoded wrongly?

  1. Step 1: Identify $n$, $p$ and the count.

    Try it on paper first.

Example 2: Finding n and p from mean and variance

numerical

A binomial variable has mean 4 and variance 3. Find n, p and P(X=0).

  1. Step 1: Divide variance by mean.

    Try it on paper first.

Example 3: How many attempts are enough

numerical

Each independent attempt to acquire a weak signal succeeds with probability 0.2. Find the least number of attempts that gives at least a 95% chance of at least one success.

  1. Step 1: Write the condition with the complement.

    Try it on paper first.

Example 4: Gain from a repetition code

numerical

Each bit is sent three times over a channel with bit error probability p=0.1, and the receiver decides by majority. Find the probability that a decoded bit is wrong.

  1. Step 1: When is the majority decision wrong?

    Try it on paper first.

Previous year questions

1 official GATE EC question on this topic, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.