where 'n' is the number of observations, 'actual_i' is the observed value, and 'predicted_i' is the predicted value. The summation (Σ) runs over all the observations. This formula squares the errors, sums them, and then averages them, providing a measure of the average squared difference between the observed and predicted values.