Mean Absolute Error (MAE)

Also known as: MAE, L1 Loss

Category: Foundations of ML/AI

A loss function that computes the average of absolute differences between predicted and actual values, offering robustness to outliers.

Full Explanation

Mean absolute error (MAE) is a regression loss function calculated as the average of the absolute differences between predictions and true values. Unlike MSE, MAE treats all errors linearly, giving equal weight to errors regardless of their magnitude. This makes MAE more robust to outliers than MSE, since large errors are not squared. However, MAE has a non-smooth gradient at zero, which can make optimization slightly more challenging near the optimum. MAE is the optimal loss function when errors follow a Laplacian distribution, analogous to how MSE is optimal for Gaussian-distributed errors. It is widely used in forecasting, financial modeling, and any regression task where outlier robustness is desired.

Related Terms

More in Foundations of ML/AI

Explore More