Lecture Note #8 - PEC-CS701E
Lecture Note #8 - PEC-CS701E
Case-01: β1 < 0
Case-03: β1 > 0
Here,
•Y is a dependent variable.
•X1, X2, …., Xn are independent variables.
•β0, β1,…, βn are the regression coefficients.
•βj (1<=j<=n) is the slope or weight that specifies the factor by
which Xj has an impact on Y.
Cost function
•The different values for weights or coefficient of lines gives the
different line of regression, and the cost function is used to
estimate the values of the coefficient for the best fit line.
Where,
N=Total number of observation
Yi = Actual value
(a1xi+a0)= Predicted value.
Gradient Descent: