4.5 Basic probability

4.5 Basic probability

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • P(A)=n(A)n(U)P(A)=\frac{n(A)}{n(U)} for equally likely outcomes.
  • P(A′)=1−P(A)P(A')=1-P(A), and all probabilities add to 1.
  • Relative frequency == successes ÷\div trials; more trials give a better estimate.
  • Expected number =np=np.
  • Two dice have 36 ordered outcomes.

The language of probability

A trial gives an outcome; the sample space is every possible outcome and an event is a set of them.

A trial is one performance of an experiment, such as rolling a dice once. Each possible result is an outcome. The set of all outcomes is the sample space UU, and an event AA is a set of outcomes, such as 'the score is even'.

When two dice are rolled, write outcomes as ordered pairs: (red 1, blue 2) and (red 2, blue 1) are different outcomes, so the sample space has 6×6=366\times6=36 equally likely outcomes.

012345623456789101112Total scoreNumber of outcomes
Outcomes giving each total when two dice are rolled (36 in all)

Two dice are rolled. How many outcomes are in the sample space?

Theoretical probability

Divide the number of outcomes in the event by the number in the sample space.

When all outcomes are equally likely, P(A)=n(A)n(U)P(A)=\frac{n(A)}{n(U)}, where n(A)n(A) is the number of outcomes in AA and n(U)n(U) the number in the sample space.

Every probability satisfies 0≤P(A)≤10\le P(A)\le1, and the probabilities of all outcomes add to 1.

List systematically. For 'contains the digit 2' among 1 to 30: 2, 12, then 20 to 29, giving 12 numbers.

  • Equally likelyP(A)=n(A)n(U)P(A)=\dfrac{n(A)}{n(U)}
  • Always true0≤P(A)≤10\le P(A)\le1
00.10.20.30.40.50.60.70.80.910 impossible0.5 even chance1 certain

Worked example

Tickets numbered 1 to 30 are in a bag. Find the probability that a ticket drawn is a multiple of 4.

Tickets numbered 1 to 30: what is the probability of a prime number?

Complementary events

Exactly one of AA and A′A' happens, so P(A′)=1−P(A)P(A')=1-P(A).

The complement A′A' is the event 'not AA'. Use it whenever 'not' or 'at least' makes direct counting long: P(not prime)=1−1030=23P(\text{not prime})=1-\frac{10}{30}=\frac23.

The same idea gives unknown probabilities, because all the probabilities must add to 1.

P(A) = 1/3P(A′) = 2/301
The whole bar is probability 1. If P(A) = 10/30 = 1/3, then P(A′) = 1 − 1/3 = 2/3.
  • ComplementP(A′)=1−P(A)P(A')=1-P(A)
  • TotalP(A)+P(A′)=1P(A)+P(A')=1

Worked example

A bag has red, blue and yellow counters. Red has probability 0.28 and blue is twice as likely as yellow. Find the probability of yellow.

P(A)=0.35P(A)=0.35. What is P(A′)P(A')?

Relative frequency

Divide the number of times the event occurs by the number of trials.

When outcomes are not equally likely, or the probability is unknown, estimate it from an experiment. The more trials, the more reliable the estimate, so combine samples from the same source: 14+27400+600=0.041\frac{14+27}{400+600}=0.041.

A relative frequency that differs slightly from a theoretical probability does not prove the theory wrong; results vary by chance.

00.010.020.030.0414 in 40027 in 60041 in 1000SampleRelative frequency
Relative frequency of the event in each sample and in the combined sample: (14 + 27)/(400 + 600) = 0.041.
  • Relative frequencytimes the event occursnumber of trials\dfrac{\text{times the event occurs}}{\text{number of trials}}

An event occurs 36 times in 120 trials. What is the relative frequency?

Expected number of occurrences

Multiply the number of trials by the probability: npnp.

If an event has probability pp and there are nn trials, the expected number of occurrences is npnp.

It does not have to be a whole number, and it is a long-run average, not a guarantee. Do not round it unless the question asks you to.

10203040506070809010020406080100xyexpected = np
Expected number of occurrences = np. Change p to see the line pivot about the origin.
  • Expected numbernpnp

Worked example

128 students each have probability 0.1 of being absent. How many absences are expected?

A spinner lands on red with probability 0.35. It is spun 200 times. How many reds are expected?

Try an exam question

A bag contains red, blue and yellow counters. The probability of red is 0.28, and blue is twice as likely as yellow. (a) Find the probability of yellow. (b) A counter is drawn and replaced 150 times. Find the expected number of blue counters.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the probability that the number on the ticket is a multiple of 4.

1 mark, marked against the mark scheme

Revision notes