← Quiz: Probability and Bayes: all 15 questions
Quiz: Probability and Bayes · Question 9 of 15
What does this print? (code)
What does this print?
p_a, p_b, p_a_and_b = 0.69, 0.4, 0.36
print(round(p_a + p_b - p_a_and_b, 2))
- A.1.09
- B.0.73
- C.0.33
- D.0.36
Answer & explanation
Correct answer: 0.73
The addition rule subtracts the overlap so it isn't counted twice.
Can you get the rest right without peeking?
Take the timed Quiz: Probability and Bayes quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →