girgit.org

Probability

Repeat and count: Bernoulli trials and the binomial distribution (JEE extra)

The big ideaRepeat the same yes-or-no experiment n times, independently, with the same success chance p each time; the number of successes X then has the binomial distribution \( \text{P}(X = r) = {}^n\text{C}_r\, p^r q^{\,n-r} \), with mean np and variance npq.

In simple words

Plant 5 seeds. Each one either grows or doesn't, and each has the same chance of growing, whatever the others do. How likely is it that exactly 4 grow? You pick which 4 grow, multiply their chances of growing and the last one's chance of not growing, then count how many ways you could have picked those 4.

Not in the current textbook, but JEE asks it: Bernoulli trials and the binomial distribution were the last section of this chapter before the 2023-24 rationalisation. They are standard JEE material ("exactly r successes in n trials", "find n and p from the mean and variance"), and the Miscellaneous Exercise of the current book still contains a question that needs them.

Bernoulli trials

Trials of an experiment are called Bernoulli trials if

  1. there is a fixed, finite number n of trials;
  2. the trials are independent of each other;
  3. each trial has exactly two outcomes, called success and failure;
  4. the chance of success, p, is the same in every trial. The chance of failure is \( q = 1 - p \).

"Success" just means the outcome you are counting; it need not be good news. Rolling a die 10 times and counting sixes is a set of Bernoulli trials (success = six, \( p = \frac16 \)). Drawing 5 cards without replacement and counting hearts is not, because the chance changes after each draw. With replacement, it is.

They are named after Jacob Bernoulli (1654–1705), whose book Ars Conjectandi (1713) first worked out this distribution.

Exactly r successes

Take a die rolled 4 times; what is the chance of exactly two sixes? One way is S S F F, with chance \( \frac16 \cdot \frac16 \cdot \frac56 \cdot \frac56 \) by independence. Every other order (S F S F, F F S S, …) has the same chance, and there are \( ^4\text{C}_2 = 6 \) ways to choose which two rolls are the sixes. So

\[ \text{P}(X = 2) = 6 \times \left(\tfrac16\right)^2 \left(\tfrac56\right)^2 = \tfrac{150}{1296} = \tfrac{25}{216} \]

In general, if X is the number of successes in n Bernoulli trials,

\[ \text{P}(X = r) = {}^n\text{C}_r\, p^r q^{\,n-r}, \qquad r = 0, 1, 2, \dots, n \]

This is the binomial distribution with parameters n and p, written B(n, p). The name comes from the binomial theorem: these probabilities are exactly the terms of \( (q + p)^n \), which is why they add up to \( 1^n = 1 \).

Worked examples

  1. Seeds. Each seed grows with chance 0.8, independently. Of 5 seeds, P(at least 4 grow) \( = {}^5\text{C}_4 (0.8)^4 (0.2) + (0.8)^5 = 0.4096 + 0.32768 = 0.73728 \).
  2. Ten coins. P(exactly 5 heads in 10 tosses) \( = \frac{^{10}\text{C}_5}{2^{10}} = \frac{252}{1024} = \frac{63}{256} \approx 0.25 \). The "most likely" result still happens only a quarter of the time.
  3. At least one. P(at least one six in 4 rolls) \( = 1 - \text{P}(X = 0) = 1 - \left(\frac56\right)^4 = \frac{671}{1296} \approx 0.52 \).
  4. How many trials? (JEE) How many times must a coin be tossed so that P(at least one head) exceeds 0.9? Need \( 1 - \left(\frac12\right)^n > 0.9 \), that is \( \left(\frac12\right)^n < 0.1 \). Since \( \frac18 = 0.125 \) and \( \frac1{16} = 0.0625 \), the least n is 4.

Try it: guess, then build B(n, p) and check it against four hundred simulated runs.

Mean and variance of B(n, p)

\[ E(X) = np, \qquad \text{Var}(X) = npq, \qquad \sigma = \sqrt{npq} \]

This makes sense: in 600 rolls of a die you expect about \( 600 \times \frac16 = 100 \) sixes. For 10 fair coin tosses, the mean number of heads is 5 and the variance is \( 10 \times \frac12 \times \frac12 = 2.5 \). Check against the last page: three tosses give mean \( \frac32 \) and variance \( 3 \times \frac14 = \frac34 \), as found there the long way.

A JEE favourite runs this backwards. If a binomial variable has mean 4 and variance 3, then \( \frac{npq}{np} = q = \frac34 \), so \( p = \frac14 \) and \( n = \frac{4}{1/4} = 16 \).

Don't mix these up

  • Binomial needs independent trials with a constant p. Draws without replacement are not binomial.
  • Don't forget the \( ^n\text{C}_r \): \( p^r q^{n-r} \) is the chance of one particular order of successes and failures.
  • Variance npq is always less than the mean np when p > 0 (since q < 1). If a question gives variance bigger than the mean, no binomial distribution fits.

Try it. A multiple-choice test has 5 questions, each with 4 options. A student guesses every answer. What is the chance she gets exactly 3 right?

Answer
n = 5, \( p = \frac14 \), \( q = \frac34 \). \( \text{P}(X = 3) = {}^5\text{C}_3 \left(\frac14\right)^3 \left(\frac34\right)^2 = 10 \times \frac{1}{64} \times \frac{9}{16} = \frac{90}{1024} = \frac{45}{512} \approx 0.088 \).

Words to know

Bernoulli trials
A fixed number of independent trials, each a success or failure, with the same p every time.
Success, failure
The outcome being counted, and the other one; P(success) = p, P(failure) = q = 1 − p.
Binomial distribution B(n, p)
P(X = r) = ⁿCᵣ pʳ qⁿ⁻ʳ for r = 0 to n.
Mean np, variance npq
The average number of successes, and their spread.

A fair coin is tossed 6 times. What is P(exactly 2 heads)?

  1. \( \frac{1}{64} \)
  2. \( \frac{15}{64} \)
  3. \( \frac13 \)

A binomial variable has mean 6 and variance 2. What are n and p?

  1. n = 18, p = \( \frac13 \)
  2. n = 9, p = \( \frac23 \)
  3. n = 12, p = \( \frac12 \)

Which of these is not a set of Bernoulli trials?

  1. Rolling a die 8 times and counting sixes
  2. Drawing 4 balls without replacement from a bag of 5 red and 5 blue, counting reds
  3. Drawing 4 balls with replacement from that bag, counting reds