A brief note on Conditional Probability and Independent Events . Read it before a test. Try each question at the end before you open its answer.
Conditional probability Definition: P ( A ∣ B ) = P ( A ∩ B ) P ( B ) P(A \mid B) = \dfrac{P(A \cap B)}{P(B)} P ( A ∣ B ) = P ( B ) P ( A ∩ B ) , with P ( B ) > 0 P(B) > 0 P ( B ) > 0 . Indian books write P ( A / B ) P(A/B) P ( A / B ) . Count form: for equally likely outcomes, P ( A ∣ B ) = n ( A ∩ B ) n ( B ) P(A \mid B) = \dfrac{n(A \cap B)}{n(B)} P ( A ∣ B ) = n ( B ) n ( A ∩ B ) . Complement: P ( A ′ ∣ B ) = 1 − P ( A ∣ B ) P(A' \mid B) = 1 - P(A \mid B) P ( A ′ ∣ B ) = 1 − P ( A ∣ B ) . Swapping: P ( A ∣ B ) P(A \mid B) P ( A ∣ B ) and P ( B ∣ A ) P(B \mid A) P ( B ∣ A ) have the same top and different bottoms. Multiplication rule and trees Two events: P ( A ∩ B ) = P ( A ) P ( B ∣ A ) P(A \cap B) = P(A)\,P(B \mid A) P ( A ∩ B ) = P ( A ) P ( B ∣ A ) . Three events: P ( A ∩ B ∩ C ) = P ( A ) P ( B ∣ A ) P ( C ∣ A ∩ B ) P(A \cap B \cap C) = P(A)\,P(B \mid A)\,P(C \mid A \cap B) P ( A ∩ B ∩ C ) = P ( A ) P ( B ∣ A ) P ( C ∣ A ∩ B ) . Tree: multiply along a path, add across paths, and the branches from a point add up to 1 1 1 . At least one: 1 − P ( none ) 1 - P(\text{none}) 1 − P ( none ) . Independent events Test: P ( A ∩ B ) = P ( A ) P ( B ) P(A \cap B) = P(A)\,P(B) P ( A ∩ B ) = P ( A ) P ( B ) , or P ( A ∣ B ) = P ( A ) P(A \mid B) = P(A) P ( A ∣ B ) = P ( A ) . Complements: if A A A and B B B are independent, so are A A A and B ′ B' B ′ , and A ′ A' A ′ and B ′ B' B ′ . Not the same as exclusive: mutually exclusive events with positive probabilities are dependent. Three events: mutual independence needs the three pairs and the triple product. A worked example A bag holds 5 5 5 red and 3 3 3 green balls. Two are drawn without replacement.
Both red. 5 8 × 4 7 = 5 14 \dfrac{5}{8} \times \dfrac{4}{7} = \dfrac{5}{14} 8 5 × 7 4 = 14 5 . Second red, given first red. 4 7 \dfrac{4}{7} 7 4 , because 4 4 4 red balls remain among 7 7 7 . Second red, given first green. 5 7 \dfrac{5}{7} 7 5 , because 5 5 5 red balls remain among 7 7 7 . The two conditional answers differ, so the two draws are dependent.
Practice with new numbers
A program to try The program finds the three answers of the worked example with exact fractions.
Run it. Which line prints the answer to step 1 of the worked example?
1. Change red, green = 5, 3 to red, green = 6, 2. How do the three numbers change? Is the second draw still dependent on the first?
Mistakes to avoid Dividing by the wrong event. Divide by the event after the bar. Treating draws without replacement as independent. The contents change after the first draw. Adding for "and". Multiply along a path. Calling exclusive events independent. They are dependent when both have positive probability. Check yourself Find P ( A ∣ B ) P(A \mid B) P ( A ∣ B ) when P ( A ∩ B ) = 0.12 P(A \cap B) = 0.12 P ( A ∩ B ) = 0.12 and P ( B ) = 0.3 P(B) = 0.3 P ( B ) = 0.3 . Stuck? Show a hint Show the answerTwo cards are drawn from a pack of 52 52 52 without replacement. Find the probability that both are hearts. Stuck? Show a hint Show the answerEvents A A A and B B B are independent, with P ( A ) = 0.5 P(A) = 0.5 P ( A ) = 0.5 and P ( B ) = 0.4 P(B) = 0.4 P ( B ) = 0.4 . Find P ( A ∪ B ) P(A \cup B) P ( A ∪ B ) . Stuck? Show a hint Show the answerA fair coin is tossed 5 5 5 times. Find the probability of at least one head. Stuck? Show a hint Show the answerCan two mutually exclusive events with positive probabilities be independent? Stuck? Show a hint Show the answerSources OpenStax, Introductory Statistics , Chapter 3, sections on the rules of probability, contingency tables and tree diagrams. NCERT, Mathematics Part II for Class XII, Chapter 13, sections on conditional probability, the multiplication theorem and independent events.