4.11 Formal conditional probability and independence

4.11 Formal conditional probability and independence

IB Maths: Analysis and Approaches SL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Conditional probability: P(A∣B)=P(A∩B)P(B)P(A\mid B)=\dfrac{P(A\cap B)}{P(B)}, dividing by the event after the bar.
  • Multiplication rule: P(A∩B)=P(B) P(A∣B)=P(A) P(B∣A)P(A\cap B)=P(B)\,P(A\mid B)=P(A)\,P(B\mid A).
  • P(A∣B)P(A\mid B) and P(B∣A)P(B\mid A) are usually different.
  • Independent events: P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B), equivalently P(A∣B)=P(A)=P(A∣B′)P(A\mid B)=P(A)=P(A\mid B').
  • To test for independence, compare the numbers and state your conclusion. Mutually exclusive (P(A∩B)=0P(A\cap B)=0) is not the same as independent.

Conditional probability

Knowing BB has happened shrinks the sample space to BB, so we ask what fraction of BB is also in AA.

The probability of AA given BB is written P(A∣B)P(A\mid B). Order matters: with P(A)=0.4P(A)=0.4, P(B)=0.5P(B)=0.5 and P(A∩B)=0.12P(A\cap B)=0.12, P(A∣B)=0.24P(A\mid B)=0.24 but P(B∣A)=0.3P(B\mid A)=0.3.

Knowing BB has happened gives a reduced sample space.

  • P(A∣B)P(A\mid B)P(A∩B)P(B)\dfrac{P(A\cap B)}{P(B)}

Worked example

Given P(A)=0.4P(A)=0.4, P(B)=0.5P(B)=0.5 and P(A∩B)=0.12P(A\cap B)=0.12, find P(A∣B)P(A\mid B).

In P(A∣B)P(A\mid B), which probability is in the denominator?

Multiplying along branches

Multiply along a branch to get an intersection, add the separate routes to get a total, then reverse the condition with the definition.

The multiplication rule is P(A∩B)=P(B) P(A∣B)P(A\cap B)=P(B)\,P(A\mid B). If P(R)=0.35P(R)=0.35 and P(L∣R)=0.6P(L\mid R)=0.6, then P(R∩L)=0.21P(R\cap L)=0.21.

Add routes for the total: with P(R′)=0.65P(R')=0.65 and P(L∣R′)=0.2P(L\mid R')=0.2, P(L)=0.21+0.13=0.34P(L)=0.21+0.13=0.34.

Then P(R∣L)=0.210.34=0.618P(R\mid L)=\frac{0.21}{0.34}=0.618.

  1. 1

    Multiply along a branch

    P(R∩L)=0.35×0.6=0.21P(R\cap L)=0.35\times0.6=0.21

  2. 2

    Add the routes

    P(L)=0.21+0.65×0.2=0.34P(L)=0.21+0.65\times0.2=0.34

  3. 3

    Reverse the condition

    P(R∣L)=0.210.34≈0.618P(R\mid L)=\frac{0.21}{0.34}\approx0.618

Rain (R) and lateness (L): P(R) = 0.35, P(L | R) = 0.6, P(L | R′) = 0.2.

Given P(R∩L)=0.21P(R\cap L)=0.21 and P(L)=0.34P(L)=0.34, what is P(R∣L)P(R\mid L)?

Working with complements

Find the two parts separately: P(A∩B′)=P(A)−P(A∩B)P(A\cap B')=P(A)-P(A\cap B) and P(B′)=1−P(B)P(B')=1-P(B), then divide.

The complement A′A' is "not AA", with P(A′)=1−P(A)P(A')=1-P(A).

With P(A)=0.4P(A)=0.4, P(B)=0.5P(B)=0.5 and P(A∩B)=0.12P(A\cap B)=0.12: P(A∣B′)=0.280.5=0.56P(A\mid B')=\frac{0.28}{0.5}=0.56.

Given BB, either AA happens or it does not, so P(A′∣B)=1−P(A∣B)P(A'\mid B)=1-P(A\mid B).

  • P(A∩B′)P(A\cap B')P(A)−P(A∩B)P(A)-P(A\cap B)
  • P(A′∣B)P(A'\mid B)1−P(A∣B)1-P(A\mid B)

Which expression equals 1−P(A∣B)1-P(A\mid B)?

Testing for independence

Independent events satisfy P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B). Calculate both sides from the data, compare, and state your conclusion.

AA and BB are independent events if knowing one has happened does not change the probability of the other: P(A∣B)=P(A)=P(A∣B′)P(A\mid B)=P(A)=P(A\mid B').

Always state the numbers you compared. Do not confuse this with mutually exclusive events, where P(A∩B)=0P(A\cap B)=0. Two mutually exclusive events with non-zero probabilities cannot be independent.

Independent

Intersection:
P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B)
Given BB:
P(A∣B)=P(A)P(A\mid B)=P(A)
Together?:
Can happen together

Mutually exclusive

Intersection:
P(A∩B)=0P(A\cap B)=0
Given BB:
P(A∣B)=0P(A\mid B)=0
Together?:
Cannot happen together

Worked example

P(A)=0.5P(A)=0.5, P(B)=0.4P(B)=0.4 and P(A∪B)=0.7P(A\cup B)=0.7. Are AA and BB independent?

P(A)=0.3P(A)=0.3, P(B)=0.5P(B)=0.5, and AA and BB are mutually exclusive. Are they independent?

Conditional probability from counts

When data are counts, divide by the size of the condition group, not by the total.

In a survey of 200 students, 120 travel by bus and 40 of those play tennis. Then P(T∣B)=40120=13P(T\mid B)=\frac{40}{120}=\frac13.

For independence you would need n(T∩B)=80×120200=48n(T\cap B)=\frac{80\times120}{200}=48. Only 40 play tennis among bus users, so say in context that bus users are less likely to play tennis.

050100150200All studentsBus usersBus users who play tennisNumber of students
The condition group (bus users) is the denominator, not the 200 students.

Of 120 bus users, 40 play tennis. What is the denominator of P(T∣B)P(T\mid B)?

Try an exam question

Given P(A)=0.6P(A)=0.6, P(B)=0.5P(B)=0.5 and P(A∪B)=0.85P(A\cup B)=0.85, (a) find P(A∩B)P(A\cap B); (b) determine whether AA and BB are independent.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find P(A∣B)P(A\mid B).

1 mark, marked against the mark scheme

Revision notes