Volume 1 of 4 · PDF edition
Statistical Foundations and Hypothesis Testing
Data, probability, distributions, sampling, and statistical inference, capped by the full hypothesis-testing toolkit: errors, power, effect sizes, and multiple comparisons. The statistical bedrock every model in the series stands on.
One part of Machine Learning from Scratch. The complete book remains free to read online; this paid edition is the carefully typeset PDF and companion notebook package you keep.
- Pages
- 402 pages
- Edition
- Version 2026.08.2
- Price
- $24 one-time
- Chapters
- 22 chapters

Learning outcomes
What you will learn
- Classify data correctly and choose statistics that match its measurement scale.
- Reason with probability distributions, sampling, uncertainty, and statistical inference.
- Select and carry out z-tests, t-tests, F-tests, ANOVA, and confidence-interval procedures.
- Interpret power, effect size, and multiple-comparison corrections without reducing inference to a p-value.
Audience and prerequisites
Who this volume is for
- Students and practitioners building the statistical foundation required for machine learning.
- Data scientists who want a rigorous refresher on inference, experimental design, and uncertainty.
- Researchers and analysts who need to choose, explain, and report hypothesis tests responsibly.
Prerequisites: No prior machine learning experience needed; basic Python and some comfort with algebra are enough. This volume is the entry point to the series.
Free online preview
Start with “Types of Data”
Complete guide to data classification - quantitative, qualitative, discrete & continuous
Approximately 19 minutes
Exact contents
22 chapters across 2 parts
Every chapter below is included in the PDF and companion code. Links open the corresponding chapter in the free online edition.
Statistical Foundations for Machine Learning
Hypothesis Testing
- 01P-values and Hypothesis Test Setup
- 02Confidence Intervals and Test Assumptions
- 03The Z-Test
- 04The T-Test
- 05The F-Test and F-Distribution
- 06ANOVA (Analysis of Variance)
- 07Type I and Type II Errors
- 08Sample Size, Minimum Detectable Effect, and Power
- 09Effect Sizes and Statistical Significance
- 10Multiple Comparisons
- 11Summary and Practical Guide to Hypothesis Testing
Volume 1 PDF + code
Own this 402-page edition
Get the PDF, the runnable companion notebooks, and every future update and erratum for this volume. The corresponding online chapters stay free to read.
- Carefully typeset PDF
- Companion code for every included chapter
- Future updates and errata included
- Online chapters remain free to read
Volume 1 of 4
$24
one-timeVersion 2026.08.2 · 402 pages · secure checkout via Stripe
Delivered by email · Free updates included
Compare editions
This volume or the complete book?
Volume 1: Statistical Foundations and Hypothesis Testing
402 pages focused on Statistical Foundations for Machine Learning and Hypothesis Testing. Best when this is the subject you need now.
$24
The complete Machine Learning from Scratch book
All four volumes in one 1,717-page PDF, with the complete companion code. Buying three distinct volumes also unlocks the complete book automatically.
$68
Compare all PDF editionsAlso in the series
Explore the other volumes
Volume 2 · 461 pages
Linear and Generalized Linear Models
Model Fundamentals and Diagnostics · Linear and Generalized Linear Models
Explore Volume 2Volume 3 · 503 pages
Trees, Explainability, and Unsupervised Learning
Tree-Based Models · Explainability and Dimensionality Reduction · Unsupervised Learning
Explore Volume 3Volume 4 · 408 pages
Forecasting and Optimization
Time Series Forecasting · Optimization
Explore Volume 4Version history
Kept current, not frozen in time
Each PDF purchase includes future editions. When the book changes, the updated copy appears in My books at no extra cost.
Current release
Edition 2026.08.2
Editorial improvements.
Earlier releases5
2026.08.1
Editorial refinements, restored plot typography, clearer logarithmic axes, and refreshed companion code.
2026.08.0
Editorial improvements throughout the book, with clearer explanations, refined presentation, improved plots and visualizations, and refreshed companion code.
2026.07.2
Improved companion notebooks and validation; removed the obsolete CLT appendix; updated the support contact.
2026.07.1
Validation edition bump: fixed typos in the SSE chapter.
2026.07.0
Initial public PDF and companion-code release.