entekhab.netentekhab.nettrilingual encyclopedia

R-squared

ENGLISHR-squaredreference
فارسیضریب تعیینEstablished equivalent
کوردیهاوکۆلکەی دیاریکردنProposed equivalent — not standard
Category
Quantitative Finance
Level
Professional

Simple definition

The share of a quantity's ups and downs that a fitted line accounts for, from 0 to 1. Higher means a tighter fit to the data you already have, and nothing more.

Professional definition

One minus the residual sum of squares divided by the total sum of squares. In a simple regression it equals the squared correlation between the two series. It measures in-sample fit only, and it cannot fall when a regressor is added, however irrelevant that regressor is.

Technical definition

The proportion of the dependent variable's sample variation that the fitted model reproduces. Because adding any regressor weakly increases it, model comparison requires the adjusted form, which penalises parameters by the ratio of degrees of freedom. A high value establishes neither causation nor out-of-sample predictive power; on non-stationary series it can be near one between entirely unrelated variables.

Academic definition

The proportion of the response variable's total sum of squares accounted for by the fitted regression, monotone non-decreasing in the number of regressors.

Mechanism

Every regressor adds a direction in which the fit can move toward the data, so the residual sum of squares can only shrink or stay equal. Nothing in the arithmetic asks whether the new direction carries information. The adjusted form restores a penalty by dividing each sum of squares by its own degrees of freedom instead of by the sample size.

In practice

Who uses it
Anyone reporting a regression: factor-model builders, beta estimators, tracking-error analysts and strategy researchers comparing specifications.
Why it matters
It gives a quick scale-free summary of how much of the dependent series the model reproduces, which is useful for comparing specifications on the same data.
Limitations
It says nothing about causation, nothing about forecasting, and nothing about whether the added regressors are real. Across different dependent variables the figure is not comparable at all.

Common mistakes

  • Selecting a model by maximising in-sample R-squared.
  • Quoting R-squared as if it measured predictive accuracy.
  • Comparing R-squared across regressions with different dependent variables.

Examples

numeric

A five-point regression leaves a residual sum of squares of 2.4 against a total of 8.8, so R-squared is 0.727. Adjusted for one regressor and five observations it drops to 0.636 — the penalty for the parameter spent.

Given
  • residual sum of squares SSE = 2.4
  • total sum of squares SST = 8.8
  • n = 5, k = 1 regressor
Steps
  1. R-squared = 1 - 2.4 / 8.8 = 1 - 0.27273
  2. adjusted = 1 - (1 - 0.72727) x (5 - 1) / (5 - 1 - 1)
  3. adjusted = 1 - 0.27273 x 4 / 3
R-squared = 0.7273, adjusted R-squared = 0.6364

Verified numerically. Adjusted R-squared can go negative when the regressors explain less than the degrees of freedom they consume, which plain R-squared can never do.

market

A factor model fitted to a fund's history reports R-squared above 0.9. That tells you the factors reproduce the past returns closely. It does not tell you the fund's next year is predictable, nor that the factors drive the returns.

Mathematical foundation

R^2 = 1 - \frac{\mathrm{SSE}}{\mathrm{SST}} = 1 - \frac{\sum_i (y_i-\hat{y}_i)^2}{\sum_i (y_i-\bar{y})^2}, \qquad R^2_{adj} = 1 - (1-R^2)\frac{n-1}{n-k-1}

Variables

\mathrm{SSE}Residual sum of squares: variation the model leaves unexplainedsquared units of y
\mathrm{SST}Total sum of squares: variation of y around its own meansquared units of y
kNumber of regressors excluding the interceptcount
nNumber of observationscount

Procedure

Fit the model and keep the residuals. Sum their squares for the residual total. Separately sum the squared deviations of the dependent variable from its own mean for the grand total. Divide and subtract from one. Then compute the adjusted figure, and report both along with n and k, because the plain figure alone cannot be compared across specifications.

Worked example

Given
  • SSE = 2.4
  • SST = 8.8
  • n = 5
  • k = 1
Steps
  1. SSE/SST = 2.4/8.8 = 0.27273
  2. R-squared = 1 - 0.27273 = 0.72727
  3. (n-1)/(n-k-1) = 4/3 = 1.33333
  4. adjusted = 1 - 0.27273 x 1.33333 = 1 - 0.36364
R-squared = 0.7273, adjusted R-squared = 0.6364

Interpretation

Read it as a description of fit on the data in hand. A high value does not establish causation, does not establish out-of-sample predictive power, and rises mechanically as regressors are added — which is precisely why the adjusted version exists. A model chosen by maximising it is a model selected for fitting noise.

Assumptions

  • The model includes an intercept; without one R-squared can be negative or meaningless depending on the definition used.
  • SST is computed around the sample mean of the dependent variable, so the figure answers 'better than predicting the mean', not 'better than any alternative'.
  • The adjusted form assumes k counts only the regressors actually estimated; counting candidates that were searched over and discarded would require a much larger penalty than this formula applies.
Limits of the formula
  • In-sample only. The honest analogue for forecasting is an out-of-sample or walk-forward measure computed on data the model never saw.
  • Between non-stationary series it can approach one with no relationship present at all, because both series share a trend rather than a mechanism.

Related terminology

parent
Linear Regression
related
Linear Regression Correlation Covariance Overfitting Data Snooping In-Sample versus Out-of-Sample Backtesting Beta Tracking Error Curve Fitting Walk-Forward Testing Parameter Optimisation
Commonly confused with

Correlation

In a simple regression R-squared is the squared correlation, so it discards the sign. In a multiple regression it is no longer any single correlation at all.

Sources

Editorial status

Needs expert reviewconsensusv1.02026-11-05

Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.

The Kurdish headword هاوکۆلکەی دیاریکردن is this project's proposal and needs native-expert review; practitioners commonly write R² or R دووجا, both kept in abbr and aka. Both the plain and adjusted formulas are standard; the entry notes that the adjusted penalty accounts only for regressors estimated, not for specifications searched and discarded, which is a separate and larger problem handled under data-snooping.