Binomial Distribution

AS · S1 · 3 min

The binomial distribution counts successes in a fixed number of independent trials that each succeed with the same probability. It is the model for "how many out of nn", from defective items in a batch to heads in a run of tosses.

The model

Key result

X∼B(n,p)X \sim B(n, p) when there are nn independent trials, each with the same probability pp of success, and XX counts the successes.

P(X=r)=(nr)pr(1−p)n−r,r=0,1,…,nP(X = r) = \binom{n}{r}p^r(1 - p)^{n - r}, \qquad r = 0, 1, \ldots, nE(X)=np,Var⁡(X)=np(1−p)E(X) = np, \qquad \operatorname{Var}(X) = np(1 - p)

Check the conditions before using it: fixed nn, two outcomes per trial, constant pp, independence. Sampling without replacement from a small population breaks the constant-pp condition; sampling from a large population is close enough.

Exact probabilities

A machine produces items that are faulty with probability 0.080.08, independently. In a batch of 20, find the probability of (a) exactly 2 faulty; (b) at most 2 faulty; (c) at least 1 faulty.

Solution

X∼B(20,0.08)X \sim B(20, 0.08).

(a) (202)(0.08)2(0.92)18=190×0.0064×0.2229=0.271\binom{20}{2}(0.08)^2(0.92)^{18} = 190 \times 0.0064 \times 0.2229 = 0.271.

(b) P(X≤2)=0.9220+20(0.08)(0.92)19+0.271=0.1887+0.3282+0.2711=0.788P(X \leq 2) = 0.92^{20} + 20(0.08)(0.92)^{19} + 0.271 = 0.1887 + 0.3282 + 0.2711 = 0.788.

(c) 1−0.9220=0.8111 - 0.92^{20} = 0.811.

Translating the words

X∼B(12,0.3)X \sim B(12, 0.3). Write each of these in terms of P(X=r)P(X = r) values: more than 9; fewer than 3; between 4 and 6 inclusive; at least 10.

Solution

P(X>9)=P(10)+P(11)+P(12)P(X > 9) = P(10) + P(11) + P(12). P(X<3)=P(0)+P(1)+P(2)P(X < 3) = P(0) + P(1) + P(2). P(4≤X≤6)=P(4)+P(5)+P(6)P(4 \leq X \leq 6) = P(4) + P(5) + P(6). P(X≥10)=P(X>9)P(X \geq 10) = P(X > 9).

Mean and variance

A multiple-choice test has 40 questions each with 5 options. A student guesses every answer. Find the mean and standard deviation of the number of correct answers, and the probability of scoring exactly the mean.

Solution

X∼B(40,0.2)X \sim B(40, 0.2): E(X)=8E(X) = 8, Var⁡(X)=40×0.2×0.8=6.4\operatorname{Var}(X) = 40 \times 0.2 \times 0.8 = 6.4, σ=2.53\sigma = 2.53.

P(X=8)=(408)(0.2)8(0.8)32=0.156P(X = 8) = \binom{40}{8}(0.2)^8(0.8)^{32} = 0.156.

Finding n or p

X∼B(n,0.25)X \sim B(n, 0.25) and P(X=0)=0.0563P(X = 0) = 0.0563. Find nn. Separately, Y∼B(8,p)Y \sim B(8, p) with E(Y)=2E(Y) = 2; find P(Y=2)P(Y = 2).

Solution

0.75n=0.0563⇒n=ln⁡0.0563ln⁡0.75=10.00.75^n = 0.0563 \Rightarrow n = \dfrac{\ln 0.0563}{\ln 0.75} = 10.0, so n=10n = 10. (In S1, without logs, find nn by trial: 0.7510=0.05630.75^{10} = 0.0563.)

8p=2⇒p=0.258p = 2 \Rightarrow p = 0.25. P(Y=2)=(82)(0.25)2(0.75)6=28×0.0625×0.1780=0.311P(Y = 2) = \binom{8}{2}(0.25)^2(0.75)^6 = 28 \times 0.0625 \times 0.1780 = 0.311.

Binomial inside a binomial

The probability that a seed germinates is 0.70.7. Seeds are sold in packets of 5. A packet is "good" if at least 4 seeds germinate. Find the probability a packet is good, and the probability that in 6 packets exactly 4 are good.

Solution

Per packet, X∼B(5,0.7)X \sim B(5, 0.7): P(X≥4)=5(0.7)4(0.3)+0.75=0.3602+0.1681=0.528P(X \geq 4) = 5(0.7)^4(0.3) + 0.7^5 = 0.3602 + 0.1681 = 0.528.

Packets: G∼B(6,0.528)G \sim B(6, 0.528): P(G=4)=(64)(0.528)4(0.472)2=15×0.0777×0.2228=0.260P(G = 4) = \binom{6}{4}(0.528)^4(0.472)^2 = 15 \times 0.0777 \times 0.2228 = 0.260.

Watch out

"At least 3" means X≥3X \geq 3, i.e. 1−P(X≤2)1 - P(X \leq 2). "More than 3" means X≥4X \geq 4. Off-by-one errors in the inequality are the most common lost mark.

Exam tip

Write the distribution with its parameters, X∼B(20,0.08)X \sim B(20, 0.08), before any calculation. When asked why the binomial is (or is not) suitable, name the condition in context: "each item is faulty independently with the same probability" or "the probability changes because items are not replaced".

Practice

Question
  1. X∼B(10,0.4)X \sim B(10, 0.4). Find P(X=3)P(X = 3), P(X≤1)P(X \leq 1) and P(X≥9)P(X \geq 9).
  2. A fair die is rolled 15 times. Find the probability of exactly 3 sixes and the expected number of sixes.
  3. X∼B(n,0.5)X \sim B(n, 0.5) has variance 55. Find nn and P(X=10)P(X = 10).
  4. In a large population 12%12\% are left-handed. Find the probability that in a random sample of 25 at least 2 are left-handed.
Answers
  1. 0.2150.215; 0.610+10(0.4)(0.6)9=0.0060+0.0403=0.04640.6^{10} + 10(0.4)(0.6)^9 = 0.0060 + 0.0403 = 0.0464; 10(0.4)9(0.6)+0.410=0.00157+0.00010=0.0016810(0.4)^9(0.6) + 0.4^{10} = 0.00157 + 0.00010 = 0.00168.
  2. (153)(16)3(56)12=0.236\binom{15}{3}\left(\tfrac{1}{6}\right)^3\left(\tfrac{5}{6}\right)^{12} = 0.236; E=2.5E = 2.5.
  3. 0.25n=5⇒n=200.25n = 5 \Rightarrow n = 20; P(X=10)=(2010)(0.5)20=0.176P(X = 10) = \binom{20}{10}(0.5)^{20} = 0.176.
  4. 1−0.8825−25(0.12)(0.88)24=1−0.0409−0.1395=0.8201 - 0.88^{25} - 25(0.12)(0.88)^{24} = 1 - 0.0409 - 0.1395 = 0.820.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action