internalsGet Pro

Module 06 · Lesson 5 of 9Pro

Bias and variance: two kinds of error

Level
Intermediate
Topic
How models learn: losses and training
Reading time
16 min

When you finish this page you can

  1. Split a prediction’s expected squared error into bias squared, variance and noise, and work out each part by hand for a simple estimate.
  2. Explain why a deliberately biased estimate can miss less on average than an unbiased one.
  3. Predict which part of the error more data, a more flexible model, shrinkage or a new feature will change.
  4. Measure a model’s variance by refitting it on resampled training sets.
  1. Expected value, variance and spread13 min
  2. Sampling and the central limit theorem16 min
  3. Bayesian thinking: priors and posteriors16 min
  4. Models as functions with learnable parameters12 min
  5. The training loop: predict, measure, adjust13 min

Farah’s estimate is wrong on purpose

is our example online store. Joseph’s growth team sends vouchers to customers likely to : to stop buying. Farah, an ML engineer, predicts who will leave, working on a notebook sample of 200,000 customers.

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