Conditional probability and independence

Conditional probability and independence

Spec 3.2–3 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • P(B∣A)=P(A∩B)P(A)P(B\mid A)=\dfrac{P(A\cap B)}{P(A)}: divide by the probability of the event that is given.
  • Multiplication rule: P(A∩B)=P(A) P(B∣A)P(A\cap B)=P(A)\,P(B\mid A). On a tree diagram multiply along branches and add between routes.
  • Independent events satisfy P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B), equivalently P(B∣A)=P(B)P(B\mid A)=P(B).
  • Mutually exclusive events have P(A∩B)=0P(A\cap B)=0, so with non-zero probabilities they are never independent.
  • For context questions, find the joint probability and divide by the probability of the given event.

Conditional probability

P(B∣A)P(B\mid A) is the probability of BB given that AA has occurred: knowing AA shrinks the sample space to AA.

The probability of BB given that AA has occurred is written P(B∣A)P(B\mid A).

Knowing that AA has happened reduces the sample space to AA, so P(B∣A)=P(A∩B)P(A)P(B\mid A)=\frac{P(A\cap B)}{P(A)}.

In general P(B∣A)≠P(A∣B)P(B\mid A)\ne P(A\mid B). Divide by the probability of the event that is given, which is the one after the vertical line.

  1. 1

    Given A has occurred

    The sample space shrinks to A

  2. 2

    Find P(A ∩ B)

    Outcomes in both A and B

  3. 3

    Divide by P(A)

    P(B | A) = P(A ∩ B) / P(A)

Working out a conditional probability
  • Conditional probabilityP(B∣A)=P(A∩B)P(A)P(B\mid A)=\dfrac{P(A\cap B)}{P(A)}

Worked example

P(A)=0.5P(A)=0.5, P(B)=0.4P(B)=0.4, P(A∩B)=0.2P(A\cap B)=0.2. Find P(B∣A)P(B\mid A) and P(A∣B)P(A\mid B).

If P(X∩Y)=0.12P(X\cap Y)=0.12 and P(Y)=0.3P(Y)=0.3, what is P(X∣Y)P(X\mid Y)?

The multiplication rule

Rearranging the definition gives P(A∩B)=P(A)P(B∣A)P(A\cap B)=P(A)P(B\mid A), used for dependent events such as draws without replacement.

Rearranging the definition of conditional probability gives the multiplication rule P(A∩B)=P(A) P(B∣A)P(A\cap B)=P(A)\,P(B\mid A).

This is used for dependent events, such as drawing without replacement.

Along the branches of a tree diagram you multiply, and between alternative routes you add.

The branch probabilities leaving each point on a tree diagram must add to 1.

  1. 1

    First branch

    P(A)

  2. 2

    Second branch, given the first

    P(B | A)

  3. 3

    Multiply along the branches

    P(A ∩ B) = P(A) × P(B | A)

The multiplication rule on a tree diagram
  • Multiplication ruleP(A∩B)=P(A) P(B∣A)P(A\cap B)=P(A)\,P(B\mid A)

Worked example

A bag has 5 red and 3 blue counters. Two are drawn without replacement. Find P(both red)P(\text{both red}) and P(different colours)P(\text{different colours}).

A bag has 4 red and 6 blue counters. Two are drawn without replacement. What is P(both blue)P(\text{both blue})?

Independent events

Events are independent if one occurring does not affect the probability of the other. Test with P(A)P(B)=P(A∩B)P(A)P(B)=P(A\cap B).

Events AA and BB are independent if one occurring does not affect the probability of the other.

Equivalent conditions are P(B∣A)=P(B)P(B\mid A)=P(B), P(A∣B)=P(A)P(A\mid B)=P(A) and P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B).

To test for independence, calculate P(A)×P(B)P(A)\times P(B) and compare it with P(A∩B)P(A\cap B). If they are equal the events are independent.

If AA and BB are independent then so are AA and B′B', A′A' and BB, and A′A' and B′B'.

  1. 1

    Find P(A) × P(B)

    Multiply the two probabilities

  2. 2

    Find P(A ∩ B)

    Read it from the question or Venn diagram

  3. 3

    Compare

    Equal: independent. Not equal: dependent

Testing for independence
  • P(B∣A)P(B\mid A)P(B)P(B)
  • P(A∣B)P(A\mid B)P(A)P(A)
  • P(A∩B)P(A\cap B)P(A) P(B)P(A)\,P(B)

Worked example

Test whether AA and BB are independent when P(A)=0.5P(A)=0.5, P(B)=0.4P(B)=0.4, P(A∩B)=0.2P(A\cap B)=0.2.

P(A)=0.6P(A)=0.6, P(B)=0.5P(B)=0.5, P(A∩B)=0.25P(A\cap B)=0.25. Are AA and BB independent?

Independent or mutually exclusive?

They are different ideas: exclusive events cannot occur together, independent events do not affect each other.

These are different ideas and are often confused.

Mutually exclusive events cannot occur together: P(A∩B)=0P(A\cap B)=0. Independent events satisfy P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B).

If both events have non-zero probability, they cannot be both: exclusive events are strongly dependent, because if one occurs the other certainly does not.

For independent events the addition rule becomes P(A∪B)=P(A)+P(B)−P(A)P(B)P(A\cup B)=P(A)+P(B)-P(A)P(B).

AB
Mutually exclusive events A and B: the circles do not overlap, so P(A ∩ B) = 0

Mutually exclusive

  • Cannot occur together
  • P(A∩B)=0P(A\cap B)=0
  • P(A∪B)=P(A)+P(B)P(A\cup B)=P(A)+P(B)

Independent

  • One does not affect the other
  • P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B)
  • P(A∪B)=P(A)+P(B)−P(A)P(B)P(A\cup B)=P(A)+P(B)-P(A)P(B)

Worked example

AA and BB are independent, P(A)=0.3P(A)=0.3 and P(A∪B)=0.58P(A\cup B)=0.58. Find P(B)P(B).

Two events each have non-zero probability and are mutually exclusive. Can they be independent?

Conditional probability in context

Find the joint probability, divide by the probability of the given event, then say what the answer means in context.

Tree diagrams and tables help with context problems.

To find a conditional probability, find the joint probability and divide by the probability of the given event.

When interpreting, say what the probability means in the context of the question and why it is high or low.

Example: 2% of people have a disease. The test is positive for 95% of those with it and 6% of those without.

0100200300400500600With the diseaseWithout the diseaseGroupPeople testing positive
Of 10 000 people tested, those who test positive: 190 have the disease, 588 do not (false positives).

Worked example

2% of people have a disease. The test is positive for 95% of those with it and 6% of those without it. Find P(D∣T)P(D\mid T), the probability of disease given a positive test.

In the example above, what is a false positive?

Try an exam question

Events AA and BB are such that P(A)=0.4P(A)=0.4, P(B∣A)=0.5P(B\mid A)=0.5 and P(B∣A′)=0.25P(B\mid A')=0.25. Find P(A∣B)P(A\mid B).

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the probability that both counters are red.

1 mark, marked against the mark scheme

Revision notes