HOME

TheInfoList



OR:

In
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
, the Gauss–Markov theorem (or simply Gauss theorem for some authors) states that the ordinary least squares (OLS) estimator has the lowest sampling variance within the
class Class, Classes, or The Class may refer to: Common uses not otherwise categorized * Class (biology), a taxonomic rank * Class (knowledge representation), a collection of individuals or objects * Class (philosophy), an analytical concept used d ...
of
linear In mathematics, the term ''linear'' is used in two distinct senses for two different properties: * linearity of a '' function'' (or '' mapping''); * linearity of a '' polynomial''. An example of a linear function is the function defined by f(x) ...
unbiased estimators, if the errors in the linear regression model are uncorrelated, have equal variances and expectation value of zero. The errors do not need to be normal, nor do they need to be independent and identically distributed (only uncorrelated with mean zero and homoscedastic with finite variance). The requirement that the estimator be unbiased cannot be dropped, since biased estimators exist with lower variance. See, for example, the James–Stein estimator (which also drops linearity), ridge regression, or simply any degenerate estimator. The theorem was named after Carl Friedrich Gauss and Andrey Markov, although Gauss' work significantly predates Markov's. But while Gauss derived the result under the assumption of independence and normality, Markov reduced the assumptions to the form stated above. A further generalization to non-spherical errors was given by Alexander Aitken.


Scalar case statement

Suppose we are given two random variable vectors, X \text Y \in \mathbb^k and that we want to find the best linear estimator of Y given X, using the best linear estimator \hat Y = \alpha X + \mu Where the parameters \alpha and \mu are both real numbers. Such an estimator \hat Y would have the same mean and standard deviation as Y, that is, \mu _ = \mu _ , \sigma _ = \sigma _. Therefore, if the vector X has respective mean and standard deviation \mu _x , \sigma _x , the best linear estimator would be \hat Y = \sigma _y \frac + \mu _y since \hat Y has the same mean and standard deviation as Y.


Statement

Suppose we have, in matrix notation, the linear relationship : y = X \beta + \varepsilon,\quad (y,\varepsilon \in \mathbb^n, \beta \in \mathbb^K \text X\in\mathbb^) expanding to, : y_i=\sum_^\beta_j X_+\varepsilon_i \quad \forall i=1,2,\ldots,n where \beta_j are non-random but unobservable parameters, X_ are non-random and observable (called the "explanatory variables"), \varepsilon_i are random, and so y_i are random. The random variables \varepsilon_i are called the "disturbance", "noise" or simply "error" (will be contrasted with "residual" later in the article; see errors and residuals in statistics). Note that to include a constant in the model above, one can choose to introduce the constant as a variable \beta_ with a newly introduced last column of X being unity i.e., X_ = 1 for all i . Note that though y_i, as sample responses, are observable, the following statements and arguments including assumptions, proofs and the others assume under the only condition of knowing X_, but not y_i. The Gauss–Markov assumptions concern the set of error random variables, \varepsilon_i: *They have mean zero: \operatorname varepsilon_i0. *They are homoscedastic, that is all have the same finite variance: \operatorname(\varepsilon_i)= \sigma^2 < \infty for all i and *Distinct error terms are uncorrelated: \text(\varepsilon_i,\varepsilon_j) = 0, \forall i \neq j. A linear estimator of \beta_j is a linear combination :\widehat\beta_j = c_y_1+\cdots+c_y_n in which the coefficients c_ are not allowed to depend on the underlying coefficients \beta_j, since those are not observable, but are allowed to depend on the values X_ , since these data are observable. (The dependence of the coefficients on each X_ is typically nonlinear; the estimator is linear in each y_i and hence in each random \varepsilon, which is why this is "linear" regression.) The estimator is said to be unbiased
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
:\operatorname\left widehat\beta_j \right \beta_j regardless of the values of X_ . Now, let \sum_^K\lambda_j\beta_j be some linear combination of the coefficients. Then the
mean squared error In statistics, the mean squared error (MSE) or mean squared deviation (MSD) of an estimator (of a procedure for estimating an unobserved quantity) measures the average of the squares of the errors—that is, the average squared difference betwee ...
of the corresponding estimation is :\operatorname \left left (\sum_^K\lambda_j \left(\widehat\beta_j-\beta_j \right ) \right)^2\right in other words, it is the expectation of the square of the weighted sum (across parameters) of the differences between the estimators and the corresponding parameters to be estimated. (Since we are considering the case in which all the parameter estimates are unbiased, this mean squared error is the same as the variance of the linear combination.) The best linear unbiased estimator (BLUE) of the vector \beta of parameters \beta_j is one with the smallest mean squared error for every vector \lambda of linear combination parameters. This is equivalent to the condition that :\operatorname\left(\widetilde\beta\right)- \operatorname \left( \widehat \beta \right) is a positive semi-definite matrix for every other linear unbiased estimator \widetilde\beta. The ordinary least squares estimator (OLS) is the function :\widehat\beta=(X^\operatornameX)^X^\operatornamey of y and X (where X^\operatorname denotes the transpose of X ) that minimizes the sum of squares of residuals (misprediction amounts): :\sum_^n \left(y_i-\widehat_i\right)^2=\sum_^n \left(y_i-\sum_^K \widehat\beta_j X_\right)^2. The theorem now states that the OLS estimator is a best linear unbiased estimator (BLUE). The main idea of the proof is that the least-squares estimator is uncorrelated with every linear unbiased estimator of zero, i.e., with every linear combination a_1y_1+\cdots+a_ny_n whose coefficients do not depend upon the unobservable \beta but whose expected value is always zero.


Remark

Proof that the OLS indeed ''minimizes'' the sum of squares of residuals may proceed as follows with a calculation of the Hessian matrix and showing that it is positive definite. The MSE function we want to minimize is f(\beta_0,\beta_1,\dots,\beta_p) = \sum_^n (y_i-\beta_0-\beta_1x_-\dots-\beta_px_)^2 for a multiple regression model with ''p'' variables. The first derivative is \begin \fracf &= -2X^\operatorname \left(\mathbf-X\boldsymbol\right)\\ &=-2\begin \sum_^ (y_i - \dots - \beta_px_)\\ \sum_^nx_ (y_i-\dots-\beta_px_)\\ \vdots\\ \sum_^nx_ (y_i-\dots-\beta_px_) \end\\ &= \mathbf_, \end where X^\operatorname is the design matrix X=\begin 1 & x_ & \cdots & x_\\ 1 & x_ & \cdots & x_\\ &&\vdots\\ 1 & x_ & \cdots & x_ \end\in \R^; \qquad n\geq p+1 The Hessian matrix of second derivatives is \mathcal = 2\begin n & \sum_^n x_ & \cdots & \sum_^n x_ \\ \sum_^n x_& \sum_^n x_^2 & \cdots & \sum_^nx_x_\\ \vdots & \vdots &\ddots & \vdots \\ \sum_^n x_ & \sum_^n x_x_& \cdots & \sum_^n x_^2 \end = 2X^\operatornameX Assuming the columns of X are linearly independent so that X^\operatorname X is invertible, let X=\begin\mathbf& \mathbf& \cdots & \mathbf_\end, then k_1\mathbf + \dots + k_ \mathbf_ = \mathbf 0\iff k_1= \dots =k_=0 Now let \mathbf = (k_1,\dots,k_)^T \in \R^ be an eigenvector of \mathcal. \mathbf \ne \mathbf \implies \left(k_1\mathbf+\dots+k_\mathbf_\right)^2 > 0 In terms of vector multiplication, this means \begin k_1 & \cdots & k_ \end \begin\mathbf \\ \vdots \\ \mathbf_\end \begin\mathbf & \cdots & \mathbf_\end \begink_1 \\ \vdots\\ k_\end = \mathbf^\operatorname\mathcal\mathbf = \lambda \mathbf^\operatorname\mathbf>0 where \lambda is the eigenvalue corresponding to \mathbf. Moreover, \mathbf^\operatorname\mathbf = \sum_^k_i^2 > 0 \implies \lambda > 0 Finally, as eigenvector \mathbf was arbitrary, it means all eigenvalues of \mathcal are positive, therefore \mathcal is positive definite. Thus, \boldsymbol = \left(X^\operatornameX\right)^X^\operatornameY is indeed a global minimum. Or, just see that for all vectors \mathbf, \mathbf^\operatorname X^\operatorname X \mathbf = \, \mathbf\mathbf\, ^2 \ge 0 . So the Hessian is positive definite if full rank.


Proof

Let \tilde\beta = Cy be another linear estimator of \beta with C = (X^\operatornameX)^X^\operatorname + D where D is a K \times n non-zero matrix. As we're restricting to ''unbiased'' estimators, minimum mean squared error implies minimum variance. The goal is therefore to show that such an estimator has a variance no smaller than that of \widehat\beta, the OLS estimator. We calculate: : \begin \operatorname \left \tilde\beta \right&= \operatorname y\\ &= \operatorname \left left ((X^\operatornameX)^X^\operatorname + D \right )(X\beta + \varepsilon) \right \ &= \left ((X^\operatornameX)^X^\operatorname + D \right )X\beta + \left ((X^\operatornameX)^X^\operatorname + D \right ) \operatorname varepsilon\\ &= \left ((X^\operatornameX)^X^\operatorname + D \right )X\beta && \operatorname varepsilon=0 \\ &= (X^\operatornameX)^X^\operatornameX\beta + DX\beta \\ &= (I_K + DX)\beta. \\ \end Therefore, since \beta is unobservable, \tilde\beta is unbiased if and only if DX = 0 . Then: : \begin \operatorname\left(\tilde\beta\right) &= \operatorname(Cy) \\ &= C \text(y)C^\operatorname \\ &= \sigma^2 CC^\operatorname \\ &= \sigma^2 \left ((X^\operatornameX)^X^\operatorname + D \right ) \left (X(X^\operatornameX)^ + D^\operatorname \right ) \\ &= \sigma^2 \left ((X^\operatornameX)^X^\operatornameX(X^\operatornameX)^ + (X^\operatornameX)^X^\operatornameD^\operatorname + DX(X^\operatornameX)^ + DD^\operatorname \right) \\ &= \sigma^2(X^\operatornameX)^ + \sigma^2(X^\operatornameX)^ (DX)^\operatorname + \sigma^2 DX (X^\operatornameX)^ + \sigma^2DD^\operatorname \\ &= \sigma^2(X^\operatornameX)^+ \sigma^2DD^\operatorname && DX =0 \\ &= \operatorname\left(\widehat\beta\right) + \sigma^2DD^\operatorname && \sigma^2(X^\operatornameX)^ = \operatorname\left(\widehat\beta\right) \end Since DD^\operatorname is a positive semidefinite matrix, \operatorname\left( \tilde \beta \right) exceeds \operatorname\left(\widehat\beta\right) by a positive semidefinite matrix.


Remarks on the proof

As it has been stated before, the condition of \operatorname \left( \tilde \beta \right)- \operatorname \left(\widehat\beta\right) is a positive semidefinite matrix is equivalent to the property that the best linear unbiased estimator of \ell^\operatorname\beta is \ell^\operatorname\widehat\beta (best in the sense that it has minimum variance). To see this, let \ell^\operatorname\tilde\beta another linear unbiased estimator of \ell^\operatorname\beta . : \begin \operatorname\left(\ell^\operatorname\tilde\beta\right) &= \ell^\operatorname \operatorname \left(\tilde\beta\right) \ell \\ &=\sigma^2 \ell^\operatorname (X^\operatornameX)^\ell+\ell^\operatornameDD^\operatorname\ell \\ &= \operatorname\left(\ell^\operatorname\widehat\beta\right)+(D^\operatorname\ell)^\operatorname(D^\operatorname\ell) && \sigma^2 \ell^\operatorname (X^\operatornameX)^\ell = \operatorname\left(\ell^\operatorname\widehat\beta\right) \\ &= \operatorname\left(\ell^\operatorname\widehat\beta\right) +\, D^\operatorname\ell\, \\ & \geq \operatorname\left(\ell^\operatorname\widehat\beta\right) \end Moreover, equality holds if and only if D^\operatorname\ell=0 . We calculate : \begin \ell^\operatorname\tilde\beta &= \ell^\operatorname \left (((X^\operatornameX)^X^\operatorname + D) Y \right ) && \text\\ &= \ell^\operatorname(X^\operatornameX)^X^\operatornameY + \ell^\operatornameDY \\ &= \ell^\operatorname\widehat\beta +(D^\operatorname\ell)^\operatorname Y \\ &=\ell^\operatorname\widehat\beta && D^\operatorname\ell = 0 \end This proves that the equality holds if and only if \ell^\operatorname\tilde\beta=\ell^\operatorname\widehat\beta which gives the uniqueness of the OLS estimator as a BLUE.


Generalized least squares estimator

The generalized least squares (GLS), developed by Aitken, extends the Gauss–Markov theorem to the case where the error vector has a non-scalar covariance matrix. The Aitken estimator is also a BLUE.


Gauss–Markov theorem as stated in econometrics

In most treatments of OLS, the regressors (parameters of interest) in the design matrix \mathbf are assumed to be fixed in repeated samples. This assumption is considered inappropriate for a predominantly nonexperimental science like
econometrics Econometrics is an application of statistical methods to economic data in order to give empirical content to economic relationships. M. Hashem Pesaran (1987). "Econometrics", '' The New Palgrave: A Dictionary of Economics'', v. 2, p. 8 p. 8 ...
. Instead, the assumptions of the Gauss–Markov theorem are stated conditional on \mathbf.


Linearity

The dependent variable is assumed to be a linear function of the variables specified in the model. The specification must be linear in its parameters. This does not mean that there must be a linear relationship between the independent and dependent variables. The independent variables can take non-linear forms as long as the parameters are linear. The equation y = \beta_ + \beta_ x^2, qualifies as linear while y = \beta_ + \beta_^2 x can be transformed to be linear by replacing \beta_^2 by another parameter, say \gamma. An equation with a parameter dependent on an independent variable does not qualify as linear, for example y = \beta_ + \beta_(x) \cdot x, where \beta_(x) is a function of x. Data transformations are often used to convert an equation into a linear form. For example, the Cobb–Douglas function—often used in economics—is nonlinear: :Y = A L^\alpha K^ e^\varepsilon But it can be expressed in linear form by taking the
natural logarithm The natural logarithm of a number is its logarithm to the base of a logarithm, base of the e (mathematical constant), mathematical constant , which is an Irrational number, irrational and Transcendental number, transcendental number approxima ...
of both sides: : \ln Y=\ln A + \alpha \ln L + (1 - \alpha) \ln K + \varepsilon = \beta_0 + \beta_1 \ln L + \beta_2 \ln K + \varepsilon This assumption also covers specification issues: assuming that the proper functional form has been selected and there are no omitted variables. One should be aware, however, that the parameters that minimize the residuals of the transformed equation do not necessarily minimize the residuals of the original equation.


Strict exogeneity

For all n observations, the expectation—conditional on the regressors—of the error term is zero: :\operatorname ,\varepsilon_\mid \mathbf = \operatorname ,\varepsilon_\mid \mathbf_, \dots, \mathbf_ = 0. where \mathbf_i = \begin x_ & x_ & \cdots & x_ \end^ is the data vector of regressors for the ''i''th observation, and consequently \mathbf = \begin \mathbf_^ & \mathbf_^ & \cdots & \mathbf_^ \end^ is the data matrix or design matrix. Geometrically, this assumption implies that \mathbf_ and \varepsilon_ are
orthogonal In mathematics, orthogonality (mathematics), orthogonality is the generalization of the geometric notion of ''perpendicularity''. Although many authors use the two terms ''perpendicular'' and ''orthogonal'' interchangeably, the term ''perpendic ...
to each other, so that their inner product (i.e., their cross moment) is zero. :\operatorname ,\mathbf_ \cdot \varepsilon_\,= \begin \operatorname ,_ \cdot \varepsilon_\,\\ \operatorname ,_ \cdot \varepsilon_\,\\ \vdots \\ \operatorname ,_ \cdot \varepsilon_\,\end = \mathbf \quad \text i, j \in n This assumption is violated if the explanatory variables are measured with error, or are endogenous. Endogeneity can be the result of simultaneity, where causality flows back and forth between both the dependent and independent variable. Instrumental variable techniques are commonly used to address this problem.


Full rank

The sample data matrix \mathbf must have full column rank. :\operatorname(\mathbf) = k Otherwise \mathbf^\operatorname \mathbf is not invertible and the OLS estimator cannot be computed. A violation of this assumption is perfect multicollinearity, i.e. some explanatory variables are linearly dependent. One scenario in which this will occur is called "dummy variable trap," when a base dummy variable is not omitted resulting in perfect correlation between the dummy variables and the constant term. Multicollinearity (as long as it is not "perfect") can be present resulting in a less efficient, but still unbiased estimate. The estimates will be less precise and highly sensitive to particular sets of data. Multicollinearity can be detected from condition number or the variance inflation factor, among other tests.


Spherical errors

The outer product of the error vector must be spherical. :\operatorname ,\boldsymbol \boldsymbol^ \mid \mathbf = \operatorname ,\boldsymbol \mid \mathbf = \begin \sigma^ & 0 & \cdots & 0 \\ 0 & \sigma^ & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & \sigma^ \end = \sigma^ \mathbf \quad \text \sigma^ > 0 This implies the error term has uniform variance (
homoscedasticity In statistics, a sequence of random variables is homoscedastic () if all its random variables have the same finite variance; this is also known as homogeneity of variance. The complementary notion is called heteroscedasticity, also known as hete ...
) and no serial correlation. If this assumption is violated, OLS is still unbiased, but inefficient. The term "spherical errors" will describe the multivariate normal distribution: if \operatorname ,\boldsymbol\mid \mathbf = \sigma^ \mathbf in the multivariate normal density, then the equation f(\varepsilon)=c is the formula for a ball centered at μ with radius σ in n-dimensional space. Heteroskedasticity occurs when the amount of error is correlated with an independent variable. For example, in a regression on food expenditure and income, the error is correlated with income. Low income people generally spend a similar amount on food, while high income people may spend a very large amount or as little as low income people spend. Heteroskedastic can also be caused by changes in measurement practices. For example, as statistical offices improve their data, measurement error decreases, so the error term declines over time. This assumption is violated when there is autocorrelation. Autocorrelation can be visualized on a data plot when a given observation is more likely to lie above a fitted line if adjacent observations also lie above the fitted regression line. Autocorrelation is common in time series data where a data series may experience "inertia." If a dependent variable takes a while to fully absorb a shock. Spatial autocorrelation can also occur geographic areas are likely to have similar errors. Autocorrelation may be the result of misspecification such as choosing the wrong functional form. In these cases, correcting the specification is one possible way to deal with autocorrelation. When the spherical errors assumption may be violated, the generalized least squares estimator can be shown to be BLUE.


See also

* Independent and identically distributed random variables *
Linear regression In statistics, linear regression is a statistical model, model that estimates the relationship between a Scalar (mathematics), scalar response (dependent variable) and one or more explanatory variables (regressor or independent variable). A mode ...
* Measurement uncertainty


Other unbiased statistics

* Best linear unbiased prediction (BLUP) * Minimum-variance unbiased estimator (MVUE)


References


Further reading

* * *


External links


Earliest Known Uses of Some of the Words of Mathematics: G
(brief history and explanation of the name)

(makes use of matrix algebra)

{{DEFAULTSORT:Gauss-Markov theorem Theorems in statistics