by sykh · 8y ago · 0 comments
You have a test for a disease that is 99% accurate. This means that 99% of the time the test gives a correct result. You test positive for the disease and it is known that 1% of the population has the disease. What is the probability you have the disease?
The answer is not at all the one most people think at first when given this problem. This problem is why getting two tests is always a good thing to do when testing positive for a disease.
EDIT: I updated the statement of the problem to be one that can be answered!
The answer depends on the disease!
If it's the common cold, it's probably close to 99%. If it's huntington's disease, the likelyhood is much lower. (when asked, this question is normally posed as "you are given a test, which is 99% accurate, for some rare and deadly disease", the "rare" part is important)
Statistics is weird and unintuitive.
If you want to show the implication of Bayes' Theorem then you need to be more precise : Say you have a 1% of false positive and false negative rates (99% reliability) and 1% of the population is sick. If you are tested positive, then the probability of being sick is much less than 99%.
This is not correct; the probability of having the disease is unknown. He didn't say what he meant by the test being "99% accurate", but that doesn't mean you can just make your own assumption.
Note that in your more precisely specified scenario, when the test has 99% reliability, it is perfectly true that "99% of the time the test gives a correct result", which immediately disproves the claim that, if we follow that definition, the probability of having the disease given a positive test result is 99%.
It can be understood as both:
- p(sick|positive) = 0.99 - p(positive|sick) = 0.99
We get totally different results, the first one is obvious (99% change of being sick), and the second one needs Bayes' Theorem (and is the one we want to use).
To me the phrase should mean that when I test people who have the disease then 99% of the time I get a positive result and when I test people who don't have the disease then 99% of the time I get a negative result. That seems the most reasonable interpretation but I'm not a statistician.
https://en.wikipedia.org/wiki/Base_rate_fallacy
Here's a paper on it's impact on network intrusion detection.
https://www.schneier.com/blog/archives/2006/03/data_mining_f...
https://www.schneier.com/blog/archives/2006/07/terrorists_da...
https://www.schneier.com/blog/archives/2012/05/criminal_inte...
It's important to note that the tests results should ideally be as uncorrelated as possible. At worst a test always gives the same result as its first outcome, so further testing would give zero information.
In practice this means that you probably want tests that are based on completely different mechanisms.