- Out of 1000 tests 51 will be positive, 50 of which are incorrect.
- Out of 1000 positive tests, 50 will be wrong, 950 will be correct.
The 2 interpretations give vastly different results.
- Out of 1000 tests 51 will be positive, 50 of which are incorrect.
- Out of 1000 positive tests, 50 will be wrong, 950 will be correct.
The 2 interpretations give vastly different results.
"Out of 1000 positive tests, 50 were false positives, 950 were true positives" - valid statement.
"The false positive rate was 50 out of 1000" - abuses a common technical term in a way that sounds valid on the face of it, but which is potentially VERY misleading.
We can't even calculate a valid false positive rate from the above data, since that requires taking the ratio vs. all tests and not just positive tests.
I don't see anything here that definitively clarifies which of the 2 scenarios above it can exclusively be applied to.
Dividing by the number of positive tests instead gives what's called the 'false discovery rate' which is pretty rarely used.
FP / (FP + TN)
Where FP is number of false positives, and TN is number of true negatives. So it's a third option:
- Out of 1000 actually negative samples, 50 were tested as positive.
So in the case of 1000 samples, 949 correctly testing as negative, 50 incorrectly testing as positive, and 1 correctly testing as positive, the false positive rate is 50 / 999.
False Pos. Rate = P(predict + | state -)
= P(predict + and state -) / P(state -)
= P(predict + and state -) / (P(predict + and state-) + P(predict - and state -))
~ #FP/samplesize / (#FP/samplesize + #TN/samplesize)
= #FP / (#FP + #TN)
The latter quantity is usually given as the definition of false positive rate. Roughly speaking, it's the ratio of how often you predict positive when the state is negative versus how often the state is negative.So to detect false positives in a mathematical way, you should apply the test only to sane people and now the proportion positive/total is an estimation of the false positive rate.