How does Hypothesis Testing Work 🌱
Hypothesis Testing Framework
- Calculate a test statistic
- Select a rejection region where if then we reject the null, otherwise we retain it
We want to be small when (to minimize the chance of a false positive) and large when (to minimize the chance of a false negative).
- We can select a value of alpha and then solve for a rejection region that would satisfy that alpha or vice versa
P-Value
The definition of the p-value is often expressed as “the probability of observing data as or more extreme than what was observed, if the null hypothesis is true.”
Suppose we have a test that rejects when and we observe a sample of data then we define the p-value as follows:
How p-values can be used to test hypotheses
Let be the cutoff at which we reject the null for an -level test, i.e. reject the null if and . Then, if we observe we reject the null if .
Therefore and these rejection conditions are equivalent.
- We can interpret the p-value as the smallest alpha for which we would reject the null.
Explaining How P-Value is Area under the curve from critical point
Suppose we have that and is the max value for the power in the null set.
Tests such as the Z-test, T-test, and F-test assume the distribution of our test statistic, which allows us to calculate the cdf to determine p-values.
Example
Intuition: Assuming the null is true, what is the probability of getting a test statistic that equivalently or more extremely supports the alternative hypothesis?
Notes mentioning this note
There are no notes linking to this note.