# Mathematics for Machine Learning

Source: https://listme.name/books/mathematics-for-machine-learning
Website: https://mml-book.github.io/

Math foundations for machine learning with a free PDF from the authors

Mathematics for Machine Learning is a 2020 Cambridge University Press textbook by Marc Peter Deisenroth, A. Aldo Faisal and Cheng Soon Ong. It covers linear algebra, analytic geometry, matrix decompositions, vector calculus, probability and optimization. The authors keep a free PDF online.

The book has two parts. The first covers the mathematical foundations: linear algebra, analytic geometry, matrix decomposition, vector calculus, probability and continuous optimization. The second applies that material to four machine learning problems: linear regression, dimensionality reduction, density estimation with mixture models, and classification with support vector machines.

The authors wrote it to motivate mathematical concepts for readers who will use machine learning methods, and they kept it shorter than a full mathematics course. The companion site links the PDF, errata and solutions to exercises. It suits students and practitioners who want the math behind common methods, though it has few worked code examples.

- Free | PDF/Print
- Price: Free PDF from the authors; printed edition from Cambridge
- Checked: 2026-10-10

## Strengths

- Free PDF from the authors
- Connects the math to specific machine learning methods
- Errata and exercise solutions online

## Limits

- Few worked code examples
- Assumes comfort with university-level mathematics

## Rankings

- #7 of 13 in [best AI and machine learning books](https://listme.name/best/ai-and-machine-learning-books), score 85.5: Connects the mathematics directly to regression, PCA and support vector machines, with a free PDF. It has few code examples, so it works best alongside a practical text.

## Alternatives

- [Deep Learning](https://listme.name/books/deep-learning-book), score 94.5
- [Probabilistic Machine Learning: An Introduction](https://listme.name/books/probabilistic-machine-learning), score 92.5
- [Dive into Deep Learning](https://listme.name/books/dive-into-deep-learning), score 91.0
- [An Introduction to Statistical Learning (Python edition)](https://listme.name/books/introduction-to-statistical-learning), score 90.0
- [Deep Learning with Python, Third Edition](https://listme.name/books/deep-learning-with-python), score 88.5
- [Hands-On Machine Learning](https://listme.name/books/hands-on-machine-learning), score 87.0
- [Build a Large Language Model (From Scratch)](https://listme.name/books/build-a-large-language-model-from-scratch), score 85.0
- [Pattern Recognition and Machine Learning](https://listme.name/books/pattern-recognition-and-machine-learning), score 84.0

The entry date records the last review, not a current vendor quote. Confirm price, renewal, cancellation, compatibility and data handling on the official site before committing.
