Probability — Diagnostic Tests
Unit Tests
Tests edge cases, boundary conditions, and misconceptions for probability.
UT-1: Conditional Probability vs Independence Confusion
Question:
A bag contains 5 red and 3 blue balls. Two balls are drawn without replacement.
(a) Find the probability that both balls are red.
(b) Find the probability that the second ball is red.
(c) Let be "the first ball is red" and be "the second ball is red." A student claims that since and , the events are independent. Explain the error.
[Difficulty: hard. Tests the distinction between independent and dependent events in without-replacement scenarios.]
Solution:
(a) .
(b) By the law of total probability:
(c) The student's error is applying the independence test without verifying it. In fact:
So and are not independent. The fact that is coincidental — it does not imply independence. The correct test for independence is , not .
UT-2: Bayes' Theorem with Prior Identification
Question:
A factory produces items using Machine (60% of output) and Machine (40% of output). Machine has a defect rate of 3% and Machine has a defect rate of 5%.
(a) A randomly selected item is found to be defective. What is the probability it was produced by Machine ?
(b) A student reasons: "60% of items are from Machine and 3% are defective, so the probability is ." Identify the error.
[Difficulty: hard. Tests correct application of Bayes' theorem versus the common prior error.]
Solution:
(a) Let be "the item is defective" and be "produced by Machine ."
(b) The student computed instead of . Bayes' theorem asks for the posterior probability (probability the item is from given that it is defective), but the student computed the joint probability (probability the item is both from and defective, without the "given" condition). The correct computation divides by the total probability of the evidence, .
Integration Tests
Tests synthesis of probability with other topics.
IT-1: Combinatorics for Probability Counting (with Number and Algebra)
Question:
A committee of 5 people is to be selected from 7 men and 5 women. The committee must contain at least 2 men and at least 2 women.
(a) In how many ways can the committee be formed?
(b) If the committee must also include exactly one person as chairperson, how many different committees are possible?
[Difficulty: hard. Combines combinatorial counting with selection under multiple constraints.]
Solution:
(a) Total ways to choose 5 from 12 people: .
Subtract committees with fewer than 2 men or fewer than 2 women:
- 0 men, 5 women:
- 1 man, 4 women:
- 2 men, 3 women:
- 3 men, 2 women:
- 4 men, 1 woman:
- 5 men, 0 women:
Total excluded: .
The constraint "at least 2 men and at least 2 women" only excludes the cases with 0 or 1 of one gender:
Excluded: 0 men, 5 women (1 way) + 1 man, 4 women (35 ways) + 5 men, 0 women (21 ways) + 4 men, 1 woman (175 ways) = 232 ways.
(b) For each valid committee of 5, there are 5 choices for chairperson. So: different chaired committees.