Contents
- What is R-squared?
- What does adjusted R-squared add?
- Why does predicted R-squared matter?
- A worked example with nine predictors
- Computing all three in Python
- Which R-squared should be reported?
- R-squared in time series and panel data
- How do reviewers read R-squared?
- Frequently asked questions
- What is a good R-squared value?
- Why is adjusted R-squared lower than R-squared?
- Can adjusted R-squared be negative?
- Why does SPSS not show predicted R-squared?
- Does a high R-squared mean the model is correct?
- Is R-squared reported for logistic regression?
- References
Versi bahasa Indonesia: Perbedaan R Squared, R Squared Adjusted, dan R Squared Predicted
Short answer: R-squared (R²) is the proportion of the variation in the dependent variable explained by the regression model, ranging from 0 to 1. Adjusted R² corrects R² for the number of predictors, so it rises only when a new variable improves the model more than expected by chance. Predicted R² measures how well the model predicts observations that were not used to fit it, which makes it the best warning sign of overfitting. Reporting all three gives the most honest picture of model quality.
| Measure | Formula | Question answered | Can be negative? |
|---|---|---|---|
| R² | SSR / SST = 1 − SSE / SST | How much variation does the model explain? | No (with an intercept) |
| Adjusted R² | 1 − (1 − R²)(n − 1)/(n − p − 1) | Is the extra variable worth its cost? | Yes |
| Predicted R² | 1 − PRESS / SST | Will the model predict new data well? | Yes |
Anyone who has run simple, multiple, or logistic regression in Minitab or SPSS has seen several versions of R² in the output. Minitab, in particular, prints R-sq, R-sq(adj), and R-sq(pred) side by side. Each version answers a different question, and confusing them leads to overconfident models.
What is R-squared?
R² indicates how strongly the independent variables jointly explain the dependent variable. The closer the value is to one, the better the fitted line follows the data. Manually, R² is the ratio of the regression sum of squares to the total sum of squares.

In this formula, SSR = Σ(Ŷ − Ȳ)² is the squared deviation of predicted values from the mean, and SST = Σ(Y − Ȳ)² is the squared deviation of actual values from the mean. Because the formula only compares predicted and actual values, it can also evaluate other models, for example a time series forecast, as a complement to MSE or SSE.
However, R² has a well-known weakness: it never decreases when a variable is added, even a completely irrelevant one. Every new variable allows the fitted values to follow the sample a little more closely, so SSR grows. Consequently, a model loaded with many predictors can reach an impressive R² while capturing mostly noise.
What does adjusted R-squared add?
Adjusted R² takes the sample size (n) and the number of predictors (p) into account.

Minitab’s documentation explains the logic: adjusted R² increases only when a new term improves the model more than would be expected by chance, and it decreases when the improvement is smaller than expected. Thus, adjusted R² does not rise automatically with every new variable, which is why many supervisors prefer it in theses. Three properties follow from the formula: (1) adjusted R² is always lower than or equal to R²; (2) it can become negative when the mean squared error exceeds the total variance per degree of freedom, a sign of a very poor model; and (3) the gap between R² and adjusted R² widens as more weak predictors are added.
Why does predicted R-squared matter?
A frequent purpose of regression is prediction: inserting new values of X to estimate Y. Predicted R² indicates how well the model performs on observations that were not used in estimation.

PRESS, the prediction error sum of squares, removes each observation in turn, refits the model, and measures the error in predicting the removed point. In practice, PRESS = Σ[ei / (1 − hii)]², where ei is the ordinary residual and hii is the leverage of observation i, so no repeated refitting is required.
Predicted R² deserves attention even when the model will never be used for forecasting, because it detects overfitting. An overfit model looks excellent on R² and adjusted R², yet it has learned the noise of the particular sample. When predicted R² is much lower than R², the model fails to generalize.
A worked example with nine predictors
The exercise uses one dependent variable and nine independent variables. The predictors were entered one at a time, and the three measures were recorded after each step.

The table reveals three different stories. R² rises with every additional variable and finally reaches 100 percent, a perfect fit that should immediately raise suspicion because no real-world model is perfect. Adjusted R² moves up and down as variables enter, which confirms that some additions do not improve the model. Predicted R² tells the decisive story: it stays at zero for most steps and then jumps to 99.46 percent at the end, an implausible leap. The full output for models with one to eight variables also reports multicollinearity problems. Thus, the model is overfit and contaminated by noise, and its high R² cannot be trusted. A predicted R² of zero is already poor; a negative predicted R² would be worse still.
Computing all three in Python
import pandas as pd
import statsmodels.api as sm
df = pd.read_csv("data.csv")
X = sm.add_constant(df.drop(columns="Y"))
model = sm.OLS(df["Y"], X).fit()
h = model.get_influence().hat_matrix_diag
press = ((model.resid / (1 - h)) ** 2).sum()
sst = ((df["Y"] - df["Y"].mean()) ** 2).sum()
print("R2 :", round(model.rsquared, 4))
print("Adjusted R2 :", round(model.rsquared_adj, 4))
print("Predicted R2:", round(1 - press / sst, 4))
Which R-squared should be reported?
All three. R² describes how much variation the predictors explain jointly, adjusted R² shows whether the number of variables is justified, and predicted R² reveals whether the model is useful for new observations or merely overfit. A healthy model shows three values that are reasonably close to each other. A large gap between R² and predicted R² is a signal to remove weak variables, check multicollinearity with the variance inflation factor, or collect more data.
R-squared in time series and panel data
The interpretation of R-squared changes when the data are not cross-sectional. In time series regression, two variables that both trend upward over time, such as national rice production and the number of mobile phone subscribers, can produce an R-squared above 0.90 without any causal link. This spurious regression problem is the reason why stationarity tests precede time series regression. Thus, a very high R-squared in a time series model is a signal to check for unit roots, not a reason for celebration.
In panel data, software such as EViews and Stata reports several versions: within, between, and overall R-squared. The within R-squared describes how well the model explains changes over time inside each unit, and it is the relevant measure for a fixed effect model. The overall R-squared mixes both sources of variation. Consequently, comparing the overall R-squared of a fixed effect model with that of a pooled OLS model can be misleading.
How do reviewers read R-squared?
A short scene from a thesis defense illustrates a common misunderstanding. A student presents a model of household food expenditure with R-squared = 0.38 and immediately apologizes for the “low” value. The examiner responds that household data are noisy by nature and that the question is whether the key coefficient is precisely estimated and theoretically sound. The student relaxes, and the discussion turns to the substance of the model.
The examiner’s point reflects a general rule. In cross-sectional household or farm survey data, R-squared values between 0.20 and 0.50 are common and acceptable. In engineering or laboratory data, values above 0.90 are expected. In aggregated macro time series, values above 0.90 are frequent but may be spurious. Therefore, R-squared should be judged against the type of data and the purpose of the model, not against a single universal threshold.
For prediction-oriented models, predicted R-squared or out-of-sample error is the stronger evidence. For explanation-oriented models, adjusted R-squared is reported alongside coefficient significance and diagnostic tests. Thus, the three versions of R-squared complement one another rather than compete.
Related guides on Catatan Budi: Variance inflation factor (VIF), Heteroscedasticity: detection and fixes, Regression vs path analysis vs SEM.
Frequently asked questions
What is a good R-squared value?
No universal threshold exists. Cross-sectional social and agricultural data often produce R² between 0.2 and 0.6, while time series and laboratory data frequently exceed 0.8. The value should be judged against similar studies.
Why is adjusted R-squared lower than R-squared?
Adjusted R² applies a penalty for each predictor relative to the sample size, so it is always lower than or equal to R².
Can adjusted R-squared be negative?
Yes. A negative value means the model explains less variation than would be expected from the number of predictors alone, which indicates a very poor model.
Why does SPSS not show predicted R-squared?
SPSS does not print it by default. It can be calculated from the PRESS statistic, which SPSS can save through the Save dialog as deleted residuals, or computed with the Python code above.
Does a high R-squared mean the model is correct?
No. A high R² can coexist with overfitting, omitted variables, or violated assumptions. Residual diagnostics and predicted R² should always accompany it.
Is R-squared reported for logistic regression?
Not in the ordinary sense. Logistic regression reports pseudo R-squared measures such as Cox and Snell or Nagelkerke, which are interpreted more loosely than the R-squared of linear regression.
References
- Allen, D. M. (1974). The relationship between variable selection and data augmentation and a method for prediction. Technometrics, 16(1), 125–127.
- Gujarati, D. N., and Porter, D. C. (2009). Basic Econometrics (5th ed.). McGraw-Hill.
- Minitab Support. Interpret all statistics for regression: R-sq, R-sq (adj), and R-sq (pred).
Discussion
No comments yet. Have a question about this topic? Write it below and I will do my best to answer.