I am new to machine learning and statistics and am confused with the cost function & Mean Squared Error (MSE) formulas. In Machine learning class at stanford - coursera, Cost function formula is mentioned as shown below:
Cost Function formula
And at some other sources, cost function is termed as mean squared error (MSE) and it is given with the formula as shown in picture below.
Mean Squared Error formula
What will be the Cost Function formula & is cost function and MSE different or same. Please let me know why are the formulas are different.
Thanks in Advance
Raj