Fraction of variance unexplained

From Wikipedia, the free encyclopedia
Jump to: navigation, search

In statistics, the fraction of variance unexplained (FVU) in the context of a regression task is the fraction of variance of the regressand (dependent variable) Y which cannot be explained, i.e., which is not correctly predicted, by the explanatory variables X.

For a more general concept, see explained variation.

Formal definition[edit]

Suppose we are given a regression function ƒ yielding for each yi, 1 ≤ i ≤ N, an estimate \widehat{y}_i = f(x_i) where x_i is the vector of the ith observations on all the explanatory variables. We define the fraction of variance unexplained (FVU) as:

\begin{align}
\text{FVU} & = {VAR_{\rm err} \over VAR_{\rm tot}} = {SS_{\rm err}/n \over SS_{\rm tot}/n} = {SS_{\rm err} \over SS_{\rm tot}} = 1-{SS_{\rm reg} \over SS_{\rm tot}} \\[6pt]
 & = 1 - R^2,
\end{align}

where R2 is the coefficient of determination and VARerr and VARtot are the variance of the estimated residuals and the sample variance of the dependent variable. SSerr (the sum of squared predictions errors, equivalently the residual sum of squares), SStot (the total sum of squares), and SSreg (the sum of squares of the regression, equivalently the explained sum of squares) are given by

\begin{align} 
SS_{\rm err} & = \sum_{i=1}^N\;(y_i - \widehat{y_i})^2\\
SS_{\rm tot} & = \sum_{i=1}^N\;(y_i-\bar{y})^2 \\
SS_{\rm reg} & = \sum_{i=1}^N\;(\widehat{y_i}-\bar{y})^2 \text{ and}  \\
\bar{y} & = \frac{1}{N}\sum{}_{i=1}^N\;y_i.
\end{align}

Alternatively, the fraction of variance unexplained can be defined as follows:

 \text{FVU} = \frac{\text{MSE}(f)}{\text{var}[Y]},

where MSE(f) is the mean squared error of the regression function ƒ.

Explanation[edit]

It is useful to consider the second definition to understand FVU. When trying to predict Y, the most naïve regression function that we can think of is the constant function predicting the mean of Y, i.e., f(x_i)=\bar{y}. It follows that the MSE of this function equals the variance of Y; that is, SSerr = SStot, and SSreg = 0. In this case, no variation in Y can be accounted for, and the FVU then has its maximum value of 1.

More generally, the FVU will be 1 if the explanatory variables X tell us nothing about Y in the sense that the predicted values of Y do not covary with Y. But as prediction gets better and the MSE can be reduced, the FVU goes down. In the case of perfect prediction where \hat{y}_i = y_i for all i, the MSE is 0, SSerr = 0, SSreg = SStot, and the FVU is 0.

See also[edit]