Hypothesis Testing Foundations
Hypothesis testing is a formal procedure for deciding whether data support a claim. It frames the question as a contest between two opposing hypotheses:
| Hypothesis | Role & Description |
|---|---|
| Null hypothesis () | The default, no-effect claim (e.g., the coin is fair) |
| Alternative hypothesis () | The claim you are gathering evidence for (e.g., the coin is biased) |
The logic mirrors a courtroom: is presumed true until evidence forces a rejection. You compute a test statistic from data, then find the p-value: the probability of observing data at least as extreme as yours if were true.
The threshold is the significance level (commonly 0.05). If , you reject in favor of ; if large, you fail to reject it.
Errors and Interpretive Pitfalls
Because decisions rely on chance data, two types of errors are possible:
| Error Type | Definition | Probability |
|---|---|---|
| Type I error | Rejecting a true (false positive) | |
| Type II error | Failing to reject a false (false negative) | Noted as |
There is a direct trade-off: lowering reduces false positives but raises false negatives.
Common Pitfalls:
- p-value misinterpretation: It is not the probability that is true. It is the probability of the data assuming holds.
- Failing to reject: This is not proof that is true. Absence of evidence against the null is just weak data, never a proof.