Lably
Skip to content

Generalized least squares

Statistical estimation technique

  • 6 min read
  • 4 chapters

Related on Lably

Through Statistics, Linear regression and Correlation

It requires knowledge of the covariance matrix for the residuals. If this is unknown, estimating the covariance matrix gives the method of feasible generalized least squares (FGLS). However, FGLS provides fewer guarantees of improvement.

Method

In standard linear regression models, one observes data {yi,xij}i=1,…,n,j=2,…,k on n statistical units with k − 1 predictor values and one response value each.

The response values are placed in a vector,y≡(y1⋮yn), and the predictor values are placed in the design matrix,X≡(1x12x13⋯x1k1x22x23⋯x2k⋮⋮⋮⋱⋮1xn2xn3⋯xnk), where each row is a vector of the k predictor variables (including a constant) for the ith data point.

The model assumes that the conditional mean of y given X to be a linear function of X and that the conditional variance of the error term given X is a known non-singular covariance matrix, Ω. That is,y=Xβ+ε,E⁡[ε∣X]=0,Cov⁡[ε∣X]=Ω, where β∈Rk is a vector of unknown constants, called "regression coefficients", which are estimated from the data.

If b is a candidate estimate for β, then the residual vector for b is y−Xb. The generalized least squares method estimates β by minimizing the squared Mahalanobis length of this residual vector:β^=argminb(y−Xb)TΩ−1(y−Xb)=argminbyTΩ−1y+(Xb)TΩ−1Xb−yTΩ−1Xb−(Xb)TΩ−1y,which is equivalent toβ^=argminbyTΩ−1y+bTXTΩ−1Xb−2bTXTΩ−1y,which is a quadratic programming problem. The stationary point of the objective function occurs when2XTΩ−1Xb−2XTΩ−1y=0,so the estimator isβ^=(XTΩ−1X)−1XTΩ−1y.The quantity Ω−1 is known as the precision matrix (or dispersion matrix), a generalization of the diagonal weight matrix.

Properties

The GLS estimator is unbiased, consistent, efficient, and asymptotically normal withE⁡[β^∣X]=β,andCov⁡[β^∣X]=(XTΩ−1X)−1.GLS is equivalent to applying ordinary least squares (OLS) to a linearly transformed version of the data. This can be seen by factoring Ω=CCT using a method such as Cholesky decomposition. Left-multiplying both sides of y=Xβ+ε by C−1 yields an equivalent linear model: y∗=X∗β+ε∗,wherey∗=C−1y,X∗=C−1X,ε∗=C−1ε.In this model, Var⁡[ε∗∣X]=C−1Ω(C−1)T=I, where I is the identity matrix. Then, β can be efficiently estimated by applying OLS to the transformed data, which requires minimizing the objective,(y∗−X∗β)T(y∗−X∗β)=(y−Xb)TΩ−1(y−Xb). This transformation effectively standardizes the scale of and de-correlates the errors. When OLS is used on data with homoscedastic errors, the Gauss–Markov theorem applies, so the GLS estimate is the best linear unbiased estimator for β.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Statistics