All revision notes topics

Conditional probabilityIB MYP Maths Extended: Revision notes

Section 1

What conditional probability means

Conditional probability is the probability of an event given that another event has already happened. We write P(A∣B)P(A\mid B), read 'the probability of AA given BB'. Knowing that BB has happened shrinks the sample space to the outcomes in BB. The formula is P(A∣B)=P(A and B)P(B).P(A\mid B)=\frac{P(A\text{ and }B)}{P(B)}. Example: P(A and B)=0.12P(A\text{ and }B)=0.12 and P(B)=0.4P(B)=0.4 give P(A∣B)=0.120.4=0.3P(A\mid B)=\frac{0.12}{0.4}=0.3. Note that P(A∣B)P(A\mid B) and P(B∣A)P(B\mid A) are usually different.

Key termsconditional probabilitygivensample space
Common mistake

Swapping P(A∣B)P(A\mid B) and P(B∣A)P(B\mid A). The event after the bar is the one that has happened, and it gives the denominator.

Section 2

Two-way tables

A two-way table shows two features of the same group. To find a conditional probability, use only the row or column you are told about as the total. Example: Year 9 has 18 instrument players and 22 who do not play; Year 10 has 27 players and 13 non-players. Total players =45=45.

  • P(instrument∣Year 10)=2740P(\text{instrument}\mid\text{Year 10})=\frac{27}{40} (the Year 10 total is 40).
  • P(Year 9∣instrument)=1845=25P(\text{Year 9}\mid\text{instrument})=\frac{18}{45}=\frac25 (the player total is 45). Check by the formula: 18/8045/80=1845\frac{18/80}{45/80}=\frac{18}{45}.
Key termstwo-way table
Exam tip

Underline the words after 'given that' and find that row or column total first.

Section 3

Venn diagrams

In a Venn diagram the circles show events and the overlap shows 'both'. Always fill in the overlap first, then the 'only' regions, then the outside. Example: 50 students; 30 study French (FF), 22 study Spanish (SS), 8 study both. French only =30−8=22=30-8=22, Spanish only =22−8=14=22-8=14, neither =50−(22+8+14)=6=50-(22+8+14)=6. For P(S∣F)P(S\mid F) use only the French circle (30 students), of whom 8 also study Spanish: 830=415\frac{8}{30}=\frac{4}{15}. For P(F∣S)P(F\mid S) use the Spanish circle (22 students): 822=411\frac{8}{22}=\frac{4}{11}.

Key termsVenn diagramoverlap
Common mistake

Writing the whole total in the overlap. The overlap holds only those in both events, and each circle total is overlap plus 'only'.

Section 4

Dependent events and tree diagrams

Two events are dependent if the first outcome changes the probability of the second. This happens when you take items without replacement. Example: 6 ripe and 4 unripe mangoes; take two. After a ripe mango is removed, 5 ripe and 4 unripe remain among 9. So P(unripe second∣ripe first)=49P(\text{unripe second}\mid\text{ripe first})=\frac49. On a tree diagram the second set of branches shows conditional probabilities. Multiply along branches for 'and' and add the branch products for 'or': P(both ripe)=610×59=3090P(\text{both ripe})=\frac{6}{10}\times\frac59=\frac{30}{90}, P(both unripe)=410×39=1290P(\text{both unripe})=\frac{4}{10}\times\frac39=\frac{12}{90}, so P(same)=4290=715P(\text{same})=\frac{42}{90}=\frac{7}{15}. In general P(A and B)=P(A)×P(B∣A)P(A\text{ and }B)=P(A)\times P(B\mid A).

Key termsdependent eventswithout replacementtree diagram
Exam tip

After each pick without replacement, reduce the denominator by 1 and the numerator for the colour you removed.

Section 5

Using conditional probability in context

You can use conditional probability to test a claim: compare P(A∣B)P(A\mid B) with P(A)P(A).

  • If P(A∣B)>P(A)P(A\mid B)>P(A), then BB makes AA more likely.
  • If P(A∣B)<P(A)P(A\mid B)<P(A), then BB makes AA less likely.
  • If P(A∣B)=P(A)P(A\mid B)=P(A), the events are independent. Example: P(S)=2250=0.44P(S)=\frac{22}{50}=0.44 but P(S∣F)=415=0.267P(S\mid F)=\frac{4}{15}=0.267, so studying French makes studying Spanish less likely. Write your conclusion in words about the context, and say what the limits of the data are.
Key termsindependent events
Exam tip

Compare the two probabilities as decimals or fractions with the same denominator, then state which is bigger.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Conditional probability

  1. A school in Nairobi has 80 students in Years 9 and 10 who were asked whether they play a musical instrument. In Year 9, 18 of 40 students play an instrument and 22 do not. In Year 10, 27 of 40 students play an instrument and 13 do not. One student is chosen at random from the 80.
    Find the probability that a student who does not play an instrument is in Year 10.2 marks
  2. A student investigates bags that each contain rr red counters and 1 blue counter. She picks two counters without replacement and finds the probability that both are red. For r=2r=2 it is 13\frac13, for r=3r=3 it is 12\frac12, for r=4r=4 it is 35\frac35 and for r=5r=5 it is 23\frac23.
    Use the pattern to find the value of rr for which the probability that both counters are red is 911\frac{9}{11}, and verify your answer by calculating the probability directly.2 marks
  3. A basket in a market in Cairo holds 10 mangoes: 6 are ripe and 4 are unripe. Two mangoes are taken at random without replacement.
    Find the probability that the first mango is ripe, the probability that the second is unripe given that the first was ripe, and the probability that the first is ripe and the second is unripe.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).