4.8 The binomial distribution

4.8 The binomial distribution

IB Maths: Analysis and Approaches SL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • X∼B(n,p)X\sim B(n,p) needs a fixed nn, two outcomes, a constant pp and independent trials.
  • Use the GDC's binomial pdf for P(X=x)P(X=x) and binomial cdf for P(X≤x)P(X\le x).
  • "At least kk" means 1−P(X≤k−1)1-P(X\le k-1).
  • E(X)=npE(X)=np, Var(X)=np(1−p)\mathrm{Var}(X)=np(1-p), σ=np(1−p)\sigma=\sqrt{np(1-p)}.
  • For an unknown nn, use the complement with logarithms, or a GDC table with two consecutive values.

When is a binomial model suitable?

X∼B(n,p)X\sim B(n,p) counts successes in a fixed number of independent trials with a constant probability of success.

Guessing 12 four-option questions gives B(12,0.25)B(12,0.25). Taking 5 cards without replacement and counting hearts is not binomial, because pp changes after each card. You may be asked to criticise a model: people travelling in groups, or machines failing in batches, break independence. Explain in context why independence or a constant pp might fail.

  1. 1

    Fixed number of trials

    nn

  2. 2

    Two outcomes

    success or failure

  3. 3

    Constant probability of success

    pp the same every trial

  4. 4

    Independent trials

    one does not affect another

All four conditions must hold

Which situation is NOT modelled by a binomial distribution?

Finding binomial probabilities

Use binomial pdf for P(X=x)P(X=x) and binomial cdf for P(X≤x)P(X\le x), translating the words carefully.

The formula P(X=r)=(nr)pr(1−p)n−rP(X=r)=\binom nrp^r(1-p)^{n-r} is in the booklet, but in an exam you use the calculator. XX takes whole-number values only. Write the probability statement, e.g. P(X≥12)=1−P(X≤11)P(X\ge12)=1-P(X\le11), before the number: the method mark is for this line.

01234567891037

Statement

At most 5:
P(X≤5)P(X\le5)
Fewer than 5:
P(X≤4)P(X\le4)
At least 5:
P(X≥5)P(X\ge5)
More than 5:
P(X≥6)P(X\ge6)
Between 3 and 7 inclusive:
P(3≤X≤7)P(3\le X\le7)

Using cdf

At most 5:
P(X≤5)P(X\le5)
Fewer than 5:
P(X≤4)P(X\le4)
At least 5:
1−P(X≤4)1-P(X\le4)
More than 5:
1−P(X≤5)1-P(X\le5)
Between 3 and 7 inclusive:
P(X≤7)−P(X≤2)P(X\le7)-P(X\le2)

Which is the correct way to find P(X≥5)P(X\ge5)?

Mean and variance

For X∼B(n,p)X\sim B(n,p) the mean is npnp and the variance is np(1−p)np(1-p).

Both results are in the formula booklet. The standard deviation is np(1−p)\sqrt{np(1-p)}. The mean need not be a whole number: 186 ticket holders turning up with probability 0.95 gives a mean of 176.7176.7.

The most likely value (the mode) has the largest P(X=x)P(X=x); find it from a GDC table. It is usually close to the mean.

00.050.10.150.20.250.0010.010.010.001012345678910rP(X = r)
X ~ B(10, 0.5): P(X = r). The mean np = 5 is also the most likely value.
  • MeanE(X)=npE(X)=np
  • VarianceVar(X)=np(1−p)\mathrm{Var}(X)=np(1-p)

Worked example

X∼B(20,0.85)X\sim B(20,0.85). Find E(X)E(X), Var(X)\mathrm{Var}(X) and the standard deviation.

X∼B(50,0.2)X\sim B(50,0.2). What is E(X)E(X)?

Problems with unknown n

Use the complement with logarithms, or a GDC table showing two consecutive values of nn.

Complement: "at least one miss" is 1−pn1-p^n. Solving 1−(0.78)n>0.991-(0.78)^n>0.99 gives (0.78)n<0.01(0.78)^n<0.01, so n>ln⁡0.01ln⁡0.78=18.5n>\frac{\ln0.01}{\ln0.78}=18.5 and the least nn is 19. The inequality reverses when you divide by ln⁡0.78\ln0.78, because it is negative.

Table: for P(X>180)<0.05P(X>180)<0.05 with X∼B(n,0.95)X\sim B(n,0.95), quote the values for the two consecutive nn either side of the boundary: n=185n=185 gives 0.04330.0433 and n=186n=186 gives 0.09290.0929.

  1. 1

    Complement involves one power

    1−pn1-p^n: use logarithms

  2. 2

    Divide by a negative ln⁡\ln

    Reverse the inequality

  3. 3

    Cumulative condition

    Use a GDC table in nn

  4. 4

    Round so the inequality holds

    Show two consecutive values

Choosing a method

Solve 1−(0.78)n>0.991-(0.78)^n>0.99. What is the least integer nn?

Combining binomial models

A probability from one binomial model can be the pp of a second model.

If a flight is overbooked with probability 0.04330.0433 on any day, independently, the number of overbooked days in a week is Y∼B(7,0.0433)Y\sim B(7,0.0433), so P(Y≥1)=1−(1−0.0433)7=0.266P(Y\ge1)=1-(1-0.0433)^7=0.266. Keep full calculator accuracy for the first probability; round only the final answer.

  1. 1

    First model

    Find the daily probability p=0.0433p=0.0433

  2. 2

    Second model

    Y∼B(7,0.0433)Y\sim B(7,0.0433) for a week

  3. 3

    Answer

    P(Y≥1)=1−P(Y=0)P(Y\ge1)=1-P(Y=0)

Two stages

Worked example

Overbooking happens on any day with probability 0.04330.0433, independently. Find the probability of at least one overbooked day in a week.

Y∼B(7,0.0433)Y\sim B(7,0.0433). Which expression is P(Y≥1)P(Y\ge1)?

Try an exam question

X∼B(10,0.3)X\sim B(10,0.3). (a) Write down E(X)E(X) and Var(X)\mathrm{Var}(X). (b) Find P(X≥3)P(X\ge3).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find E(X)\mathrm{E}(X).

1 mark, marked against the mark scheme

Revision notes