The book Amazon sells for about $56 is the same book its authors give away as a PDF. An Introduction to Statistical Learning sits on statlearning.com as a complete free download, in the R edition and the Python edition both. Five of the ten best machine learning books below are complete free PDFs from their own authors, and three more are free in some narrower form.
So the useful question is not which titles are good. That argument was settled years ago and the same names keep winning it. The question is which ones earn paper, what order to read them in, and which edition to buy now that the framework under the most popular hands-on book has been swapped out.
That last part is the one decision on this page that costs real money to get wrong. Aurélien Géron’s Hands-On Machine Learning was the default recommendation for a decade, built on Scikit-Learn, Keras and TensorFlow. The late 2025 rewrite drops Keras and TensorFlow for PyTorch and Hugging Face, and Amazon still stocks both. The older one is cheaper by about $28 and carries twelve times the ratings.
Every price, rating count, page count, stock state and buy box seller below was re-pulled from Amazon’s own catalogue on 27 September 2026, and every free PDF claim was checked by opening the author’s own site in September 2026.
Quick picks by what you actually need
If you buy one machine learning book, make it An Introduction to Statistical Learning. It covers the whole classical toolkit in 622 pages, the labs run in Python or R, and the authors give the complete PDF away, so the only risk is the price of paper. Past that first book, five more awards cover five different jobs. Nobody needs all ten.
- Start here: An Introduction to Statistical Learning. The only book on this list that teaches the whole toolkit without demanding measure theory first, and the labs now run in Python.
- Best for writing code: Hands-On Machine Learning with Scikit-Learn and PyTorch. 875 pages of working projects, current with the framework people actually deploy.
- Best reference to keep on the desk: The Elements of Statistical Learning. Seventeen years old, 1,361 ratings, still the book people cite when an argument about regularisation needs settling.
- Best gap filler: Mathematics for Machine Learning. Buy this the first time a gradient derivation stops making sense.
- Best deep learning entry point: Understanding Deep Learning. Sixty eight exercise notebooks and a PDF the author refreshed in February 2026.
- Shortest way in: The Hundred-Page Machine Learning Book. Read it in a week, then decide which of the other nine you need.
How these ten were checked
Three things were verified for every entry, because this shelf is full of stale listings and lookalike editions.
The listing is alive and it is the right edition. Each ASIN was pulled from Amazon’s catalogue API for price, list price, page count, publisher, publication date and stock state, then rendered on a US listing to read the shipping wording and the rating count. Several listings ship on a delivery date rather than from stock, several more are down to a handful of copies, and the R edition’s 2021 hardcover printing is down to a single copy. The softcover ASIN is linked instead, so the link does not fail in a reader’s cart. The Computer Age Statistical Inference hardback fell to one marketplace copy in September, so that pick now links the 2021 Student Edition, which Amazon sells from stock.
Who is actually selling it was checked too. Five of these listings have their buy box held by a marketplace seller rather than Amazon: the R edition of An Introduction to Statistical Learning, Murphy’s Introduction, its Advanced Topics companion, Understanding Deep Learning and Bishop’s Deep Learning. That is ordinary for low volume academic hardbacks and it is noted in each section, but it is the field that decides whether a price holds tomorrow. It also cost one pick its format. The Hundred-Page Machine Learning Book paperback has no buy box at all, only a single third party copy, so the hardcover is the linked edition here.
The free version claim was opened, not assumed. Every “the PDF is free” line on this page came from loading the author’s own site in September 2026 and reading what it actually offers. There is a real difference between a downloadable PDF, a browser-only reading copy, a draft under a non-commercial licence, a set of chapter drafts, and two free sample chapters. All five appear below, and the table says which one each pick has.
Nothing here was ranked by vibes. Rating counts are Amazon’s, on the day. They are a popularity signal and nothing more, which is why the newest book on the list sits at 77 ratings and still wins its category. Where a book is genuinely dated, that is stated in its own section instead of being smoothed over.
The ten books at a glance
Prices move daily on Amazon, so treat the column as a snapshot rather than a quote. Ratings and pages are steadier.
| Book | Best for | Free from the author | Pages | Ratings | Price, 27 Sep 2026 |
|---|---|---|---|---|---|
| An Introduction to Statistical Learning | First serious book | Full PDF | 622 | 160 (Python), 459 (R) | $56 / $39 |
| The Elements of Statistical Learning | Reference | Full PDF | 767 | 1,361 | $71 |
| Hands-On ML with Scikit-Learn and PyTorch | Writing code | Notebooks only | 875 | 77 | $78 |
| Mathematics for Machine Learning | Prerequisites | Full PDF | 398 | 1,048 | $51 |
| Probabilistic Machine Learning: An Introduction | Graduate breadth | Draft PDF, CC BY NC ND | 864 | 252 | $87 |
| Understanding Deep Learning | Deep learning first pass | Full PDF | 544 | 217 | $62 |
| Deep Learning: Foundations and Concepts | Deep learning in print | Browser only | 669 | 267 | $50 |
| Statistical Rethinking | Bayesian thinking | Two sample chapters | 594 | 380 | $93 |
| Computer Age Statistical Inference, Student Edition | Why any of it works | Full PDF, personal use | 512 | 56 | $44 |
| The Hundred-Page Machine Learning Book | One week overview | Chapter drafts | 160 | 1,324 | $50 |
Machine learning books by level and goal
Pick the row that describes you today, not the one you are aiming for. The maths column is the one that decides whether you finish the book.
| Where you are | Start with | Maths it assumes | Read next |
|---|---|---|---|
| New to machine learning, want the map | The Hundred-Page Machine Learning Book | Algebra, comfort with notation | An Introduction to Statistical Learning |
| Software engineer, first serious book | An Introduction to Statistical Learning, Python edition | One intro statistics course, no matrix algebra | Hands-On Machine Learning |
| Python developer who learns by running code | Hands-On Machine Learning with Scikit-Learn and PyTorch | Light, explained as it goes | Understanding Deep Learning |
| The maths is what stops you | Mathematics for Machine Learning | School maths | The Elements of Statistical Learning |
| Need a textbook for a course or a reference | The Elements of Statistical Learning | Linear algebra, probability, multivariable calculus | Probabilistic Machine Learning: An Introduction |
| Going straight at deep learning | Understanding Deep Learning or Bishop’s Deep Learning | Calculus, linear algebra, probability | The other one, borrowed or free |
| Inference and Bayesian modelling | Statistical Rethinking | Very little, taught through code | Computer Age Statistical Inference |
| Large language models | A different shelf. The LLM engineering books cover transformers in production, retrieval and fine tuning. | ||
| Models in production | Also a different shelf. Start with the MLOps books. | ||
Machine learning textbooks versus practical books
Six of the ten are textbooks in the strict sense: The Elements of Statistical Learning, Probabilistic Machine Learning, Mathematics for Machine Learning, Understanding Deep Learning, Bishop’s Deep Learning and Computer Age Statistical Inference. They carry exercises, they derive what they use, and university courses are built on them. Hands-On Machine Learning and The Hundred-Page Machine Learning Book are practical books, written to get a working model out of you rather than a proof. An Introduction to Statistical Learning sits deliberately between the two, a textbook with a lab at the end of every chapter, which is why it keeps winning the first book slot. Statistical Rethinking is a textbook that teaches through code, and it reads more like a course than either camp.
The best machine learning book for Python
Two picks on this list are Python first: the Python edition of An Introduction to Statistical Learning, with its ISLP labs, and Hands-On Machine Learning with Scikit-Learn and PyTorch. Read them in that order. Two more Python books are worth knowing, even though neither made the ten.
Sebastian Raschka and his co-authors’ Machine Learning with PyTorch and Scikit-Learn follows the same arc as Géron, scikit-learn for tabular work and then PyTorch for deep learning, across 770 pages. It is around $34 with 527 ratings, the cheapest serious Python option here. The catch is age: it came out in February 2022, before ChatGPT, so transformers get a single chapter and diffusion models are absent.
François Chollet and Matthew Watson’s Deep Learning with Python, Third Edition is the newer of the two, published by Manning in November 2025, and it is a full rewrite. Chollet created Keras, and the book runs Keras 3 on top of PyTorch, JAX or TensorFlow, then builds a GPT-like language model and a diffusion model from scratch. Print runs around $73, and the complete text reads free online at deeplearningwithpython.io, so read two chapters before deciding whether it or Hands-On Machine Learning is your one code-first book.
Which edition is the latest
This shelf is full of old editions still on sale next to new ones. Check the edition before you check the price.
| Book | Current edition | What to avoid or wait for |
|---|---|---|
| An Introduction to Statistical Learning | Python edition, 2023. R users: second edition, 2021 | The 2013 first edition, which has no deep learning, survival analysis or multiple testing chapters |
| The Elements of Statistical Learning | Second edition, 2009 | Nothing newer in print. The free PDF is the corrected twelfth printing from January 2017 |
| Hands-On Machine Learning | Scikit-Learn and PyTorch, late 2025 | The Keras and TensorFlow third edition (2022) is a parallel version, not a mistake. The first two editions are outdated |
| Mathematics for Machine Learning | First edition, 2020 | None. The free PDF carries fixes the print run lacks |
| Probabilistic Machine Learning: An Introduction | 2022, draft PDF dated April 2025 | Murphy’s 2012 Machine Learning: A Probabilistic Perspective, which this replaces |
| Understanding Deep Learning | 2023 print, PDF refreshed February 2026 | None in print |
| Deep Learning: Foundations and Concepts | First edition, late 2023, corrections list July 2025 | Pattern Recognition and Machine Learning (2006), which its own author has now replaced |
| Statistical Rethinking | Second edition, 2020 | A third edition is in progress with no publication date |
| Computer Age Statistical Inference | Student Edition, 2021, with 130 exercises | The 2016 hardback, same text without the exercises |
| The Hundred-Page Machine Learning Book | 2019 | None. The author’s newer book is on language models, not a new edition |
1. An Introduction to Statistical Learning
This is the book that sent most people here. Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani wrote it as the readable sibling of The Elements of Statistical Learning, and Jonathan Taylor joined for the Python edition.

Thirteen chapters take you from what statistical learning is through regression, classification, resampling, regularisation, trees, support vector machines, deep learning, survival analysis, unsupervised learning and multiple testing. Every chapter ends in a lab. The maths is honest but bounded, so a working engineer with first year calculus and linear algebra can follow it without stalling.
Two editions are on sale and they are not the same book with a different sticker. The Python edition runs around $56 against a $119.99 list, sold by Amazon but down to a handful of copies with more on the way, and has 160 ratings. The second R edition is around $39 with 459 ratings, and its buy box has moved to a marketplace seller. Same 622 pages, same chapters. Pick by the language you already write, and check the current price on Amazon before ordering because the discount on the Python edition has been unusually deep.
The labs need a package, and it is a real one that is still being maintained. ISLP shipped 0.4.1 in February 2026 and wants Python 3.10 or newer, so pair it with a current Python install rather than a distro python from three releases ago:
python3 -m venv ~/islp
source ~/islp/bin/activate
pip install ISLP
On a minimal Ubuntu or Debian image that first line fails with ensurepip is not available until python3-venv is installed, which the Python guide above covers. Add JupyterLab and the labs run as written. For the R edition, the R and RStudio Server setup covers the equivalent environment.
Buy it if you need to use these methods correctly rather than derive them. Leave it if you already know the difference between ridge and lasso and want the proofs, because this book deliberately withholds them. Both editions are complete free PDFs at statlearning.com, so read a chapter before you spend anything.
2. The Elements of Statistical Learning
Hastie, Tibshirani and Friedman wrote the book that the previous entry politely simplifies. It has 1,361 Amazon ratings, the most of any book on this list, and it was last revised for print in 2009.

767 pages, and almost none of them are padding. The chapters on model assessment, boosting and the bias variance decomposition are the reason this book refuses to age out. When somebody at work claims a model is overfitting, this is the text that tells you how to prove it.
The free PDF on Hastie’s Stanford page is the corrected twelfth printing from January 2017, which is eight years of corrections newer than the date on the cover. The print copy runs around $71 and is in stock at Amazon.
The reader this fits wants the derivation, not the recipe. It is the wrong book if deep learning is your target. The neural network chapter here predates the entire modern architecture family, and three books further down this page cover that ground properly.
3. Hands-On Machine Learning with Scikit-Learn and PyTorch
Géron rewrote the most widely recommended practical machine learning book on the market and changed the framework underneath it. The Keras and TensorFlow edition is still on sale next to it, which makes this the easiest purchase on this page to get wrong.
875 pages, published in late 2025, and the second half is a different book from the third edition. PyTorch replaces Keras, the Hugging Face ecosystem carries the transformer and pretrained model chapters, diffusion models get real coverage, and fine tuning a language model is treated as a normal task rather than an appendix. The notebooks live in the ageron/handson-mlp repository, separate from handson-ml3, which stays on TensorFlow.
The economics are worth stating plainly. This edition sits around $78 with 77 ratings. The Keras and TensorFlow third edition is around $50 with 902 ratings. You are paying roughly $28 for a framework switch, and it is the right $28 if you are learning deep learning today, because PyTorch is what most new work and most published code now assumes. O’Reilly treats the two as parallel versions rather than a replacement and keeps both on sale, so buy the older one if your workplace is already committed to TensorFlow.
Aimed squarely at engineers who learn by running code and want one book spanning classical models and modern neural networks. Where it falls short: theory. Géron shows you what works and moves on, which is the point of the book and also its limit. If your interest is what happens after the model trains, the MLOps reading list picks up where this stops.
4. Mathematics for Machine Learning
Most people do not fail at machine learning. They fail at the linear algebra three pages into a derivation and quietly stop reading. Deisenroth, Faisal and Ong wrote 398 pages to fix exactly that.
The first half is linear algebra, analytic geometry, matrix decompositions, vector calculus, probability and optimisation. The second half spends that machinery on four problems: linear regression, dimensionality reduction, density estimation and classification with support vector machines. That structure is what separates it from a general maths textbook. You never learn a technique without seeing the model that needs it.
Cambridge published it in April 2020 and the authors keep the PDF free at mml-book.github.io. The live PDF carries typo fixes that never made it into the printed run, so the free copy is genuinely the more correct one. Print runs around $51 with 1,048 ratings.
Worth buying the first time you bounce off a proof and want to go back and fix it properly. Not worth it if your linear algebra is already solid, because the payoff chapters are shorter than the setup and you will have read better treatments of SVMs elsewhere.
5. Probabilistic Machine Learning: An Introduction
Kevin Murphy’s 864 page rebuild of his 2012 textbook is the widest single volume on this list. “Introduction” is doing heavy work in that title.
Everything is framed probabilistically, which is what makes it cohere. Linear models, deep networks, generative models and decision theory all arrive as instances of the same idea instead of a tour of unrelated algorithms. That framing is why researchers reach for it and why it is heavy going as a first book.
MIT Press published it in March 2022. It runs around $87, down from $107 at the start of September, with 252 ratings. The buy box belongs to a marketplace seller rather than Amazon, and the listing ships on a delivery date rather than from stock. Murphy keeps a draft PDF on the probml site under a CC BY NC ND licence, last dated April 2025. The second volume, Probabilistic Machine Learning: Advanced Topics, adds 1,360 more pages for around $150 and is down to a few copies. Nobody needs both to start.
This one suits graduate students and engineers who want a book that will still answer questions in three years. Two reasons to pass: you are self teaching without a course around you, or you want to finish it, because the density that makes it a good reference makes it a punishing tutorial. Check the current price on Amazon; at list price this is a $125 commitment to a book you can read free first.
6. Understanding Deep Learning
Simon Prince set out to write the shortest honest deep learning textbook and landed on 544 pages, which in this company counts as restraint.
Chapters are short and each one closes a specific idea: shallow networks, deep networks, loss functions, gradient descent, convolutional networks, transformers, diffusion models, reinforcement learning. The illustrations carry a lot of the explanation, and the exercise set is the real differentiator. Sixty eight Python notebooks with the code deliberately left out for you to fill in, all runnable in Colab.
The book site hands over the complete PDF, and the copy there was refreshed on 9 February 2026, more than two years after the December 2023 print date. Answers to selected questions and an errata list sit next to it. The hardcover has dropped to around $62 against a $100 list, but the buy box has moved from Amazon to a marketplace seller with limited stock, so check who is selling before you order. This is one of the few titles here where the free version is unambiguously the better artefact.
Good first deep learning book for anyone who has already met gradient descent. It will not help with production engineering, because there is nothing here about serving, quantisation or inference cost. Those questions start in the LLM and AI engineering books and end on a box running NVIDIA drivers and the CUDA toolkit.
7. Deep Learning: Foundations and Concepts
Christopher Bishop wrote Pattern Recognition and Machine Learning in 2006, a book a generation of researchers learned from. This is what he wrote with his son Hugh to replace it, and Springer Nature says it was their bestselling title in both 2024 and 2025.
669 pages split into small chapters, with a self contained probability primer so the book does not assume a statistics course you never took. Bishop states the design goal openly, which is to cover the ideas likely to outlast the current architecture cycle rather than chase the last twelve months. Transformers, diffusion models and normalising flows are all there; nothing is built around a specific library version.
At around $50 against a $89.99 list it is the cheapest serious deep learning hardback here, and the physical object is unusually good, printed with stitched signatures so it lies flat while you work through the maths. The listing ships on a delivery date rather than from stock and the buy box sits with a marketplace seller, so both the price and the availability move faster than the rest of this list. Check both before you count on them. bishopbook.com carries a free to use online version, corrections to the first printing, the full figure set, and exercise solutions for chapters 2 to 10.
Made for readers who want deep learning grounded in probability and intend to keep the book on a shelf. Two reasons to hesitate: worked solutions stop at chapter 10 and the rest are still listed as coming, and the free version reads in a browser without ever becoming a file you own.
8. Statistical Rethinking
Richard McElreath teaches Bayesian inference by taking away the recipes. That is the whole method, and it is why people who already passed a statistics course come out of this book saying they finally understood it.
594 pages of causal thinking, priors that you have to justify, multilevel models and posterior predictive checks, with examples in R and Stan. Ports to Python with PyMC and NumPyro are community maintained and easy to find. Nothing else on this list will change how you read a p value in someone else’s report.
It is also the most awkward buy here. The second edition is from March 2020, runs around $93, ships on a delivery date rather than from stock, and there is no free PDF beyond the first two chapters. McElreath has said on his book page that a third edition is in progress with no date attached. His full lecture series is free on YouTube, which softens the price considerably.
Anyone whose job involves defending a number to somebody else should read this. The reason to wait: paying $93 for a six year old edition while the author is writing the next one is a defensible thing to postpone.
9. Computer Age Statistical Inference
Bradley Efron and Trevor Hastie wrote the book that explains why the field looks the way it does. It answers a question the other nine skip: what happened to statistics when computers arrived.

The book walks from classical inference through the bootstrap, which Efron invented, to the empirical Bayes and large scale testing methods that modern practice runs on, and finally to machine learning itself. Read alongside The Elements of Statistical Learning it turns a catalogue of techniques into a story with reasons in it.
Cambridge published it in 2016 and the PDF has been free on Hastie’s page since March 2017, with permission, for personal use only. Buy the 2021 Student Edition, not the hardback. It is the same book in paperback plus 130 class tested exercises, 512 pages, around $44 and sold by Amazon. The 2016 hardback costs more and was down to one marketplace copy in late September. The Student Edition has 56 ratings, the fewest on this list, and that is a reflection of who buys it rather than how good it is.
For the reader who wants context rather than another algorithm. Not the book if you need something actionable this week, because nothing in here tells you what to run tomorrow morning.
10. The Hundred-Page Machine Learning Book
Andriy Burkov compressed the field into a book you can finish on a long weekend, and 1,324 people rated it, which is more than eight of the nine titles above it.
160 pages in Amazon’s catalogue, and the compression is the feature. Supervised learning, the main algorithm families, feature engineering, regularisation, evaluation and the practical failure modes all get stated once, clearly, with no worked examples to hide behind. It is the fastest way to find out which parts of this field you actually care about before committing $78 to a doorstop.
Burkov sells it on a read first, buy later basis. Chapter drafts download free from the book’s wiki and the ebook on Leanpub is pay what you want above a $20 minimum, so you pay only if it was useful. Check which binding you are buying, though. The paperback listing has no buy box and a single third party copy, while the hardcover is $50 shipped by Amazon and is the edition linked here. He has since written a Hundred-Page Language Models Book on the same model.
Best fit: the engineer who has to hold a conversation about a model next week. Its limit is building anything, because 160 pages cannot carry both the map and the terrain, and this one chose the map.
Which of the best machine learning books to buy first
Four routes cover almost everyone, and none of them starts with buying more than two books.
Coming from software engineering. An Introduction to Statistical Learning first, in whichever language you write, then Hands-On Machine Learning with Scikit-Learn and PyTorch. The first gives you the vocabulary and the reason each method exists, the second turns it into code you have run. That pair is $115 to $135 depending on which edition of the first book you take, and it covers everything most jobs ask for. Add Understanding Deep Learning only when a neural network becomes your problem rather than an interest.
Coming from statistics. Skip the introduction and start at The Elements of Statistical Learning, with Computer Age Statistical Inference next to it for the history. Statistical Rethinking after that if inference is the part of the job you own.
Going straight at deep learning. Pick one of Understanding Deep Learning or Deep Learning: Foundations and Concepts, never both. Prince gives you 68 exercise notebooks and a PDF that keeps getting updated. Bishop gives you a better physical book, a probability primer and a lower price. If you are unsure, read a chapter of each free before deciding, which costs nothing.
Not sure yet. The Hundred-Page Machine Learning Book, one week, and free to read before you pay anything. Then come back to this list knowing which of the other nine you need.
Two books that show up on every other list are deliberately not picks here. Goodfellow, Bengio and Courville’s Deep Learning is free to read in HTML at deeplearningbook.org and remains a fine reference for the mathematics, but it was published in 2016 and predates transformers entirely, so it cannot be a first deep learning book in 2026. Bishop’s Pattern Recognition and Machine Learning is in the same position and its own author has now written the replacement. Both are worth reading. Neither is worth buying new.
What the paperback buys you when the PDF is free
Five of these ten are complete free PDFs from their own authors, a sixth is a working draft under a non-commercial licence, a seventh reads free in a browser and an eighth hands over chapter drafts. That is unusual for any technical shelf and it changes what you are actually paying for.
You are not paying for the content. In two cases you are paying for slightly worse content, because the Mathematics for Machine Learning PDF carries fixes that never reached the printed run, and the Understanding Deep Learning PDF was refreshed in February 2026 against a print date of December 2023. The Elements of Statistical Learning free PDF is the corrected twelfth printing, not the 2009 first run. Check the date on the download before assuming your hardback is the current text.
What the money buys is the format. These are books you read with a pen, doubling back three chapters to re check a definition, and page flipping beats scrolling for that. Bishop’s publisher went as far as stitched signatures so the hardback lies flat next to a keyboard, which is a real consideration when you are copying a derivation. A 767 page reference on a shelf gets opened for years. The same PDF in a downloads folder gets opened twice.
The order that works is cheap and obvious. Download the free copy, read one chapter properly, and buy the paper edition only for the two or three you keep returning to. Every author here published the PDF precisely so you could do that, and the titles with no free full text hand you a substitute anyway: Géron gives you the complete notebook repository, McElreath gives you the full lecture series, and Burkov gives you the chapter drafts. There is no version of this list that requires spending money to find out whether a book is any good.






