A drugs test for athletes is 99% reliable: applied to a drug taker, it gives a positive result 99% of the time;given to a non-taker, it gives a negative result 99% of the time. It is estimated that 1% of athletes take drugs.What fraction of randomly tested athletes fail the test?
I am completely lost on how to do this as i wasn't in class that day so how would I use bayes theorem to solve this? Thanks
Lets give the test to $10,000$ people.
$9,900$ people are not drug users (drug free). $1\%$ of them score false positives.
$100$ are drug users, $99\%$ are detected. $1\%$ are false negatives.
\begin{matrix}&\text{Pass}&\text{Fail}\\ \text{Drug Free}& 9,801& 99\\ \text{Drug User} &1& 99\end{matrix}
$198$ fail the test. $\frac 12$ of those that fail are false positives and $\frac 12$ are true positives.