The least-squares estimators choose the intercept and slope to minimize the sum of squared regression residuals:After observation, replace by to obtain the numerical estimates. Their definition does not require a normal distribution for the errors. A unique slope requires some variation in the fixed predictors; under , this is , assumed below. If all , the slope is unidentifiable.
Differentiate the ordinary least squares objective in a. Its normal equations for linear least squares areUsing and givesThe Hessian matrix of the objective in is , which is positive-definite, so this is its unique global minimum. For the observed estimates, replace by .
The centered design gives . By independence of the errors, their off-diagonal covariances vanish. Thus variance additivity for independent random variables givesA larger spread of predictor values decreases the slope variance for fixed error variance.
Here . By linearity of covariance and independence,Thus the two estimators are uncorrelated random variables.
They need not be independent. For a counterexample take , , , and independent errors taking with equal probability. ThenEach centered estimator is zero with probability , but they are never both zero. Their zero events therefore violate independence.
A sufficient additional assumption is that the errors have a common normal distribution. The two estimators are then Jointly Gaussian, being linear combinations of the independent Gaussian random variables. Their zero covariance, established in iii, implies independence of uncorrelated jointly normal variables. Normal errors are a sufficient condition here, not a claim that no other error probability distribution could ever work.
For the random vector , its covariance matrix isIts diagonal entries are variances, and its off-diagonal entries measure pairwise covariance. Finite second moments make every entry well defined.
Independence of the centered standard normal random variables gives for every . AlsoFor nonadjacent indices, the underlying sets of variables are disjoint, so the errors are independent and have zero covariance. For adjacent indices with ,The first adjacent pair separately gives . HenceThese adjacent products of independent Gaussian variables are uncorrelated random variables even though adjacent errors share a factor and are dependent.
The least-squares estimators depend only on the observed responses and design, so the formulas in i still hold. Their variances and covariance need only the error covariance matrix, now . ThereforeFor example the first formula follows from , and the second from . The formulas remain the same as before with ; this calculation does not establish independence or a normal distribution for the estimators.
Compute fitted responses and regression residuals . A conventional residual plot shows against or ; plotting against observation order additionally looks for runs. One checks for curvature, changing spread and other structure rather than random scatter around zero.
An ordinary residual plot need not reveal this failure of independence. The errors have constant mean zero, constant variance one and zero pairwise covariances, so the usual trend and changing-variance clues need not appear. A visually patternless residual plot cannot validate independence; fitted regression residuals themselves also share the fitted coefficients even when the true errors are independent.
There is detectable dependence in the magnitudes. The Gaussian fourth moment is , giving for every adjacent pairFor , the product is ; for , it is , with the same expected value 3. Large magnitudes tend to occur together. A lagged plot of squared regression residuals or a test directed at dependence in their squares is more informative. Thus recognition is possible with suitable diagnostics, but is not guaranteed by the standard residual plot requested here.
Articles by others on the same topic
There are currently no matching articles.