Practice Bayes' Theorem in Math
Use these practice problems to test your method after reviewing the concept explanation and worked examples.
Quick Recap
Bayes' theorem gives the posterior probability of a hypothesis given evidence: .
Start with a prior belief, then reweight it by how likely the evidence is under each hypothesis.
Showing a random 20 of 50 problems.
Example 1
mediumA spam filter: 40% of email is spam. 'Free' appears in 80% of spam and 10% of non-spam. An email contains 'free'. Find .
Example 2
hardDrug testing: . Test sensitivity . Specificity (so ). Find .
Example 3
hardYou have three biased coins with chosen uniformly at random, flipped once, lands heads. Find the posterior probability that the chosen coin has .
Example 4
mediumA coin is fair with prior or two-headed with prior . It is flipped once and lands heads. Find .
Example 5
mediumA rare disease has prior . The test is 99% sensitive () and 95% specific (). Find .
Example 6
mediumA box has 70% fair coins () and 30% biased coins (). A drawn coin flips heads. Find .
Example 7
easyIf the prior , what is the posterior (for any evidence with )?
Example 8
easyCompute by the law of total probability if , , , .
Example 9
mediumEmail spam filter: . The word 'free' appears in 80% of spam emails and 10% of legitimate emails. An email contains 'free'. Find using Bayes' theorem.
Example 10
hardA taxi is in a hit-and-run. 85% of city cabs are Green, 15% Blue. A witness identifies a Blue cab and is right 80% of the time. Find .
Example 11
challengeYou suspect a coin is biased toward heads. Prior: with ; otherwise fair. You observe 8 heads in 10 flips. Find the posterior probability the coin is biased.
Example 12
easyAre and generally equal?
Example 13
mediumA communication channel sends 0 with probability 0.6 and 1 with probability 0.4. Each bit is flipped with probability 0.1. The receiver sees 1. Find .
Example 14
mediumAt a school, 30% of students play sports. Among sport-players, 70% own gym shoes; among non-players, 20% own gym shoes. A student owns gym shoes. Find .
Example 15
mediumA test is 90% sensitive () and the disease prior is . Also . Find .
Example 16
mediumPrior odds of to are . The likelihood ratio . Find the posterior odds, then .
Example 17
mediumA test with sensitivity 100% always tests positive on disease carriers. Does this guarantee ?
Example 18
hardA coin is either fair (, probability 0.7) or biased (, probability 0.3). You flip it once and get heads. Update the probability that the coin is biased using Bayes' theorem.
Example 19
mediumA patient's prior probability of disease is 10%. A test has sensitivity 80% and specificity 80%. Find .
Example 20
easyIn Bayes' theorem, which term is the 'prior'?