internalsGet Pro

Machine Learning Engineering · Module 05

Probability and statistics for machine learning

Lessons
14
Free
0
Reading
~3 h

Your progress

0 / 14 lessons done

Sign in to track

Lessons

  1. Probability: putting numbers on uncertaintyEvery classifier you ship hands someone a number between 0 and 1, and people plan budgets, alerts and stock on it. Knowing what that number promises, and how to check it, decides whether those plans hold.13 min
  2. Bayes’ rule: turning evidence into probabilitiesEvery report that says “most fraud cases had X” or “most leavers did Y” invites the wrong conclusion about the next customer with X or Y. Bayes’ rule turns that report into the number you can act on, and explains why a model’s precision changes when the world around it changes.13 min
  3. Random variables and distributionsEvery label, feature and prediction in ML is a number that could have come out differently. Knowing its distribution tells you which changes in a dashboard are real, what a classifier’s output means, and which loss fits a target.13 min
  4. The normal distribution: why it appears everywhereAlert limits, outlier checks, drift tests and squared-error losses all quietly assume a bell-shaped spread. Knowing when that assumption holds is how you avoid alerts that fire every day, or never.14 min
  5. Expected value, variance and spreadEvery regression model predicts some centre of a distribution, and every forecast, budget and A/B test result needs a spread next to it. Knowing which centre and which spread you are looking at stops you from planning on a number most outcomes never reach.13 min
  6. Correlation is not causationModels learn correlations, and teams act on them. Knowing when a gap in the data is the effect of an action, and when it is only who chose that action, stops you from forecasting returns that never arrive.13 min
  7. Covariance matrices: how features move togetherEvery score built from several features, every PCA and every “is this customer unusual?” check depends on how the features move together. Ignore that, and thresholds flag the wrong number of people, and outlier checks miss the strangest cases.16 min
  8. Sampling and the central limit theoremEvery test-set score, A/B result, monitoring average and mini-batch gradient is the average of a sample. Knowing how far a sample average can drift by chance tells you which changes are real and how much data you need to see them.16 min
  9. Maximum likelihood: fitting models to dataMost losses you train with, from log loss on a churn label to squared error on a forecast, are maximum likelihood under an assumed distribution. Knowing which one tells you what your model assumes about the data, and which loss to pick when the target changes.17 min
  10. Uncertainty in estimates: confidence intervalsEvery metric an ML engineer reports, from a test-set precision to the lift of a voucher, is measured on a sample. The interval around it decides whether a gain is real enough to ship, or whether you need more data first.16 min
  11. Hypothesis tests and p-values for MLML engineers decide every week whether a new model, feature or voucher really beat the old one. A p-value read correctly stops noise from shipping; read wrongly, it ships noise with a number attached.17 min
  12. Bayesian thinking: priors and posteriorsML engineers estimate rates for small groups all the time: a new city, a new product, a rare category. Raw rates from a handful of examples swing to the extremes, and a prior is the standard way to keep them sensible while the data builds up.16 min
  13. Entropy and cross-entropy: measuring surpriseEvery classifier you train reports a cross-entropy loss, and the raw number means little on its own. Knowing the entropy floor of the label tells you whether 0.33 is good, why a fraud model’s loss looks tiny, and when a loss value points to a bug.17 min
  14. Common statistics mistakes in ML workBudgets, model launches and alerts are all decided on numbers someone measured. Most bad decisions come from a few repeated mistakes in reading those numbers, and each one has a cheap check.14 min

Practise with

Terms this module teaches 1

Open glossary

Linearity of expectation

The expected value of a sum equals the sum of the expected values, whether or not the parts are independent.