Conditional probability and tree and Venn diagrams

Conditional probability and tree and Venn diagrams

Spec 3.2 · Edexcel A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • P(A∣B)=P(A∩B)P(B)P(A\mid B)=\dfrac{P(A\cap B)}{P(B)}: the probability of AA given BB.
  • Multiplication law: P(A∩B)=P(A∣B)P(B)P(A\cap B)=P(A\mid B)P(B).
  • Addition law: P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B); complement P(A′)=1−P(A)P(A')=1-P(A).
  • On a tree, multiply along paths and add paths; branches from one point sum to 1.
  • To reverse a tree, divide one path by the sum of all paths to the given outcome.

Conditional probability

P(A∣B)P(A\mid B) restricts the sample space to BB, so it is P(A∩B)P(B)\frac{P(A\cap B)}{P(B)}.

P(A∣B)P(A\mid B) is the conditional probability that AA occurs given BB has occurred. Rearranging gives the multiplication law.

In general P(A∣B)≠P(B∣A)P(A\mid B)\ne P(B\mid A), because they have different denominators. Events are independent exactly when P(A∣B)=P(A)P(A\mid B)=P(A).

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

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

Laws for combining events

Use P(A′)=1−P(A)P(A')=1-P(A) and P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B).

The complement of AA is A′A'. The addition law subtracts P(A∩B)P(A\cap B) because it is counted in both P(A)P(A) and P(B)P(B).

Often a given P(A∣B)P(A\mid B) is used first to find P(A∩B)P(A\cap B).

  • ComplementP(A′)=1−P(A)P(A')=1-P(A)
  • AdditionP(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B)

Worked example

P(A)=0.6P(A)=0.6, P(B)=0.5P(B)=0.5, P(A∣B)=0.4P(A\mid B)=0.4. Find P(A∪B)P(A\cup B) and P(B∣A′)P(B\mid A').

P(A)=0.7P(A)=0.7, P(B)=0.4P(B)=0.4 and P(A∩B)=0.3P(A\cap B)=0.3. Find P(A∪B)P(A\cup B).

Venn diagrams and two-way tables

Fill in the intersection first, then the ‘only’ regions, then the outside; a conditional probability is a ratio of two regions.

Fill in the intersection first, then the ‘only’ regions by subtraction, then the outside so everything adds to the total. A two-way table works the same way, with the given condition selecting a row or column.

The condition restricts the sample space to the given region.

  1. 1

    Intersection

    Fill in the overlap first.

  2. 2

    Only regions

    Subtract the overlap from each total.

  3. 3

    Outside

    Total minus everything else.

  4. 4

    Ratio

    Conditional probability = region ÷ given region.

Reading a Venn diagram

Worked example

50 students: 28 take Mathematics, 20 take Physics, 8 take both. Find P(Physics∣Mathematics)P(\text{Physics}\mid\text{Mathematics}).

Using the same 50 students, find P(Mathematics∣Physics)P(\text{Mathematics}\mid\text{Physics}).

Tree diagrams

Multiply along a path to get a combined outcome and add the paths that make up an event.

A tree diagram shows stages. The second-stage branches carry conditional probabilities, and branches from one point must add to 1.

To ‘reverse’ the tree, use the conditional formula: the numerator is one path, the denominator is the sum of all paths that give the given event.

  1. 1

    Multiply

    Multiply along a path for a combined outcome.

  2. 2

    Add

    Add the paths that make up the event.

  3. 3

    Reverse

    Divide one path by the sum of all paths to the given event.

Using a tree diagram

Worked example

P(rain)=0.3P(\text{rain})=0.3. A person is late with probability 0.40.4 if it rains and 0.10.1 if dry. Find P(late)P(\text{late}) and P(rain∣late)P(\text{rain}\mid\text{late}).

Branches from one point on a tree have probabilities 0.30.3, 0.50.5 and xx. Find xx.

A screening test

When a condition is rare, healthy people far outnumber the ill, so false positives outnumber true positives.

A disease affects 2%2\% of people. A test is positive for 95%95\% of those with it and 4%4\% of those without. Use the full-denominator method every time: sum all routes to the given outcome.

Has disease

Share of people:
2%
Positive test:
95%
Share of everyone who tests positive:
0.019

Healthy

Share of people:
98%
Positive test:
4%
Share of everyone who tests positive:
0.0392

Worked example

Find P(disease∣+)P(\text{disease}\mid +), and then P(disease∣++)P(\text{disease}\mid ++) after a second independent positive test.

Why is P(disease∣+)P(\text{disease}\mid +) so much lower than 0.950.95?

Try an exam question

P(rain)=0.4P(\text{rain})=0.4. A train is late with probability 0.50.5 if it rains and 0.20.2 if it is dry. Find P(late)P(\text{late}) and P(rain∣late)P(\text{rain}\mid\text{late}).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the probability that the student studies Physics, given that they study Mathematics.

1 mark, marked against the mark scheme

Revision notes