p-value and hypothesis testing
Simple facts about p-value and hypothesis testing
Question
Suppose we test 20 independent hypotheses, with no real effect in any of the cases. For each test, we require to claim a significant result.
What is the expected number of false positives when performing all 20 tests?
Notes
- no βrealβ effect means in reality, the null hypothesis was true for every test
- interpretation: null hypothesis is always true in this example
- means thereβs a chance we get a result with enough error to be at least this far away from the null hypothesis
Since null hypothesis () is true in this case, for every test, thereβs only a chance to get a result that comes with value . There are 20 independent trials, so 5% of 20 is 1 (on average).
Question
What is the probability of obtaining at least one satistically significant result when performing all 20 tests, even though none of the effects are real?
Notes
- This follows the binomial distribution
- Instead of dealing with , we use the complement
Let be the number of statistically significant results (false positives) in the 20 tests.