Sahin Boydas
Random theme
Select theme
Mathematics for Machine Learning cover

Mathematics for Machine Learning: The Free Book That Fills the Gap Before the Textbooks

by Marc Peter Deisenroth, A. Aldo Faisal & Cheng Soon Ong · Cambridge University Press, 2020

By Sahin Boydas✓ Updated December 2026On 1 book list

Marc Peter Deisenroth, A. Aldo Faisal and Cheng Soon Ong wrote Mathematics for Machine Learning for Cambridge University Press in 2020. Deisenroth and Faisal taught machine learning at Imperial College London, and Ong is a researcher at CSIRO's Data61 in Australia. Their aim is to teach the maths that machine learning textbooks take for granted.

Part one teaches the mathematics: linear algebra, analytic geometry, matrix decompositions, vector calculus, probability and distributions, and continuous optimization. Part two uses it to derive four methods in full: linear regression, principal component analysis, Gaussian mixture models and support vector machines. Each derivation shows where every piece of part one is used.

Readers recommend it as a bridge. The classic textbooks by Bishop, Murphy and Hastie assume this material. The authors keep a free PDF on the companion site, along with Jupyter tutorials and extra exercises.

How Tech People Read It

Pieter Abbeel

Abbeel, a Berkeley robotics and learning researcher, praises the book's exposition of the maths under modern ML. His field uses gradients, probability and optimization daily. For his students, the book is a way to get fluent in those tools before research papers.

Joelle Pineau

Pineau, then at McGill and Facebook's AI lab, values its full coverage of the basic concepts. The book does not try to teach ML methods broadly. It makes sure the reader has every piece of maths the methods need.

Engineers returning to maths

Many engineers studied linear algebra years ago and forgot it. This book reteaches it with machine learning in view, so each topic has a reason. The notebooks on regression, PCA and Gaussian mixtures let readers check their understanding in code.

The Main Ideas

  • Linear algebra is the language in which data, models and their transformations are written.
  • Matrix decompositions such as eigendecomposition and SVD reveal the structure of data.
  • Gradients computed with vector calculus drive the training of nearly every model.
  • Probability gives a principled way to describe uncertainty in data and predictions.
  • Principal component analysis can be derived from projection, from variance or from a probabilistic model.

Who Should Read It

Read it before or alongside an ML textbook if its equations stop you. It suits engineers, career changers and students. Skip it if you are comfortable with matrix calculus and probability; you will gain more from going straight to Bishop or Murphy.

The Book

Cover of Mathematics for Machine Learning by Marc Peter Deisenroth, A. Aldo Faisal & Cheng Soon Ong

Book 01 Foundations

Mathematics for Machine Learning

by Marc Peter Deisenroth, A. Aldo Faisal & Cheng Soon Ong

Publisher
Cambridge University Press, 2020
Goodreads
4.31 of 5 from 280 ratings

Why read it

Part one teaches the maths: linear algebra, analytic geometry, matrix decompositions, vector calculus, probability and continuous optimisation. Part two uses it to derive four methods in full: linear regression, principal component analysis, Gaussian mixture models and support vector machines. Read it before or alongside the textbooks below if their notation stops you. The authors keep a free PDF online.

What people said

  • “This book provides a beautiful exposition of the mathematics underpinning modern machine learning.”

    Pieter Abbeel, University of California, Berkeley, on the book's site mml-book.github.io ↗

  • “This book provides great coverage of all the basic mathematical concepts for machine learning.”

    Joelle Pineau, McGill University and Facebook, on the book's site mml-book.github.io ↗

Watch

Mathematics for Machine Learning (book review)KareemA review covering who needs the book and what it assumes you know.

On These Book Lists

Frequently Asked Questions

Is Mathematics for Machine Learning free?

Yes. The authors publish a free PDF on the book's companion site, mml-book.com, and Cambridge University Press sells the print edition.

What maths do I need for machine learning?

Linear algebra, vector calculus, probability and optimization. Mathematics for Machine Learning teaches all four with ML examples.

Is Mathematics for Machine Learning good for beginners?

It suits readers with high school maths and some willingness to work. It is rigorous, so expect to do exercises.

Does Mathematics for Machine Learning cover deep learning?

No. It covers the maths behind all ML and applies it to four classic methods. Deep learning books build on it.