Intro to Bayesian Learning Exercise Solutions. Ata Kaban The University of Birmingham.
Intro to Bayesian LearningExercise Solutions
The University of Birmingham
You are to be tested for a disease that has prevalence in the population of 1 in 1000. The lab test used is not always perfect: It has a false-positive rate of 1%. [A false-positive result is when the test is positive, although the disease is not present.] The false negative rate of the test is zero. [A false negative is when the test result is negative while in fact the disease is present.]
ANSWER a) We have two binary variables, A and B. A is the outcome of the test, B is the presence/absence of the disease. We need to compute P(B=1|A=1). We use Bayes theorem:
Now the required quantities are known from the problem. These are the following:
Replacing, we have:
b) Under the conditions in the previous question, is it more probable that you have the disease or that you don’t?
So clearly it is more probable that the disease is not present.