{"id":1038,"date":"2025-01-08T07:02:36","date_gmt":"2025-01-08T07:02:36","guid":{"rendered":"https:\/\/mailitics.com\/index.php\/2025\/01\/08\/how-to-learn-math-for-machine-learning-fast-even-with-zero-math-background-159757833c3a\/"},"modified":"2025-01-08T07:02:36","modified_gmt":"2025-01-08T07:02:36","slug":"how-to-learn-math-for-machine-learning-fast-even-with-zero-math-background-159757833c3a","status":"publish","type":"post","link":"https:\/\/mailitics.com\/index.php\/2025\/01\/08\/how-to-learn-math-for-machine-learning-fast-even-with-zero-math-background-159757833c3a\/","title":{"rendered":"How To Learn Math for Machine Learning, Fast"},"content":{"rendered":"<p>    How To Learn Math for Machine Learning, Fast<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<h4>Even with zero math background<\/h4>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\" src=\"https:\/\/i0.wp.com\/cdn-images-1.medium.com\/max\/1024\/1%2AhT-zhfvUhUFwVxu5FVuNdw.jpeg?ssl=1\"><figcaption>Photo by <a href=\"https:\/\/unsplash.com\/@antoine1003?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\">Antoine Dautry<\/a> on\u00a0<a href=\"https:\/\/unsplash.com\/photos\/mathematics-computation-05A-kdOH6Hw?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\">Unsplash<\/a><\/figcaption><\/figure>\n<p>Do you want to become a Data Scientist or machine learning engineer, but you feel intimidated by all the math involved? I get it. I\u2019ve been\u00a0there.<\/p>\n<p>I dropped out of High School after 10th grade, so I never learned any math beyond trigonometry in school. When I started my journey into Machine Learning, I didn\u2019t even know what a derivative was.<\/p>\n<p>Fast forward to today, and I\u2019m an Applied Scientist at Amazon, and I feel pretty confident in my math\u00a0skills.<\/p>\n<p>I\u2019ve picked up the necessary math along the way using free resources and self-directed learning. Today I\u2019m going to walk you through some of my favorite books, courses, and YouTube channels that helped me get to where I am today, and I\u2019ll also share some tips on how to study effectively and not waste your time struggling and being\u00a0bored.<\/p>\n<h4><strong>Do You Even Need to Know Math for\u00a0ML?<\/strong><\/h4>\n<p>First, let\u2019s address a common question: Do you even really need to know the math to work in\u00a0ML?<\/p>\n<p>The short answer is: it depends on what you want to\u00a0do.<\/p>\n<p>For research-heavy roles where you\u2019re creating new ML algorithms, then yes, you obviously need to know the math. But if you\u2019re asking yourself if you need to learn math, chances are that\u2019s not the kind of job you\u2019re looking\u00a0for\u2026<\/p>\n<p>But for practitioners\u200a\u2014\u200amost of us in the industry\u200a\u2014\u200ayou can often be totally competent without knowing all the underlying details, especially as a beginner.<\/p>\n<p>At this point, libraries like numpy, scikit-learn, and Tensorflow handle most of the heavy lifting for you. You don\u2019t need to know the math behind gradient descent to deploy a model to production.<\/p>\n<p>If you\u2019re a beginner trying to get into ML, in my opinion it is not strategic to spend a bunch of time memorizing formulas or studying linear algebra\u200a\u2014\u200ayou should be spending that time building things. Train a simple model. Explore your data. Build a pipeline that predicts something fun.<\/p>\n<p>That said, there are moments where knowing the math really helps. Here are a few examples:<\/p>\n<p>Imagine you\u2019re training a model and it\u2019s not converging. If you understand concepts like gradients and optimization functions, you\u2019ll know whether to adjust your learning rate, try a different optimizer, or tweak your data preprocessing.<\/p>\n<p>Or, let\u2019s say you\u2019re running a linear regression, and you\u2019re interpreting the coefficients. Without math knowledge, you might miss problems like multicollinearity, which makes those coefficients unreliable. Then you make incorrect conclusions from the data and cost the company millions and lose your job! Just kidding. Kind of. We do need to be careful when making business decisions from the models we\u00a0build.<\/p>\n<p>So, while you can (and should) get started without deep math knowledge, it\u2019s definitely still reasonable to build your comfort with math over\u00a0time.<\/p>\n<p>Once you\u2019re hands-on, you\u2019ll start encountering problems that naturally push you to learn more. When you need to debug or explain your results, that\u2019s when the math will start to click, because it\u2019s connected to real problems.<\/p>\n<p>So seriously, don\u2019t let the fear of math stop you from starting. You don\u2019t need to learn it all upfront to make progress. Get your hands dirty with the tools, build your portfolio, and let math grow as a skill alongside your practical knowledge.<\/p>\n<h4><strong>What to\u00a0Learn<\/strong><\/h4>\n<p>Alright, now let\u2019s talk about what to learn when you\u2019re building your math foundation for Machine Learning\u00a0jobs.<\/p>\n<p><strong>First, linear\u00a0algebra.<\/strong><\/p>\n<p>Linear algebra is fundamental for Machine Learning, especially for deep learning. Many models rely on representing data and computations as matrices and vectors. Here\u2019s what to prioritize:<\/p>\n<ul>\n<li>Matrices and Vectors: Think of matrices as grids of numbers and vectors as lists. Data is often stored this way, and operations like addition, multiplication, and dot products are central to how models process that information.<\/li>\n<li>Determinants and Inverses: Determinants tell you whether a matrix can be inverted, which is used in optimization problems and solving systems of equations.<\/li>\n<li>Eigenvalues and Eigenvectors: These are key to understanding variance in data and are the foundation of techniques like Principal Component Analysis, which helps reduce dimensionality in datasets.<\/li>\n<li>Lastly, Matrix Decomposition: Methods like Singular Value Decomposition (SVD) are used in recommendation systems, dimensionality reduction, and data compression.<\/li>\n<\/ul>\n<p><strong>Now we\u2019re on to basic calculus.<\/strong><\/p>\n<p>Calculus is core to understanding how models learn from data. But, we don\u2019t need to worry about solving complex integrals\u200a\u2014\u200ait\u2019s just about grasping a few key\u00a0ideas:<\/p>\n<ul>\n<li>First, derivatives and gradients: Derivatives measure how things change, and gradients (which are multidimensional derivatives) are what power optimization algorithms like gradient descent. These help models adjust their parameters to minimize\u00a0error.<\/li>\n<li>The Chain Rule is central to neural networks. It\u2019s how backpropagation works\u200a\u2014\u200awhich is the process of figuring out how much each weight in the network contributes to the overall error so the model can learn effectively.<\/li>\n<li>Lastly, optimization basics: Concepts like local vs. global minima, saddle points, and convexity are important to understand why some models get stuck and others find the best solutions.<\/li>\n<\/ul>\n<p><strong>Lastly, statistics and probability.<\/strong><\/p>\n<p>Statistics and probability are the bread and butter of understanding data. While they\u2019re more associated with data science, there\u2019s definitely a lot of value for ML as well. Here\u2019s what you need to\u00a0know:<\/p>\n<ul>\n<li>Distributions: Get familiar with common ones like normal, binomial, and uniform. The normal distribution, in particular, pops up everywhere in data science and\u00a0ML.<\/li>\n<li>Variance and covariance: Variance tells you how spread out your data is, while covariance shows how two variables relate. These concepts are really important for feature selection and understanding your data\u2019s structure.<\/li>\n<li>Bayes\u2019 Theorem: While it has kind of an intimidating name, Bayes\u2019 theorem is a pretty simple but powerful tool for probabilistic reasoning. It\u2019s foundational for algorithms like Naive Bayes\u200a\u2014\u200abig surprise\u200a\u2014\u200awhich is used for things like spam detection, as well as for Bayesian optimization for hyperparameter tuning.<\/li>\n<li>You\u2019ll also want to understand Maximum Likelihood Estimation (MLE), which helps estimate model parameters by finding values that maximize the likelihood of your data. It\u2019s a really fundamental concept in algorithms like logistic regression.<\/li>\n<li>Finally, sampling and conditional probability: Sampling lets you work with subsets of data efficiently, and conditional probability is essential for understanding relationships between events, especially in Bayesian\u00a0methods.<\/li>\n<\/ul>\n<p>Now, this is definitely not exhaustive, but I think it\u2019s a good overview of the common concepts you\u2019ll need to know to do a good job as a data scientist or\u00a0MLE.<\/p>\n<p>Next up, I\u2019ll share the best resources to learn these concepts without it being stressful or overwhelming.<\/p>\n<h4><strong>Resources<\/strong><\/h4>\n<p>Personally, I would <em>highly<\/em> recommend starting with a visual and intuitive understanding of the key concepts before you start reading difficult books and trying to solve equations.<\/p>\n<p>For Linear Algebra and Calculus, I cannot speak highly enough about 3blue1brown\u2019s <a href=\"https:\/\/www.youtube.com\/watch?v=fNk_zzaMoSs&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;index=1&amp;t=0s\">Essence of Linear Algebra<\/a> and <a href=\"https:\/\/www.youtube.com\/watch?v=WUvTyaaNkzM&amp;list=PLZHQObOWTQDMsr9K-rj53DwVRMYO3t5Yr&amp;index=1&amp;t=0s\">Essence of Calculus<\/a> series. These videos give a solid introduction to what is actually being measured and manipulated when we use these mathematical approaches. More importantly, they show, let\u2019s say, the beauty in it? It\u2019s strange to say that math videos could be inspirational, but these ones\u00a0are.<\/p>\n<p>For statistics and probability, I am also a huge fan of <a href=\"https:\/\/www.youtube.com\/channel\/UCtYLUTtgS3k1Fg4y5tAhLbw\">StatQuest<\/a>. His videos are clear, engaging, and just a joy to watch. StatQuest has playlists with overviews on core stats and ML concepts.<\/p>\n<p>So, start there. Once you have a visual intuition, you can start working through more structured books or\u00a0courses.<\/p>\n<p>There are lots of great options here. Let\u2019s go through a few that I personally used to\u00a0learn:<\/p>\n<p>I completed the <a href=\"http:\/\/imp.i384100.net\/LKDXbV\">Mathematics for Machine Learning Specialization from Imperial College London<\/a> on Coursera when I was just starting out. The specialization is divided into three courses: Linear Algebra, Multivariate Calculus, and a last one on Principal Component Analysis. The courses are well-structured and include a mix of video lectures, quizzes, and programming assignments in Python. I found the course to be a bit challenging as a beginner, but it was a really good overview and I passed with a bit of\u00a0effort.<\/p>\n<p><a href=\"https:\/\/imp.i384100.net\/gOOn1B\">DeepLearning.AI also recently released a Math for ML Specialization<\/a> on Coursera. This Specialization also has courses on Linear Algebra and Calculus, but instead of PCA the final course focuses on Stats and Probability. I\u2019m personally working through this Specialization right now, and overall I\u2019m finding it to be another really great option. Each module starts with a nice motivation for how the math connects to an applied ML concept, it has coding exercises in Python, and some neat 3D tools to mess around with to get a good visual understanding of the concepts.<\/p>\n<p>If you prefer learning from books, I have some suggestions there too. First up, if you like anime or nerdy stuff, oh boy do I have a recommendation for\u00a0you.<\/p>\n<p>Did you know they have manga math\u00a0books?<\/p>\n<p><a href=\"https:\/\/amzn.to\/40rz2ad\">The Manga Guide to\u00a0Calculus<\/a><\/p>\n<p><a href=\"https:\/\/amzn.to\/3DEZC6y\">The Manga Guide to Linear\u00a0Algebra<\/a><\/p>\n<p><a href=\"https:\/\/amzn.to\/4j1smqc\">The Manga Guide to Statistics<\/a><\/p>\n<p>These are super fun. I can\u2019t say that the instructional quality is world-class or anything, but they are cute and engaging, and they made me not dread reading a math\u00a0book.<\/p>\n<p>The next level up would be \u201creal\u201d math books. These are some of the\u00a0best:<\/p>\n<p><a href=\"https:\/\/mml-book.github.io\/\">The Mathematics for Machine Learning ebook<\/a> by Deisenroth and colleagues is a great comprehensive resource available for free for personal use. It covers key topics we\u2019ve already discussed like Linear Algebra, Calculus, Probability, and Optimization, with a focus on how these concepts apply to machine learning algorithms. It\u2019s relatively beginner-friendly and is generally regarded as one of the best books for learning this material.<\/p>\n<p>Next, <a href=\"https:\/\/amzn.to\/49EqG1A\">Practical Statistics for Data Scientists<\/a> is another well-loved resource that includes code examples in Python and\u00a0R.<\/p>\n<h4><strong>How to\u00a0Study<\/strong><\/h4>\n<p>Now, before we actually start studying, I think it\u2019s important to spend a little bit of time thinking really deeply about why you even want to do this. Personally, I find that if I\u2019m studying just because I feel like I \u201cshould,\u201d or because it\u2019s some arbitrary assignment, I get distracted easily and don\u2019t actually retain\u00a0much.<\/p>\n<p>Instead, I try to connect to a deeper motivation. Personally, right now I have a really basic motivation: I want to earn a lot of money so that I can take care of everyone I love. I have this opportunity to push myself and make sure everyone is safe and cared for, now and in the future. This isn\u2019t to put extra pressure on myself, but actually just a way that works for me to get excited that I have this opportunity to learn and grow and hopefully help others along the way. Your motivation might be totally different, but whatever it is, try to tie this work to a larger\u00a0goal.<\/p>\n<p>In terms of strategies for optimizing your study time, I have found that one of the most effective methods is writing notes in my own words. Don\u2019t just copy definitions or formulas\u200a\u2014\u200atake time to summarize concepts as if you were explaining them to someone else\u200a\u2014\u200aor, to future you. For example, if you\u2019re learning about derivatives, you might write, \u201cA derivative measures how a function changes as its input changes.\u201d This forces you to actively process the material.<\/p>\n<p>Relatedly, when it comes to math formulas, don\u2019t just stare at them\u200a\u2014\u200atranslate them into plain English\u200a\u2014\u200aor whatever spoken language you prefer. For instance, take the equation y=mx+b: you might describe m as \u201cthe slope that shows how steep the line is,\u201d and b as \u201cthe point where the line crosses the y-axis.\u201d So, the final formula, might be, \u201cThe value of y (the output) is determined by taking the slope (m), multiplying it by x (the input), and then adding b (the starting point where the line intersects the y-axis).\u201d<\/p>\n<p>You can even use your notes as like a personal blog. Writing short posts about what you\u2019ve learned is a really solid way to clarify your understanding, and teaching others (even if no one reads it) solidifies the material in your own mind. Plus, sharing your posts on Medium or LinkedIn not only potentially helps others but also allows you to build a portfolio showcasing your learning\u00a0journey.<\/p>\n<p>Also trust me, when it\u2019s interview time you\u2019ll be happy you have these notes! I use my own study notes all the\u00a0time.<\/p>\n<p>This next piece of advice I have might not be super fun, but I also recommend not using just one resource. Personally I\u2019ve had a lot of success from taking many different courses, and kind of throwing all my notes together at first. Then, I\u2019ll write a blog like I was just talking about that summarizes all of my learnings.<\/p>\n<p>There are a couple of advantages to this approach: First, repetition helps you retain things. If I see a concept multiple times, explained from multiple angles, I\u2019m much more likely to actually get what\u2019s going on and remember that for longer than a day. Plus, not only do I see the information presented to me multiple times, I\u2019m writing the concepts out in my own words multiple times, including that final time where I synthesize it all and get it ready to share with others\u200a\u2014\u200aso I have to be really confident I actually got it by the\u00a0end.<\/p>\n<p>Finally, once you\u2019ve built that foundation and get to the level of math where you can actually use it for stuff, I really recommend coding concepts from scratch. If you can code gradient descent or logistic regression using just numpy, you\u2019re off to a really strong\u00a0start.<\/p>\n<h4><strong>Again, Math (Probably) Won\u2019t Get You a\u00a0Job<\/strong><\/h4>\n<p>While I know at this point you\u2019re super excited to start learning math, I do want to just circle back to the important fact that if you\u2019re a beginner trying to get your first job, in my opinion math should not be the first thing you prioritize.<\/p>\n<p>It is really unlikely that your math skills are what will get you a job as a data scientist or\u00a0MLE.<\/p>\n<p>Instead, prioritize gaining hands-on experience by working on projects and actually building stuff. Employers are far more interested in seeing what you can do with the tools and knowledge you already have than how many formulas you\u2019ve memorized.<\/p>\n<p>As you encounter challenges in your work, you\u2019ll naturally be motivated to learn the math behind the algorithms. Remember, math is a tool to help you succeed, and shouldn\u2019t be a barrier to getting\u00a0started.<\/p>\n<p>\u2014<\/p>\n<p>If you want more advice on how to break into data science, you can download a free 80+ page e-book on how to get your first data science job (learning resources, project ideas, LinkedIn checklist, and more): <a href=\"https:\/\/gratitudedriven.com\/\">https:\/\/gratitudedriven.com\/<\/a><\/p>\n<p>Or, check out my <a href=\"https:\/\/www.youtube.com\/@Gratitude.Driven\">YouTube\u00a0channel<\/a>!<\/p>\n<p>Finally, just a heads up, there are affiliate links in this post. So, if you buy something I\u2019ll earn a small commission, at no additional cost to you. Thank you for your\u00a0support.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/medium.com\/_\/stat?event=post.clientViewed&amp;referrerSource=full_rss&amp;postId=159757833c3a\" width=\"1\" height=\"1\" alt=\"\"><\/p>\n<hr>\n<p><a href=\"https:\/\/towardsdatascience.com\/how-to-learn-math-for-machine-learning-fast-even-with-zero-math-background-159757833c3a\">How To Learn Math for Machine Learning, Fast<\/a> was originally published in <a href=\"https:\/\/towardsdatascience.com\/\">Towards Data Science<\/a> on Medium, where people are continuing the conversation by highlighting and responding to this story.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Marina Wyss &#8211; Gratitude Driven<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/medium.com\/m\/global-identity-2?redirectUrl=https%3A%2F%2Ftowardsdatascience.com%2Fhow-to-learn-math-for-machine-learning-fast-even-with-zero-math-background-159757833c3a\">Go to original source<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How To Learn Math for Machine Learning, Fast Even with zero math background Photo by Antoine Dautry on\u00a0Unsplash Do you want to become a Data Scientist or machine learning engineer, but you feel intimidated by all the math involved? I get it. I\u2019ve been\u00a0there. I dropped out of High School after 10th grade, so I [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62,311,70,229,1167,1166],"tags":[1169,199,1168],"class_list":["post-1038","post","type-post","status-publish","format-standard","hentry","category-aimldsaimlds","category-getting-started","category-machine-learning","category-math","category-math-for-machine-learning","category-upskilling","tag-know","tag-learning","tag-math"],"_links":{"self":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/posts\/1038"}],"collection":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/comments?post=1038"}],"version-history":[{"count":0,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/posts\/1038\/revisions"}],"wp:attachment":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/media?parent=1038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/categories?post=1038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/tags?post=1038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}