Introduction
A model can explain most of the variation in the data used to build it and still make poor predictions in practice. That is because R-squared describes how well predictions fit a particular dataset, not whether they are accurate, reliable, or useful for future decisions. Understanding what the measure leaves out is essential before judging a model by its headline score.
What R-squared Measures
R-squared, often written as R2, is a statistical measure of how closely a model’s predictions match the observed values in a dataset. In a common setting, it compares the model’s prediction errors with the errors that would result from simply predicting the average outcome for every case.
An R-squared of 0.80 is often described as meaning that the model explains 80% of the variation in the outcome within the data being assessed. This is a statement about variation in that dataset. It does not mean that predictions are 80% correct, that each prediction is close to the true value, or that the model will perform equally well on new data.
The exact interpretation depends on how R-squared is calculated and what kind of model is being used. For a standard regression model with an intercept, its value on the training data generally falls between zero and one. Other settings, especially evaluation on a separate test set, can produce a negative R-squared. That means the model performed worse than a simple average-based benchmark on that dataset.
Why a High Score Can Still Mislead
A good fit to old data is not proof of good predictions
Models are usually developed using one set of observations, called training data. R-squared calculated on those same observations measures how well the model fits data it has already seen. A flexible model can capture real patterns, but it can also adapt to random quirks that will not recur.
This is called overfitting. Imagine fitting a complicated curve to a small collection of points. The curve might pass very close to every point, producing an excellent training score, while bending unpredictably between them. When new observations arrive, its predictions may be much less accurate.
The practical test is to evaluate the model on data that was not used to fit it. If possible, this should include a final test set kept separate until model choices are complete. Cross-validation, which repeatedly trains and evaluates a model on different portions of the available data, can also help estimate how performance may vary across samples.
High R-squared does not tell you the size of prediction errors
R-squared is relative to the amount of variation in the outcome. It does not directly express error in the outcome’s original units. A model might have a high R-squared for a quantity that varies widely while still making errors that matter to users.
For example, a model estimating delivery times might explain most of the variation across journeys, yet be wrong by an amount that makes a customer’s schedule unreliable. Whether that error is acceptable depends on the task. The same typical error could be minor for a broad planning estimate and serious for a time-sensitive decision.
To understand the scale of errors, readers often look at measures such as mean absolute error, which gives the average absolute difference between predictions and actual values, or root mean squared error, which gives greater weight to larger errors. These measures answer different questions from R-squared and should be interpreted in the outcome’s units.
The model may miss important patterns in its errors
A single score can hide where a model goes wrong. Prediction errors, also called residuals, may be small for most cases but large for a particular range, location, season, or type of observation. The overall R-squared can remain high if the model fits the majority of the data well.
Suppose a model predicts household energy use. It may perform well for typical days but consistently underestimate use during unusually cold periods. An overall score could conceal that pattern, even though it matters for planning. Checking residuals against predicted values and relevant features can reveal systematic errors that a summary statistic misses.
Another concern is unequal error spread. A model’s predictions may be fairly consistent for low values but much less reliable for high values. Looking at error distributions and performance across meaningful subgroups can show whether the model’s apparent quality applies broadly or only to part of the data.
Data Problems Can Inflate the Score
Information leakage
Data leakage happens when information that would not genuinely be available at prediction time enters the model or the evaluation process. For instance, a dataset might contain a field recorded only after the outcome occurred. Including that field can make the model appear remarkably accurate, but the apparent advantage disappears when making real predictions.
Leakage can also arise through data preparation. If information from the test set influences how features are selected, values are filled in, or model settings are chosen, the test results are no longer a fully independent check. Careful separation of training and evaluation steps helps prevent this problem.
A narrow or unrepresentative dataset
A model can score highly on data that does not reflect the situations in which it will be used. If the training sample covers only a limited period, population, or range of conditions, performance elsewhere is uncertain. A model built from ordinary operating conditions, for example, may have little evidence about unusual conditions.
When the real-world data differs from the development data, the relationship between inputs and outcomes may change. This is often called distribution shift. A high score on past observations cannot guarantee performance after a change in user behavior, measurement methods, equipment, or the wider environment.
Time and dependence between observations
Randomly splitting observations into training and test sets is not always suitable. In time-based data, nearby observations may be closely related. If a model is tested on records that are almost duplicates of its training examples, the evaluation can look stronger than performance on genuinely future cases.
For forecasting, it is usually more informative to train on earlier periods and evaluate on later ones. The split should reflect how predictions will actually be made. Similar care is needed when multiple records come from the same person, site, or device: related observations should not be treated as fully independent if that would make the test easier than real use.
R-Squared Does Not Establish Cause
A high R-squared shows that a model accounts for much of the observed variation under its chosen setup. It does not establish that one variable causes another. Two quantities can move together because of a shared influence, because one follows the other, or by coincidence within a particular dataset.
This distinction matters when someone wants to use a model to predict what would happen after changing a factor. A model that predicts an outcome well under observed conditions may not reliably predict the effect of an intervention. Causal questions require suitable study designs and assumptions, not just a strong fit score.
Prediction Quality Depends on the Intended Use
A model is useful only in relation to a specific purpose. The same level of error can be acceptable in one setting and inadequate in another. A rough estimate may help compare broad trends, while a decision that depends on precise individual predictions may require much tighter accuracy and stronger evidence.
It is also important to consider the consequences of different kinds of mistakes. In some tasks, overestimating matters more than underestimating; in others, the reverse is true. R-squared treats neither direction as inherently more important. Evaluation should therefore include measures and error checks that reflect the actual goal.
Even a model with strong average performance may be of limited use if its predictions are poorly calibrated. Calibration means that predicted values or probabilities correspond reasonably well to observed outcomes over repeated cases. For example, among cases assigned a particular probability, the observed frequency should be broadly consistent with that probability. R-squared alone does not establish calibration.
How to Assess a Model More Carefully
Rather than relying on one number, assess the model with a small set of checks that answer different questions:
Test on unseen data. Use observations not involved in fitting or selecting the model, and make the evaluation process resemble the way the model will be used.
Compare with a simple baseline. Check whether the model improves on a straightforward alternative, such as predicting the training-set average or using a simple established rule.
Measure errors in useful terms. Report an error measure in the outcome’s units, such as mean absolute error, alongside R-squared. This helps show the typical size of a miss.
Inspect residuals and subgroups. Look for patterns in errors and compare performance across relevant ranges, periods, or categories. A single overall score can conceal uneven results.
Check stability over time or settings. If the model will be used in changing conditions, evaluate it across different periods or environments where suitable data is available.
Confirm that the inputs are available in practice. Make sure every feature used by the model would be known at the moment a prediction is needed, and that the evaluation has not benefited from information leakage.
What About Adjusted R-Squared?
Adjusted R-squared modifies the usual measure to account for the number of predictors in a model. In some regression settings, it can discourage adding variables that do not improve fit enough to justify the added complexity. It can be useful when comparing certain models built on the same data.
However, adjusted R-squared is not a general test of predictive usefulness. It does not replace evaluation on unseen data, reveal every pattern in errors, or guarantee that the data represents future conditions. It addresses a narrower question about fit and model complexity.
Conclusion
A high R-squared can indicate that a model fits the observed data well, but it is not a guarantee of accurate or useful predictions. Overfitting, leakage, unrepresentative data, hidden error patterns, and a mismatch with the task can all undermine real-world performance. Judge models with unseen data, interpretable error measures, residual checks, and comparisons suited to their intended use.

