__Conditional Probability__

Imagine a student who takes leave from school twice a week excluding Sunday. If it is known that he will be absent from school on Tuesday then what are the chances that he will also take a leave on Saturday in the same week?

It is observed that in problems where the occurrence of one event affects the happening of the following event. These cases of probability are known as conditional probability.

Let us now look into conditional probability definition mathematically,

The probability of occurrence of any event A when another event B in relation to AÂ has already occurred is known as conditional probability. It is depicted by P(A|B).

As depicted by above diagram, sample space is given by S and there are two events A and B. In a situation where event Â B has already occurred, then our sample space S Â naturally gets reduced to Â B because now the chances of occurrence of an event will lie inside B.

As we have to figure out the chances of occurrence of event A, only portion common to both A and Â B is enough to represent the probability of occurrence of A, when B has already occurred. Common portion of the events is depicted by intersection of both the events Â A and B i.e.\(AÂ âˆ© B\)

This explains the concept of conditional probability problems i.e. occurrence of any event when another event in relation to has already occurred.

__Conditional Probability Formula:__

Mathematically this can be represented as,

\(P(A|B)\) = \(\frac{N(Aâˆ©B)}{N(B)}\)

Where \(P(A|B)\)Â represents the probability of occurrence of A given BÂ has occurred.

\(N(A âˆ© B)\) is the number of elements common to both A and B.

\(N(B)\) is the number of elements in BÂ and it cannot be equal to zero.

Let NÂ represent the total number of elements in sample space.

\(\Rightarrow P(A|B)\) = \(\frac{\frac{N(A âˆ© B)}{N}}{\frac{N(B)}{N}}\)

Since \(\frac{N(A âˆ© B)}{N}\) and \(\frac{N(B)}{N}\)Â denotes the ratio of number of favorable outcomes to the total number of outcomes therefore it indicates the probability.

Therefore \(\frac{N(A âˆ© B)}{N}\) can be written as \( P(A âˆ© B) \) and \(\frac{N(B)}{N}\)Â as \(P(B)\).

\(\Rightarrow P(A|B)\) =\( \frac{P(A âˆ© B)}{P(B)}\)

Therefore,\( P(A âˆ© B) \)=\( { P(B)P(A|B) if P(B) \neq 0\\ P(A)P(B|A) if P(A) \neq 0}\)

Similarly the probability of occurrence of BÂ when AÂ has already occurred is given by,

\(P(B|A)\) = \(\frac{P(B âˆ© A)}{P(A)}\)

To have a better insight let us practice some conditional probability examples,

Example: Â Two die are thrown simultaneously and the sum of the numbers obtained is found to be 7 . What is the probability that the number 3 has appeared at least once?

Solution: The sample space SÂ would consist of all the numbers possible by the combination of two dies. Therefore S consists of 6 Ã— 6Â i.e. 36Â events.

Event AÂ indicates the combination in which 3Â has appeared at least once.

Event B indicates the combination of the numbers which sum up to 7.

\(A \)= \({(3, 1), (3, 2), (3, 3)(3, 4)(3, 5)(3, 6)(1, 3)(2, 3)(4, 3)(5, 3)(6, 3)}\)

\( B \) = \( {(1, 6)(2, 5)(3, 4)(4, 3)(5, 2)(6, 1)}\)

\( P(A)\) = \(\frac{11}{36}\)

\(P(B)\) =\( \frac{6}{36}\)

\(A âˆ© B\) = \(2\)

\(P(A âˆ© B)\) = \(\frac{2}{36}\)

Applying the conditional probability formula we get,

\( P(A|B)\) = \(\frac{P(A âˆ© B)}{P(B)}\) = \( \frac{\frac{2}{36}}{\frac{6}{36}} \) = \(\frac{1}{3}\)

This is how it works. To learn more about probability please visit our websiteÂ www.byjus.com