December 2018
Intermediate to advanced
158 pages
3h 58m
English
For some linear regression problems, the closed form solution, also known as the normal equation, is a better way to find optimum values of theta. If you know calculus, then to minimize the cost function, you can find the partial derivatives of the cost function, with respect to each value of theta, and set each derivative to zero and then solve for each value of theta. Don't worry if you are not familiar with calculus; it turns out that we can derive the normal equation from these partial derivatives and this results in the following equation:

You may wonder why we need to bother with gradient descent and the added complications ...
Read now
Unlock full access