Motivational example
Sometimes you have some information about a result of an experiment. For example, you threw two dice twice and someone told you that the first dice is greater than . What is the probability that the total of two dice will be greater than ?
You can solve this problem with brute-force method. Overall number of results, where the first one is greater than , is : . And there are suitable results: . So, the probability, that the total of two dice will be greater than , is .
Let's compare this answer with a result in the situation when it's unknown that the first dice is greater than . Firstly, we have suitable results: and that we already mentioned. Secondly, the overall number of results is . The probability that the sum of points will be greater than is .
The main conclusion is the following: if it's known that some event has occurred, you should recalculate the probability.
Formal definition
We can generalize the previous problem and consider a whole class of similar problems. It's known that an event has occurred. How do we find the probability of an event ? So we come to the definition of the conditional probability.
Conditional probability of the event , provided that the event has occurred, is calculated by a formula:
, if
The fact that the event has occurred means that the space of all possible outcomes is constricted to . In this constricted space, to say that event A will occur means the same as to say that both A and B will occur. The probability of A and B occurring together is the numerator.
Now we will use the following problem to show that the conditional probability has a simple geometric interpretation.
For example, we want to find the probability of rolling a dice and obtaining a value less than knowing that the value is an even number.
The event is that the value is less than and the event is that the value is an even number. It's easy to see that the answer is on the following picture:
Problem solving using the definition
Let's solve the problem with dice using the definition of conditional probability. What is the probability that the total of two dice will be greater than , given that the first dice is greater than ?
Let's understand what will be events and here? The event is the fact that total of two dice is greater than , the event is the fact that the first dice is greater than . Now we need to calculate the probability of the events and .
It is easy to understand that . means that the sum of two dice is greater than and the first one is greater than . Let's fill the following table, where sum of two dice is written in cell, if the first dice has points and the second has :
We see that there are suitable results and results in total, so probability
The final probability is:
Conclusion
Now we have learned what conditional probability is, and have seen how to find it. Later we'll see why this concept is extremely useful for applications – for example, in data analysis.