MathProbabilityEvents and probabilities

Conditional probability

8 minutes read

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 44. What is the probability that the total of two dice will be greater than 88?

You can solve this problem with brute-force method. Overall number of results, where the first one is greater than 44, is 1212: (5,1),,(5,6),(6,1),,(6,6)(5, 1), \dots, (5, 6), (6, 1), \dots, (6,6) . And there are 77 suitable results: (5,4),(5,5),(5,6),(6,3),(6,4),(6,5),(6,6)(5, 4), (5, 5), (5, 6), (6, 3), (6, 4), (6, 5), (6, 6). So, the probability, that the total of two dice will be greater than 88, is 712\frac{7}{12}.

Let's compare this answer with a result in the situation when it's unknown that the first dice is greater than 44. Firstly, we have 1010 suitable results: (3,6),(4,5),(4,6)(3, 6), (4, 5), (4, 6) and 77 that we already mentioned. Secondly, the overall number of results is 66=366 \cdot 6 = 36. The probability that the sum of points will be greater than 88 is 1036=518\frac{10}{36} = \frac{5}{18}.

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 BB has occurred. How do we find the probability of an event AA? So we come to the definition of the conditional probability.

Conditional probability of the event AA, provided that the event BB has occurred, is calculated by a formula:

P(AB)=P(AB)P(B)\mathbb{P}(A | B) = \dfrac{\mathbb{P}(A \cap B)}{\mathbb{P}(B)}, if P(B)>0\mathbb{P}(B) > 0

The fact that the event BB has occurred means that the space of all possible outcomes is constricted to BB. 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 44 knowing that the value is an even number.

The event AA is that the value is less than 44 and the event BB is that the value is an even number. It's easy to see that the answer is 13\frac{1}{3} on the following picture:

Two events intersect on the knuckle 2

Problem solving using the definition

Let's solve the problem with 22 dice using the definition of conditional probability. What is the probability that the total of two dice will be greater than 88, given that the first dice is greater than 44?

Let's understand what will be events AA and BB here? The event AA is the fact that total of two dice is greater than 88, the event BB is the fact that the first dice is greater than 44. Now we need to calculate the probability of the events BB and ABA \cap B.

It is easy to understand that P(B)=26=13\mathbb{P}(B) = \frac{2}{6} = \frac{1}{3}. ABA \cap B means that the sum of two dice is greater than 88 and the first one is greater than 44. Let's fill the following table, where sum of two dice is written in (i,j)(i, j) cell, if the first dice has ii points and the second has jj:

table of sums of numbers 5 and 6 with numbers from 1 to 6

We see that there are 77 suitable results and 3636 results in total, so probability P(AB)=736\mathbb{P}(A \cap B) = \frac{7}{36}

The final probability is:

P(AB)=P(AB)P(B)=73613=712\mathbb{P}(A | B) = \frac{\mathbb{P}(A \cap B)}{\mathbb{P}(B)} = \frac{\frac{7}{36}}{\frac{1}{3}} = \frac{7}{12}

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.

108 learners liked this piece of theory. 9 didn't like it. What about you?
Report a typo