TOPICS
Search

Coefficient of Determination


The coefficient of determination is a statistic that compares the residual variation of fitted values y^^_i with the total variation of observations y_i. Writing y^_ for the arithmetic mean of y_1, ..., y_n, define

SS_(tot)=sum_(i=1)^(n)(y_i-y^_)^2,
(1)
SS_(res)=sum_(i=1)^(n)(y_i-y^^_i)^2.
(2)

The coefficient of determination is then

 R^2=1-(SS_(res))/(SS_(tot)).
(3)

For an in-sample linear least squares fitting with an intercept, 0<=R^2<=1, and R^2 is the fraction of total sum of squares accounted for by the fitted model. Without an intercept, or when predictions are evaluated on data not used for fitting, R^2 can be negative.

Adding predictors cannot decrease the in-sample R^2. A commonly used penalty for this property is the adjusted coefficient of determination

 R_(adj)^2=1-(n-1)/(n-k)(1-R^2),
(4)

where k is the number of estimated parameters, including the intercept. In simple linear regression with an intercept, the coefficient of determination is related to the correlation coefficient and the two directional regression coefficients by

 R^2=r_(xy)^2=b_(xy)b_(yx).
(5)

See also

Correlation Coefficient, Least Squares Fitting, Multiple Regression, Regression Coefficient, Residual

Explore with Wolfram|Alpha

References

Dobrescu, E. "Measuring Mutual Causality in Macroeconomy." Ch. 1 in Transformational Drivers of National Economies: A New Analytical Framework Addressing Transitional Growth Model. (Ed. L. Chivu, V. Ioan-Franc, G. Georgescu, I. De Los Ríos Carmenado, and J.-V. Andrei). Cham, Switzerland: Springer, pp. 1-39, 2026. https://doi.org/10.1007/978-3-032-18962-2_1.Draper, N. R. and Smith, H. Applied Regression Analysis, 3rd ed. New York: Wiley, 1998.Kvålseth, T. O. "Cautionary Note about R^2." Amer. Statist. 39, 279-285, 1985. https://doi.org/10.1080/00031305.1985.10479448.

Cite this as:

Weisstein, Eric W. "Coefficient of Determination." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CoefficientofDetermination.html

Subject classifications