internalsGet Pro

Module 05 · Lesson 12 of 14Pro

Bayesian thinking: priors and posteriors

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

When you finish this page you can

  1. Treat an unknown rate as a distribution, and update a Beta prior with new counts by hand.
  2. Choose how strong a prior should be from how much similar groups vary.
  3. Read a posterior as a weighted average of the group’s own rate and the prior, and say when the data takes over.
  4. Recognise priors already built into ML tools, such as smoothing counts and L2 weight penalties.

Builds on 3 lessons

Start with lesson 213 min
  1. Bayes’ rule: turning evidence into probabilities13 min
  2. Maximum likelihood: fitting models to data17 min
  3. Uncertainty in estimates: confidence intervals16 min

The worst city on the list has 8 customers

is our example online store. Every Monday, Joseph’s growth team sends win-back vouchers to customers likely to stop buying, which is called . Farah, an ML engineer, works on the notebook sample of 200,000 customers. Across all of them, 13% leave in a quarter.

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