# Math for Machine Learning

**URL:** https://community.deeplearning.ai/c/course-q-a/math-for-machine-learning/264.md

[Latest](https://community.deeplearning.ai/latest.md) · [Categories](https://community.deeplearning.ai/categories.md) · [Tags](https://community.deeplearning.ai/tags.md)

---

## [About the Math for Machine Learning category](https://community.deeplearning.ai/t/about-the-math-for-machine-learning-category/129812)

<div class="topic-metadata">

**Author:** [@Community-Team](https://community.deeplearning.ai/u/Community-Team)\
**Replies:** 0\
**Last updated:** [May 20, 2022, 1:27pm UTC](https://community.deeplearning.ai/t/about-the-math-for-machine-learning-category/129812 "2022-05-20T13:27:13Z")

</div>

To ensure a smooth and productive experience for everyone, here are a few important guidelines regarding posting in our forum: Category Permissions: Please note that learners are not allowed to post in all categorie…

---

## [C2\_W3\_Assignment, issues with grading and deterministic random generation](https://community.deeplearning.ai/t/c2-w3-assignment-issues-with-grading-and-deterministic-random-generation/895510)

<div class="topic-metadata">

**Author:** [@Dmitrii\_Zvorygin](https://community.deeplearning.ai/u/Dmitrii_Zvorygin)\
**Replies:** 2\
**Last updated:** [October 5, 2026, 9:09pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-issues-with-grading-and-deterministic-random-generation/895510 "2026-10-05T21:09:16Z")

</div>

Here’s one of the errors for Exercise 3. In the description is says: np.random.randn(a,b) \* 0.01. Probably typo, and meant .rand. The problem is that these default random functions produce values within \[0, 1) range, a…

---

## [Confused if this system is redundant or contradictory](https://community.deeplearning.ai/t/confused-if-this-system-is-redundant-or-contradictory/895267)

<div class="topic-metadata">

**Author:** [@Vandana6](https://community.deeplearning.ai/u/Vandana6)\
**Replies:** 1\
**Last updated:** [September 22, 2026, 5:22pm UTC](https://community.deeplearning.ai/t/confused-if-this-system-is-redundant-or-contradictory/895267 "2026-09-22T17:22:11Z")

</div>

Hi everyone, I hope this doubt finds you well. This system of equations was used as example to determine what kind of a system it is and whether it is a non-singular or singular system. ( to be specific it was refere…

---

## [C2\_W3\_Assignment Grading Erratically](https://community.deeplearning.ai/t/c2-w3-assignment-grading-erratically/895190)

<div class="topic-metadata">

**Author:** [@Chad\_Macbeth](https://community.deeplearning.ai/u/Chad_Macbeth)\
**Replies:** 1\
**Last updated:** [September 18, 2026, 7:32pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-grading-erratically/895190 "2026-09-18T19:32:18Z")

</div>

I have submitted C2\_W3\_Assignment several times without additional modification to the notebook and I am getting different grading results each time. Various random failures on exercise 7 (the extra\_check tests). Also…

---

## [C1 W2 practice quiz question 1](https://community.deeplearning.ai/t/c1-w2-practice-quiz-question-1/895165)

<div class="topic-metadata">

**Author:** [@Rachy](https://community.deeplearning.ai/u/Rachy)\
**Replies:** 1\
**Last updated:** [September 30, 2026, 1:02pm UTC](https://community.deeplearning.ai/t/c1-w2-practice-quiz-question-1/895165 "2026-09-30T13:02:37Z")

</div>

I think the scoring for Question 1 of the practice quiz (C1W2) is incorrect. I don’t want to post the answer here as that might be against forum rules. Searched but couldn’t find this raised before. This is quite an ea…

---

## [Code format distorted in notebook](https://community.deeplearning.ai/t/code-format-distorted-in-notebook/895004)

<div class="topic-metadata">

**Author:** [@DanielSogbey](https://community.deeplearning.ai/u/DanielSogbey)\
**Replies:** 3\
**Last updated:** [September 8, 2026, 4:11pm UTC](https://community.deeplearning.ai/t/code-format-distorted-in-notebook/895004 "2026-09-08T16:11:13Z")

</div>

I am unable to run this piece of code because in the notebook for the exercise the code is distorted. It is represented as text. I have tried on different browsers but I am facing the same issue.

---

## [C3 W1 Assignment's Notebook Rendering Issue](https://community.deeplearning.ai/t/c3-w1-assignments-notebook-rendering-issue/894916)

<div class="topic-metadata">

**Author:** [@hussain3](https://community.deeplearning.ai/u/hussain3)\
**Replies:** 1\
**Last updated:** [September 2, 2026, 3:05pm UTC](https://community.deeplearning.ai/t/c3-w1-assignments-notebook-rendering-issue/894916 "2026-09-02T15:05:58Z")

</div>

Hi everyone, I’m having trouble opening the Course 3, Week 1 Assignment (Naive Bayes). The progress bar reaches 100%, but the notebook screen remains blank and never renders. Troubleshooting steps I’ve already tried: …

---

## [Linear Algebra role in AI](https://community.deeplearning.ai/t/linear-algebra-role-in-ai/894852)

<div class="topic-metadata">

**Author:** [@Muzammil\_Hussain2](https://community.deeplearning.ai/u/Muzammil_Hussain2)\
**Replies:** 1\
**Last updated:** [August 29, 2026, 9:26pm UTC](https://community.deeplearning.ai/t/linear-algebra-role-in-ai/894852 "2026-08-29T21:26:13Z")

</div>

I really thank you to providing globally a pure AI concept. My question is that How Linear Algebra play vital role in AI.

---

## [I want to Understand why we equate two statement](https://community.deeplearning.ai/t/i-want-to-understand-why-we-equate-two-statement/894530)

<div class="topic-metadata">

**Author:** [@Pursotam\_Singh](https://community.deeplearning.ai/u/Pursotam_Singh)\
**Replies:** 1\
**Last updated:** [August 11, 2026, 9:28am UTC](https://community.deeplearning.ai/t/i-want-to-understand-why-we-equate-two-statement/894530 "2026-08-11T09:28:11Z")

</div>

I want to understand why we equate both. The vector \[x,y\] are any vector within that space or just any arbitrary vector from line ?

---

## [Stuck in the Gaussian elimination assignment](https://community.deeplearning.ai/t/stuck-in-the-gaussian-elimination-assignment/894376)

<div class="topic-metadata">

**Author:** [@TQK](https://community.deeplearning.ai/u/TQK)\
**Replies:** 8\
**Last updated:** [August 8, 2026, 3:12pm UTC](https://community.deeplearning.ai/t/stuck-in-the-gaussian-elimination-assignment/894376 "2026-08-08T15:12:11Z")

</div>

Hello, I am finding myself stuck in the Gaussian elimination assignment. i am able to enter a lot of the values correctly and there are only few placeholders I dont know exactly how to fill in the first 2 exercises. Yet…

---

## [Typos in Course 1, Week 1 Practice Quiz](https://community.deeplearning.ai/t/typos-in-course-1-week-1-practice-quiz/894319)

<div class="topic-metadata">

**Author:** [@George\_Ouzounoudis](https://community.deeplearning.ai/u/George_Ouzounoudis)\
**Replies:** 1\
**Last updated:** [August 2, 2026, 9:21pm UTC](https://community.deeplearning.ai/t/typos-in-course-1-week-1-practice-quiz/894319 "2026-08-02T21:21:10Z")

</div>

Hi! There are some typos in the Practice Quiz 1 of Course 1, Week 1 section. I attach a screenshot for reference. Thanks, George

---

## [Checking Singularity of a matrix](https://community.deeplearning.ai/t/checking-singularity-of-a-matrix/894236)

<div class="topic-metadata">

**Author:** [@Pursotam\_Singh](https://community.deeplearning.ai/u/Pursotam_Singh)\
**Replies:** 3\
**Last updated:** [July 30, 2026, 4:38pm UTC](https://community.deeplearning.ai/t/checking-singularity-of-a-matrix/894236 "2026-07-30T16:38:15Z")

</div>

Hi , i was running the lab : C1\_W1\_Lab\_2\_linear\_systems\_as\_matrices. There when calculating determinant , i got that as 0 and error as Singular matrix but when i try to run the same code locally it was not same.

---

## [Error Submiting Graded Assignment (unexpected error)](https://community.deeplearning.ai/t/error-submiting-graded-assignment-unexpected-error/894042)

<div class="topic-metadata">

**Author:** [@Marcelo\_C\_I\_Gramajo\_Feijoo](https://community.deeplearning.ai/u/Marcelo_C_I_Gramajo_Feijoo)\
**Replies:** 7\
**Last updated:** [July 23, 2026, 10:16pm UTC](https://community.deeplearning.ai/t/error-submiting-graded-assignment-unexpected-error/894042 "2026-07-23T22:16:03Z")

</div>

Hi! I’m getting an error when trying to submit the graded assignment in Week 2. This is the very same issue of this other post in the forum: Unexpected Error in submission of a graded assignment For what I’ve read this …

---

## [Mistake / typo in Course 1 week 4](https://community.deeplearning.ai/t/mistake-typo-in-course-1-week-4/893940)

<div class="topic-metadata">

**Author:** [@Andy18](https://community.deeplearning.ai/u/Andy18)\
**Replies:** 3\
**Last updated:** [July 21, 2026, 2:16pm UTC](https://community.deeplearning.ai/t/mistake-typo-in-course-1-week-4/893940 "2026-07-21T14:16:25Z")

</div>

As you can see X2 dot products should be 0.5775, 0.27 and 0.1525. Not sure what happened cause next day X3 ends up correct but X2 adds up to 0.5575+0.27+0.1525= 0.84275 Thank you, Andy

---

## [Problem with Solving Exercise 5 of Programming Assignment for Week 2](https://community.deeplearning.ai/t/problem-with-solving-exercise-5-of-programming-assignment-for-week-2/893879)

<div class="topic-metadata">

**Author:** [@Hassan\_Alyousuf](https://community.deeplearning.ai/u/Hassan_Alyousuf)\
**Replies:** 3\
**Last updated:** [July 18, 2026, 8:08pm UTC](https://community.deeplearning.ai/t/problem-with-solving-exercise-5-of-programming-assignment-for-week-2/893879 "2026-07-18T20:08:50Z")

</div>

Hello. I have been able to get through most of the programming assignments quite easily. For the programming assignment of Week 2 for the “Calculus and Machine Learning and Data Science” course (Optimization Using Gradi…

---

## [Request for Gaussian Elimination Lesson Slides](https://community.deeplearning.ai/t/request-for-gaussian-elimination-lesson-slides/893874)

<div class="topic-metadata">

**Author:** [@hussain3](https://community.deeplearning.ai/u/hussain3)\
**Replies:** 3\
**Last updated:** [July 18, 2026, 4:40am UTC](https://community.deeplearning.ai/t/request-for-gaussian-elimination-lesson-slides/893874 "2026-07-18T04:40:30Z")

</div>

Hi, I’m pursuing the M4MLDS and just finished the second module of LA, where Serrano demystifies the Gaussian elimination Algo. I noticed that the slides for this particular lesson aren’t included in the module’s slide d…

---

## [Week 4 practice quiz - ambiguous order of base vectors in transformation matrix](https://community.deeplearning.ai/t/week-4-practice-quiz-ambiguous-order-of-base-vectors-in-transformation-matrix/893643)

<div class="topic-metadata">

**Author:** [@Yigal\_Ornes](https://community.deeplearning.ai/u/Yigal_Ornes)\
**Replies:** 6\
**Last updated:** [July 13, 2026, 2:23pm UTC](https://community.deeplearning.ai/t/week-4-practice-quiz-ambiguous-order-of-base-vectors-in-transformation-matrix/893643 "2026-07-13T14:23:59Z")

</div>

FYI I tried to find related questions using the proper tags and phrases: week 4, practice quiz can someone rule out that the only justification for making a mistake here is only because the last sentence didnt say ‘…

---

## [Prerequisites for the Mathematics for Machine Learning and Data Science Specialization](https://community.deeplearning.ai/t/prerequisites-for-the-mathematics-for-machine-learning-and-data-science-specialization/893303)

<div class="topic-metadata">

**Author:** [@hussain3](https://community.deeplearning.ai/u/hussain3)\
**Replies:** 4\
**Last updated:** [July 6, 2026, 2:47pm UTC](https://community.deeplearning.ai/t/prerequisites-for-the-mathematics-for-machine-learning-and-data-science-specialization/893303 "2026-07-06T14:47:02Z")

</div>

Hi everybody, I am planning to take the Mathematics for Machine Learning and Data Science Specialization on Coursera. My question is: am I eligible to take this specialization? I have already completed the Algebra: Ele…

---

## [Graded Quiz Week 2 links](https://community.deeplearning.ai/t/graded-quiz-week-2-links/893148)

<div class="topic-metadata">

**Author:** [@Eric\_Lankford](https://community.deeplearning.ai/u/Eric_Lankford)\
**Replies:** 2\
**Last updated:** [June 28, 2026, 2:43pm UTC](https://community.deeplearning.ai/t/graded-quiz-week-2-links/893148 "2026-06-28T14:43:58Z")

</div>

This is regarding Mathematics for Machine Learning, Course 1, Week 2. After completing the week 2 quiz, the provided links for the lecture notes point to the Coursera course. Do I need a Coursera course to access the le…

---

## [C1W2 Assignment error after Submission](https://community.deeplearning.ai/t/c1w2-assignment-error-after-submission/893104)

<div class="topic-metadata">

**Author:** [@Md\_Shahbaz\_Khan](https://community.deeplearning.ai/u/Md_Shahbaz_Khan)\
**Replies:** 1\
**Last updated:** [June 26, 2026, 6:54am UTC](https://community.deeplearning.ai/t/c1w2-assignment-error-after-submission/893104 "2026-06-26T06:54:27Z")

</div>

hey i am getting an unexpected error after submission why because when i run the cells individually then all tests are correct and nothing is wrong in the cells but after grading why it is showing this message plz help m…

---

## [Issues with the math in machine learning course](https://community.deeplearning.ai/t/issues-with-the-math-in-machine-learning-course/892609)

<div class="topic-metadata">

**Author:** [@Trixie1](https://community.deeplearning.ai/u/Trixie1)\
**Replies:** 1\
**Last updated:** [June 4, 2026, 3:16am UTC](https://community.deeplearning.ai/t/issues-with-the-math-in-machine-learning-course/892609 "2026-06-04T03:16:14Z")

</div>

Hi everyone, I am a Coursera student doing to the math in machine learning course: linear algebra I’ve been having some issues lately and really need your help. No matter how I try solving my assignments they come out …

---

## [Connect over Discord for Maths for ML specalization](https://community.deeplearning.ai/t/connect-over-discord-for-maths-for-ml-specalization/892192)

<div class="topic-metadata">

**Author:** [@knightin](https://community.deeplearning.ai/u/knightin)\
**Replies:** 1\
**Last updated:** [May 16, 2026, 7:10am UTC](https://community.deeplearning.ai/t/connect-over-discord-for-maths-for-ml-specalization/892192 "2026-05-16T07:10:43Z")

</div>

Hi Fellow Learners, As someone trying to finish this specialization and Deep Learning specialization . It would be great if we can have a discussion group or 1:1 discussion in Discord to help complete the Maths for ML …

---

## [The calculus secrets every beginner needs](https://community.deeplearning.ai/t/the-calculus-secrets-every-beginner-needs/891814)

<div class="topic-metadata">

**Author:** [@omarWael](https://community.deeplearning.ai/u/omarWael)\
**Replies:** 0\
**Last updated:** [April 27, 2026, 2:32pm UTC](https://community.deeplearning.ai/t/the-calculus-secrets-every-beginner-needs/891814 "2026-04-27T14:32:05Z")

</div>

hi everyone if you are just starting the mathematics for machine learning specialization you might be wondering why we are spending so much time on derivatives instead of just writing python code the truth is that calc…

---

## [W3 schools python course is good for data science python learners?](https://community.deeplearning.ai/t/w3-schools-python-course-is-good-for-data-science-python-learners/891779)

<div class="topic-metadata">

**Author:** [@Murad\_Haqverdiyev](https://community.deeplearning.ai/u/Murad_Haqverdiyev)\
**Replies:** 1\
**Last updated:** [April 26, 2026, 11:31am UTC](https://community.deeplearning.ai/t/w3-schools-python-course-is-good-for-data-science-python-learners/891779 "2026-04-26T11:31:46Z")

</div>

Hello everyone. As i posted before, i am trying to deep dive into data science, machine learning. i observed that i have to know python very well then statistics and math then ML and so on. i started python AI,Data sc…

---

## [Unable to get Programming Assignment - Gaussian Elimination (C1W2\_Assignment)graded](https://community.deeplearning.ai/t/unable-to-get-programming-assignment-gaussian-elimination-c1w2-assignment-graded/891778)

<div class="topic-metadata">

**Author:** [@Sourangsu\_Dasgupta](https://community.deeplearning.ai/u/Sourangsu_Dasgupta)\
**Replies:** 11\
**Last updated:** [April 27, 2026, 5:04am UTC](https://community.deeplearning.ai/t/unable-to-get-programming-assignment-gaussian-elimination-c1w2-assignment-graded/891778 "2026-04-27T05:04:12Z")

</div>

Problem with the grading of C1W2 assignment grading dl-ai-learning-platform C1W2\_Assignment I have gone through the grading guidelines Do’s and Don’t but unable to find out what’s wrong. Individually all th…

---

## [Graded Lab Gaussian Elimination - Week 2 (An unexpected error occurred. Please try again later)](https://community.deeplearning.ai/t/graded-lab-gaussian-elimination-week-2-an-unexpected-error-occurred-please-try-again-later/891750)

<div class="topic-metadata">

**Author:** [@JL\_MSC](https://community.deeplearning.ai/u/JL_MSC)\
**Replies:** 11\
**Last updated:** [April 25, 2026, 2:23am UTC](https://community.deeplearning.ai/t/graded-lab-gaussian-elimination-week-2-an-unexpected-error-occurred-please-try-again-later/891750 "2026-04-25T02:23:13Z")

</div>

Hello, this is my first post here and I can’t submit my solution to this graded lab (Week 2), I have no clue what is wrong as there are no feedback, the code runs fine, I tested with every testcase available in w2\_unitte…

---

## [\[Technical Deep Dive\] NumPy Mastery for Linear Algebra](https://community.deeplearning.ai/t/technical-deep-dive-numpy-mastery-for-linear-algebra/891686)

<div class="topic-metadata">

**Author:** [@omarWael](https://community.deeplearning.ai/u/omarWael)\
**Replies:** 2\
**Last updated:** [April 21, 2026, 3:20pm UTC](https://community.deeplearning.ai/t/technical-deep-dive-numpy-mastery-for-linear-algebra/891686 "2026-04-21T15:20:41Z")

</div>

:clipboard: Overview In Machine Learning, Linear Algebra is the language, and NumPy is the tool we use to speak it. However, translating mathematical proofs into stable, efficient code can be tricky. This guide is design…

---

## [How important is to implement the mathematics in code](https://community.deeplearning.ai/t/how-important-is-to-implement-the-mathematics-in-code/891661)

<div class="topic-metadata">

**Author:** [@Biggie\_cheesy](https://community.deeplearning.ai/u/Biggie_cheesy)\
**Replies:** 2\
**Last updated:** [April 20, 2026, 7:50pm UTC](https://community.deeplearning.ai/t/how-important-is-to-implement-the-mathematics-in-code/891661 "2026-04-20T19:50:39Z")

</div>

So I’m currently on week 3 of this course I understand what the theory is but I’m having hard time while implementing the same in code. So I wanted to ask what’s the purpose of implementing it ? Does this implementation …

---

## [I hate this course](https://community.deeplearning.ai/t/i-hate-this-course/891394)

<div class="topic-metadata">

**Author:** [@Martin\_Vakselj](https://community.deeplearning.ai/u/Martin_Vakselj)\
**Replies:** 10\
**Last updated:** [September 2, 2026, 1:39pm UTC](https://community.deeplearning.ai/t/i-hate-this-course/891394 "2026-09-02T13:39:44Z")

</div>

This is so painfull to follow. I understand maybe its hard for me and am frustrated. But I wanted to write this so many times and then changed my mind thinking i should be mindfull that am just frustrated etc… and honest…

---

## [Regression with a perceptron - gradient descent](https://community.deeplearning.ai/t/regression-with-a-perceptron-gradient-descent/891161)

<div class="topic-metadata">

**Author:** [@milessegni](https://community.deeplearning.ai/u/milessegni)\
**Replies:** 3\
**Last updated:** [April 3, 2026, 11:57pm UTC](https://community.deeplearning.ai/t/regression-with-a-perceptron-gradient-descent/891161 "2026-04-03T23:57:22Z")

</div>

We covered gradient descent, and how derivatives and cost functions make it work. I’m not the video (title) and not really understanding why he picked those certain derivatives. I understand y and yHat are part of L(y,…

[Next page](https://community.deeplearning.ai/c/course-q-a/math-for-machine-learning/264.md?page=1)
