P-values and Hypothesis Test Setup › Summary

Michael BrenndoerferUpdated January 12, 20261 min read
Machine Learning from ScratchAll chapters
Part 2 of 9Hypothesis Testing
Chapter 12P-values and Hypothesis Test Setup › Summary
Reading section 7 of 9 · Summary · 1 minSection 7 of 9 · 1 min

Book contents

Section 7 of 9 · 1 min read

P-values and Hypothesis Test Setup › SummaryOne section · Sections in this chapter7 / 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

This chapter established the foundations of hypothesis testing:

  1. The logic: We assume the null hypothesis is true and ask how surprising our data would be under that assumption. If the data are surprising enough (low p-value), we reject the null.

  2. P-values: The probability of observing data as extreme as ours, assuming the null is true. P-values measure evidence against the null, not the probability the null is true, and not the size of any effect.

  3. Hypotheses: The null (H0H_0) is the skeptical position; the alternative (H1H_1) is what we're trying to establish. We never accept H0H_0; we either reject it or fail to reject it.

  4. One-sided vs two-sided: Two-sided tests are the default. Use one-sided only when effects in one direction are meaningless.

  5. Test statistics: Standardize the observed deviation by the expected variability. This allows comparison across different contexts and scales.

  6. Decisions: Compare the p-value to your significance level α. Report exact p-values, not just "significant" or "not significant."