internalsGet Pro

Module 05 · Lesson 11 of 14Pro

Hypothesis tests and p-values for ML

Level
Intermediate
Topic
Probability and statistics for machine learning
Reading time
17 min

When you finish this page you can

  1. Compute the z statistic and two-sided p-value for a gap between two rates, by hand and with SciPy.
  2. Say what a p-value measures, and why it is not the chance that an effect is real or a measure of its size.
  3. Explain the significance level, false positives and power, and why one Monday’s hold-out can’t settle a 2-point effect.
  4. Use a paired test for two models scored on the same customers, and correct for many tests run at once.

Builds on 2 lessons

Start with lesson 816 min
  1. Sampling and the central limit theorem16 min
  2. Uncertainty in estimates: confidence intervals16 min

Could a useless voucher give this gap?

is our example online store. Every Monday, Farah’s model picks the 20,000 customers most likely to stop buying, and Joseph’s growth team emails each one a ₹100 voucher. Farah keeps 1,000 flagged customers out of the email to measure what the voucher does.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan