Lesson 1: The Logic of Hypothesis Testing
The Logic of Hypothesis Testing
Hypothesis testing is like a criminal trial. We start with an assumption of innocence (Null Hypothesis) and only reject it if we have overwhelming evidence to the contrary.
1. Setting the Stage
Null Hypothesis ()
The status quo. “Nothing is happening.” “There is no difference.”
Example
The new drug has no effect on recovery time.
Alternative Hypothesis ()
The claim we want to test. “Something is happening.”
Example
The new drug reduces recovery time.
2. The P-Value
The p-value is the probability of observing data at least as extreme as what we saw, assuming the Null Hypothesis is true.
Rule of Thumb:
- Low p-value (< 0.05): The data is unlikely under . We Reject . (Statistically Significant)
- High p-value (> 0.05): The data is consistent with . We Fail to Reject .
3. Errors
We can make mistakes:
- Type I Error (): Rejecting a true Null Hypothesis (False Positive).
- Type II Error (): Failing to reject a false Null Hypothesis (False Negative).