Hypothesis Testing
“Null Hypothesis Significant Testing” (NHST), a principled way to evaluate how compatible our observed result is with a specified null hypothesis.
For hypothesis w.r.t. the direction of effect, a sign test, according to binomial distribution; for hypothesis w.r.t. the mean, a $z$ test or $t$ test, according to / distribution.
Concepts
Definition of -value
The probability of observing a result as extreme or more extreme than the one we observed assuming the null hypothesis is true.
We usually want to know , but -value tells us about .
- A a level (or significance level). A significance level corresponds to a critical region. A cut-off for making a decision about the null hypothesis.
- A critical region is picked so that
- If , we reject ; otherwise, if , we fail to reject (NOT accept !)
- Errors
- Type I Error: didn’t reject null hypothesis when you should
- Type II Error: reject null hypothesis when you shouldn’t. The counterpart is power.
Types
- Sign test: when we only care about the direction of change.
- One-tailed (directional) and two-tailed (non-directional), need to find .
Steps
- State hypothesis
- , the null hypothesis.
- Use alternative hypothesis to decide which tail(s) are the rejection region. You reject when you see data that is unlikely if were true, and the unlikely lives in tails.
- Set the criteria for decision
- level, or level of significance.
- If , we reject , otherwise we fail to reject — not accept!
- Critical region is the area in the distribution in which (as unlikely or more unlikely than this).
- Compute test statistic and -value ( observed)
- Make a decision
- If , reject the null.
Why greater than or equal to?
The reasoning is: when picking , it is already inside the critical region. So observing exactly also rejects the null.