1 Linear Regression
1 Linear Regression
OR
OR
OR
X y Ŷ (=0) Ŷ (=1) Ŷ (=2 Ŷ (=3
1 2 0 1 2 3
2 5 0 2 4 6
3 5 0 3 6 9
5 11 0 5 10 15
6 11 0 6 12 18
House Price Prediction
Mathematically:
𝐽 ( 𝜃1 )
at local optima
Current value of
House Price Prediction
Mathematically:
If α is too small, gradient descent
can be slow.
=
House Price Prediction
Gradient Descent Algorithm
Andrew Ng
References
Andrew Ng’s slides on Linear Regression from his
Machine Learning Course on Coursera.
Disclaimer
Content of this presentation is not original and it
has been prepared from various sources for
teaching purpose.
Solve the regression problem and
calculate the coeffiient