Search for probability and statistics terms on Statlect
StatLect

Properties of the OLS estimator

by , PhD

In this lecture we discuss under which assumptions the OLS (Ordinary Least Squares) estimator has desirable statistical properties such as consistency and asymptotic normality.

Infographic providing an overview of the assumptions needed to prove the consistency and asymptotic normality of the OLS estimator.

Table of Contents

The regression model

Consider the linear regression model[eq1]where:

Matrix notation

We assume to observe a sample of $N$ realizations, so that the vector of all outputs

[eq2]is an $N	imes 1$ vector, the design matrix[eq3]is an $N	imes K$ matrix, and the vector of error terms[eq4]is an $N	imes 1$ vector.

The estimator

The OLS estimator $widehat{eta }$ is the vector of regression coefficients that minimizes the sum of squared residuals:[eq5]

As proved in the lecture on Linear regression, if the design matrix X has full rank, then the OLS estimator is computed as follows:[eq6]

Writing the estimator in terms of sample means

The OLS estimator can be written as [eq7]where [eq8]is the sample mean of the $K	imes K$ matrix $x_{i}^{	op }x_{i}$ and [eq9]is the sample mean of the Kx1 matrix $x_{i}^{	op }y_{i}$.

Consistency of the OLS estimator

In this section we are going to propose a set of conditions that are sufficient for the consistency of the OLS estimator, that is, for the convergence in probability of $widehat{eta }$ to the true value $eta $.

Assumption 1 - Convergence of sample means to population means

The first assumption we make is that the sample means in the OLS formula converge to their population counterparts, which is formalized as follows.

Assumption 1 (convergence): both the sequence [eq10] and the sequence [eq11] satisfy sets of conditions that are sufficient for the convergence in probability of their sample means to the population means [eq12] and [eq13], which do not depend on i.

For example, the sequences [eq14] and [eq15] could be assumed to satisfy the conditions of Chebyshev's Weak Law of Large Numbers for correlated sequences, which are quite mild (basically, it is only required that the sequences are covariance stationary and that their auto-covariances are zero on average).

Assumption 2 - Full rank

The second assumption we make is a rank assumption (sometimes also called identification assumption).

Assumption 2 (rank): the square matrix [eq16] has full rank (as a consequence, it is invertible).

Assumption 3 - Orthogonality

The third assumption we make is that the regressors $x_{i}$ are orthogonal to the error terms $arepsilon _{i}$.

Assumption 3 (orthogonality): For each i, $x_{i}$ and $arepsilon _{i}$ are orthogonal, that is,[eq17]

Proof of consistency

It is then straightforward to prove the following proposition.

Proposition If Assumptions 1, 2 and 3 are satisfied, then the OLS estimator $widehat{eta }$ is a consistent estimator of $eta $.

Proof

Let us make explicit the dependence of the estimator on the sample size and denote by [eq18] the OLS estimator obtained when the sample size is equal to $N.$ By Assumption 1 and by the Continuous Mapping theorem, we have that the probability limit of [eq19] is [eq20]Now, if we pre-multiply the regression equation[eq21]by $x_{i}^{	op }$ and we take expected values, we get[eq22]But by Assumption 3, it becomes[eq23]or[eq24]which implies that[eq25]

Asymptotic normality of the OLS estimator

We now introduce a new assumption, and we use it to prove the asymptotic normality of the OLS estimator.

Assumption 4 - CLT condition

The assumption is as follows.

Assumption 4 (Central Limit Theorem): the sequence [eq26] satisfies a set of conditions that are sufficient to guarantee that a Central Limit Theorem applies to its sample mean[eq27]

For a review of some of the conditions that can be imposed on a sequence to guarantee that a Central Limit Theorem applies to its sample mean, you can go to the lecture on the Central Limit Theorem.

In any case, remember that if a Central Limit Theorem applies to [eq26], then, as $N$ tends to infinity,[eq29] converges in distribution to a multivariate normal distribution with mean equal to 0 and covariance matrix equal to[eq30]

Proof of asymptotic normality

With Assumption 4 in place, we are now able to prove the asymptotic normality of the OLS estimator.

Proposition If Assumptions 1, 2, 3 and 4 are satisfied, then the OLS estimator $widehat{eta }$ is asymptotically multivariate normal with mean equal to $eta $ and asymptotic covariance matrix equal to[eq31]that is,[eq32]where V has been defined above.

Proof

As in the proof of consistency, the dependence of the estimator on the sample size is made explicit, so that the OLS estimator is denoted by [eq33]. First of all, we have [eq34]where, in the last step, we have used the fact that, by Assumption 3, [eq35]. Note that, by Assumption 1 and the Continuous Mapping theorem, we have[eq36]Furthermore, by Assumption 4, we have that[eq37]converges in distribution to a multivariate normal random vector having mean equal to 0 and covariance matrix equal to V. Thus, by Slutski's theorem, we have that[eq38]converges in distribution to a multivariate normal vector with mean equal to 0 and covariance matrix equal to [eq39]

Consistent estimation of the variance of the error terms

We now discuss the consistent estimation of the variance of the error terms.

Assumption 5 - Regularity of error terms

Here is an additional assumption.

Assumption 5: the sequence [eq40] satisfies a set of conditions that are sufficient for the convergence in probability of its sample mean[eq41]to the population mean [eq42]which does not depend on i.

Proof of consistency

If this assumption is satisfied, then the variance of the error terms sigma^2 can be estimated by the sample variance of the residuals[eq43]where [eq44]

Proposition Under Assumptions 1, 2, 3, and 5, it can be proved that [eq45] is a consistent estimator of sigma^2.

Proof

Let us make explicit the dependence of the estimators on the sample size and denote by [eq46] and [eq47] the estimators obtained when the sample size is equal to $N.$ By Assumption 1 and by the Continuous Mapping theorem, we have that the probability limit of [eq47] is [eq49]where: in steps $rame{A}$ and $rame{C}$ we have used the Continuous Mapping Theorem; in step $rame{B}$ we have used Assumption 5; in step $rame{D}$ we have used the fact that [eq50]because [eq51] is a consistent estimator of $eta $, as proved above.

Consistent estimation of the asymptotic covariance matrix

We have proved that the asymptotic covariance matrix of the OLS estimator is[eq52]where the long-run covariance matrix V is defined by[eq53]

Usually, the matrix [eq54] needs to be estimated because it depends on quantities (V and [eq16]) that are not known.

Proof of consistency

The next proposition characterizes consistent estimators of [eq56].

Proposition If Assumptions 1, 2, 3, 4 and 5 are satisfied, and a consistent estimator $widehat{V}$ of the long-run covariance matrix V is available, then the asymptotic variance of the OLS estimator is consistently estimated by[eq57]

Proof

This is proved as follows[eq58]where: in step $box{A}$ we have used the Continuous Mapping theorem; in step $box{B}$ we have used the hypothesis that $widehat{V}$ is a consistent estimator of the long-run covariance matrix V and the fact that, by Assumption 1, the sample mean of the matrix $x_{i}^{	op }x_{i}$ is a consistent estimator of [eq59], that is$QTR{rm}{,}$[eq60]

Thus, in order to derive a consistent estimator of the covariance matrix of the OLS estimator, we need to find a consistent estimator of the long-run covariance matrix V. How to do this is discussed in the next section.

Consistent estimation of the long-run covariance matrix

The estimation of V requires some assumptions on the covariances between the terms of the sequence [eq61].

Assumption 6 - No serial correlation

In order to find a simpler expression for V, we make the following assumption.

Assumption 6: the sequence [eq62] is serially uncorrelated, that is,[eq63]and weakly stationary, that is, [eq64]does not depend on i.

Remember that in Assumption 3 (orthogonality) we also ask that[eq65]

More explicit formulae for the long-run covariance

We now derive simpler expressions for V.

Proposition Under Assumptions 3 (orthogonality), the long-run covariance matrix V satisfies[eq66]

Proof

This is proved as follows:[eq67]

Proposition Under Assumptions 3 (orthogonality) and 6 (no serial correlation), the long-run covariance matrix V satisfies[eq68]

Proof

The proof is as follows:[eq69]

Proof of consistency under Assumption 6

Thanks to assumption 6, we can also derive an estimator of V.

Proposition Suppose that Assumptions 1, 2, 3, 4 and 6 are satisfied, and that [eq70] is consistently estimated by the sample mean[eq71]Then, the long-run covariance matrix V is consistently estimated by[eq72]

Proof

We have[eq73]where in the last step we have applied the Continuous Mapping theorem separately to each entry of the matrices in square brackets, together with the fact that [eq74]To see how this is done, consider, for example, the matrix[eq75]Then, the entry at the intersection of its k-th row and $l$-th column is[eq76]and[eq77]

Formula for the covariance matrix of the OLS estimator under Assumption 6

When the assumptions of the previous proposition hold, the asymptotic covariance matrix of the OLS estimator is[eq78]

As a consequence, the covariance of the OLS estimator can be approximated by[eq79]which is known as heteroskedasticity-robust estimator.

Assumption 7 - Conditional homoskedasticity

A further assumption is often made, which allows us to further simplify the expression for the long-run covariance matrix.

Assumption 7: the error terms are conditionally homoskedastic:[eq80]

Proof of consistency under Assumption 7

This assumption has the following implication.

Proposition Suppose that Assumptions 1, 2, 3, 4, 5, 6 and 7 are satisfied. Then, the long-run covariance matrix V is consistently estimated by[eq81]

Proof

First of all, we have that[eq82]But we know that, by Assumption 1, [eq83] is consistently estimated by[eq84]and by Assumptions 1, 2, 3 and 5, [eq85] is consistently estimated by[eq86]Therefore, by the Continuous Mapping theorem, the long-run covariance matrix V is consistently estimated by [eq87]

Formula for the covariance matrix of the OLS estimator under Assumptions 6 and 7

When the assumptions of the previous proposition hold, the asymptotic covariance matrix of the OLS estimator is[eq88]

As a consequence, the covariance of the OLS estimator can be approximated by[eq89]which is the same estimator derived in the normal linear regression model.

Weaker assumptions

The assumptions above can be made even weaker (for example, by relaxing the hypothesis that [eq90] is uncorrelated with [eq91]), at the cost of facing more difficulties in estimating the long-run covariance matrix.

For a review of the methods that can be used to estimate $widehat{V}$, see, for example, Den and Levin (1996).

Hypothesis testing

The lecture entitled Linear regression - Hypothesis testing discusses how to carry out hypothesis tests on the coefficients of a linear regression model in the cases discussed above, that is, when the OLS estimator is asymptotically normal and a consistent estimator of the asymptotic covariance matrix is available.

References

Haan, Wouter J. Den, and Andrew T. Levin (1996). "Inferences from parametric and non-parametric covariance matrix estimation procedures." Technical Working Paper Series, NBER.

How to cite

Please cite as:

Taboga, Marco (2021). "Properties of the OLS estimator", Lectures on probability theory and mathematical statistics. Kindle Direct Publishing. Online appendix. https://www.statlect.com/fundamentals-of-statistics/OLS-estimator-properties.

The books

Most of the learning materials found on this website are now available in a traditional textbook format.