Cost function SSR [Sum of Squared Residual] function to find the optimal parameters values.
Dataset:
Initial parameter values:
Cost function : Sum of Squared Residuals (SSR)
Prediction function:
Predicted value:
Calculating the cost:
Finding derivations: