internalsGet Pro

Module 05 · Lesson 5 of 14Pro

Expected value, variance and spread

Level
Beginner
Topic
Probability and statistics for machine learning
Reading time
13 min

When you finish this page you can

  1. Compute the expected value of a discrete random variable and tell when it is the right number to plan with.
  2. Compute variance and standard deviation by hand and in NumPy, and explain why a small tail can dominate them.
  3. Show why the total of many independent outcomes is far more predictable than one outcome.
  4. Choose what a model should predict and what spread to report: mean or median, standard deviation or interquartile range.

Builds on 2 lessons

Start with lesson 313 min
  1. Random variables and distributions13 min
  2. The normal distribution: why it appears everywhere14 min

₹400 a customer, but most bring less

is our example online store. Every Monday, Joseph’s growth team sends 20,000 vouchers of ₹100 to the customers the model says are most likely to stop buying. Farah, an ML engineer, owns that model.

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