I am wondering what the probability of a false positive COVID-19 test would be in my city. I'm attempting to use Bayes Theorem to calculate this, however I'm getting very different results based on how I formulate the problem.
Here are the probabilities given:
- 1 in 41 people in my city have COVID.
- The analytical false positive rate of a PCR test is 2 in 1,000
- The proportion of positive tests is 6.8%.
If I ask the probability of not being infected given a positive test, I get 2.9%.
P(Not Infected given Positive test) = P(Positive test given Not Infected) * P(Not Infected) / P(Positive test) = (.002) * (.976) / (.068) = 2.9%
However if I ask the probability of being infected given a positive test, I get 36%.
P(Infected given Positive test) = P(Positive test given Infected) * P(Infected) / P(Positive test) =(.998) * (.024) / (.068) =36%
Can you set me straight here? I must be making an error. Given a positive test, I would expect the probabilities of being infected or not infected to sum to 1.
A note on the probabilities given:
- 1 in 41 people infected is based on a model but should be interpreted as the ratio of infected people in the population as a whole, not necessarily the population being tested. I believe it's fair to use this as the pre-test odds of a person being infected if we know nothing else about them.
- PCR tests are generally described as very specific (i.e., very low false positive rate). Lets assume that of 1000 known covid-free samples, only 2 would return a positive result.
- 6.8% test positivity rate is based on the number of tests that come back positive. Note that we are not testing the entire population, and you can assume that the population that receives a test is more likely to have covid than the population at large.