The Lumenary · Grades 9–12
Conditional probability and independence
Name: ______________________
Date: ______________________
You will learn to
- Compute conditional probabilities from two-way tables and tree diagrams, and use the multiplication rule
- Decide whether events are independent, and distinguish independence from mutual exclusivity
- Prove the rules of conditional probability, the law of total probability and Bayes' theorem from the definitions
- Apply Bayes' theorem to diagnostic tests with base rates, using natural frequencies
- Recognise the confusion of with , including the prosecutor's fallacy
- 1.
Two fair dice are rolled and you are told that the total is . What is the probability that the first die shows a ?
- A.
- B.
- C.
- D.
- 2.
In the lesson's survey of students in Hanoi, cycle to school, were late at least once, and cyclists were late. A student is chosen at random from those who were late. What is the probability that they cycle?
- A.
- B.
- C.
- D.
- 3.
A condition affects of a population of people. A test detects it in of people who have it, and gives a false positive for of people who do not. If everyone is tested, how many positive results are expected?
- 4.
With the numbers of the previous exercise (base rate , detection, false positives), a randomly chosen person tests positive. About how likely is it that they have the condition?
- A.About ( out of )
- B.
- C.
- D., because the test is right of the time and wrong
- 5.
Two fair dice are rolled. Which pairs of events are independent? (Choose all that apply.)
- A.“The first die shows ” and “the second die is even”.
- B.“The total is ” and “the first die shows ”.
- C.“The total is ” and “the first die shows ”.
- D.“The first die is even” and “the total is even”.
- E.“Both dice show ” and “the total is ”.
- 6.
Events and are mutually exclusive, with and . Which statement is true?
- A. and are not independent, because .
- B. and are independent, because they have nothing to do with each other.
- C..
- D..
- 7.
Two cards are drawn from a shuffled pack of without replacement. The probability that both are aces is . What is ?
- 8.
Here is the proof that if and are independent then so are and :
.
Which step uses the hypothesis that and are independent?
- A.Step (1)
- B.Step (2)
- C.Step (3)
- D.Step (4)
- 9.
In the lesson's Lean model,
μ.cond A Bis defined asμ.P (A ∩ B) / μ.P B, and Lean's convention makesx / 0 = 0. The lesson provestheorem bayes (μ : FinProb Ω) (A B : Finset Ω) (hA : μ.P A ≠ 0) : μ.cond A B = μ.cond B A * μ.P A / μ.P B.What is the role of the hypothesis
hA?- A.It is needed so that
μ.cond B A * μ.P Aequalsμ.P (B ∩ A), the step where the multiplication rule is used. - B.It prevents division by zero in
μ.P B; without it Lean would crash. - C.None: it is decoration and could be deleted without changing anything.
- D.It says that
AandBare independent.
- A.It is needed so that
- 10.
Write
posterior(prior, sensitivity, false_positive_rate)returning by Bayes' theorem, andafter_positives(prior, sensitivity, false_positive_rate, k)returning the probability of after positive results from independent tests (use each posterior as the next prior). The tests passFractions, so keep the arithmetic exact.Computational — Practice