As we saw in a previous example the probability of an event depends not just on the experiment itself but on other information. Conditional probability forms a framework in which this additional information can be incorporated.
Suppose we have two events, and , and we know that has occurred. The question is, what does this tell us about whether occurred?
We resort to extracting intuition from the ideas of empirical probability: suppose we carry out the experiment times. occurs on trials. and occur together on of the trials. So also occurs on a proportion of the trials in which occurs.
We can rewrite this proportion as
This motivates the following definition.
If and are two events then, as long as , the conditional probability of given is written as and calculated from
Note the following immediate consequence of this definition:
If a fair die is thrown and the face shows a number . Find the probability that the face shows a prime. Also find the probability of given it is prime.
Let and then
A bag contains black, white and red marbles. A marble is selected at random. It turns out to be black; find the probability that the next marble selected (without replacing the first) is also black.
Let and denote black on second and first draw. Using the formula:
Can also argue this directly:
having taken the first black,
there are just two left in the remaining balls
and these are equally probable.
Three indistinguishable purses each contain two coins.
One purse contains two gold coins, another contains two silver coins
and the third contains one gold coin and a silver coin.
GG GS SS
A purse is selected at random, then at random a coin is selected
from it.
The selected coin turns out to be gold.
Find the probability that the other coin in the purse is also
gold.
Does satisfy ?
Yes. First: hence . Then, if ,
The partition law can be rephrased as the law of total probability, which is an extremely useful way to break down considerations about real life events.
By the partition law, then the definition of conditional probability,
∎
In a population of children are vaccinated against whooping cough. The probabilities of contracting whooping cough are if the child is vaccinated and if not. Find the probability that a child selected at random will contract whooping cough.
Let denote whooping cough and denote vaccination. Then
Note that is a partition of the sample space . Conjecture and prove a generalisation of the law of total probability to find from , and when are a partition of the sample space.
A test for a disease gives positive results 90% of the time when a disease is present, and 10% of the time when the disease is absent. It is known that 1% of the population have the disease. Of those that receive a positive test result, 80% of patients receive treatment. For a randomly selected member of the population, what is the probability of receiving treatment?
Let be the event “has disease”: , and .
Let be the event “positive test result”. We are told and .
Let be the event “receives treatment”. We are told . Presumably also
We can now calculate
Note that there’s no need to find . On the other hand we need
It therefore follows that