Residuals
Residuals
To define the notion of residuals, let us introduce a linear model describing the relationship between K + 1 independent variables x_{j} with j = 0, 1, 2, …, K and a dependent variable y.
y = β _{0} + β _{1}x _{1} + β _{2}x _{2}+ … + β _{k }x_{k} +u
with u being the stochastic error representing all factors affecting y not included in the x_{j} ’s.
Assuming E(uǀx) = E(u) = 0, the population regression function is:
E(yǀx) = β _{0} + β _{1}x _{1} + β _{2}x _{2} + … + β _{k}x _{k}
This is estimated by the sample regression function:
ŷ = β̂ _{0} + β̂ _{1}x _{1} + β̂ _{2}x _{2} + … + β̂ _{K }x_{K}
where β̂ _{0}, β̂ _{1}, …, β̂ _{K } identify a set of estimated parameters calculated using the estimation rule β.
Assuming a sample of N observations, the residual for observation i, with i = 0, 1, 2, …, N, is the difference between the actual value of y i and the fitted value of the estimated regression, that is:
û_{i} = y_{i} ŷ_{i} = y_{i}  β̂ _{0}  β̂ _{1}x _{i 1}  β ̂_{2}x _{i 2}  …  β̂ _{K }x_{iK}
If the residual is positive, the estimated regression underpredicts y_{i} and vice versa if the residual is negative. Each residual û_{i} can be interpreted as an estimate of the unobservable error u _{i} and as such can be employed in constructing a number of statistical tests assessing the properties of the estimated model and a set of indicators determining the goodness of fit.
Ideally, a good model is characterized by small residuals, that is, by fitted values ŷ_{i} that are close to the actual values y_{i}. The ordinary least squares (OLS) estimator of the parameters β _{j} is calculated by fitting the regression line that best approximates the data through the minimization of the sum of squared residuals. The resulting firstorder conditions for the OLS estimator are and with j = 1, 2, …, K.
As regards the goodness of fit, defining the total sum of squares , the explained sum of squares, the explained sum of squares and the residual sum of the squares the part of variation in y that is explained by the regressors, is given by the coefficient R _{2} = 1  SSR /SST. R _{2} is between 0 and 1, with the fit of the regression improving as R ^{2} approaches 1. A consistent estimator of the variance of the stochastic error is given by Its square root σ̂ is then an estimator of the standard deviation of the unobservable factors affecting the dependent variable y. It indicates how well the model predicts y given the information set represented by the observables x _{j}’s. The estimate σ̂ is used to construct the standard error of the OLS estimator, equal to where SST _{j} is the total sum of squares of x _{ij} and R ^{2}_{j} is the of the regression of x_{j} on all other regressors. The standard error se(β_{j} ) is then employed to test for statistical significance of each estimated parameter through the t statistic.
If the errors were homoskedastic, we would have that Var (u ǀx _{1}, x _{2}, …,x_{k} ) = E (u ^{2}ǀx _{1}, x _{2}, …, x_{K} ) = E (u ^{2}) = σ ^{2}. On the contrary, in the presence of heteroskedasticity the expected value of u ^{2} can be assumed to depend on some function of the explanatory variables. Following this logic, Breusch and Pagan suggest a test for heteroskedasticity that consists of an F test on the regression of the squared residuals on the explanatory variables. The White test for heteroskedasticity simply consists of a similar regression including nonlinearities, that is, the squares and crossproducts of the explanatory variables.
white suggests using the residuals û_{i} to calculate a heteroskedasticityrobust standard error for β_{j}. This is given by , where r̂ _{ij} is the i th residual of the regression of x _{j} on all other regressors and SSR _{j} is the residual sum of squares of this regression.
SEE ALSO Hausman Tests; Least Squares, Ordinary; Least Squares, ThreeStage; Least Squares, TwoStage; Ordinary Least Squares Regression; Regression; Test Statistics; White Noise
BIBLIOGRAPHY
Breusch, T. S., and A. R. Pagan. 1979. A Simple Test for Heteroskedasticity and Random Coefficient Variation. Econometrica 50: 987–1007.
Greene, William H. 1997. Econometric Analysis. 3rd ed. Upper Saddle River, NJ: Prentice Hall.
White, H. 1980. A HeteroskedasticityConsistent Covariance Matrix Estimator and a Direct Test for Heteroskedasticity. Econometrica 48: 817–838.
Wooldridge, J. M. 2003. Introductory Econometrics: A Modern Approach. 2nd ed. Cincinnati, OH: SouthWestern.
Luca Nunziata
Cite this article
Pick a style below, and copy the text for your bibliography.

MLA

Chicago

APA
"Residuals." International Encyclopedia of the Social Sciences. . Encyclopedia.com. 19 Nov. 2017 <http://www.encyclopedia.com>.
"Residuals." International Encyclopedia of the Social Sciences. . Encyclopedia.com. (November 19, 2017). http://www.encyclopedia.com/socialsciences/appliedandsocialsciencesmagazines/residuals
"Residuals." International Encyclopedia of the Social Sciences. . Retrieved November 19, 2017 from Encyclopedia.com: http://www.encyclopedia.com/socialsciences/appliedandsocialsciencesmagazines/residuals
Citation styles
Encyclopedia.com gives you the ability to cite reference entries and articles according to common styles from the Modern Language Association (MLA), The Chicago Manual of Style, and the American Psychological Association (APA).
Within the “Cite this article” tool, pick a style to see how all available information looks when formatted according to that style. Then, copy and paste the text into your bibliography or works cited list.
Because each style has its own formatting nuances that evolve over time and not all information is available for every reference entry or article, Encyclopedia.com cannot guarantee each citation it generates. Therefore, it’s best to use Encyclopedia.com citations as a starting point before checking the style against your school or publication’s requirements and the mostrecent information available at these sites:
Modern Language Association
The Chicago Manual of Style
http://www.chicagomanualofstyle.org/tools_citationguide.html
American Psychological Association
Notes:
 Most online reference entries and articles do not have page numbers. Therefore, that information is unavailable for most Encyclopedia.com content. However, the date of retrieval is often important. Refer to each style’s convention regarding the best way to format page numbers and retrieval dates.
 In addition to the MLA, Chicago, and APA styles, your school, university, publication, or institution may have its own requirements for citations. Therefore, be sure to refer to those guidelines when editing your bibliography or works cited list.