Skip to content

Conditional probability

Conditional probability

The probability when an event is known to have happened

A conditional probability is the probability of an event when another event is already known to have happened. The probability of A\displaystyle A given B\displaystyle B is written P(A/B)\displaystyle P(A/B) (and also P(A∣B)\displaystyle P(A|B)).

Knowing that B\displaystyle B happened narrows the sample space: only the outcomes of B\displaystyle B are left.

In the table of the 450 students from the last lesson:

VolunteerDo not volunteerTotal
Year 1048112160
Year 116090150
Year 127268140
Total180270450

You met a student from year 12. What is the probability that the student volunteers?

  • The student is known to be in year 12, so the choice is only among the 140 students of year 12 – their row is now the whole sample space.
  • Of them, 72 volunteer.
P(V/T)=72140=1835P(V/T)=\frac{72}{140}=\frac{18}{35}

Of all the students 25=0.4\displaystyle {\frac{2}{5}}={0.4} volunteer, and of the year-12 students – 1835≈0.51\displaystyle \frac{18}{35}\approx0.51.

The definition of conditional probability

In a table of numbers the cell is divided by the row’s total. Dividing both by the number of all the students, 450, leaves the fraction as it was – and this is the definition of conditional probability:

P(A/B)=P(A∩B)P(B)\displaystyle P(A/B)=\frac{P(A\cap B)}{P(B)}

The definition needs P(B)>0\displaystyle P(B)>0. Multiplying by P(B)\displaystyle P(B) gives the probability of an intersection from a conditional probability:

P(A∩B)\displaystyle P(A\cap B) =\displaystyle = P(B)⋅P(A/B)\displaystyle P(B)\cdot P(A/B)
A table from conditional percentages

Often the data are percentages of a group, that is, conditional probabilities. Multiplying them by the size of the group gives the cells of the table.

In a high school 55% of the students are girls.
40% of the girls and 60% of the boys play in a sports team.
G\displaystyle G – a girl; S\displaystyle S – plays in a sports team.

  • P(G∩S)=P(G)⋅P(S/G)=0.55⋅0.4=0.22\displaystyle {P(G\cap S)}={P(G)\cdot P(S/G)}={0.55\cdot0.4}={0.22};
  • P(G‾∩S)=0.45⋅0.6=0.27\displaystyle {P(\overline{G}\cap S)}={0.45\cdot0.6}={0.27}.

The area model draws the table: a square of area 1, a strip for the girls and a strip for the boys as wide as their probabilities, and each strip cut by the conditional probabilities. The area of each rectangle is a cell of the table, and the rectangles of S\displaystyle S are marked:

P(S)=0.22+0.27=0.49P(S)=0.22+0.27=0.49

And among the team players, the probability of a girl:

P(G/S)=P(G∩S)P(S)=0.220.49=2249P(G/S)=\frac{P(G\cap S)}{P(S)}=\frac{0.22}{0.49}=\frac{22}{49}
The difference between P(A/B)\displaystyle P(A/B) and P(B/A)\displaystyle P(B/A)

P(A/B)\displaystyle P(A/B) and P(B/A)\displaystyle P(B/A) are two different questions: their numerator is the same intersection, but the denominator differs – once P(B)\displaystyle P(B) and once P(A)\displaystyle P(A).

  • At the school: P(V/T)=72140=1835\displaystyle {P(V/T)}={\frac{72}{140}}={\frac{18}{35}} – among the year-12 students, but P(T/V)=72180=25\displaystyle {P(T/V)}={\frac{72}{180}}={\frac{2}{5}} – among the volunteers.
  • The probability that a person is taller than 1.90 metres given that he plays in the basketball league is close to 1. The probability that he plays in the league given that he is taller than 1.90 metres is close to 0: there are far more tall people than basketball players.

The difference is largest when one of the events is very rare and the other is common.

What the value of P(A/B)\displaystyle P(A/B) says

P(A/B)\displaystyle P(A/B) says how much of B\displaystyle B is also inside A\displaystyle A:

  • P(A/B)\displaystyle P(A/B) close to 0 – there is hardly an intersection: A\displaystyle A and B\displaystyle B are close to being disjoint.
  • P(A/B)\displaystyle P(A/B) close to P(A)\displaystyle P(A) – knowing that B\displaystyle B happened hardly changes the chance of A\displaystyle A.
  • P(A/B)\displaystyle P(A/B) close to 1 – almost all of B\displaystyle B is inside A\displaystyle A. If P(A/B)=1\displaystyle {P(A/B)}={1}, then whenever B\displaystyle B happens A\displaystyle A happens too.
Exercise 1

A clinic checked 1000 patients in the winter:

Had fluDid notTotal
Vaccinated18582600
Not vaccinated40360400
Total589421000

A patient is chosen at random.

a

The patient is known to be vaccinated. What is the probability that the patient had flu?

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

    The patient is known not to be vaccinated. What is the probability that the patient had flu?

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      c

      The patient is known to have had flu. What is the probability that the patient was vaccinated?

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        Exercise 2

        70% of the workers in a company come to work by car, and the rest another way.
        20% of those who come by car are late at least once a week.
        5% of those who come another way are late at least once a week.
        Write the area of each rectangle in the area model, and mark the rectangles of the workers who are late.

        a

        What is the probability that a worker chosen at random is late at least once a week?

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          b

          A worker is known to be late at least once a week. What is the probability that the worker comes by car?

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            Exercise 3

            P(A)=0.5\displaystyle {P(A)}={0.5}, P(B)=0.4\displaystyle {P(B)}={0.4}, P(A∪B)=0.7\displaystyle {P(A\cup B)}={0.7}.

            a

            Work out P(A∩B)\displaystyle P(A\cap B).

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

              b

              Work out P(A/B)\displaystyle P(A/B).

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                c

                Work out P(B/A)\displaystyle P(B/A).

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                  Exercise 4

                  P(B)=0.6\displaystyle {P(B)}={0.6}, P(A/B)=0.25\displaystyle {P(A/B)}={0.25}, P(A)=0.3\displaystyle {P(A)}={0.3}.

                  a

                  Work out P(A∩B)\displaystyle P(A\cap B).

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                    b

                    Work out P(B/A)\displaystyle P(B/A).

                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                      c

                      Work out P(A/B‾)\displaystyle P(A/\overline{B}).

                        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                        d

                        Compare P(A/B)\displaystyle P(A/B) and P(A/B‾)\displaystyle P(A/\overline{B}) with P(A)\displaystyle P(A). What does knowing that B\displaystyle B happened do to the chance of A\displaystyle A?