The mean squared error (MSE) is a metric for the error and quality of fit of a statistical learning model. In other words, it is the mean of the squares of the errors ().
where is the predicted value from the model and is the actual response from the training data. Low MSEs indicate a lower error.
MSEs are mostly used for regression problems.