A detailed 5-month plan for learning the math you need for Machine Learning intuitively:
In this answer, I'll lay out a 5-month plan that covers all the important math topics, arranged in chronological order with suitable online learning resources. These resources helped me understand intuitively not just ML algorithms but also many advanced engineering fields, such as statistical signal processing, computational electrodynamics and so on. The programming perspective (that is, only using smart toolboxes, libraries and functions) is one thing; understanding all the derivations and prerequisites of each paper can take weeks or months. As the famous saying goes, “Mathematics is the language of the universe,” and therefore the language of physics; and since all engineering fields are derived directly or indirectly from physics, mathematics is also the language of engineering. If you're thinking of becoming an ML developer or researcher, there's no way to avoid learning math. Here is the list of topics that are essential for learning ML:
- Linear Algebra (optional advanced topics include: Multilinear and Tensor Algebra)
- Probability Theory (optional advanced topics: Measure Theory, Stochastic Processes, Information Theory)
- Multivariable Calculus (optional advanced topics: Stochastic Calculus, Differential Equations)
- Multivariate Statistics (optional advanced topics: Random Matrix Theory)
- Convex Optimization (optional advanced topics: Stochastic and Non-Convex Optimization)
The five topics in bold in the list above are necessary for a mathematical understanding of ML algorithms. In fact, these topics are enough to understand complex subjects in any engineering field. The remaining topics marked “optional” are simply extensions and are needed for advanced research.
Mastering each of these topics can take months or years. But I'll provide resources that sufficiently cover the subtopics needed for ML. Here is the 5-month plan, which requires about 9 to 11 hours a week.

Month one:
Start with Linear Algebra. The best resource is the lectures and the book by Prof. Gilbert Strang. There are 35 lectures on MIT OCW. Any final-year undergraduate student can finish a lecture, with proper notes, in 1 hour. If you pick things up quickly, watch the lectures at 1.5x or 2x speed. Understanding the steps involved in vector and matrix operations is the easier part of this course. Visualizing those steps in 3D or 2D space takes patience and intuition, and it is very important for Data Science. Try to visualize how a particular transformation matrix affects a particular vector and how it relates to the newly transformed space. The two most important topics to visualize physically are eigenvalues and change of basis.
The most beautiful visualization is the “Essence of Linear Algebra” playlist from the YouTube channel “3Blue1Brown” . There are only 15 lessons, each 10-15 minutes long. If you have trouble with the visualization topics taught by Prof. Strang, finish these 15 lessons first. It will take 1 week. Total: 1 week for “3Blue1Brown” and 3 weeks for Gilbert Strang's lectures. If you have some time left over, watch random YouTube videos on multilinear algebra and tensors. These are optional for now. Overall, understanding linear algebra will help you learn the art of representing huge amounts of data in terms of vectors and matrices, and extend your mathematical understanding of physical 3D space to an N-dimensional feature space.
Month two:
This may be the hardest month. It's for Probability and Measure Theory. Probability theory isn't a fixed set of rules like the ones we learn in deterministic mathematics (such as algebra or calculus). Real-world data and events are much more complex than the coin flips or dice rolls taught in school. Probability is the science of uncertainty. Whether it's quantum laws or patterns in human behavior, everything has uncertainty, but with enough observations / data, these uncertainties can be modeled with deterministic asymptotic laws, and that's why probability theory is a must for making sense of real-world data.
The best lecture series available on this topic is Prof. Krishna Jagannathan's course, accompanied by Grimmett's book on probability and random processes. It also covers Measure Theory, which is a superset of Probability theory. This course will test your abstract thinking abilities to their limits. If you aren't comfortable with basic probability, don't take this course. Instead, you can watch Prof. John Tsitsiklis's lectures. It's a more applied course and focuses less on abstract topics and derivations. It starts with very basic topics such as the axioms of probability, but soon moves on to Markov Chains, least squares, convergence of random variables and so on. I recommend giving this course a full month.
Month three:
The third month is for Multivariable Calculus. Don't worry if your basic calculus concepts are rusty. Any course on multivariable calculus will cover the fundamentals of calculus. It's very important to point out that if you only want to focus on the calculus commonly used in machine learning, you can study just differential calculus and leave integral calculus for later stages. In the third month, you only need to study differential calculus. In the first 15 days, go through the 99 lectures by “3Blue1Brown” (watch them here) . Don't worry, these lectures are 5-8 minutes long on average, so it's easily doable. Leave out the remaining lectures in this course, such as the ones on integral calculus. In the remaining 20 days, finish “Multivariable Calculus”: the first 20 lectures by Prof. Denis Auroux, or watch the first 6 lectures of “Multivariable Calculus” by Adrian Banner .
Break and Adjustments:
Let's take a break and relax. Congratulate yourself. You're already done with 80% of the core math needed for ML. Let's assume that, by now, you're 10-20 days behind schedule. NO NEED TO PANIC! You can skip a few things that won't affect the rest of your schedule or your understanding of ML algorithms. You can skip the multivariable calculus lectures by Denis Auroux and Adrian Banner. If you're far behind schedule, the 3Blue1Brown videos are enough at this stage. That will save you 15-20 days. You can also skip the last 7 lectures of Prof. Tsitsiklis's probability course. That will save another 7-8 days. But avoid these adjustments if you can.
Month Four:
We are now at Multivariate Statistics, which directly covers some famous ML algorithms . This topic is derived from the combination of linear algebra and probability and statistics in high-dimensional space. It's a broad topic with no well-defined conventional curriculum. There's no point in going very deep into it. Just pick one of these three tasks and complete it within 15 days at most, and you're done with ML-specific Multivariate statistics:
- Chapters 4, 7 and 8 of the book by R. Johnson: Applied Multivariate Statistical Analysis, or
- Chapters 2, 3 and 11 of T W. Anderson's book: An Introduction to Multivariate Statistical Analysis, or
- Pick some good videos and articles at random from the internet (look at the number of likes / subscribers / comments, etc.) on the following topics: the Multivariate Normal distribution, Principal Component Analysis (PCA), Singular Value Decomposition (SVD), properties of the covariance matrix, and Gaussian Mixture Models.
Again, complete just one of the three resources above, whichever you prefer.
Break and Adjustments: You still have 15 days left in month four. Rest, enjoy yourself, watch movies, TV series or whatever refreshes you, and get ready for the final round.
Month Five:
This month is devoted to the topic where everything you've learned so far will be put to use. Let's learn Convex Optimization. All the tools you learned earlier will help you build an initial model with certain tunable parameters. The values of these parameters decide how well your model represents the empirical data, and these values are estimated using tools from optimization theory. Unfortunately, there are only a limited number of well-organized courses or books on this topic. Most of the resources are very complex from an engineering standpoint. Most graduate-level courses use the lectures and the book of Prof. Stephen Boyd (Stanford) . There's no doubt that his book is the most comprehensive resource for learning applied convex optimization. However, it can be difficult, since it requires rigorous multivariable calculus, which we haven't covered in much depth in this plan.
A simpler alternative to Boyd's book and lectures is the course by Prof. Aditya K. Jagannatham . It's a unique course in terms of its content and its number of real-world examples of state-of-the-art technologies. The only drawback of this course is its examples related to “Wireless Communication,” which only students with an electrical engineering background will understand. Overall, there are two options for learning convex optimization, and both are heavy. If you want to spend less time on convex optimization and learn only the practical concepts, follow this strategy:

Watch lectures 1 to 33 and lectures 42 to 50 of Professor Jagannatham's course (the lectures are short, about 20 minutes each). Don't worry if you can't follow the Wireless Communication examples. After that, go straight to chapter 6 of Boyd's book and implement the Matlab / Python code provided for that chapter on Prof. Boyd's website. That's it.
Congratulations! You've completed all the important topics needed not only for understanding machine learning but also for understanding any engineering mathematics.
Month Six and Beyond:
Now you're ready. Just pick up any standard book or course on Machine Learning. You'll now be able to grasp the mathematical essence behind any topic in ML. Most ML enthusiasts have probably watched Prof. Andrew Ng's course before going through all the Math courses above. Now watch his course again. You'll feel a significant difference. You can now understand the probabilistic properties of data, tailor conventional cost functions to the data to get better results, and even build your own customized algorithms.
My recommendations for studying ML from a mathematical perspective:
- Any book or video lecture by Prof. Trevor Hastie and Prof. Tibshirani of Stanford. The most recommended beginner-level book is “An Introduction to Statistical Learning” by Hastie and Tibshirani.
- Pattern Recognition and Machine Learning, a book by Christopher Bishop.
- Introduction to Computational Thinking and Data Science.
- Machine Learning by Tommi Jaakkola.

As I said earlier, mathematics is the language of scientists and engineers. It will give you the superpower to pick any topic at random in Physics, Computer Science, Engineering or finance and understand it. You'll be amazed to see how seemingly very different fields use exactly the same mathematical methods to explain wildly different phenomena. For example, the exact same eigendecomposition method is used in wireless communication, portfolio optimization in finance, stress / strain modeling in civil engineering, dimensionality reduction in data science, vaccine design against genetic diseases and many other fields. I hope this answer helps you gain a strong grasp of engineering mathematics, especially for understanding the great algorithms in Data Science.
Feel free to ask questions.