What popular courses say you need
Prerequisites rise quickly from beginner to university level. Read the requirement on the course page itself, because the course title rarely tells you.
| Course | Math stated | Coding stated | Level and length on the page |
|---|---|---|---|
| Google Data Analytics Professional Certificate (Coursera) | No prior experience required | No prior experience required | Beginner; 9 courses, about 6 months at 10 hours a week |
| Practical Deep Learning for Coders (fast.ai) | High school math is sufficient; no university math needed | You need to know how to code; a year of experience is enough | Free course |
| Machine Learning Specialization (Stanford Online and DeepLearning.AI, Coursera) | High-school-level math such as arithmetic and algebra; other concepts explained along the way | Basic coding: for loops, functions, if/else | Beginner; 3 courses, about 2 months at 10 hours a week |
| Mathematics for Machine Learning and Data Science Specialization (DeepLearning.AI, Coursera) | High school math: functions and basic algebra | Basic to intermediate Python | Intermediate; 3 courses, 12 weeks at about 5 hours a week |
| Deep Learning Specialization (DeepLearning.AI, Coursera) | Basic linear algebra: matrix-vector operations and notation | Intermediate Python, including control flow, lists and dictionaries | Intermediate; 5 courses, about 3 months at 10 hours a week |
| CS229 Machine Learning (Stanford) | Probability (CS109 or MATH151 level); multivariable calculus and linear algebra (MATH51 or CS205L level) | Able to write a non-trivial program in Python with NumPy | University course |
Self-check: algebra and functions
Work without a calculator or search. Answers follow each problem; cover them first.
- Solve 3x - 7 = 11. Answer: x = 6.
- If f(x) = 2x squared - 3x, what is f(4)? Answer: 2 times 16 minus 12 = 20.
- What is log base 2 of 32? Answer: 5, because 2 to the power 5 is 32.
- What is the slope of the line through (1, 3) and (4, 9)? Answer: (9 - 3) / (4 - 1) = 2.
Self-check: statistics and probability
- For the values 2, 4, 4, 5, 10, give the mean and the median. Answer: mean 25 / 5 = 5; median 4.
- Why is the mean larger than the median in that list? Answer: the single high value, 10, pulls the mean up; the median ignores how extreme it is.
- You flip a fair coin twice. What is the probability of two heads? Answer: 0.5 times 0.5 = 0.25.
- A test is right 90 percent of the time. Does a positive result mean a 90 percent chance the condition is present? Answer: no; that also depends on how common the condition is (the base rate), which is the idea behind Bayes' theorem.
Self-check: linear algebra and calculus
- Dot product of (1, 2, 3) and (4, -1, 2). Answer: 4 - 2 + 6 = 8.
- Multiply the matrix with rows (1, 2) and (3, 4) by the vector (1, 1). Answer: (3, 7).
- A 3 by 2 matrix times a 2 by 4 matrix gives what shape? Answer: 3 by 4.
- Derivative of x cubed. Answer: 3x squared.
- Derivative of (2x + 1) squared. Answer: 4(2x + 1), using the chain rule.
- Partial derivative of x squared times y with respect to x. Answer: 2xy.
- Gradient descent: f(x) = (x - 3) squared, start at x = 5, learning rate 0.1. What is x after one step? Answer: the derivative is 2(5 - 3) = 4, so x becomes 5 - 0.1 times 4 = 4.6.
Free and low-cost refreshers by area
Khan Academy describes itself as a 501(c)(3) nonprofit with a mission to provide a free, world-class education to anyone, anywhere, and lists over 840 courses; it suits short algebra and statistics refreshers. MIT OpenCourseWare publishes materials from over 2,500 MIT courses with no account required, under a Creative Commons BY-NC-SA 4.0 licence, but MIT does not offer credit or certificates to OCW users.
If you want one structured, paid course across three areas, Coursera's Mathematics for Machine Learning and Data Science Specialization covers linear algebra (34 hours), calculus (27 hours) and probability and statistics (33 hours). Its page lists a $49 monthly Coursera subscription and notes that financial aid is available.
| Area | Free option | What it includes | Paid structured option |
|---|---|---|---|
| Algebra and functions | Khan Academy | Free nonprofit platform; search for the specific topic you missed | Not usually needed |
| Statistics and probability | MIT OCW 18.05 Introduction to Probability and Statistics (Spring 2022) | Lecture notes, problem sets and exams with solutions, plus an R section with tutorials and sample code | Probability and Statistics course in the DeepLearning.AI math specialization |
| Linear algebra | MIT OCW 18.06SC Linear Algebra (Gilbert Strang) | Lecture videos, problem-solving videos, problem sets and exams with solutions | Linear Algebra course in the same specialization |
| Calculus | MIT OCW 18.01SC Single Variable Calculus | Lecture videos, problem-solving videos, problem sets and exams with solutions | Calculus course in the same specialization |
Scoring the self-check and fitting a refresher into your plan
Scoring rule (our suggestion): in each area, if you got everything right, you are ready for courses at that level. If you missed one, review that topic for a few days. If you missed two or more, spend one to three weeks on a refresher before starting a course that lists that area as a prerequisite. Courses that state only high school math need the algebra set; deep learning and university courses need all three sets.
- Do the self-check before paying for any course; it takes under an hour.
- Refresh only the areas where you missed two or more problems, then redo that set a few days later with new numbers.
- Start a beginner course in parallel if it needs only high school math; many explain extra concepts as they go, as the Machine Learning Specialization says it does.
- Before a deep learning or university-level course, make sure you can multiply a matrix by a vector and take a derivative with the chain rule without notes.
- Use OCW problem sets with solutions for practice; MIT OCW offers no grading or certificate, so check yourself against the posted solutions.
Questions before you decide
Do I need calculus for a beginner machine learning course?
Not for the introductory courses we checked. fast.ai says high school math is sufficient, and Coursera's Machine Learning Specialization asks for high-school-level math such as arithmetic and algebra. Stanford's CS229 expects multivariable calculus and linear algebra.
What linear algebra do I need for deep learning?
DeepLearning.AI's Deep Learning Specialization recommends basic linear algebra, specifically matrix-vector operations and notation, plus intermediate Python. If you can multiply a matrix by a vector and know what shapes multiply, you meet that bar.
Are MIT OpenCourseWare math courses free?
Yes. MIT OCW says it is a free and open collection of material from thousands of MIT courses with no account required. Courses such as 18.06SC Linear Algebra include problem sets and exams with solutions, but MIT gives no credit or certificate.
How long is the Mathematics for Machine Learning and Data Science Specialization?
Coursera lists it at 12 weeks at about 5 hours a week, across three courses: linear algebra (34 hours), calculus (27 hours) and probability and statistics (33 hours). It recommends high school math and basic to intermediate Python.
Sources & verification
Product details and prices can change. Check the linked provider before buying.
- Stanford CS229: Machine Learning course page Accessed 30 Oct 2026
- Coursera: Machine Learning Specialization Accessed 30 Oct 2026
- Coursera: Mathematics for Machine Learning and Data Science Specialization Accessed 30 Oct 2026
- Coursera: Deep Learning Specialization Accessed 30 Oct 2026
- Coursera: Google Data Analytics Professional Certificate Accessed 30 Oct 2026
- fast.ai: Practical Deep Learning for Coders Accessed 30 Oct 2026
- Khan Academy: About Accessed 30 Oct 2026
- MIT OpenCourseWare: About OCW Accessed 30 Oct 2026
- MIT OpenCourseWare: 18.06SC Linear Algebra Accessed 30 Oct 2026
- MIT OpenCourseWare: 18.05 Introduction to Probability and Statistics Accessed 30 Oct 2026
- MIT OpenCourseWare: 18.01SC Single Variable Calculus Accessed 30 Oct 2026
Sources link directly to providers. Product buttons may use separately labeled affiliate links. Read our disclosure.