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
Price
$24 one-time
Chapters
22 chapters
Machine Learning from Scratch, Volume 1: Statistical Foundations and Hypothesis Testing cover

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

Read the chapter

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.

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-time

Version 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 editions

Also in the series

Explore the other volumes

Version 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
  1. 2026.08.1

    Editorial refinements, restored plot typography, clearer logarithmic axes, and refreshed companion code.

  2. 2026.08.0

    Editorial improvements throughout the book, with clearer explanations, refined presentation, improved plots and visualizations, and refreshed companion code.

  3. 2026.07.2

    Improved companion notebooks and validation; removed the obsolete CLT appendix; updated the support contact.

  4. 2026.07.1

    Validation edition bump: fixed typos in the SSE chapter.

  5. 2026.07.0

    Initial public PDF and companion-code release.