Introduction to Conditional Probability

In many situations, we are interested in the probability of an event happening, given that we already have some additional information. For instance, what is the probability that it will rain today, given that the morning is cloudy? This 'given' information restricts our focus.

Definition: If AA and BB are two events associated with the same sample space SS of a random experiment, then the probability of occurrence of event AA under the condition that BB has already occurred (and P(B)0P(B) \neq 0) is called the conditional probability of AA given BB. It is denoted by P(AB)P(A|B).

The Formula: P(AB)=P(AB)P(B),P(B)0P(A|B) = \frac{P(A \cap B)}{P(B)}, \quad P(B) \neq 0

Similarly, the conditional probability of BB given AA is: P(BA)=P(AB)P(A),P(A)0P(B|A) = \frac{P(A \cap B)}{P(A)}, \quad P(A) \neq 0

Intuition: Imagine the sample space SS shrinks to just the event BB. We are now looking for the portion of AA that lies within this new sample space BB.

Properties of Conditional Probability

Let EE and FF be events of a sample space SS and GG be another event such that P(G)0P(G) \neq 0. The following properties hold:

  • Property 1: P(SG)=1P(S|G) = 1 and P(GG)=1P(G|G) = 1.
  • Property 2: If AA and BB are any two events of a sample space SS and FF is an event of SS such that P(F)0P(F) \neq 0, then: P((AB)F)=P(AF)+P(BF)P((AB)F)P((A \cup B)|F) = P(A|F) + P(B|F) - P((A \cap B)|F) Note: If AA and BB are disjoint, then P((AB)F)=P(AF)+P(BF)P((A \cup B)|F) = P(A|F) + P(B|F)
  • Property 3: P(EF)=1P(EF)P(E'|F) = 1 - P(E|F) This is the complement rule for conditional probability.

Example 1: Basic Coin Toss

A coin is tossed three times. Find the probability that at least two heads appear, given that at least one head appeared.

Solution: Step 1: Write the sample space SS. S={HHH,HHT,HTH,THH,HTT,THT,TTH,TTT}S = \{HHH, HHT, HTH, THH, HTT, THT, TTH, TTT\} Hence, n(S)=8n(S) = 8

Step 2: Define the events. Let AA = event of getting at least two heads. A={HHH,HHT,HTH,THH}A = \{HHH, HHT, HTH, THH\} So, n(A)=4n(A) = 4 Let BB = event of getting at least one head. B={HHH,HHT,HTH,THH,HTT,THT,TTH}B = \{HHH, HHT, HTH, THH, HTT, THT, TTH\} So, n(B)=7n(B) = 7

Step 3: Find ABA \cap B. Since every outcome of AA already belongs to BB, AB=AA \cap B = A Therefore, n(AB)=4n(A \cap B) = 4

Step 4: Apply the conditional probability formula. P(AB)=P(AB)P(B)=4/87/8=47P(A|B) = \frac{P(A \cap B)}{P(B)} = \frac{4/8}{7/8} = \frac{4}{7}

Answer: 47\boxed{\frac{4}{7}}

Example 2: Dice and Conditions

A black and a red die are rolled. Find the conditional probability of obtaining a sum greater than 9, given that the black die resulted in a 5.

Solution: Step 1: The total number of outcomes is 6×6=366 \times 6 = 36

Step 2: Let BB be the event that the black die shows 5. B={(5,1),(5,2),(5,3),(5,4),(5,5),(5,6)}B = \{(5,1), (5,2), (5,3), (5,4), (5,5), (5,6)\} Hence, n(B)=6P(B)=636n(B) = 6 \quad \Rightarrow \quad P(B) = \frac{6}{36}

Step 3: Let AA be the event that the sum is greater than 9. Possible sums are 10, 11, and 12, so A={(4,6),(5,5),(6,4),(5,6),(6,5),(6,6)}A = \{(4,6), (5,5), (6,4), (5,6), (6,5), (6,6)\}

Step 4: Find ABA \cap B. We need outcomes where the black die is 5 and the sum is greater than 9: AB={(5,5),(5,6)}A \cap B = \{(5,5), (5,6)\} Thus, n(AB)=2P(AB)=236n(A \cap B) = 2 \quad \Rightarrow \quad P(A \cap B) = \frac{2}{36}

Step 5: Compute the conditional probability. P(AB)=P(AB)P(B)=2/366/36=26=13P(A|B) = \frac{P(A \cap B)}{P(B)} = \frac{2/36}{6/36} = \frac{2}{6} = \frac{1}{3}

Answer: 13\boxed{\frac{1}{3}}

Example 3: Families with Children

A family has two children. What is the probability that both are boys given that at least one of them is a boy?

Solution: Step 1: Assuming each child is equally likely to be a boy or a girl, the sample space is S={BB,BG,GB,GG}S = \{BB, BG, GB, GG\} Thus, n(S)=4n(S) = 4

Step 2: Define the events. Let AA = event that both children are boys. A={BB}A = \{BB\} Let BB = event that at least one child is a boy. B={BB,BG,GB}B = \{BB, BG, GB\}

Step 3: Find the intersection. AB={BB}A \cap B = \{BB\} So, P(AB)=14,P(B)=34P(A \cap B) = \frac{1}{4}, \qquad P(B) = \frac{3}{4}

Step 4: Use the formula. P(AB)=P(AB)P(B)=1/43/4=13P(A|B) = \frac{P(A \cap B)}{P(B)} = \frac{1/4}{3/4} = \frac{1}{3}

Answer: 13\boxed{\frac{1}{3}}

Example 4: Cards Selection

Ten cards numbered 1 to 10 are placed in a box. One card is drawn. If it is known that the number on the drawn card is more than 3, what is the probability that it is an even number?

Solution: Step 1: The sample space is S={1,2,3,4,5,6,7,8,9,10}S = \{1,2,3,4,5,6,7,8,9,10\}

Step 2: Let BB be the event that the number is more than 3. B={4,5,6,7,8,9,10}B = \{4,5,6,7,8,9,10\} Hence, n(B)=7n(B) = 7

Step 3: Let AA be the event that the number is even. A={2,4,6,8,10}A = \{2,4,6,8,10\}

Step 4: Find ABA \cap B. AB={4,6,8,10}A \cap B = \{4,6,8,10\} Hence, n(AB)=4n(A \cap B) = 4

Step 5: Therefore, P(AB)=n(AB)n(B)=47P(A|B) = \frac{n(A \cap B)}{n(B)} = \frac{4}{7}

Answer: 47\boxed{\frac{4}{7}}

Example 5: Using P(A)P(A), P(B)P(B), and P(AB)P(A \cup B)

Given P(A)=0.6,P(B)=0.3P(A) = 0.6, P(B) = 0.3 and P(AB)=0.7P(A \cup B) = 0.7, find P(AB)P(A|B).

Solution: Step 1: Use the addition formula: P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B) Substitute the values: 0.7=0.6+0.3P(AB)0.7 = 0.6 + 0.3 - P(A \cap B) 0.7=0.9P(AB)0.7 = 0.9 - P(A \cap B) P(AB)=0.2P(A \cap B) = 0.2

Step 2: Now use the conditional probability formula: P(AB)=P(AB)P(B)=0.20.3=23P(A|B) = \frac{P(A \cap B)}{P(B)} = \frac{0.2}{0.3} = \frac{2}{3}

Answer: 23\boxed{\frac{2}{3}}

Example 6: Complement Rule

If P(A)=0.8,P(B)=0.5P(A) = 0.8, P(B) = 0.5 and P(BA)=0.4P(B|A) = 0.4, find P(AB)P(A'|B).

Solution: Step 1: Use the definition of conditional probability: P(BA)=P(AB)P(A)P(B|A) = \frac{P(A \cap B)}{P(A)} Substitute the values: 0.4=P(AB)0.80.4 = \frac{P(A \cap B)}{0.8} Hence, P(AB)=0.4×0.8=0.32P(A \cap B) = 0.4 \times 0.8 = 0.32

Step 2: Find P(AB)P(A|B). P(AB)=P(AB)P(B)=0.320.5=0.64P(A|B) = \frac{P(A \cap B)}{P(B)} = \frac{0.32}{0.5} = 0.64

Step 3: Use the complement rule. P(AB)=1P(AB)=10.64=0.36P(A'|B) = 1 - P(A|B) = 1 - 0.64 = 0.36

Answer: 0.36\boxed{0.36}

Example 7: School Statistics

In a school, there are 1000 students, out of which 430 are girls. It is known that out of 430, 10% of the girls study in class XII. What is the probability that a student chosen randomly studies in class XII given that the chosen student is a girl?

Solution: Step 1: Let

  • GG = event that the selected student is a girl,
  • EE = event that the selected student studies in class XII.

Step 2: Number of girls is n(G)=430n(G) = 430 Out of these, 10% study in class XII. Therefore, n(EG)=10% of 430=43n(E \cap G) = 10\% \text{ of } 430 = 43

Step 3: Now, P(EG)=n(EG)n(G)=43430=0.1P(E|G) = \frac{n(E \cap G)}{n(G)} = \frac{43}{430} = 0.1

Answer: 0.1\boxed{0.1}

Example 8: Two Dice Sum

A die is thrown twice and the sum of the numbers appearing is observed to be 6. What is the conditional probability that the number 4 has appeared at least once?

Solution: Step 1: Let BB be the event that the sum is 6. Possible outcomes are: B={(1,5),(2,4),(3,3),(4,2),(5,1)}B = \{(1,5), (2,4), (3,3), (4,2), (5,1)\} Hence, n(B)=5n(B) = 5

Step 2: Let AA be the event that the number 4 appears at least once.

Step 3: Find ABA \cap B. Among the outcomes of BB, the ones containing 4 are: AB={(2,4),(4,2)}A \cap B = \{(2,4), (4,2)\} Thus, n(AB)=2n(A \cap B) = 2

Step 4: Therefore, P(AB)=n(AB)n(B)=25P(A|B) = \frac{n(A \cap B)}{n(B)} = \frac{2}{5}

Answer: 25\boxed{\frac{2}{5}}

Example 9: Property P((AB)F)P((A \cup B)|F)

Given P(AF)=0.3,P(BF)=0.2P(A|F) = 0.3, P(B|F) = 0.2 and P((AB)F)=0.1P((A \cap B)|F) = 0.1, find P((AB)F)P((A \cup B)|F).

Solution: Step 1: Use the formula P((AB)F)=P(AF)+P(BF)P((AB)F)P((A \cup B)|F) = P(A|F) + P(B|F) - P((A \cap B)|F)

Step 2: Substitute the values: P((AB)F)=0.3+0.20.1=0.4P((A \cup B)|F) = 0.3 + 0.2 - 0.1 = 0.4

Answer: 0.4\boxed{0.4}

Example 10: Logic Puzzle

Assume that each born child is equally likely to be a boy or a girl. If a family has two children, what is the conditional probability that both are girls given that the youngest is a girl?

Solution: Step 1: Write the sample space in the order (youngest, oldest): S={(B,B),(B,G),(G,B),(G,G)}S = \{(B,B), (B,G), (G,B), (G,G)\}

Step 2: Let

  • AA = event that both are girls,
  • BB = event that the youngest is a girl. Then, A={(G,G)}A = \{(G,G)\} B={(G,B),(G,G)}B = \{(G,B), (G,G)\} Hence, n(B)=2n(B) = 2

Step 3: Find the intersection: AB={(G,G)}A \cap B = \{(G,G)\} So, n(AB)=1n(A \cap B) = 1

Step 4: Therefore, P(AB)=12P(A|B) = \frac{1}{2}

Answer: 12\boxed{\frac{1}{2}}