Mean Squared Error (MSE)#
The average of squared differences between predictions and actuals.
Important
✨ AI-generated content. This page was written with the assistance of an AI language model and is provided as a learning aid. Despite careful review, it may still contain mistakes, omissions, or out-of-date information. Whether you are new to the topic, a team lead, or a senior practitioner, treat it as a starting point rather than an authoritative reference: read it critically and independently verify anything you act on (code, commands, figures, and factual claims) against official documentation and primary sources before relying on it.
What it is#
Mean squared error is the average of the squared differences between predictions and truth — the workhorse loss and metric for regression (also called L2 or quadratic loss):
Squaring makes every error positive and weights large errors far more than small ones.
How it behaves#
Because errors are squared, MSE is dominated by big misses and is sensitive to outliers — one large error can swamp many small ones. Its units are the square of the target’s, so it doesn’t read directly; minimizing MSE yields the mean (conditional expectation) as the optimal prediction.
Why it’s used#
It is smooth and differentiable, ideal for gradient descent (it is the loss regression networks minimize), and it is the maximum-likelihood loss under Gaussian noise. When outliers should count less, MAE is preferred.
Theme: Model Evaluation & Uncertainty · All terminology
Hint
Mind map — connected ideas
Root Mean Squared Error (RMSE) · Mean Absolute Percentage Error (MAPE) · Loss Functions · R² (R-squared) · Regression Models · Forecast Error
Hint
More in Model Evaluation & Uncertainty
Average Absolute Error (AAE) · Baseline Heuristics · Bootstrap · Bootstrap Confidence Intervals (CIs) · Coverage · Cramér’s V · DeLong’s Test · KS Statistic (Kolmogorov–Smirnov Statistic) · Likelihood Ratio (LR) · Mann–Whitney U Test (also called the Wilcoxon rank-sum test) · MASE (Mean Absolute Scaled Error) · Mean Absolute Error (MAE) · Mean Absolute Percentage Error (MAPE) · Relative accuracy
See also
Source article Adapted (context, re-expressed) in our own words from: Mean Squared Error (MSE) (insightful-data-lab.com).