Why my Model has a low MAE and low R2 score at the same time?
Master System Design with Codemia
Enhance your system design skills with over 120 practice problems, detailed solutions, and hands-on exercises.
Introduction
When evaluating regression models, two critical metrics often used are the Mean Absolute Error (MAE) and the coefficient of determination, commonly represented as . The MAE provides a straightforward measure of the average magnitude of errors in a set of predictions, without considering their direction, while offers insights into the proportion of variance in the dependent variable that is predictable from the independent variables. Under certain conditions, a model might yield both a low MAE and a low score simultaneously. This scenario might be initially puzzling as one metric suggests high accuracy (low MAE), while the other implies poor fit (low ). Understanding why this happens requires a deeper dive into how each metric functions and their limitations.
Understanding MAE and
Mean Absolute Error (MAE)
The Mean Absolute Error is calculated using the formula:
where is the actual value, is the predicted value, and is the number of observations. MAE reflects the average absolute difference between observed and predicted values, providing a clear measure of prediction accuracy.
Coefficient of Determination ()
is computed as:
where is the sum of squares of residuals (i.e., ) and is the total sum of squares (i.e., ). The metric essentially measures how well the data fits the model, with values closer to 1 indicating a better fit.
Potential Scenarios of Low MAE and Low
Presence of Data Variability
• Uniformly Distributed Targets: • If the target variable exhibits minimal variation (i.e., low variance), even a model predicting values close to the central tendency (such as the mean) can result in a low MAE. However, if the model lacks the ability to explain the variability, it might also show a low .
Insensitivity to Scale
• Difference in Scale Sensitivity: • A model with predictions that precisely follow the scale of the dependent variable (e.g., small numerical range) might incur a low average error (low MAE). However, if the inherent variability or scale cannot be captured (potentially due to noise or insufficient variability in inputs), the can remain low.
Influence of Outliers
• Presence of Outliers: • Outliers strongly influence but have a muted effect on MAE. If your dataset contains significant outliers, they might drastically lower even if the model appropriately predicts the non-outlier data, leading to a reasonable MAE.
Non-linear Relationships
• Non-linear Patterns: • A linear model applied to data with non-linear patterns might capture a central tendency of predictions leading to a low MAE, yet explain only a small amount of variance, hence displaying a low .
Model Complexity
• Underfitting: • An overly simplistic model can result in predictions that approximate an average with minimal prediction error. Although such prediction errors might be minimal (low MAE), the model might still fail to capture the specific variations in the data leading to a low .
Key Points Summary
| Aspect | Low MAE | Low R2 |
| Target Variance | Low variance across data | Model explains little of the variance |
| Outlier Influence | Less sensitivity | High sensitivity |
| Suitability to Relationships | Good for central tendencies | Poor for non-linear or complex patterns |
| Data Distribution | Performs well for uniform data | Performs poorly for non-discriminate data |
| Model Complexity | Simple models may fit central tendency well, yielding low error | Simple or inappropriate models struggle to explain variance |
Conclusion
Understanding regression model metrics such as MAE and is essential to interpreting model performance. While low errors might denote accurate predictions in terms of magnitude, explaining data variability is a separate concern influenced by factors such as data distribution, model choice, and inherent data noise. Recognizing the environments and conditions that lead to divergent results between these metrics aids in thorough model evaluation and ensuing improvements. Balancing both error minimization and variance explanation ultimately leads to better-performing models and insightful data understanding.

