Contents
Figure 1: Three subjects, not fifteen courses
The three subjects, the best course for each level, and a plan that survives contact
You can call model.fit() for years without knowing what it does. Then a model misbehaves, and you realize you can't tell a bug from a bad assumption. That's when the math starts to matter.
The good news: you don't need a math degree. You need three subjects, a sensible order, and a course that matches your current level. Here's how to pick.
The Three Subjects That Actually Matter
Almost every ML course leans on the same three areas:
- Linear algebra: vectors, matrices, and eigenvalues. This is how data and model weights are represented.
- Calculus: derivatives and gradients. This is how models learn, because gradient descent is calculus doing its job.
- Probability and statistics: distributions, sampling, and hypothesis testing. This is how you reason about uncertainty and evaluate results — the same statistics that drive the bias-variance tradeoff when you diagnose a model.
Everything else, like optimization theory or information theory, builds on those. So start there and resist the urge to collect fifteen courses.
How to Choose a Course
Ask three questions before you enroll:
- Where am I starting? If algebra feels rusty, begin lower than you think.
- How do I learn? Visual learners and lecture learners need different courses.
- Do I need a certificate? Most free options give you knowledge, not paperwork.
IMO, most people overestimate the certificate and underestimate the practice problems. A certificate won't help you debug a loss function.
Best All-in-One: Mathematics for Machine Learning and Data Science
DeepLearning.AI's Mathematics for Machine Learning and Data Science Specialization is the closest thing to a one-stop answer. Its page lists three courses: Linear Algebra, Calculus, and Probability & Statistics. It's labeled beginner, taught by Luis Serrano, and assignments and labs run in Python.
Here's what the page states:
- Linear Algebra: systems of equations, vectors, linear transformations, determinants, and eigenvalues.
- Calculus: derivatives, optimization, gradients, gradient descent, and Newton's method.
- Probability & Statistics: distributions, sampling, confidence intervals, hypothesis testing, and A/B testing.
- Time: the page lists about 94 hours total, and the FAQ suggests roughly 5 hours a week over several weeks per course.
- Background: high school math and basic-to-intermediate Python.
- Cost: the FAQ says a Coursera subscription costs $49 a month. You can preview the first module free, but certificates require payment.
The page contradicts itself slightly on the course count (three in the outline, "4 courses" in the FAQ), so confirm what you're buying. The upside is that it ties math directly to ML tasks. The downside is that graded work and certificates sit behind the paywall.
Best for Visual Intuition: 3Blue1Brown
If matrices make your eyes glaze over, watch Essence of Linear Algebra on YouTube. A roundup I checked lists it as free, roughly 3 hours long, with no certificate. It won't give you problem sets, so use it as a companion to a full course, not a replacement.
I'd watch it before any formal linear algebra course. FYI, intuition first makes the equations feel like labels for ideas you already understand.
Best for Filling Gaps: Khan Academy
Khan Academy is free and covers algebra, linear algebra, calculus, and statistics. It's the right tool when one topic trips you up, like the chain rule or conditional probability. Use it as needed instead of working through everything. It has no certificate, and it isn't built around ML, so you'll connect the dots yourself.
Best for Rigor: MIT OpenCourseWare
When you want depth, MIT has you covered.
- 18.06 Linear Algebra with Gilbert Strang. MIT describes it as a basic subject on matrix theory and linear algebra, covering systems of equations, vector spaces, determinants, eigenvalues, similarity, and positive definite matrices. It has video lectures. One roundup describes it as a destination and not a starting point, and estimates about 35 hours.
- 18.065 Matrix Methods in Data Analysis, Signal Processing, and Machine Learning (Spring 2018), also with Strang. It reviews linear algebra with applications to probability, statistics, and optimization, and lists 18.06 as a prerequisite. The textbook is Linear Algebra and Learning from Data, and the course page doesn't say whether the book is free.
MIT's pages describe OpenCourseWare as freely shared knowledge under a Creative Commons license, though the 18.06 page didn't state the cost directly. Expect to work hard. These courses assume you want to understand proofs and structure, not just apply formulas.
Best Structured Free Path: Imperial College London
The Mathematics for Machine Learning Specialization from Imperial College London on Coursera covers linear algebra, multivariate calculus, and PCA. One roundup lists it as free to audit with paid certificates, at about 50 hours, and more formal than beginner paths. I didn't open the Coursera page itself, so verify the details there.
It suits you if you like a university pace and want PCA, which connects math to a real ML technique — the kind covered step by step in the PCA tutorial in this series.
A Newer Free Option: FreeAcademy.ai
The same roundup lists short FreeAcademy.ai courses: Mathematics for AI (9 lessons), Linear Algebra for AI (18), Calculus for Machine Learning (18), and Probability & Statistics for AI (20). It presents them as free with certificates. I only saw this on one third-party article, and I didn't verify the courses or their quality. Try one lesson before you commit time.
Honest Comparison
| Option | Best for | Cost | Catch |
|---|---|---|---|
| DeepLearning.AI specialization | Beginners who want ML-focused math | Subscription (about $49/month per its FAQ) | Certificates are paid; course count unclear |
| 3Blue1Brown | Visual intuition | Free | No exercises |
| Khan Academy | Plugging specific gaps | Free | Not ML-specific |
| MIT 18.06 / 18.065 | Rigor and depth | Free | Demanding; 18.065 assumes 18.06 |
| Imperial College (Coursera) | University-style structure | Free to audit | Certificates paid |
| FreeAcademy.ai | Quick, free overviews | Free | Little verification |
A Study Plan That Holds Up
Don't read the table and sign up for six courses. Pick one path:
- If you're rusty: Khan Academy for gaps, then 3Blue1Brown for linear algebra intuition.
- Core learning: the DeepLearning.AI specialization, or Imperial's, at about 5 hours a week.
- Apply it: after each topic, code it. Implement gradient descent — the same descent our linear regression from scratch guide walks through — then compute an eigendecomposition with NumPy. A concept you've coded sticks.
- Go deeper later: use MIT's 18.06, then 18.065, once the basics feel comfortable.
Personal note: the chain rule lived in my head as symbols for years until I implemented gradient descent by hand — five lines of NumPy on a tiny regression, computing each partial derivative manually and watching the loss tick down after every step. The formula stopped being notation and became a lever I was pulling. That's why step 3 isn't optional: the coding isn't applying the math, it's where the math finally lands.
Common Mistakes
- Collecting courses instead of finishing one — six half-started specializations teach nothing.
- Starting too advanced because "beginner" feels beneath you.
- Watching without problem sets — intuition videos are companions, not courses.
- Memorizing formulas without coding them, so nothing sticks past the exam.
- Skipping probability, the most skipped of the three and the most-used in practice.
- Buying certificates for the resume instead of buying the practice.
- Ignoring linear algebra because libraries hide it — until PCA or an embedding breaks.
- Trying to learn all the math before touching ML — you'll forget it without context.
Best Book to Read
| Cover | Book | Description | Get it |
|---|---|---|---|
![]() |
Mathematics for Machine Learning | - the free-PDF companion to this whole path, covering exactly the three subjects in the right order. | View on Amazon |
![]() |
Practical Statistics for Data Scientists | - the statistics that actually show up in model evaluation and A/B tests. | View on Amazon |
![]() |
An Introduction to Statistical Learning | - where the math meets real models, with labs in Python and R. | View on Amazon |
Partner offer
Educative Unlimited: every AI course, one subscription
Interactive, browser-based courses with no local setup — a natural fit for the learning path above. One subscription unlocks the full generative AI, ML, and data catalog, so you can work through it at your own pace.
As an Amazon Associate I earn from qualifying purchases. Links on this page are affiliate links, and I may earn a commission at no extra cost to you.
Unlock AI That Actually Works
Get lifetime access to GPT-6 Astra, Claude Fable 5.1, Gemini 3.5, Grok 4.5, and more — all in one platform. Build websites, apps, videos, content, and digital products from a single command. No monthly fees. No tool-hopping.
Click here to get GPTAstra Max now — one-time payment, lifetime access.
Frequently Asked Questions
What math do I actually need for machine learning?
Three subjects, in rough order of urgency: linear algebra (vectors, matrices, eigenvalues — how data and weights are represented), calculus (derivatives and gradients — how models learn), and probability and statistics (distributions, sampling, hypothesis testing — how you reason about uncertainty and evaluate results). Everything else, like optimization or information theory, builds on those three.
Should I learn math before or alongside machine learning?
Alongside, at least partly. Learn just enough to run the tools, then let real problems tell you which math to deepen. A course taken with no ML context slides out of your head; the same eigenvalue concept sticks when you've just watched PCA fail because of a scaling bug. Use gap-filling resources like Khan Academy on demand rather than trying to complete a math degree first.
Are paid math certificates worth it?
Usually not for the certificate itself. Most employers care that you can apply the math, not that you paid for paperwork — a certificate won't help you debug a loss function. Pay for a subscription when the graded assignments and labs push you to actually do the problems, which is the real value behind the paywall on platforms like Coursera.
How long does it take to learn the math for ML?
At a realistic pace of about 5 hours a week, the core three subjects take a few months per structured specialization — the DeepLearning.AI path lists roughly 94 hours total. Intuition-first videos (3Blue1Brown, ~3 hours) plus targeted gap-filling can be faster if you mostly need refreshers. The timeline that matters is finishing one path, not collecting all of them.
Wrapping This Up
Learn linear algebra, calculus, and probability and statistics, in that rough order of urgency. Use 3Blue1Brown for intuition, Khan Academy for gaps, a structured specialization for the core, and MIT when you want rigor. Free options cover most of what you need, and paid certificates are optional.
Pick one course today and finish its first lesson tonight. And once the math starts clicking, the algorithms guide shows where each piece of it goes to work.


