Use the code I provided on the course website to reproduce the results of Exercise 4.1. Add your own comments as the author instructs in the problem statement.
Exercise 4.6. Formatting tables with RMarkdown is easy, so you can type up the answer without too much trouble.
A certain drug test has sensitivity 0.98 and specificity 0.90.
Which conditional probabilities do these represent?
It is known that 10% of a certain population use this drug. If an individual from the population tests positive, what is the probability that they are a user?
This individual is re-tested and the result is negative. What is the (updated) probability that they are a user?
Follow the exact instructions for exercise 5.2 but applied to the drug testing situation from the previous problem.
Follow the exact instructions for exercise 5.3 but applied to the drug testing situation from the previous problem.