P-values and Hypothesis Test Setup › The Decision Process
Machine Learning from ScratchAll chapters P-values and Hypothesis Test Setup › The Decision ProcessOne section · Sections in this chapter6 / 9 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
We've calculated our test statistic and p-value. Now what? The decision follows this logic:
-
Before seeing data: Choose a significance level α (conventionally 0.05, but context-dependent)
-
After computing p-value:
- If p ≤ α: Reject . The data provide sufficient evidence against the null.
- If p > α: Fail to reject . The data don't provide sufficient evidence.
-
Report results: Include the test statistic, p-value, sample size, and effect size. Never just say "significant" or "not significant."
An equivalent approach uses critical values instead of p-values. The critical value is the test statistic boundary separating "reject" from "fail to reject."
For a two-sided z-test at α = 0.05, the critical values are ±1.96. You reject if |z| > 1.96.
For a two-sided t-test, critical values depend on degrees of freedom. With df = 24 and α = 0.05, the critical values are approximately ±2.064.
Both approaches give the same answer. The p-value approach is more informative because it tells you exactly how extreme your result was.