4.8 Binomial distribution

4.8 Binomial distribution

IB Maths: Applications and Interpretation HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The binomial distribution X∼B(n,p)X\sim\mathrm{B}(n,p) counts successes in nn independent trials with constant pp.
  • Use binomial pdf for P(X=x)P(X=x) and cdf for P(X≤x)P(X\le x).
  • P(X≥k)=1−P(X≤k−1)P(X\ge k)=1-P(X\le k-1).
  • E(X)=np\mathrm{E}(X)=np and Var(X)=np(1−p)\mathrm{Var}(X)=np(1-p).
  • Define the variable, state B(n,p)\mathrm{B}(n,p), use the GDC and answer in context to 3 s.f.

When the binomial model applies

Use it for the number of successes in a fixed number of independent trials with the same probability each time.

A binomial distribution models the number of successes in a fixed number of trials. It applies when there is a fixed number nn of trials, each with two outcomes (success and failure), the same probability pp of success each time, and the trials are independent.

Examples: correct guesses on a multiple-choice quiz, free throws scored, defective bulbs in a box. We write X∼B(n,p)X\sim\mathrm{B}(n,p).

  1. 1

    Fixed trials

    a set number nn

  2. 2

    Two outcomes

    success or failure

  3. 3

    Constant probability

    the same pp each time

  4. 4

    Independent

    one trial does not affect another

The four conditions for a binomial model

Which situation is binomial?

Defining the variable

State XX in words, then X∼B(n,p)X\sim\mathrm{B}(n,p), with nn and pp taken from the context.

State the distribution clearly. A quiz of 12 questions guessed at random with four options each gives X∼B(12,0.25)X\sim\mathrm{B}(12,0.25). "Success" is whatever you are counting, even a defective bulb with p=0.04p=0.04.

The probability of exactly xx successes is

P(X=x)=(nx)px(1−p)n−x,P(X=x)=\binom{n}{x}p^x(1-p)^{n-x},

but in examinations you find binomial probabilities using technology.

00.050.10.150.20.250.01150.0024012345678xP(X = x)
X ~ B(12, 0.25): probabilities for x = 0 to 8 (larger values are below 0.001).

Four-option questions, 12 guessed. What is pp?

Finding probabilities with the GDC

Pdf gives an exact value; cdf gives "at most". Rewrite every inequality in terms of these two.

Use binomial pdf for P(X=x)P(X=x) and binomial cdf for P(X≤x)P(X\le x). Enter nn, pp and xx. For X∼B(12,0.25)X\sim\mathrm{B}(12,0.25), P(X=3)=0.258P(X=3)=0.258.

Convert other inequalities:

  • P(X≥k)=1−P(X≤k−1)P(X\ge k)=1-P(X\le k-1)
  • P(a≤X≤b)=P(X≤b)−P(X≤a−1)P(a\le X\le b)=P(X\le b)-P(X\le a-1)
  • P(X<k)=P(X≤k−1)P(X<k)=P(X\le k-1)

To find the smallest kk with P(X≤k)>0.9P(X\le k)>0.9, use a table of cumulative values.

00.050.10.150.20.250.01150.00240.00040123456789xP(X = x)
B(12, 0.25): P(X = 3) = 0.258 is the pdf at 3; the cdf P(X ≤ 3) adds the bars up to 3.

Binomial pdf

Gives:
P(X=x)P(X=x)
Use for:
Exactly xx

Binomial cdf

Gives:
P(X≤x)P(X\le x)
Use for:
At most xx

Worked example

S∼B(15,0.35)S\sim\mathrm{B}(15,0.35). Find P(S≥8)P(S\ge8).

Which is equal to P(X>5)P(X>5)?

Mean and variance

The mean is npnp and the variance is np(1−p)np(1-p).

For X∼B(n,p)X\sim\mathrm{B}(n,p) the mean and variance are given by two short formulae. The mean is the expected number of occurrences from SL 4.5: with nn trials each with probability pp you expect npnp successes.

For B(8,0.7)\mathrm{B}(8,0.7) the mean is 5.65.6 and the variance is 1.681.68. A formal proof of these results is not required.

00.050.10.150.20.250.30.00010.00120.01012345678xP(X = x)
B(8, 0.7): the distribution is centred near the mean np = 5.6, and its variance is np(1 − p) = 1.68.
  • E(X)\mathrm{E}(X)npnp
  • Var(X)\mathrm{Var}(X)np(1−p)np(1-p)

Worked example

X∼B(8,0.7)X\sim\mathrm{B}(8,0.7). Find the mean and variance.

X∼B(20,0.1)X\sim\mathrm{B}(20,0.1). What is the mean?

Exam approach

Define the variable, state B(n,p)\mathrm{B}(n,p), rewrite the probability, use the GDC and give 3 s.f.

A factory's bulbs are defective with probability 0.040.04, in boxes of 25. Let D∼B(25,0.04)D\sim\mathrm{B}(25,0.04). Then P(D=0)=0.9625=0.360P(D=0)=0.96^{25}=0.360 and P(D≥2)=1−P(D≤1)=0.264P(D\ge2)=1-P(D\le1)=0.264. In context: about 26% of boxes contain two or more defective bulbs.

If asked about the model, name two conditions: a fixed number of independent trials, and a constant probability of success.

  1. 1

    Define the variable

    Let XX be the number of ...

  2. 2

    State the model

    X∼B(n,p)X\sim\mathrm{B}(n,p)

  3. 3

    Rewrite

    in terms of P(X=x)P(X=x) or P(X≤x)P(X\le x)

  4. 4

    Use the GDC

    answer to 3 s.f. in context

Answering a binomial question

Worked example

Bulbs are defective with probability 0.040.04 and boxes hold 25. Find the probability a box has at least 2 defective bulbs.

What is the first line of your answer?

Try an exam question

The probability that a seed germinates is 0.30.3. Ten seeds are planted and XX is the number that germinate. State the distribution of XX, then find P(X=4)P(X=4) and P(X≥3)P(X\ge3).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which of the following gives the distribution of XX?

1 mark, marked against the mark scheme

Revision notes