Technical AIfoundationalVideo + quiz

Calculus and Probability for Machine Learning: Compute Gradients, Likelihoods and Losses

Learn the calculus and probability that every machine learning model runs on, with each idea written as code.

16 lessons · 1.2 hours
Watch the first lesson freeWelcome · 3 min

Sign in to watch one lesson from this course free.

What you will be able to do

Differentiate a loss by the chain rule and confirm the result with finite differencesMinimise a loss by gradient descent and choose a learning rate that convergesCompute conditional probabilities, Bayes updates and maximum likelihood estimatesCompute a stable softmax and cross-entropy loss and explain why classifiers minimise it

About this course

Learn the calculus and probability that every machine learning model runs on, with each idea written as code. You work through derivatives, the chain rule, partial derivatives and gradients, then gradient descent; then random variables, conditional probability and Bayes’ rule, expectation and variance, the Gaussian, maximum likelihood, and entropy and cross-entropy. Every formula is checked against a number your own code computes. You finish by building a tested toolkit of gradient, softmax, cross-entropy and likelihood helpers that the next courses use. Course 3 of the Zero to ML Engineer path.

Technical AI

Curriculum

3 modules · 16 lessons · 1.2h

Requirements

Python, NumPy arrays and broadcasting
Vectors and matrix multiplication
Python 3.14 with NumPy 2.5.4 via uv

What you walk away with

A Yallo AI Academy certificate of completion, issued when every lesson is complete and the final assessment is passed at 70% or aboveA public verification page, so a stranger can check the certificate without asking you for a filePDF download, and a one-click share to your LinkedIn profile

Yallo AI Academy certifies completion of

Calculus and Probability for Machine Learning: Compute Gradients, Likelihoods and Losses