internalsGet Pro

Module 05 · Lesson 9 of 14Pro

Maximum likelihood: fitting models to data

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

When you finish this page you can

  1. Write the likelihood of a dataset under a model, and find the parameter value that makes it largest.
  2. Explain why training works with a sum of log probabilities instead of their product.
  3. Show that log loss is the negative log-likelihood of a Bernoulli label, and that squared error comes from a bell-shaped miss.
  4. Pick a training loss from the distribution of the target, and say when maximum likelihood misleads.

Builds on 2 lessons

Start with lesson 313 min
  1. Random variables and distributions13 min
  2. The chain rule: derivatives through layers14 min

Nobody told the model 13%

is our example online store. Farah, an ML engineer, builds its model: it gives each customer a chance of leaving next quarter, so Joseph’s growth team knows who should get a win-back voucher.

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