Model fit describes how well a regression’s predicted values line up with the data it was built from. It is never a single number. You judge it from a few complementary measures on your output, plus a look at the errors the model leaves behind. And a model can match its own data closely and still be misleading, or poor at predicting anything new, so a good fit is necessary but not enough.
Fit Starts With the Gaps Between Prediction and Reality
For each data point, the residual is the actual value minus the value the model predicted. Your output may call it the error. Squaring each residual and adding them up gives the residual sum of squares, a total of how far the data sit from the model.1Wikipedia. Residual sum of squares That total is the variation the model leaves unexplained.2Statistics By Jim. Residual Sum of Squares (RSS) Explained A smaller total means the model’s line passes closer to the points.3Investopedia. Residual Sum of Squares (RSS)
Take a straight line that predicts home price from square footage. A house that sold for $310,000 but was predicted at $300,000 has a residual of +$10,000. Points above the line have positive residuals and points below it negative ones. A positive residual means the model under-predicted that case, and a negative one means it over-predicted.
Squaring stops positive and negative misses from cancelling out, and it weighs big misses more heavily. The cancelling is a real problem: if you add up the raw residuals from a least-squares line fitted with an intercept, they come to about zero no matter how good or bad the fit is. So the raw sum can’t measure fit, and the squares are needed.
Even the squared total has a weakness. It grows with how much data you have and with the units you measure in, so on its own it can’t tell you whether a fit is good.
To get a yardstick, start with what you would do without any model: guess the average for every case. The spread of the data around that average is the total variation. The model’s residuals are what’s left after it explains some of that spread. Comparing the leftover to the total is the idea behind R-squared.
What R-Squared Tells You and What Counts as Good
R-squared is the proportion of the variation in the outcome that the predictors can account for.4Wikipedia. Coefficient of determination A value of 1 means the predictors explain all the variation and 0 means they explain none.5Investopedia. What Is Model Fit in Regression? A Clear Explanation An R-squared of 0.6 says the model accounts for 60% of the ups and downs in the outcome.
It is easy to misread. R-squared is not the percent of predictions that are right, and it says nothing about how big a typical miss is in real units.
With one predictor, R-squared is the squared correlation between that predictor and the outcome, so a correlation of 0.5 gives an R-squared of 0.25. With several predictors, it describes what they explain together, not what each explains alone. A mid-sized value can hide one predictor doing most of the work, so look at the individual predictors instead of treating the number as a group score.
The leftover share has a meaning too. If R-squared is 0.6, the other 40% of the variation comes from things the model doesn’t capture, such as missing variables and randomness. Where outcomes depend on many hidden factors, human behavior above all, much of that share is simply unpredictable noise. A low R-squared doesn’t mean you did something wrong; it may just reflect how noisy the outcome is.
That is why no value is universally good. In social science, where the goal is testing whether certain factors matter rather than predicting behavior, an R-squared as low as 0.1 is often accepted if key predictors are statistically significant.6Munich Personal RePEc Archive. The acceptable R-square in empirical modelling for social science research
A high value isn’t proof either. A high R-squared does not prove a real relationship; two unrelated trends over time can produce 0.85.7MetricGate. Spurious Regression: When Trends Fake a Relationship Two things that both rise over time can appear linked even when they aren’t. Check whether the relationship survives once the shared trend is removed, and ask whether there is a sensible reason the two should be connected.
Why Adjusted R-Squared Exists
Adding any predictor, even a useless one, never lowers plain R-squared. Adjusted R-squared fixes that by subtracting a penalty based on how many predictors you have and how many data points.8The Analysis Factor. The Difference Between R-squared and Adjusted R-squared A useful new predictor raises it, while a useless one lowers it.8The Analysis Factor. The Difference Between R-squared and Adjusted R-squared It also punishes predictors that add little new information, such as ones nearly duplicating existing ones.9DataCamp. What Is Model Fit in Regression? A Clear Explanation
Adjusted R-squared is always at or below plain R-squared, so seeing it lower is normal. The warning sign is a wide gap, which suggests several predictors are adding little beyond chance. Small datasets with many predictors show the largest gaps. When you add a variable and R-squared creeps up while adjusted R-squared falls, that variable isn’t earning its place, so adjusted R-squared is the number to watch when deciding whether to keep it.
It has limits. If your sample covers a narrower range than the real population, adjusted R-squared tends to understate fit.10Statistics By Jim. How To Interpret R-squared in Regression Analysis If your sample is more spread out than the population, it tends to overstate fit.10Statistics By Jim. How To Interpret R-squared in Regression Analysis
Studying test scores only among top students shows the first case. The range is narrow, so the relationship looks weaker than it is across all students. Know what population your sample really represents before trusting the number.
The Typical Miss in Real Units
Output often lists the standard error of the regression, also called residual standard error, right beside R-squared.11Statistics By Jim. Standard Error of the Regression vs. R-squared It gives the typical distance data points fall from the line, in the same units as what you’re predicting.11Statistics By Jim. Standard Error of the Regression vs. R-squared For a single-predictor line, it is the square root of the sum of squared residuals divided by the number of data points minus 2.12Duke University. Notes on linear regression analysis Root mean square error, or RMSE, is almost the same number.11Statistics By Jim. Standard Error of the Regression vs. R-squared
The 2 in that formula comes from the two values a single-predictor line has to estimate, the intercept and the slope, which uses up two degrees of freedom. With more predictors, the subtraction grows to match the number of estimated coefficients, so multiple regression divides by a smaller number. Dividing by this reduced count keeps the typical miss, often labeled S, from looking better than it really is.
S works as a practical yardstick. If S is $25,000 for house prices, typical predictions miss by about that much. Roughly 95% of points fall within about 2 S of the line, though that assumes the residuals are roughly bell-shaped and spread evenly. If your residual plot shows a funnel, the typical miss is larger in some ranges than others, so one S misdescribes those areas. Treat the range as an approximation for a well-behaved model, not a guarantee.
Compare S to the precision you actually need for decisions. A model with a high R-squared can still miss by too much to be useful.
When a Model Fits Too Well
Very simple models tend to be systematically off, while very complex ones swing with every quirk of the data.13University of Washington. Probability & Statistics with Applications to Computing As a model gets more flexible, its systematic error falls but its instability rises.14Basics of Statistical Learning. Chapter 4 The Bias–Variance Tradeoff The best model sits in the middle, capturing the real pattern rather than the noise.13University of Washington. Probability & Statistics with Applications to Computing A predictor that looks important on your own data may matter little when forecasting new data.15Journal of Business & Economic Statistics. The Anatomy of Out-of-Sample Forecasting Accuracy
Overfitting is what happens when a model goes too far, and it ends up fitting the noise. A curvy line passing through every point looks perfect on a chart, but on new data it zigzags wildly and misses badly. One sign is a near-perfect R-squared with few data points and many predictors. Fewer, sensible predictors often generalize better.
Performance on held-out data is the more honest measure of how the model will work in practice, because fit statistics on your own data reward it for matching quirks it was tuned to. Cross-validation builds that into the process. It splits the data into several parts, fits on most, and tests on the part held out, rotating through all parts. In one comparison, this approach gave R-squared values closer to the truth than a single train-test split.16K-Fold Cross-Validation is Superior to Split Sample Validation for Risk Adjustment Models. K-Fold Cross-Validation is Superior to Split Sample Validation for Risk Adjustment Models
Compare how well the model does on the data it was fit to with how well it does on held-out data. A large drop on the held-out data is a strong sign of fitting the noise. A small drop suggests the model captured real structure that carries over to new cases.
Checking Fit With a Residual Plot
A residual plot puts each point’s residual against its predicted value. If the model’s assumptions hold, the points scatter randomly with no shape.17R-bloggers. Residual plots and assumption checking A curve in the points means the relationship isn’t a straight line.17R-bloggers. Residual plots and assumption checking A funnel, where spread grows or shrinks across predictions, means errors aren’t equally sized.17R-bloggers. Residual plots and assumption checking A curved pattern can often be fixed by transforming a variable or adding a squared term.18University of Texas at Austin Mathematics Department. What Is Model Fit in Regression? A Clear Explanation
Make the plot in your software right after fitting. Look first for curves, then funnels, then isolated far points. Investigate odd points for data-entry errors before removing anything. Very different datasets can share the same R-squared, so pair the summary numbers with at least one plot.
A funnel affects your results in a specific way. The line may still be a fair description of the average trend. But the reported uncertainty around coefficients and predictions can be misleading, since it assumes one constant error size. Transforming the outcome, such as taking its logarithm, often evens out a funnel, especially for outcomes like prices or incomes that grow in proportion.
Some points pull harder than others. Points with unusual predictor values can carry outsized pull on the line.19Journal of Applied Statistics. The performance of diagnostic-robust generalized potentials for the identification of multiple high leverage points in linear regression They can make a fit look better or worse than it really is and hide other outliers.19Journal of Applied Statistics. The performance of diagnostic-robust generalized potentials for the identification of multiple high leverage points in linear regression Refit without such points to see whether your conclusions change.
Choosing Between Competing Models
AIC and BIC both balance fit against the number of parameters, and the model with the lower value is preferred. BIC charges a steeper penalty for each parameter once you have more than a handful of data points.20Wikipedia. Akaike information criterion So BIC suits picking the true underlying model if it’s among your choices, while AIC suits finding the best approximation.20Wikipedia. Akaike information criterion In one energy-use comparison, a curved model had the lowest AIC and BIC even though its adjusted R-squared was tiny.21Sage Open. Comparing Linear and Nonlinear Models for Load Profile Data Using ANOVA, AIC, and BIC
Only compare AIC or BIC across models fit to the same data. The raw values mean nothing alone; only differences matter. When the two disagree, BIC usually favors the simpler model. Where possible, confirm the winner with cross-validation.
The lowest AIC is preferred, but a difference of only a point or two means the models are essentially tied. Larger differences give stronger grounds for the lower model, and a gap of many points is hard to dismiss. In close cases, prefer the simpler or more interpretable model.
Fit for Yes-or-No Outcomes
Ordinary R-squared doesn’t apply to logistic regression, so outputs show pseudo R-squared values instead. McFadden’s version measures how much the model improves on a model with no predictors.22UCLA Statistical Consulting. What Is Model Fit in Regression? A Clear Explanation Nagelkerke’s version rescales another measure so it can reach a maximum of 1.23Wikipedia. Pseudo-R-squared These values usually run lower than ordinary R-squared, so don’t judge them on the same scale.
Because McFadden’s value compares your model with one that has only an intercept, zero means the predictors added nothing. It rarely approaches 1 even for strong models, so a moderate value can represent a good fit. It is most useful for comparing models fit to the same data, not for judging a model against a universal standard.
Calibration asks a different question: does predicted risk match reality? The Hosmer-Lemeshow test checks whether predicted risk matches how often events actually happen across ten risk groups.24Wikipedia. Hosmer–Lemeshow test With very large samples, though, it flags tiny, unimportant mismatches as poor fit.25PubMed. Assessing the goodness of fit of logistic regression models in large samples: A modification of the Hosmer-Lemeshow test With big data, compare predicted and observed rates directly rather than relying on the test alone. A well-calibrated model that gives 100 people a 20% risk should see about 20 of them have the event.
Classification accuracy adds another wrinkle, since it depends on the probability cutoff used to call a case a yes. Changing the cutoff changes the results. When one outcome is rare, a model can reach high accuracy by always predicting the common outcome. Looking at how many true cases are caught and how many false alarms are raised gives a fuller picture.

