TExcelTAD
Home › School Probability & Statistics on Paper › Bernoulli Trials and the Binomial Distribution

Bernoulli Trials and the Binomial Distribution

In everyday life and science, many processes yield only two possible results: a medical test is positive or negative, a light bulb works or is defective, a student passes or fails a test, a coin lands on Heads or Tails.

When we repeat such two-outcome experiments across a series of independent trials, we enter the domain of the Binomial Distribution. Named after the Swiss mathematician Jacob Bernoulli, the binomial distribution is one of the most powerful tools in probability theory for calculating the exact likelihood of observing a specific number of successes on paper.


1. The Bernoulli Trial: Two Outlines

A Bernoulli trial is an individual random experiment that has exactly two mutually exclusive outcomes:

  • Success (SS): the event of interest, occurring with probability pp.
  • Failure (FF): the complementary event, occurring with probability q=1−pq = 1 - p.

Since SS and FF encompass all possibilities:

p+q=1  ⟹  q=1−pp + q = 1 \implies q = 1 - p

[!NOTE] The term "Success" is purely mathematical notation. If an epidemiologist is tracking a disease, testing positive for a virus is labeled the "Success" (SS) because it is the outcome being counted, even though it is clinically undesirable.


2. The Four "BINS" Criteria for a Binomial Experiment

Before applying any binomial formula on paper, you must verify that the experiment satisfies the four BINS conditions:

BBinary OutcomesEach trial has exactly two outcomes: Success or Failure.IIndependent TrialsThe outcome of any trial does not alter the probability of any other.NNumber of Trials FixedThe experiment runs for a predetermined integer count n trials.SSame ProbabilityThe probability of success p remains identical on every trial.\begin{array}{|c|l|l|} \hline \mathbf{B} & \mathbf{Binary\ Outcomes} & \text{Each trial has exactly two outcomes: Success or Failure.} \\ \hline \mathbf{I} & \mathbf{Independent\ Trials} & \text{The outcome of any trial does not alter the probability of any other.} \\ \hline \mathbf{N} & \mathbf{Number\ of\ Trials\ Fixed} & \text{The experiment runs for a predetermined integer count } n \text{ trials.} \\ \hline \mathbf{S} & \mathbf{Same\ Probability} & \text{The probability of success } p \text{ remains identical on every trial.} \\ \hline \end{array}

If any condition fails (for example, sampling cards without replacement from a small deck where pp shifts from draw to draw), the distribution is not binomial (it is hypergeometric).


3. The Binomial Probability Formula

Let the discrete random variable XX denote the total number of successes in nn independent Bernoulli trials:

X∼B(n,p)X \sim B(n, p)

The possible values of XX are the integers k∈{0,1,2,…,n}k \in \{0, 1, 2, \dots, n\}.

The probability of obtaining exactly kk successes in nn trials is given by:

P(X=k)=(nk)pk(1−p)n−k=n!k!(n−k)!⋅pk⋅qn−kP(X = k) = \binom{n}{k} p^k (1 - p)^{n-k} = \frac{n!}{k!(n - k)!} \cdot p^k \cdot q^{n-k}

Deconstructing the Formula on Paper

Every binomial calculation is a product of three distinct factors:

(nk)⏟1. Number of Arrangements×pk⏟2. Probability of k Successes×(1−p)n−k⏟3. Probability of (n−k) Failures\underbrace{\binom{n}{k}}_{\text{1. Number of Arrangements}} \times \underbrace{p^k}_{\text{2. Probability of } k \text{ Successes}} \times \underbrace{(1-p)^{n-k}}_{\text{3. Probability of } (n-k) \text{ Failures}}
  1. (nk)=n!k!(n−k)!\binom{n}{k} = \frac{n!}{k!(n-k)!}: The combination formula counts how many different orderings of kk successes and (n−k)(n-k) failures can be constructed across the nn trial slots.
  2. pkp^k: By independence, the probability that all kk specified slots yield a success is p×p×⋯×p=pkp \times p \times \dots \times p = p^k.
  3. (1−p)n−k=qn−k(1-p)^{n-k} = q^{n-k}: The remaining (n−k)(n-k) slots must all be failures, each with probability q=1−pq = 1 - p.

4. Cumulative Events: "At Least" and "At Most"

Examination questions frequently ask for ranges of successes rather than a single value:

  • "At most kk successes" (X≤kX \le k): Sum the probabilities from 00 up to kk:
    P(X≤k)=P(X=0)+P(X=1)+⋯+P(X=k)P(X \le k) = P(X = 0) + P(X = 1) + \dots + P(X = k)
  • "At least kk successes" (X≥kX \ge k): Sum from kk up to nn:
    P(X≥k)=P(X=k)+P(X=k+1)+⋯+P(X=n)P(X \ge k) = P(X = k) + P(X = k+1) + \dots + P(X = n)
  • The "At Least One" Shortcut: Calculating P(X≥1)P(X \ge 1) directly requires summing nn terms. By the complement rule, it is far faster on paper to calculate:
    P(X≥1)=1−P(X=0)=1−(n0)p0qn=1−qnP(X \ge 1) = 1 - P(X = 0) = 1 - \binom{n}{0} p^0 q^n = 1 - q^n

5. Step-by-Step Worked Examples

Worked Example 1: The Multiple Choice Exam Guess

Problem: A pop quiz consists of 55 independent multiple-choice questions. Each question has 44 options, with exactly 11 correct answer. A student guesses randomly on every question.

  1. Define the parameters n,p,qn, p, q and verify the BINS criteria.
  2. What is the probability that the student answers exactly 3 questions correctly?
  3. What is the probability that the student answers at least 1 question correctly?

Step 1: Verify Parameters

  • Trials: n=5n = 5 fixed questions.
  • Binary: Correct (SS) or Incorrect (FF).
  • Independent: Random guesses do not affect subsequent questions.
  • Constant pp: p=14=0.25p = \frac{1}{4} = 0.25, so q=1−14=34=0.75q = 1 - \frac{1}{4} = \frac{3}{4} = 0.75.
  • Model: X∼B(5,14)X \sim B\left(5, \frac{1}{4}\right).

Step 2: Probability of Exactly 3 Correct (k=3k = 3)

Substitute n=5,k=3,p=14,q=34n = 5, k = 3, p = \frac{1}{4}, q = \frac{3}{4} into the formula:

P(X=3)=(53)(14)3(34)5−3P(X = 3) = \binom{5}{3} \left(\frac{1}{4}\right)^3 \left(\frac{3}{4}\right)^{5-3}

Compute each factor step-by-step:

  1. Combination factor:
    (53)=5!3!2!=5×42×1=10\binom{5}{3} = \frac{5!}{3!2!} = \frac{5 \times 4}{2 \times 1} = 10
  2. Success power:
    (14)3=1343=164\left(\frac{1}{4}\right)^3 = \frac{1^3}{4^3} = \frac{1}{64}
  3. Failure power:
    (34)2=3242=916\left(\frac{3}{4}\right)^2 = \frac{3^2}{4^2} = \frac{9}{16}

Multiply the components:

P(X=3)=10×164×916=901,024=45512≈0.08789 (8.79%)\begin{aligned} P(X = 3) &= 10 \times \frac{1}{64} \times \frac{9}{16} \\ &= \frac{90}{1{,}024} = \frac{45}{512} \approx 0.08789\ (8.79\%) \end{aligned}

Step 3: Probability of At Least 1 Correct (X≥1X \ge 1)

Use the complement shortcut:

P(X≥1)=1−P(X=0)=1−[(50)(14)0(34)5]=1−[1×1×3545]=1−2431,024=1,024−2431,024=7811,024≈0.7627 (76.27%)\begin{aligned} P(X \ge 1) &= 1 - P(X = 0) \\ &= 1 - \left[ \binom{5}{0} \left(\frac{1}{4}\right)^0 \left(\frac{3}{4}\right)^5 \right] \\ &= 1 - \left[ 1 \times 1 \times \frac{3^5}{4^5} \right] \\ &= 1 - \frac{243}{1{,}024} = \frac{1{,}024 - 243}{1{,}024} \\ &= \frac{781}{1{,}024} \approx 0.7627\ (76.27\%) \end{aligned}

Worked Example 2: Basketball Free Throws

Problem: A basketball player has an established career free-throw percentage of 80%80\% (p=0.80p = 0.80). During a tournament game, she takes 44 independent free-throw attempts.

  1. Calculate the probability that she makes all 4 free throws.
  2. Calculate the probability that she makes at most 2 free throws.

Step 1: Identify Parameters

  • n=4n = 4
  • p=0.8=45p = 0.8 = \frac{4}{5}
  • q=1−0.8=0.2=15q = 1 - 0.8 = 0.2 = \frac{1}{5}
  • X∼B(4,0.8)X \sim B(4, 0.8)

Step 2: Probability of All 4 (P(X=4)P(X = 4))

P(X=4)=(44)(0.8)4(0.2)0=1×(0.8)4×1=0.4096=256625 (40.96%)\begin{aligned} P(X = 4) &= \binom{4}{4} (0.8)^4 (0.2)^0 \\ &= 1 \times (0.8)^4 \times 1 \\ &= 0.4096 = \frac{256}{625}\ (40.96\%) \end{aligned}

Step 3: Probability of At Most 2 (P(X≤2)P(X \le 2))

On paper, P(X≤2)=P(X=0)+P(X=1)+P(X=2)P(X \le 2) = P(X = 0) + P(X = 1) + P(X = 2). Calculate each term individually:

  1. For k=0k = 0:
    P(X=0)=(40)(0.8)0(0.2)4=1×1×0.0016=0.0016P(X = 0) = \binom{4}{0} (0.8)^0 (0.2)^4 = 1 \times 1 \times 0.0016 = 0.0016
  2. For k=1k = 1:
    P(X=1)=(41)(0.8)1(0.2)3=4×0.8×0.008=0.0256P(X = 1) = \binom{4}{1} (0.8)^1 (0.2)^3 = 4 \times 0.8 \times 0.008 = 0.0256
  3. For k=2k = 2:
    P(X=2)=(42)(0.8)2(0.2)2=6×0.64×0.04=0.1536P(X = 2) = \binom{4}{2} (0.8)^2 (0.2)^2 = 6 \times 0.64 \times 0.04 = 0.1536

Sum the three individual terms:

P(X≤2)=0.0016+0.0256+0.1536=0.1808 (18.08%)\begin{aligned} P(X \le 2) &= 0.0016 + 0.0256 + 0.1536 \\ &= 0.1808\ (18.08\%) \end{aligned}

Worked Example 3: Industrial Batch Quality Control

Problem: A factory manufactures precision microchips. Historical records show that 10%10\% (p=0.10p = 0.10) of chips produced are defective. A quality inspector randomly samples n=3n = 3 chips from an enormous warehouse shipment. Construct the complete paper probability distribution table for XX, where XX is the number of defective chips.

Step-by-Step Calculation:

Here n=3n = 3, p=0.1p = 0.1, q=0.9q = 0.9.

P(X=0)=(30)(0.1)0(0.9)3=1×1×0.729=0.729P(X=1)=(31)(0.1)1(0.9)2=3×0.1×0.81=0.243P(X=2)=(32)(0.1)2(0.9)1=3×0.01×0.9=0.027P(X=3)=(33)(0.1)3(0.9)0=1×0.001×1=0.001\begin{aligned} P(X = 0) &= \binom{3}{0} (0.1)^0 (0.9)^3 = 1 \times 1 \times 0.729 = 0.729 \\ P(X = 1) &= \binom{3}{1} (0.1)^1 (0.9)^2 = 3 \times 0.1 \times 0.81 = 0.243 \\ P(X = 2) &= \binom{3}{2} (0.1)^2 (0.9)^1 = 3 \times 0.01 \times 0.9 = 0.027 \\ P(X = 3) &= \binom{3}{3} (0.1)^3 (0.9)^0 = 1 \times 0.001 \times 1 = 0.001 \end{aligned}

Verification Check:

Sum the distribution to confirm total probability equals 11:

∑k=03P(X=k)=0.729+0.243+0.027+0.001=1.000✓\sum_{k=0}^{3} P(X = k) = 0.729 + 0.243 + 0.027 + 0.001 = 1.000 \quad \checkmark

Paper Summary Table:

k0123P(X=k)0.7290.2430.0270.001\begin{array}{|c|c|c|c|c|} \hline k & 0 & 1 & 2 & 3 \\ \hline P(X = k) & 0.729 & 0.243 & 0.027 & 0.001 \\ \hline \end{array}

6. Common Mistakes & Paper Traps

[!CAUTION] Trap 1: Dropping the Combination Factor (nk)\binom{n}{k}. A student asked to find the probability of 22 Heads in 33 coin flips writes (0.5)2(0.5)1=0.125(0.5)^2 (0.5)^1 = 0.125. This only calculates the probability of one specific sequence, namely (H,H,T)(H, H, T). It completely ignores the other orderings: (H,T,H)(H, T, H) and (T,H,H)(T, H, H). You must always multiply by (32)=3\binom{3}{2} = 3 to account for all possible arrangements:

P(X=2)=(32)(0.5)2(0.5)1=3×0.125=0.375P(X = 2) = \binom{3}{2} (0.5)^2 (0.5)^1 = 3 \times 0.125 = 0.375

[!WARNING] Trap 2: Confusing "At Most" and "At Least".

  • "At most 22" means ≤2\le 2 (outcomes {0,1,2}\{0, 1, 2\}).
  • "At least 22" means ≥2\ge 2 (outcomes {2,3,…,n}\{2, 3, \dots, n\}).
  • "Fewer than 22" means <2< 2 (outcomes {0,1}\{0, 1\}).
  • "More than 22" means >2> 2 (outcomes {3,4,…,n}\{3, 4, \dots, n\}). Always list out the integers matching the English phrasing before substituting into formulas.

7. Pencil & Paper Practice

Practice 1

A fair 6-sided die is rolled n=4n = 4 times. Success is defined as rolling a six (S={6}S = \{6\}).

  1. State the values of pp and qq.
  2. Find the probability of rolling exactly two sixes.
  3. Find the probability of rolling at least one six.

??? success "Solution to Practice 1" 1. p=16p = \frac{1}{6}, q=1−16=56q = 1 - \frac{1}{6} = \frac{5}{6}.

2. Exactly two sixes ($k = 2$):
```math
\begin{aligned}
P(X = 2) &= \binom{4}{2} \left(\frac{1}{6}\right)^2 \left(\frac{5}{6}\right)^2 \\
&= \frac{4 \times 3}{2} \times \frac{1}{36} \times \frac{25}{36} \\
&= 6 \times \frac{25}{1{,}296} = \frac{150}{1{,}296} = \frac{25}{216} \approx 0.1157
\end{aligned}
```

3. At least one six ($X \ge 1$):
```math
\begin{aligned}
P(X \ge 1) &= 1 - P(X = 0) = 1 - \binom{4}{0} \left(\frac{1}{6}\right)^0 \left(\frac{5}{6}\right)^4 \\
&= 1 - 1 \times 1 \times \frac{625}{1{,}296} = \frac{1{,}296 - 625}{1{,}296} = \frac{671}{1{,}296} \approx 0.5177
\end{aligned}
```

Practice 2

A medical test has a false positive rate of 5%5\% (p=0.05p = 0.05). The test is administered to n=3n = 3 healthy individuals. Find the probability that at most one person tests positive.

??? success "Solution to Practice 2" Here n=3n = 3, p=0.05p = 0.05, q=0.95q = 0.95. We need P(X≤1)=P(X=0)+P(X=1)P(X \le 1) = P(X = 0) + P(X = 1).

* $P(X = 0) = \binom{3}{0} (0.05)^0 (0.95)^3 = 1 \times 1 \times 0.857375 = 0.857375$
* $P(X = 1) = \binom{3}{1} (0.05)^1 (0.95)^2 = 3 \times 0.05 \times 0.9025 = 0.135375$

Summing both terms:
```math
P(X \le 1) = 0.857375 + 0.135375 = 0.99275\ (99.28\%)
```

Test yourself

Which of the following scenarios violates the BINS conditions for a binomial distribution?

  1. Flipping a fair coin 10 times and counting the number of Tails
  2. Selecting 5 marbles one by one without replacement from a bag of 6 red and 4 blue marbles
  3. Rolling a standard die 8 times and counting how many times an odd number appears
  4. Inspecting 20 light bulbs with a fixed 3% defect rate produced by an automated machine

If X∼B(4,0.3)X \sim B(4, 0.3), what is the numerical value of P(X=1)P(X = 1)?

  1. 0.0270.027
  2. 0.41160.4116
  3. 0.10290.1029
  4. 0.3430.343

What is the fastest paper calculation method to find the probability of getting at least one success in nn independent trials with success probability pp?

  1. Sum (nk)pkqn−k\binom{n}{k} p^k q^{n-k} from k=1k = 1 to nn
  2. 1−(1−p)n1 - (1 - p)^n
  3. n×pn \times p
  4. (1−p)n−1(1 - p)^n - 1