ECONOMETRICS
Bruce E. Hansen
c _2000, 2010
1
University of Wisconsin
www.ssc.wisc.edu/~bhansen
This Revision: January 10, 2010
Comments Welcome
1
This manuscript may be printed and reproduced for individual or instructional use, but may not be
printed for commercial purposes.
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
1 Introduction 1
1.1 What is Econometrics? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 The Probability Approach to Econometrics . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Econometric Terms and Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Observational Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.5 Standard Data Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.6 Sources for Economic Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.7 Econometric Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.8 Reading the Manuscript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2 Regression and Projection 8
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3 Conditional Mean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4 Regression Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.5 Best Predictor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.6 Conditional Variance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.7 Homoskedasticity and Heteroskedasticity . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.8 Linear Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.9 Best Linear Predictor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.10 Regression Coe¢cients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.11 Best Linear Approximation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.12 Normal Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.13 Regression to the Mean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.14 Reverse Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.15 Limitations of the Best Linear Predictor . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.16 Identi…cation of the Conditional Mean . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3 The Algebra of Least Squares 28
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.2 Least Squares Estimator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.3 Solving for Least Squares . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.4 Least Squares Residuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.5 Model in Matrix Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.6 Projection Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.7 Residual Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3.8 Prediction Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.9 In‡uential Observations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3.10 Measures of Fit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
i
3.11 Normal Regression Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4 Least Squares Regression 46
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.2 Sampling Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4.3 Mean of LeastSquares Estimator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4.4 Variance of Least Squares Estimator . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4.5 GaussMarkov Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
4.6 Residuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4.7 Estimation of Error Variance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
4.8 Covariance Matrix Estimation Under Homoskedasticity . . . . . . . . . . . . . . . . 54
4.9 Covariance Matrix Estimation Under Heteroskedasticity . . . . . . . . . . . . . . . . 55
4.10 Standard Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
4.11 Multicollinearity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
4.12 Omitted Variable Bias . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
4.13 Normal Regression Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
5 Asymptotic Theory 65
5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
5.2 Weak Law of Large Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
5.3 Consistency of LeastSquares Estimation . . . . . . . . . . . . . . . . . . . . . . . . . 68
5.4 Asymptotic Normality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
5.5 Consistency of Sample Variance Estimators . . . . . . . . . . . . . . . . . . . . . . . 73
5.6 Consistent Covariance Matrix Estimation . . . . . . . . . . . . . . . . . . . . . . . . 74
5.7 Functions of Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
5.8 t statistic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
5.9 Con…dence Intervals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
5.10 Semiparametric E¢ciency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
5.11 Semiparametric E¢ciency in the Projection Model . . . . . . . . . . . . . . . . . . . 82
5.12 Semiparametric E¢ciency in the Homoskedastic Regression Model . . . . . . . . . . 85
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
6 Testing 89
6.1 t tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
6.2 tratios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
6.3 Wald Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
6.4 F Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
6.5 Normal Regression Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
6.6 Problems with Tests of NonLinear Hypotheses . . . . . . . . . . . . . . . . . . . . . 94
6.7 Monte Carlo Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
6.8 Estimating a Wage Equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
7 Additional Regression Topics 104
7.1 Generalized Least Squares . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
7.2 Testing for Heteroskedasticity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
7.3 Forecast Intervals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
7.4 NonLinear Least Squares . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
7.5 Least Absolute Deviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
7.6 Quantile Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
ii
7.7 Testing for Omitted NonLinearity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
7.8 Irrelevant Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
7.9 Model Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
8 The Bootstrap 121
8.1 De…nition of the Bootstrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
8.2 The Empirical Distribution Function . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
8.3 Nonparametric Bootstrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
8.4 Bootstrap Estimation of Bias and Variance . . . . . . . . . . . . . . . . . . . . . . . 123
8.5 Percentile Intervals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
8.6 Percentilet EqualTailed Interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
8.7 Symmetric Percentilet Intervals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
8.8 Asymptotic Expansions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
8.9 OneSided Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
8.10 Symmetric TwoSided Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
8.11 Percentile Con…dence Intervals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
8.12 Bootstrap Methods for Regression Models . . . . . . . . . . . . . . . . . . . . . . . . 132
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
9 Generalized Method of Moments 134
9.1 Overidenti…ed Linear Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
9.2 GMM Estimator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
9.3 Distribution of GMM Estimator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
9.4 Estimation of the E¢cient Weight Matrix . . . . . . . . . . . . . . . . . . . . . . . . 137
9.5 GMM: The General Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
9.6 OverIdenti…cation Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
9.7 Hypothesis Testing: The Distance Statistic . . . . . . . . . . . . . . . . . . . . . . . 139
9.8 Conditional Moment Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
9.9 Bootstrap GMM Inference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
10 Empirical Likelihood 146
10.1 NonParametric Likelihood . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
10.2 Asymptotic Distribution of EL Estimator . . . . . . . . . . . . . . . . . . . . . . . . 148
10.3 Overidentifying Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
10.4 Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
10.5 Numerical Computation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
11 Endogeneity 153
11.1 Instrumental Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
11.2 Reduced Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
11.3 Identi…cation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
11.4 Estimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
11.5 Special Cases: IV and 2SLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
11.6 Bekker Asymptotics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
11.7 Identi…cation Failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
iii
12 Univariate Time Series 163
12.1 Stationarity and Ergodicity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
12.2 Autoregressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
12.3 Stationarity of AR(1) Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
12.4 Lag Operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
12.5 Stationarity of AR(k) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
12.6 Estimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
12.7 Asymptotic Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
12.8 Bootstrap for Autoregressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
12.9 Trend Stationarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
12.10Testing for Omitted Serial Correlation . . . . . . . . . . . . . . . . . . . . . . . . . . 170
12.11Model Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
12.12Autoregressive Unit Roots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
13 Multivariate Time Series 173
13.1 Vector Autoregressions (VARs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
13.2 Estimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
13.3 Restricted VARs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
13.4 Single Equation from a VAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
13.5 Testing for Omitted Serial Correlation . . . . . . . . . . . . . . . . . . . . . . . . . . 175
13.6 Selection of Lag Length in an VAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
13.7 Granger Causality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
13.8 Cointegration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
13.9 Cointegrated VARs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
14 Limited Dependent Variables 179
14.1 Binary Choice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
14.2 Count Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
14.3 Censored Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
14.4 Sample Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
15 Panel Data 184
15.1 IndividualE¤ects Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
15.2 Fixed E¤ects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
15.3 Dynamic Panel Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
16 Nonparametrics 187
16.1 Kernel Density Estimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
16.2 Asymptotic MSE for Kernel Estimates . . . . . . . . . . . . . . . . . . . . . . . . . . 189
A Matrix Algebra 192
A.1 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
A.2 Matrix Addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
A.3 Matrix Multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
A.4 Trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
A.5 Rank and Inverse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
A.6 Determinant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
A.7 Eigenvalues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
A.8 Positive De…niteness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
A.9 Matrix Calculus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
A.10 Kronecker Products and the Vec Operator . . . . . . . . . . . . . . . . . . . . . . . . 198
A.11 Vector and Matrix Norms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
iv
B Probability 201
B.1 Foundations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
B.2 Random Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
B.3 Expectation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
B.4 Gamma Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
B.5 Common Distributions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
B.6 Multivariate Random Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
B.7 Conditional Distributions and Expectation . . . . . . . . . . . . . . . . . . . . . . . . 209
B.8 Transformations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
B.9 Normal and Related Distributions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
C Asymptotic Theory 215
C.1 Inequalities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
C.2 Convergence in Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
C.3 Asymptotic Transformations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
D Maximum Likelihood 219
E Numerical Optimization 223
E.1 Grid Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
E.2 Gradient Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
E.3 DerivativeFree Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
v
Preface
This book is intended to serve as the textbook for a …rstyear graduate course in econometrics.
It can be used as a standalone text, or be used as a supplement to another text.
Students are assumed to have an understanding of multivariate calculus, probability theory,
linear algebra, and mathematical statistics. A prior course in undergraduate econometrics would
be helpful, but not required.
For reference, some of the basic tools of matrix algebra, probability, and statistics are reviewed
in the Appendix.
For students wishing to deepen their knowledge of matrix algebra in relation to their study of
econometrics, I recommend Matrix Algebra by Abadir and Magnus (2005).
An excellent introduction to probability and statistics is Statistical Inference by Casella and
Berger (2002). For those wanting a deeper foundation in probability, I recommend Ash (1972)
or Billingsley (1995). For more advanced statistical theory, I recommend Lehmann and Casella
(1998), van der Vaart (1998), Shao (2003), and Lehmann and Romano (2005).
For further study in econometrics beyond this text, I recommend Davidson (1994) for asymp
totic theory, Hamilton (1994) for timeseries methods, Wooldridge (2002) for panel data and discrete
response models, and Li and Racine (2007) for nonparametrics and semiparametric econometrics.
Beyond these texts, the Handbook of Econometrics series provides advanced summaries of contem
porary econometric methods and theory.
As this is a manuscript in progress, some parts are quite incomplete, in particular the later
sections of the manuscript. Hopefully one day these sections will be ‡eshed out and completed in
more detail.
vi
Chapter 1
Introduction
1.1 What is Econometrics?
The term “econometrics” is believed to have been crafted by Ragnar Frisch (18951973) of
Norway, one of the three principle founders of the Econometric Society, …rst editor of the journal
Econometrica, and cowinner of the …rst Nobel Memorial Prize in Economic Sciences in 1969. It
is therefore …tting that we turn to Frisch’s own words in the introduction to the …rst issue of
Econometrica for an explanation of the discipline.
A word of explanation regarding the term econometrics may be in order. Its de…ni
tion is implied in the statement of the scope of the [Econometric] Society, in Section I
of the Constitution, which reads: “The Econometric Society is an international society
for the advancement of economic theory in its relation to statistics and mathematics....
Its main object shall be to promote studies that aim at a uni…cation of the theoretical
quantitative and the empiricalquantitative approach to economic problems....”
But there are several aspects of the quantitative approach to economics, and no single
one of these aspects, taken by itself, should be confounded with econometrics. Thus,
econometrics is by no means the same as economic statistics. Nor is it identical with
what we call general economic theory, although a considerable portion of this theory has
a de…ninitely quantitative character. Nor should econometrics be taken as synonomous
with the application of mathematics to economics. Experience has shown that each
of these three viewpoints, that of statistics, economic theory, and mathematics, is
a necessary, but not by itself a su¢cient, condition for a real understanding of the
quantitative relations in modern economic life. It is the uni…cation of all three that is
powerful. And it is this uni…cation that constitutes econometrics.
Ragnar Frisch, Econometrica, (1933), 1, pp. 12.
This de…nition remains valid today, although some terms have evolved somewhat in their usage.
Today, we would say that econometrics is the uni…ed study of economic models, mathematical
statistics, and economic data.
Within the …eld of econometrics there are subdivisions and specializations. Econometric theory
concerns the development of tools and methods, and the study of the properties of econometric
methods. Applied econometrics is a term describing the development of quantitative economic
models and the application of econometric methods to these models using economic data.
1.2 The Probability Approach to Econometrics
The unifying methodology of modern econometrics was articulated by Trygve Haavelmo (1911
1999) of Norway, winner of the 1989 Nobel Memorial Prize in Economic Sciences, in his seminal
1
paper “The probability approach in econometrics”, Econometrica (1944). Haavelmo argued that
quantitative economic models must necessarily be probability models (by which today we would
mean stochastic). Deterministic models are blatently inconsistent with observed economic quan
tities, and it is incohorent to apply deterministic models to nondeterministic data. Economic
models should be explicitly designed to incorporate randomness; stochastic errors should not be
simply added to deterministic models to make them random. Once we acknowledge that an eco
nomic model is a probability model, it follows naturally that the best way to quantify, estimate,
and conduct inferences about the economy is through the powerful theory of mathematical statis
tics. The appropriate method for a quantitative economic analysis follows from the probabilistic
construction of the economic model.
Haavelmo’s probability approach was quickly embraced by the economics profession. Today no
quantitative work in economics shuns its fundamental vision.
While all economists embrace the probability approach, there has been some evolution in its
implementation.
The structural approach is the closest to Haavelmo’s original idea. A probabilistic economic
model is speci…ed, and the quantitative analysis performed under the assumption that the economic
model is correctly speci…ed. Researchers often describe this as “taking their model seriously.” The
structural approach typically leads to likelihoodbased analysis, including maximum likelihood and
Bayesian estimation.
A criticism of the structural approach is that it is misleading to treat an economic model
as correctly speci…ed. Rather, it is more accurate to view a model as a useful abstraction or
approximation. In this case, how should we interpret structural econometric analysis? The quasi
structural approach to inference views a structural economic model as an approximation rather
than the truth. This theory has led to the concepts of the pseudotrue value (the parameter value
de…ned by the estimation problem), the quasilikelihood function, quasiMLE, and quasilikelihood
inference.
Closely related is the semiparametric approach. A probabilistic economic model is partially
speci…ed but some features are left unspeci…ed. This approach typically leads to estimation methods
such as leastsquares and the Generalized Method of Moments. The semiparametric approach
dominates contemporary econometrics, and is the main focus of this textbook.
Another branch of quantitative structural economics is the calibration approach. Similar
to the quasistructural approach, the calibration approach interprets structural models as approx
imations and hence inherently false. The di¤erence is that the calibrationist literature rejects
mathematical statistics as inappropriate for approximate models, and instead selects parameters
by matching model and data moments using nonstatistical ad hoc
1
methods.
1.3 Econometric Terms and Notation
In a typical application, an econometrician has a set of repeated measurements on a set of vari
ables. For example, in an labor application the variables could include weekly earnings, educational
attainment, age, and other descriptive characteristics. We call this information the data, dataset,
or sample.
We use the term observations to refer to the distinct repeated measurements on the variables.
An individual observation often corresponds to a speci…c economic unit, such as a person, household,
corporation, …rm, organization, country, state, city or other geographical region. An individual
observation could also be a measurement at a point in time, such as quarterly GDP or a daily
interest rate.
Economists typically denote variables by the italized roman characters j, r, and/or .. The
convention in econometrics is to use the character j to denote the variable to be explained, while
1
Ad hoc means “for this purpose” – a method designed for a speci…c problem – and not based on a generalizable
principle.
2
the characters r and . are used to denote the conditioning (explaining) variables.
Following mathematical convention, real numbers (elements of the real line R) are written using
lower case italics such as j, and vectors (elements of R
I
) by lower case bold italics such as i, e.g.
i =
_
_
_
_
_
r
1
r
2
.
.
.
r
I
_
_
_
_
_
.
Upper case bold italics such as A will be used for matrices.
We typically denote the number of observations by the natural number :, and subscript the
variables by the index i to denote the individual observation, e.g. j
i
, i
i
and z
i
. In some contexts
we use indices other than i, such as in timeseries applications where the index t is common, and
in panel studies we typically use the double index it to refer to individual i at a time period t.
The i’th observation is the set (j
i
, i
i
, z
i
).
It is proper mathematical practice to use upper case A for random variables and lower case r
for realizations or speci…c values. This practice is not commonly followed in econometrics because
instead we use upper case to denote matrices. Thus the notation j
i
will in some places refer to a
random variable, and in other places a speci…c realization. Hopefully there will be no confusion as
the use should be evident from the context.
As we mentioned before, ideally each observation consists of a set of measurements on the
list of variables. In practice it is common to …nd that some variables are not measured for some
observations, and in these cases we describe these variables or observations as unobserved or
missing.
We typically use Greek letters such as ,, 0 and o
2
to denote unknown parameters of an econo
metric model, and will use boldface, e.g. d or 0, when these are vectorvalued. Estimates are
typically denoted by putting a hat “^”, tilde “~” or bar “” over the corresponding letter, e.g.
^
,
and
~
, are estimates of ,.
The covariance matrix of an econometric estimator will typically be written using the capital
boldface X , often with a subscript to denote the estimator, e.g. X
^
o
= var
_
_
:
_
`
d ÷d
__
as the
covariance matrix for
_
:
_
`
d ÷d
_
. Hopefully without causing confusion, we will use the notation
X
f
to denote the asymptotic covariance matrix of
_
:
_
`
d ÷d
_
(the variance of the asymptotic
distribution). Estimates will be denoted by appending hats or tildes, e.g.
´
X
f
is an estimate of X
f
.
1.4 Observational Data
A common econometric question is to quantify the impact of one set of variables on another
variable. For example, a concern in labor economics is the returns to schooling – the change in
earnings induced by increasing a worker’s education, holding other variables constant. Another
issue of interest is the earnings gap between men and women.
Ideally, we would use experimental data to answer these questions. To measure the returns to
schooling, an experiment might randomly divide children into groups, mandate di¤erent levels of
education to the di¤erent groups, and then follow the children’s wage path after they mature and
enter the labor force. The di¤erences between the groups would be direct measurements of the ef
fects of di¤erent levels of education. However, experiments such as this would be widely condemned
as immoral! Consequently, we see few nonlaboratory experimental data sets in economics.
3
Instead, most economic data is observational. To continue the above example, through data
collection we can record the level of a person’s education and their wage. With such data we
can measure the joint distribution of these variables, and assess the joint dependence. But from
observational data it is di¢cult to infer causality, as we are not able to manipulate one variable to
see the direct e¤ect on the other. For example, a person’s level of education is (at least partially)
determined by that person’s choices as well as their educational level. These factors are likely to
be a¤ected by their personal abilities and attitudes towards work. The fact that a person is highly
educated suggests a high level of ability, which suggests a high relative wage. This is an alternative
explanation for an observed positive correlation between educational levels and wages. High ability
individuals do better in school, and therefore choose to attain higher levels of education, and their
high ability is the fundamental reason for their high wages. The point is that multiple explanations
are consistent with a positive correlation between schooling levels and education. Knowledge of the
joint distibution alone may not be able to distinguish between these explanations.
Most economic data sets are observational, not experimental. This means that
all variables must be treated as random and possibly jointly determined.
This discussion means that it is di¢cult to infer causality from observational data alone. Causal
inference requires identi…cation, and this is based on strong assumptions. We will return to a
discussion of some of these issues in Chapter 11.
1.5 Standard Data Structures
There are three major types of economic data sets: crosssectional, timeseries, and panel. They
are distinguished by the dependence structure across observations.
Crosssectional data sets have one observation per individual. Surveys are a typical source
for crosssectional data. In typical applications, the individuals surveyed are persons, households,
…rms or other economic agents. In many contemporary econometric crosssection studies the sample
size : is quite large. It is conventional to assume that crosssectional observations are mutually
independent. Most of this text is devoted to the study of crosssection data.
Timeseries data are indexed by time. Typical examples include macroeconomic aggregates,
prices and interest rates. This type of data is characterized by serial dependence so the random
sampling assumption is inappropriate. Most aggregate economic data is only available at a low
frequency (annual, quarterly or perhaps monthly) so the sample size can be much smaller than in
typical crosssection studies. The exception is …nancial data where data are available at a high
frequency (weekly, data, hourly, or tickbytick) so sample sizes can be quite large.
Panel data combines elements of crosssection and timeseries. These data sets consist of a set
of individuals (typically persons, households, or corporations) surveyed repeatedly over time. The
common modeling assumption is that the individuals are mutually independent of one another,
but a given individual’s observations are mutually dependent. This is a modi…ed random sampling
environment.
Data Structures
« Crosssection
« Timeseries
« Panel
4
Some contemporary econometric applications combine elements of crosssection, timeseries,
and panel data modeling. These include models of spatial correlation and clustering.
As we mentioned above, most of this text will be devoted to crosssectional data under the
assumption of mutually independent observations. By mutual independence we mean that the i’th
observation (j
i
, i
i
, z
i
) is independent of the ,’th observation (j
)
, i
)
, z
)
) for i ,= ,. (Sometimes the
label “independent” is misconstrued. It is a statement about the relationship between observations
i and ,, not a statement about the relationship between j
i
and i
i
and/or z
i
.)
Furthermore, if the data is randomly gathered, it is reasonable to model each observation as
a random draw from the same probability distribution. In this case we say that the data are
independent and identically distributed or iid. We call this a random sample. For most of
this text we will assume that our observations come from a random sample.
De…nition 1.5.1 The observations (j
i
, i
i
, z
i
) are a random sample if they are
mutually independent and identically distributed (iid) across i = 1, ..., :.
In the random sampling framework, we think of an individual observation (j
i
, i
i
, z
i
) as a re
alization from a joint probability distribution 1 (j, i, z) which can call the population. This
“population” is in…nitely large. This abstraction can be a source of confusion as it does not cor
respond to a physical population in the real world. The distribution 1 is unknown, and the goal
of statistical inference is to learn about features of 1 from the sample. The assumption of random
sampling provides the mathematical foundation for treating economic statistics with the tools of
mathematical statistics.
The random sampling framework was a major intellectural breakthrough of the late 19th cen
tury, allowing the application of mathematical statistics to the social sciences. Before this concep
tual development, methods from mathematical statistics had not been applied to economic data as
they were viewed as inappropraite. The random sampling framework enabled economic samples to
be viewed as homogenous and random, a necessary precondition for the application of statistical
methods.
1.6 Sources for Economic Data
Fortunately for economists, the the internet provides a convenient forum for dissemination of
economic data. Many largescale economic datasets are available without charge from governmental
agencies. An excellent starting point is the Resources for Economists Data Links, available at
rfe.org. From this site you can …nd almost every publically available economic data set. Some
speci…c data sources of interest include
« Bureau of Labor Statistics
« US Census
« Current Population Survey
« Survey of Income and Program Participation
« Panel Study of Income Dynamics
« Federal Reserve System (Board of Governors and regional banks)
« National Bureau of Economic Research
5
« U.S. Bureau of Economic Analysis
« CompuStat
« International Financial Statistics
Another good source of data is from authors of published empirical studies. Most journals
in economics require authors of published papers to make their datasets generally available. For
example, in its instructions for submission, Econometrica states:
Econometrica has the policy that all empirical, experimental and simulation results must
be replicable. Therefore, authors of accepted papers must submit data sets, programs,
and information on empirical analysis, experiments and simulations that are needed for
replication and some limited sensitivity analysis.
The American Economic Review states:
All data used in analysis must be made available to any researcher for purposes of
replication.
The Journal of Political Economy states:
It is the policy of the Journal of Political Economy to publish papers only if the data
used in the analysis are clearly and precisely documented and are readily available to
any researcher for purposes of replication.
If you are interested in using the data from a published paper, …rst check the journal’s website,
as many journals archive data and replication programs online. Second, check the website(s) of
the paper’s author(s). Most academic economists maintain webpages, and some make available
replication …les complete with data and programs. If these investigations fail, email the author(s),
politely requesting the data. You may need to be persistent.
As a matter of professional etiquette, all authors absolutely have the obligation to make their
data and programs available. Unfortunately, many fail to do so, and typically for poor reasons.
The irony of the situation is that it is typically in the best interests of a scholar to make as much of
their work (including all data and programs) freely available, as this only increases the likelihood
of their work being cited and having an impact.
Keep this in mind as you start your own empirical project. Remember that as part of your end
product, you will need (and want) to provide all data and programs to the community of scholars.
The greatest form of ‡attery is to learn that another scholar has read your paper, wants to extend
your work, or wants to use your empirical methods. In addition, public openness provides a healthy
incentive for transparency and integrity in empirical analysis.
1.7 Econometric Software
Economists use a variety of econometric, statistical, and programming software.
STATA (www.stata.com) is a powerful statistical program with a broad set of preprogrammed
econometric and statistical tools. It is quite popular among economists, and is continuously being
updated with new methods. It is an excellent package for most econometric analysis, but is limited
when you want to use new or lesscommon econometric methods which have not yet been programed.
GAUSS (www.aptech.com), MATLAB (www.mathworks.com), and Ox (www.oxmetrics.net)
are highlevel matrix programming languages with a wide variety of builtin statistical functions.
Many econometric methods have been programed in these languages and are available on the web.
The advantage of these packages is that you are in complete control of your analysis, and it is
6
easier to program new methods than in STATA. Some disadvantages are that you have to do
much of the programming yourself, programming complicated procedures takes signi…cant time,
and programming errors are hard to prevent and di¢cult to detect and eliminate.
R (www.rproject.org) is an integrated suite of statistical and graphical software that is ‡exible,
open source, and best of all, free!
For highlyintensive computational tasks, some economists write their programs in a standard
programming language such as Fortran or C. This can lead to major gains in computational speed,
at the cost of increased time in programming and debugging.
As these di¤erent packages have distinct advantages, many empirical economists end up using
more than one package. As a student of econometrics, you will learn at least one of these packages,
and probably more than one.
1.8 Reading the Manuscript
Chapters 2 through 7 deal with the core linear regression and projection models. Chapter 8
introduces the bootstrap. Chapters 9 through 11 deal with the Generalized Method of Moments,
empirical likelihood and endogeneity. Chapters 12 and 13 cover time series, and Chapters 14, 15
and 16 cover limited dependent variables, panel data, and nonparametrics. Reviews of matrix
algebra, probability theory, asymptotic theory, maximum likelihood, and numerical optimization
can be found in the appendix.
7
Chapter 2
Regression and Projection
2.1 Introduction
The most commonly applied econometric tool is leastsquares estimation, also known as regres
sion. As we will see, leastsquares is a tool to estimate an approximate conditional mean of one
variable (the dependent variable) given another set of variables (the regressors, conditioning
variables, or covariates).
In this chapter we abstract from estimation, and focus on the probabilistic foundation of the
regression model and its projection approximation.
2.2 Notation
We let j denote the dependent variable and let (r
1
, r
2
, ..., r
I
) denote the / regressors. Through
out this section we maintain the assumption that the variables are stochastic.
Assumption 2.2.1 (j, r
1
, r
2
, ..., r
I
) is a random vector
with a joint probability distribution such that
1. Ej
2
< ·.
2. Er
2
)
< · for , = 1, ..., /.
The …nite second moment conditions imposed in Assumption 2.2.1.1 and 2.2.1.2 imply that the
variables have …nite means and variances.
It is convenient to write the set of regressors as a vector in R
I
:
i =
_
_
_
_
_
r
1
r
2
.
.
.
r
I
_
_
_
_
_
. (2.1)
For most of our analysis it is unimportant whether the regressors i come from continuous
or discrete distributions. As an example of a discrete variable, many regressors in econometric
applications are binary, taking on only the values 0 and 1, and are called dummy variables.
For some purposes, the same is true about the dependent variable – it could be continuous
or discrete. But when the dependent variable is discrete we typically use speci…c models and
techniques built for this purpose (see Chapter 14).
8
2.3 Conditional Mean
To study how the distribution of j varies with the variables i in the population, we start with
) (j [ i) , the conditional density of j given i.
Figure 2.1: Wage Densities for White College Grads with 1015 Years Work Experience
To illustrate, Figure 2.1 displays the density
1
of hourly wages for men and women, from the
population of white nonmilitary wage earners in the U.S. with a college degree and 1015 years of
potential work experience. These are conditional density functions – the density of hourly wages
conditional on race, gender, education and experience. The two density curves show the e¤ect of
gender on the distribution of wages, holding the other variables constant.
While it is easy to observe that the two densities are unequal, it is useful to have numerical
measures of the di¤erence. An important summary measure is the conditional mean
2
:(i) = E(j [ i) =
_
o
÷o
j) (j [ i) dj. (2.2)
The function :(i) varies with the vector i and is thus a function from R
I
to R. The conditional
mean :(i) is sometimes called the regression function. In general, :(i) can have arbitrary
shape, although in some cases an economic model may dictate a speci…c shape restriction (such
as monotonicity) or a speci…c functional form (such as linearity). The regression function :(i) is
de…ned for values of i in the support
3
of i. Thus when i has a discrete distribution then :(i) is
de…ned for those values of i with positive probability. When i has a continuous distribution with
density )
æ
(i) then :(i) is de…ned for those values of i for which )
æ
(i) 0.
In the example presented in Figure 2.1, the mean wage for men is $27.22, and that for women
is $20.73. These are indicated in Figure 2.1 by the arrows drawn to the xaxis. These values
are the conditional means of U.S. wages in 2004 (conditional on gender, and conditional for white
nonmilitary wages earners with a college degree and 1015 years of work experience).
Take a closer look at the density functions displayed in Figure 2.1. You can see that the right
tail of the density is much thicker than the left tail. These are asymmetric (skewed) densities,
1
These are nonparametric density estimates using a normal kernel with the bandwidth selected by crossvalidation.
See Chapter 16. The data are from the 2004 Current Population Survey.
2
The conditional mean exists if Ejyj < 1: For a rigorous de…nition see Section 2.16.
3
The support of a random vector x is the closed set of points for which its distribution F(x) is increasing in all
elements of x:
9
which is a common feature of many economic variables. When a distribution is skewed, the mean
is not necessarily a good summary of the central tendency. In this context it is often convenient to
transform the data by taking the (natural) logarithm
4
. Figure 2.2 shows the density of log hourly
wages for the same population, with mean log hourly wages (3.21 and 2.91, respectively) drawn
in with the arrows. The di¤erence between the mean log wage of men and women is 0.30, which
implies a 30% average wage di¤erence for this population. The di¤erence in the mean log wage is a
more robust measure of the typical wage gap than the di¤erence in the untransformed wage means.
For this reason, wage regressions typically use log wages as a dependent variable rather than the
level of wages.
Figure 2.2: Log Wage Densities for White College Grads with 1015 Years Work Experience
The comparisons in Figures 2.1 and 2.2 are facilitated by the fact that the control variable
(gender) is binary. When the distribution of the control variable takes on multiple values or
is continuous, then comparisons become more complicated. To illustrate, Figure 2.3 displays a
scatter plot
5
of log wages against education levels. Assuming for simplicity that this is the true
joint distribution, the solid line displays the conditional expectation of log wages varying with
education. The conditional expectation function is close to linear; the dashed line is a linear
projection approximation which will be discussed in Section 2.9. The main point to be learned
from Figure 2.3 is that the conditional expectation is a useful summary of the central tendency of
the conditional distribution when the control variable takes multiple values. Of particular interest
to graduate students may be the observation that di¤erence between a B.A. and a Ph.D. degree in
mean log hourly wages is 0.36, implying an average 36% di¤erence in wage levels.
As another example, Figure 2.4 displays the conditional mean
6
of log hourly wages as a function
of labor market experience. The solid line is the conditional mean. We see that the conditional
mean is strongly nonlinear and nonmonotonic. The main lesson to be learned at this point from
Figure 2.4 is that conditional expectations can be quite nonlinear.
4
Mathematically, this is equivalent to measuring the central tendency by the conditional geometric mean
exp(E(log y j x)). For example, the conditional geometric means for the densities in Figure 2.1 are $24.78 and
$18.36, respectively.
5
White nonmilitary male wage earners with 1015 years of potential work experience.
6
In the population of white nonmilitary male wage earners with 12 years of education.
10
Figure 2.3: Scatter Plot and Conditional Mean of Log Wages Given Education
2.4 Regression Error
The regression error c is de…ned as the di¤erence between j and its conditional mean (2.2)
evaluated at the random vector i:
c = j ÷:(i).
By construction, this yields the formula
j = :(i) +c. (2.3)
It is useful to understand that the regression error is derived from the joint distribution of (j, i),
and so its properties are derived from this construction. We now discuss some of these properties.
Theorem 2.4.1 Properties of the regression error c.
Under Assumption 2.2.1,
1. E(c [ i) = 0.
2. E(c) = 0.
3. E(/(i)c) = 0 for any function /() such that E/(i)
2
< ·
4. E(ic) = 0.
Proof of Theorem 2.4.1.1:
By the de…nition of c and the linearity of conditional expectations,
E(c [ i) = E((j ÷:(i)) [ i)
= E(j [ i) ÷E(:(i) [ i)
= :(i) ÷:(i) = 0.
Proofs of the remaining parts of Theorem 2.4.1.1 are left to Exercise 2.1.
11
Figure 2.4: Log Hourly Wage as a Function of Experience
The equations
j = :(i) +c
E(c [ i) = 0.
are often stated jointly as the regression framework. It is important to understand that this is a
framework, not a model, because no restrictions have been placed on the joint distribution of the
data. These equations hold true by de…nition. A regression model imposes further restrictions on
the permissible class of regression functions :(i) .
The condition E(c [ i) = 0 is the key implication of the conditional mean model. This equation
is sometimes called a conditional mean restriction, since the conditional mean is restricted to equal
zero. The property is also sometimes called mean independence, for the conditional mean of c is
0 and thus independent of i. It is quite important to understand, however, that it does not imply
that the distribution of c is independent of i. Sometimes the assumption “c is independent of i”
is added as a convenient simpli…cation, but it is not generic feature of regression. Typically and
generally, c and i are jointly dependent, even though the conditional mean of c is zero.
As a simple example, suppose that j = rn where r and n are independent and En = 1. Then
E(j [ r) = r so the regression equation is j = r + c where c = r(n ÷1). Yet c is not independent
of r, even though E(c [ r) = 0.
2.5 Best Predictor
Given a realized value of i, we can view :(i) as a predictor or forecast of j. The prediction
error is c = j÷:(i), which is random. A nonstochastic measure of the magnitude of the prediction
error is the expectation of the squared error, or mean squared error
E(j ÷:(i))
2
= Ec
2
= o
2
. (2.4)
The parameter o
2
is also known as the variance of the regression error.
It turns out that the the conditional mean is a good predictor of j in the sense that it has the
lowest mean squared error among all predictors. This holds regardless of the joint distribution of
(j, i). We state this formally in the following result.
12
Theorem 2.5.1 Conditional Mean as Best Predictor
Let :(i) = E(j [ i) be the conditional mean and let q (i) be any other
predictor of j given i. Under Assumption 2.2.1,
E(j ÷q (i))
2
_ E(j ÷:(i))
2
.
Proof of Theorem 2.5.1: Since j = :(i) +c, the mean squared error using q (i) is
E(j ÷q (i))
2
= E(c +:(i) ÷q (i))
2
= Ec
2
+ 2E(c (:(i) ÷q (i))) +E(:(i) ÷q (i))
2
= Ec
2
+E(:(i) ÷q (i))
2
_ Ec
2
= E(j ÷:(i))
2
where the third equality uses Theorem 2.4.1.3. The righthandside after the third equality is
minimized by setting q (i) = :(i), yielding the …nal inequality.
2.6 Conditional Variance
While the conditional mean is a good measure of the location of a conditional distribution,
it does not provide information about the spread of the distribution. A common measure of the
dispersion is the conditional variance.
De…nition 2.6.1 The conditional variance of j given i is
o
2
(i) = var (j [ i)
= E
_
j
2
[ i
_
÷(E(j [ i))
2
= E
_
(j ÷E(j [ i))
2
[ i
_
= E
_
c
2
[ i
_
Generally, o
2
(i) is a nontrivial function of i and can take any form subject to the restriction
that it is nonnegative. The conditional standard deviation is its square root o(i) =
_
o
2
(i).
One way to think about o
2
(i) is that it is the conditional mean of c
2
given i.
As an example of how the conditional variance depends on observables, compare the conditional
wage densities for men and women displayed in Figure 2.1. The di¤erence between the densities is
not just a location shift, but is also a di¤erence in spread. Speci…cally, we can see that the density
for men’s wages is somewhat more spread out than that for women, while the density for women’s
wages is somewhat more peaked. Indeed, the conditional standard deviation for men’s wages is
12.1 and that for women is 10.5. So while men have higher average wages, they are also somewhat
more dispersed.
Many econometric studies focus on the conditional mean :(i) and either ignore the conditional
variance o
2
(i), treat it as a constant o
2
(i) = o
2
, or treat it as a nuisance parameter (a parameter
not of primary interest). This may be unfortunate as dispersion is relevant to many economic
topics, including income and wealth distribution, economic inequality, and price dispersion.
The perverse consequences of a narrowminded focus on the mean has been parodied in a classic
joke:
13
An economist was standing with one foot in a bucket of boiling water
and the other foot in a bucket of ice. When asked how he felt, he
replied, “On average I feel just …ne.”
Clearly, the economist in question ignored variance!
2.7 Homoskedasticity and Heteroskedasticity
An important special case obtains when the conditional variance of the regression error o
2
(i)
is a constant and independent of i. This is called homoskedasticity.
De…nition 2.7.1 The error is homoskedastic if E
_
c
2
[ i
_
= o
2
does not depend on i.
In the general case where o
2
(i) depends on i we say that the error c is heteroskedastic.
De…nition 2.7.2 The error is heteroskedastic if E
_
c
2
[ i
_
= o
2
(i)
depends on i.
Even when the error is heteroskedastic we still de…ne the unconditional variance o
2
of the error
c as in (2.4). It may be helpful to notice that by using iterated expectations the unconditional
variance can be written as the expected conditional error variance
o
2
= E
_
c
2
_
= E
_
E
_
c
2
[ i
__
= E
_
o
2
(i)
_
.
Thus o
2
is wellde…ned whether or not the error is homoskedastic or heteroskedastic.
Some older or introductory textbooks describe heteroskedasticity as the case where “the variance
of c varies across observations”. This is a poor and confusing de…nition. It is more constructive
to understand that heteroskedasticity is the case where the conditional variance o
2
(i) depends on
the variables i. (Once again, recall Figure 2.1 and how the variance of wages varies between men
and women.)
Older textbooks also tend to describe homoskedasticity as a component of a correct regression
speci…cation, and describe heteroskedasticity as an exception or deviance. This description has
in‡uenced many generations of economists, but it is unfortunately backwards. The correct view
is that heteroskedasticity is generic and “standard”, while homoskedasticity is unusual and excep
tional. The default in empirical work should be to assume that the errors are heteroskedastic, not
the converse.
In apparent contraction to the above statement, we will still frequently impose the homoskedas
ticity assumption when making theoretical investigations into the properties of regression tech
niques. The reason is that in many cases homoskedasticity greatly simpli…es the theoretical cal
culations, and it is therefore quite advantageous for teaching and learning. It should always be
remembered, however, that homoskedasticity is never imposed because it is believed to be a correct
feature of an empirical regression, but rather because of its simplicity.
14
2.8 Linear Regression
An important special case of (2.3) is when the conditional mean function :(i) is linear in i
(or linear in functions of i). In this case we can write the mean equation as
:(i) = ,
0
+r
1
,
1
+r
2
,
2
+ +r
I
,
I
.
Notationally it is convenient to write this as a simple function of the vector i. An easy way to do
so is to augment the regressor vector i by listing the number “1” as an element. We call this the
“constant” and the corresponding coe¢cient is called the “intercept”. Equivalently, assuming that
the …rst element
7
of the vector i is the intercept, then r
1
= 1. Thus (2.1) has been rede…ned as
the / 1 vector
i =
_
_
_
_
_
1
r
2
.
.
.
r
I
_
_
_
_
_
. (2.5)
With this rede…nition, then the mean equation is
:(i) = r
1
,
1
+r
2
,
2
+ +r
I
,
I
= i
t
d (2.6)
where
d =
_
_
_
,
1
.
.
.
,
I
_
_
_ (2.7)
is a / 1 coe¢cient vector. This is called the linear regression model.
Linear Regression
j = i
t
d +c
E(c [ i) = 0
If in addition the error is homoskedastic, we call this the homoskedastic linear regression model.
Homoskedastic Linear Regression
j = i
t
d +c
E(c [ i) = 0
E
_
c
2
[ i
_
= o
2
7
The order doesn’t matter. It could be any element.
15
2.9 Best Linear Predictor
While the conditional mean :(i) = E(j [ i) is the best predictor of j among all functions
of i, its functional form is typically unknown. In particular, the linear equation of the previous
section is empirically unlikely to be accurate. In practice it is more realistic to view the linear
speci…cation (2.6) as an approximation. In this section we derive a speci…c approximation with a
simple interpretation.
Theorem 2.5.1 showed that the conditional mean :(i) is the best predictor in the sense that
it has the lowest mean squared error among all predictors. By extension, we can de…ne a linear
approximation to the conditional mean function as the linear function with the lowest mean squared
error among all linear predictors.
To be precise, a linear predictor for j given i is i
t
d for some d ¸ R
I
. The mean squared error
of this predictor is
o(d) = E
_
j ÷i
t
d
_
2
.
The best linear predictor of j given i is de…ned by …nding the vector d which minimizes o(d).
De…nition 2.9.1 The Best Linear Predictor of j given i is i
t
d, where d
minimizes the mean squared error
o(d) = E
_
j ÷i
t
d
_
2
.
The minimizer
d = argmin
f¸R
k
o(d) (2.8)
is called the Linear Projection Coe¢cient.
The quadratic structure of o(d) means that we can solve explicitly for d. The mean squared
prediction error can be written out as a quadratic function of d :
o(d) = Ej
2
÷2d
t
E(ij) +d
t
E
_
ii
0
_
d
The …rstorder condition for minimization (from Appendix A.9) is
0 =
0
0d
o(d) = ÷2E(ij) + 2E
_
ii
t
_
d. (2.9)
This has a unique solution under the following condition.
Assumption 2.9.1 Q = E(ii
t
) is invertible.
The matrix Qis sometimes called the design matrix, as in experimental settings the researcher
is able to control Q by manipulating the distribution of the regressors i.
Rewriting (2.9) as
2E(ij) = 2E
_
ii
t
_
d
dividing by 2, and then inverting the / / matrix E(ii
t
) , we obtain the solution for d.
16
Theorem 2.9.1 Linear Projection Coe¢cient
Under Assumptions 2.2.1 and 2.9.1, the linear projection coe¢cient equals
d =
_
E
_
ii
t
__
÷1
E(ij) . (2.10)
It is worth taking the time to understand the notation involved in the expression (2.10). E(ii
t
)
is a / / matrix and E(ij) is a / 1 column vector. Therefore, alternative expressions such as
E(æj)
E(ææ
0
)
or E(ij) (E(ii
t
))
÷1
are incoherent and incorrect.
Given the de…nition of d in (2.10), i
t
d is the best linear predictor for j. The projection error
is
c = j ÷i
t
d. (2.11)
The error c from the linear prediction equation is equal to the error from the regression equation
when (and only when) the conditional mean is linear in i, otherwise they are distinct.
Rewriting, we obtain a decomposition of j into linear predictor and error
j = i
t
d +c. (2.12)
This completes the derivation of the model. We call i
t
d the best linear predictor of j given i, or
the linear projection of j onto i. In general we call equation (2.12) the linear projection model.
The following are important properties of the model.
Theorem 2.9.2 Properties of Linear Projection Model
Under Assumptions 2.2.1 and 2.9.1, then (2.11) and (2.12) exist and are unique,
o
2
= E
_
c
2
_
< ·, (2.13)
and
E(ic) = 0. (2.14)
A complete proof of Theorem 2.9.1 is presented below.
We have shown that under mild regularity conditions, for any pair (j, i) we can de…ne a linear
equation (2.12) with the properties listed in Theorem 2.9.1. No additional assumptions are required.
Thus the linear model (2.12) exists quite generally. However, it is important not to misinterpret
the generality of this statement. The linear equation (2.12) is de…ned as the best linear predictor.
In contrast, in many economic models the parameter d may be de…ned within the model. In this
case (2.10) may not hold and the implications of Theorem 2.9.1 may be false. These structural
models require alternative estimation methods, and are discussed in Chapter 11.
Linear Projection Model
j = i
t
d +c.
E(ic) = 0
d =
_
E
_
ii
t
__
÷1
E(ij)
17
Equation (2.14) is a set of / equations, one for each regressor. In other words, (2.14) is equivalent
to
E(i
)
c) = 0 (2.15)
for , = 1, ..., /. As in (2.5), the regressor vector i typically contains a constant, e.g. r
1
= 1. In
this case (2.15) for , = 1 is the same as
E(c) = 0. (2.16)
Thus the projection error has a mean of zero when the regression contains a constant. (When i
does not have a constant, this is not guarenteed. As it is desireable for c to have a zero mean, this
is a good reason to always include a constant in any regression.)
It is also useful to observe that since cov(i
)
, c) = E(i
)
c) ÷ E(i
)
) E(c) , then (2.15)(2.16)
together imply that the variables i
)
and c are uncorrelated.
Invertibility and Identi…cation
The vector (2.10) exists and is unique as long as the / / matrix Q = E(ii
t
) is
invertible. Observe that for any nonzero o ¸ R
I
,
o
t
Qo = E
_
o
t
ii
t
o
_
= E
_
o
t
i
_
2
_ 0
so Q by construction is positive semide…nite. It is invertible if and only if it is positive
de…nite, which requires that for all nonzero o, E(o
t
i)
2
0. Equivalently, there cannot
exist a nonzero vector o such that o
t
i = 0 identically. This occurs when redundant
variables are included in i. In order for d to be uniquely de…ned, this situation must be
excluded.
Theorem 2.9.1 shows that the linear projection coe¢cient d is identi…ed (uniquely
determined) under Assumptions 2.2.1 and 2.9.1. The key is invertibility of Q. Otherwise,
there is no unique solution to the equation
E
_
ii
t
_
d = E(ij) . (2.17)
When Q is not invertible there are multiple solutions to (2.17), all of which yield an
equivalent best linear predictor i
t
d. In this case the coe¢cient d is not identi…ed as it
does not have a unique value. Even so, the best linear predictor i
t
d still identi…ed. One
solution is to set
d =
_
E
_
ii
t
__
÷
E(ij)
where A
÷
denotes the generalized inverse of A (see Appendix A.5).
Proof of Theorem 2.9.1
We …rst show that the moments E(i¸) and E(ii
t
) are …nite and well de…ned. First, it is useful
to note that Assumption 2.2.1 implies that
Ei
2
= E
_
i
t
i
_
=
I
)=1
Er
2
)
< ·. (2.18)
Note that for , = 1, ..., /, by the CauchySchwarz Inequality (C.3) and Assumption 2.2.1
E[r
)
j[ _
_
Er
2
)
_
1¸2
_
Ej
2
_
1¸2
< ·.
18
Thus the elements in the vector E(i¸) are well de…ned and …nite. Next, note that the ,’th element
of E(ii
t
) is E(r
)
r

) . Observe that
E[r
)
r

[ _
_
Ei
2
)
_
1¸2
_
Ei
2

_
1¸2
< ·.
Thus all elements of the matrix E(ii
t
) are …nite.
Equation (2.10) states that d = (E(ii
t
))
÷1
E(ij) which is well de…ned since (E(ii
t
))
÷1
exists
under Assumption 2.9.1. It follows that c = j ÷i
t
d as de…ned in (2.11) is also well de…ned.
Note the Schwarz Inequality (A.6) implies (i
t
d)
2
_ i
2
d
2
and therefore combined with
(2.18) we see that
E
_
i
t
d
_
2
_ Ei
2
d
2
< ·. (2.19)
Using Minkowski’s Inequality (C.5), Assumption 2.2.1, and (2.19) we …nd
_
E
_
c
2
__
1¸2
=
_
E
_
j ÷i
t
d
_
2
_
1¸2
_
_
Ej
2
_
1¸2
+
_
E
_
i
t
d
_
2
_
1¸2
< ·
establishing (2.13).
An application of the CauchySchwarz Inequality (C.3) shows that for any ,
E[r
)
c[ _
_
Ei
2
)
_
1¸2
_
Ec
2
_
1¸2
< ·
and therefore the elements in the vector E(ic) are well de…ned and …nite.
Using the de…nitions (2.11) and (2.10), and the matrix properties that AA
÷1
= 1 and 1u = u,
E(ic) = E
_
i
_
j ÷i
t
d
__
= E(ij) ÷E
_
ii
t
_ _
E
_
ii
t
__
÷1
E(ij) = 0
completing the proof.
2.10 Regression Coe¢cients
Sometimes it is useful to separate the intercept from the other regressors, and write the regres
sion equation in the format
j = c +i
t
d +c (2.20)
where c is the intercept and i does not contain a constant.
Taking expectations of this equation, we …nd
Ej = Ec +Ei
t
d +Ec
or
j
j
= c +j
t
a
d
where j
j
= Ej and j
a
= Ei, since E(c) = 0 from (2.16). Rearranging, we …nd
c = j
j
÷j
t
a
d.
Subtracting this equation from (2.20) we …nd
j ÷j
j
= (i ÷j
a
)
t
d +c, (2.21)
19
a linear equation between the centered variables j ÷ j
j
and i ÷ j
a
. (They are centered at their
means, or equivalently are meanzero random variables.) Because i ÷ j
a
is uncorrelated with c,
(2.21) is also a linear projection, thus by the formula for the linear projection model,
d =
_
E
_
(i ÷j
a
) (i ÷j
a
)
t
__
÷1
E
_
(i ÷j
a
)
_
j ÷j
j
__
= cov (i, i)
÷1
cov (i, j)
a function only of the covariances
8
of i and j.
Theorem 2.10.1 In the linear projection model
j = c +i
t
d +c,
then
c = j
j
÷j
t
a
d (2.22)
and
d = cov (i, i)
÷1
cov (i, j) . (2.23)
2.11 Best Linear Approximation
There are alternative ways we could construct a linear approximation i
t
d to the conditional
mean :(i). In this section we show that one natural approach turns out to yield the same answer
as the best linear predictor.
We start by de…ning the meansquare approximation error of i
t
d to :(i) as the expected
squared di¤erence between i
t
d and the conditional mean :(i)
d(d) = E
_
:(i) ÷i
t
d
_
2
. (2.24)
The function d(d) is a measure of the deviation of i
t
d from :(i). If the two functions are identical
then d(d) = 0, otherwise d(d) 0. We can also view the meansquare di¤erence d(d) as a density
weighted average of the function (:(i) ÷i
t
d)
2
.
We can then de…ne the best linear approximation to the conditional :(i) as the function i
t
d
obtained by selecting d to minimize d(d) :
d = argmin
f¸R
k
d(d). (2.25)
Similar to the best linear predictor we are measuring accuracy by expected squared error. The
di¤erence is that the best linear predictor (2.8) selects d to minimize the expected squared predic
tion error, while the best linear approximation (2.25) selects d to minimize the expected squared
approximation error.
Despite the di¤erent de…nitions, it turns out that the best linear predictor and the best linear
approximation are identical. By the same steps as in (2.9) plus an application of conditional
expectations we can …nd that
d =
_
E
_
ii
t
__
÷1
E(i:(i)) (2.26)
=
_
E
_
ii
t
__
÷1
E(ij) (2.27)
(see Exercise 2.14). Thus (2.25) equals (2.8). We conclude that the de…nition (2.25) can be viewed
as an alternative motivation for the linear projection coe¢cient.
8
The covariance matrix between vectors x and z is cov (x; z) = E
(x Ex) (z Ez)
0
: We call cov (x; x) the
covariance matrix of x:
20
2.12 Normal Regression
Suppose the variables (j, i) are jointly normally distributed. Consider the best linear predictor
of j on i
j = i
t
d +c.
d =
_
E
_
ii
t
__
÷1
E(ij) .
Since the error c is a linear transformation of the normal vector (j, i), it follows that (c, i) is
jointly normal, and since they are jointly normal and uncorrelated (since E(ic) = 0) they are also
independent (see Appendix B.9). Independence implies that
E(c [ i) = E(c) = 0
and
E
_
c
2
[ i
_
= E
_
c
2
_
= o
2
which are properties of a homoskedastic linear conditional regression.
We have shown that when (j, i) are jointly normally, they satisfy a normal linear regression
j = i
t
d +c
where
c ~ ·(0, o
2
)
is independent of i.
This is an alternative (and traditional) motivation for the linear regression model. This moti
vation has limited merit in econometric applications since economic data is typically nonnormal.
2.13 Regression to the Mean
The term regression originated in an in‡uential paper by Francis Galton published in 1886,
where he examined the joint distribution of the stature (height) of parents and children. E¤ectively,
he was estimating the conditional mean of children’s height given their parents height. Galton
discovered that this conditional mean was approximately linear with a slope of 2/3. This implies
that on average a child’s height is more mediocre than his or her parent’s height. Galton called
this phenomenon regression to the mean, and the label regression has stuck to this day to
describe most conditional relationships.
One of Galton’s fundamental insights was to recognize that if the marginal distributions of j
and r are the same (e.g. the heights of children and parents in a stable environment) then the
regression slope in a linear projection is always less than one.
To be more precise, take the simple regression
j = c +r, +c (2.28)
where j equals the height of the child and r equals the height of the parent. Assume that j and r
have the same mean, so that j
j
= j
a
= j. Then from (2.22)
c = (1 ÷,) j
so we can write the conditional mean of (2.28) as
E(j [ i) = (1 ÷,) j +r,.
This shows that the expected height of the child is a weighted average of the population average
height j and the parents height r, with the weight equal to the regression slope ,. When the height
21
distribution is stable across generations, so that var(j) = var(r), then this slope is the simple
correlation of j and r. Using (2.23)
, =
cov (i, j)
var(r)
= corr(r, j).
By the properties of correlation (e.g. equation (B.7) in the Appendix), ÷1 _ corr(r, j) _ 1, with
corr(r, j) = 1 only in the degenerate case j = r. Thus if we exclude degeneracy, , is strictly less
than 1.
This means that on average a child’s height is more mediocre (closer to the population average)
than the parent’s.
Sir Francis Galton
Sir Francis Galton (18221911) of England was one of the leading …gures in late 19th century
statistics. In addition to inventing the concept of regression, he is credited with introducing
the concepts of correlation, the standard deviation, and the bivariate normal distribution.
His work on heredity made a signi…cant intellectual advance by examing the joint distribu
tions of observables, allowing the application of the tools of mathematical statistics to the
social sciences.
A common error – known as the regression fallacy – is to infer from , < 1 that the population
is converging
9
. This is a fallacy because we have shown that under the assumption of constant
(e.g. stable, nonconverging) means and variances, the slope coe¢cient must be less than one. It
cannot be anything else. A slope less than one does not imply that the variance of j is less than
than the variance of r.
Another way of seeing this is to examine the conditions for convergence in the context of equation
(2.28). Since r and c are uncorrelated, it follows that
var(j) = ,
2
var(r) + var(c).
Then var(j) < var(r) if and only if
,
2
< 1 ÷
var(c)
var(r)
which is not implied by the simple condition [,[ < 1.
The regression fallacy arises in related empirical situations. Suppose you sort families into groups
by the heights of the parents, and then plot the average heights of each subsequent generation over
time. If the population is stable, the regression property implies that the plots lines will converge
– children’s height will be more average than their parents. The regression fallacy is to incorrectly
conclude that the population is converging. The message is that such plots are misleading for
inferences about convergence.
The regression fallacy is subtle. It is easy for intelligent economists to succumb to its temptation.
A famous example is The Triumph of Mediocrity in Business by Horace Secrist, published in 1933.
In this book, Secrist carefully and with great detail documented that in a sample of department
stores over 19201930, when he divided the stores into groups based on 19201921 pro…ts, and
plotted the average pro…ts of these groups for the subsequent 10 years, he found clear and persuasive
evidence for convergence “toward mediocrity”. Of course, there was no discovery – regression to
the mean is a necessary feature of stable distributions.
9
A population is converging if its variance is declining towards zero.
22
2.14 Reverse Regression
Galton noticed another interesting feature of the bivariate distribution. There is nothing special
about a regression of j on r. We can also regress r on j. (In his heredity example this is the best
linear predictor of the height of parents given the height of their children.) This regression takes
the form
r = c
+
+j,
+
+c
+
. (2.29)
This is sometimes called the reverse regression. In this equation, the coe¢cients c
+
, ,
+
and
error c
+
are de…ned by linear projection. In a stable population we …nd that
,
+
= corr(r, j) = ,
c
+
= (1 ÷,) j = c
which are exactly the same as in the regression of j on r! The intercept and slope have exactly the
same values in the forward and reverse regression!
While this algebraic discovery is quite simple, it is counterintuitive. Instead, a common yet
mistaken guess for the form of the reverse regression is to take the regression (2.28), divide through
by , and rewrite to …nd the equation
r = ÷
c
,
+j
1
,
÷
1
,
c (2.30)
suggesting that the regression of r on j should have a slope coe¢cient of 1,, instead of ,, and
intercept of c,, rather than c. What went wrong? Equation (2.30) is perfectly valid, because it
is a simple manipulation of the valid equation (2.28). The trouble is that (2.30) is not a regression
equation. Inverting a regression does not yield a regression. Instead, (2.29) is a valid regression,
not (2.30).
In any event, Galton’s …nding was that when the variables are standardized, the slope in both
regressions (j on r, and r and j) equals the correlation, and both equations exhibit regression to
the mean. It is not a causal relation, but a natural feature of all joint distributions.
2.15 Limitations of the Best Linear Predictor
Let’s compare the linear projection and linear regression models.
From Theorem 2.4.1.4 we know that the regression error has the property E(ic) = 0. Thus a
linear regression is a linear projection. However, the converse is not true as the projection error
does not necessarily satisfy E(c [ i) = 0.
To see this in a simple example, suppose we take a normally distributed random variable
r ~ ·(0, 1) and set j = r
2
. Note that j is a deterministic function of r! Now consider the linear
projection of j on r and an intercept. The intercept and slope may be calculated as
_
c
,
_
=
_
1 E(r)
E(r) E
_
r
2
_
_
÷1
_
E(j)
E(rj)
_
=
_
1 E(r)
E(r) E
_
r
2
_
_
÷1
_
E
_
r
2
_
E
_
r
3
_
_
=
_
1
0
_
Thus the linear projection equation takes the form
j = c +r, +c
23
where c = 1, , = 0 and c = r
2
÷1. Observe that E(c) = E
_
r
2
_
÷1 = 0 and E(rc) = E
_
r
3
_
÷E(c) =
0, yet E(c [ r) = r
2
÷1 ,= 0. In this simple example c is a deterministic function of r, yet c and r
are uncorrelated! The point is that a projection error need not be a regression error.
Return for a moment to the joint distributions displayed in Figures 2.3 and 2.4. In these …gures,
the solid lines are the conditional means and the straight dashed lines are the linear projections.
In Figure 2.3 (the conditional mean of log hourly wages as a function of education) the conditional
mean and linear projection are quite close to one another. In this example the linear predictor is a
close approximation to the conditional mean. However, in Figure 2.4 (the conditional mean of log
hourly wages as a function of labor market experience) the conditional mean is quite nonlinear, so
the linear projection is a poor approximation. It overpredicts wages for young and old workers,
and underpredicts for the rest. Most importantly, it misses the strong downturn in expected wages
for those above 35 years work experience (equivalently, for those over 53 in age).
This defect in the best linear predictor can be partially corrected through a careful selection of
regressors. In the example of Figure 2.4, we can augment the regressor vector i to include both
crjcric:cc and crjcric:cc
2
. The best linear predictor of log wages given these two variables can
be called a quadratic projection, since the resulting function is quadratic in crjcric:cc. Other than
the rede…nition of the regressor vector, there are no changes in our methods or analysis. In Figure
2.4 we display as well the quadratic projection. In this example it is a much better approximation
to the conditional mean than the linear projection.
Figure 2.5: Conditional Mean and Two Linear Projections
Another defect of linear projection is that it is sensitive to the marginal distribution of the
regressors when the conditional mean is nonlinear. We illustrate the issue in Figure 2.5 for a
constructed
10
joint distribution of j and r. The solid line is the nonlinear conditional mean of
j given r. The data are divided in two – Group 1 and Group 2 – which have di¤erent marginal
distributions for the regressor r, and Group 1 has a lower mean value of r than Group 2. The
separate linear projections of j on r for these two groups are displayed in the Figure by the dashed
lines. These two projections are distinct approximations to the conditional mean. A defect with
linear projection is that it leads to the incorrect conclusion that the e¤ect of r on j is di¤erent for
individuals in the two Groups. This conclusion is incorrect because in fact there is no di¤erence in
the conditional mean function. The apparant di¤erence is a byproduct of a linear approximation
10
The x in Group 1 are N(2; 1) and those in Group 2 are N(4; 1); and the conditional distriubtion of y given x is
N(m(x); 1) where m(x) = 2x x
2
=6:
24
to a nonlinear mean, combined with di¤erent marginal distributions for the conditioning variables.
2.16 Identi…cation of the Conditional Mean
When a parameter is uniquely determined by the distribution of the observable variables, we
say that the parameter is identi…ed. Typically, identi…cation only holds under a set of restrictions,
and an identi…cation theorem carefully describes a set of such conditions which are su¢cient for
identi…cation. Identi…cation is a necessary precondition for estimation.
For example, consider the unconditional mean j = Ej. It is well de…ned and unique for all
distributions for which E[j[ < ·. Thus the mean j is identi…ed from the distribution of j under
the restriction E[j[ < ·. Unless E[j[ < ·, it is meaningless to attempt to estimate Ej.
As another example, consider the ratio of means 0 = j
1
,j
2
where j
1
= Ej
1
and j
2
= Ej
2
. It
is well de…ned when j
1
and j
2
are both …nite and j
2
,= 0, but if j
2
= 0 then 0 is unde…ned. Thus
0 is identi…ed from the distribution of (j
1
, j
2
) under the restrictions E[j
1
[ < ·, E[j
2
[ < ·, and
Ej
2
,= 0. Unless these conditions hold, it is meaningless to estimate 0.
Now consider the conditional mean :(i) = E(j [ i). Under which conditions is :(i) de…ned
and unique? The answer is provided in the following deep result from probability theory, which
establishes the existence of the conditional mean.
Theorem 2.16.1 Existence of the Conditional Mean
If E[j[ < · then there exists a function :(i) such that for all measurable sets A
E(1 (i ¸ A) j) = E(1 (i ¸ A) :(i)) . (2.31)
The function :(i) is almost everywhere unique, in the sense that if /(i) satis…es
(2.31), then there is a set o
+
such that P(o
+
) = 1 and :(i) = /(i) for i ¸ o
+
.
The function :(i) is called the conditional mean and is written :(i) = E(j [ i) .
See, for example, Ash (1972), Theorem 6.3.3.
The function :(i) de…ned by (2.31) specializes to (2.2) when (j, i) have a joint density.
Theorem 2.16.1 shows that the conditional mean function :(i) exists and is almost everywhere
unique, and is thus is identi…ed.
Theorem 2.16.2 Identi…cation of the Conditional Mean
If E[j[ < ·, the conditional mean :(i) = E(j [ i) is identi…ed for i ¸ o
+
where
P(o
+
) = 1.
25
Exercises
Exercise 2.1 Prove parts 2, 3 and 4 of Theorem 2.4.1.
Exercise 2.2 Suppose that the random variables j and r only take the values 0 and 1, and have
the following joint probability distribution
r = 0 r = 1
j = 0 .1 .2
j = 1 .4 .3
Find E(j [ r) , E
_
j
2
[ r
_
and var (j [ r) for r = 0 and r = 1.
Exercise 2.3 Show that o
2
(i) is the best predictor of c
2
given i:
(a) Write down the meansquared error of a predictor /(i) for c
2
.
(b) What does it mean to be predicting c
2
?
(c) Show that o
2
(i) minimizes the meansquared error and is thus the best predictor.
Exercise 2.4 Use j = :(i) +c to show that
var (j) = var (:(i)) +o
2
Exercise 2.5 Suppose that j is discretevalued, taking values only on the nonnegative integers,
and the conditional distribution of j given i is Poisson:
P(j = , [ i) =
exp(÷i
t
d) (i
t
d)
)
,!
, , = 0, 1, 2, ...
Compute E(j [ i) and var (j [ i) . Does this justify a linear regression model of the form j =
i
t
d +c?
Hint: If P(j = ,) =
exp(÷A)A
j
)!
, then Ej = ` and var(j) = `.
Exercise 2.6 Let r and j have the joint density ) (r, j) =
3
2
_
r
2
+j
2
_
on 0 _ r _ 1, 0 _ j _ 1.
Compute the coe¢cients of the best linear predictor j = c+,r+c. Compute the conditional mean
:(r) = E(j [ r) . Are the best linear predictor and conditional mean di¤erent?
Exercise 2.7 True or False. If j = r, +c, r ¸ R, and E(c [ r) = 0, then E
_
r
2
c
_
= 0.
Exercise 2.8 True or False. If j = r, +c, r ¸ R, and E(rc) = 0, then E
_
r
2
c
_
= 0.
Exercise 2.9 True or False. If j = i
t
d +c and E(c [ i) = 0, then c is independent of i.
Exercise 2.10 True or False. If j = i
t
d +c and E(ic) = 0, then E(c [ i) = 0.
Exercise 2.11 True or False. If j = i
t
d + c, E(c [ i) = 0, and E
_
c
2
[ i
_
= o
2
, a constant, then
c is independent of i.
Exercise 2.12 Let r be a random variable with j = Er and o
2
= var(r). De…ne
q
_
r [ j, o
2
_
=
_
r ÷j
(r ÷j)
2
÷o
2
_
.
Show that Eq (r [ :, :) = 0 if and only if : = j and : = o
2
.
26
Exercise 2.13 Suppose that
i =
_
_
1
r
2
r
3
_
_
and r
3
= c
1
+c
2
r
2
is a linear function of r
2
.
(a) Show that Q = E(ii
t
) is not invertible.
(b) Use a linear transformation of i to …nd an expression for the best linear predictor of j given
i. (Be explicit, do not just use the generalized inverse formula.)
Exercise 2.14 Show (2.26)(2.27), namely that for
d(d) = E
_
:(i) ÷i
t
d
_
2
then
d = argmin
f¸R
k
d(d)
=
_
E
_
ii
t
__
÷1
E(i:(i))
=
_
E
_
ii
t
__
÷1
E(ij) .
Hint: To show E(i:(i)) = E(ij) use the law of iterated expectations.
27
Chapter 3
The Algebra of Least Squares
3.1 Introduction
In this chapter we introduce the popular leastsquares estimator. Most of the discussion will be
algebraic, with questions of distribution and inference defered to later chapters.
3.2 Least Squares Estimator
In Section 2.9 we derived and discussed the best linear predictor of j given i for a pair of random
variables (j, i) ¸ RR
I
, and called this the linear projection model. Applied to observations from
a random sample with observations (j
i
, i
i
: i = 1, ..., :) this model takes the form
j
i
= i
t
i
d +c
i
(3.1)
where d is de…ned as
d = argmin
f¸R
k
o(d), (3.2)
o(d) = E
_
j
i
÷i
t
i
d
_
2
, (3.3)
and
d =
_
E
_
ii
t
__
÷1
E(ij) . (3.4)
When a parameter is de…ned as the minimizer of a function as in (3.2), a standard approach
to estimation is to construct an empirical analog of the function, and de…ne the estimator of the
parameter as the minimizer of the empirical function.
The empirical analog of the expected squared error (3.3) is the sample average squared error
o
a
(d) =
1
:
a
i=1
_
j
i
÷i
t
i
d
_
2
(3.5)
=
1
:
oo1
a
(d)
where
oo1
a
(d) =
a
i=1
_
j
i
÷i
t
i
d
_
2
is called the sumofsquarederrors function.
An estimator for d is the minimizer of (3.5):
`
d = argmin
f¸R
k
o
a
(d).
28
Figure 3.1: SumofSquared Errors Function
Alternatively, as o
a
(d) is a scale multiple of oo1
a
(d), we may equivalently de…ne
`
d as the mini
mizer of oo1
a
(d). Hence
`
d is commonly called the leastsquares estimator of d.
To visualize the quadratic function o
a
(d), Figure 3.1 displays an example sumofsquared er
rors function oo1
a
(d) for the case / = 2. The leastsquares estimator
`
d is the the pair (
^
,
1
,
^
,
2
)
minimizing this function.
3.3 Solving for Least Squares
To solve for
`
d, expand the SSE function to …nd
oo1
a
(d) =
a
i=1
j
2
i
÷2d
t
a
i=1
i
i
j
i
+d
t
a
i=1
i
i
i
t
i
d
which is quadratic in the vector argument d . The …rstordercondition for minimization of oo1
a
(d)
is
0 =
0
0d
o
a
(
`
d) = ÷2
a
i=1
i
i
j
i
+ 2
a
i=1
i
i
i
t
i
`
d. (3.6)
By inverting the / / matrix
a
i=1
i
i
i
t
i
we …nd an explicit formula for the leastsquares estimator
`
d =
_
a
i=1
i
i
i
t
i
_
÷1
_
a
i=1
i
i
j
i
_
. (3.7)
This is the natural estimator of the best linear prediction coe¢cient d de…ned in (3.2), and can
also be called the linear projection estimator.
29
Early Use of Matrices
The earliest known treatment of the use of matrix methods
to solve simultaneous systems is found in Chapter 8 of the
Chinese text The Nine Chapters on the Mathematical Art,
written by several generations of scholars from the 10th to
2nd century BCE.
Alternatively, equation (3.4) writes the projection coe¢cient d as an explicit function of the
population moments E(i
i
j
i
) and E(i
i
i
t
i
) . Their moment estimators are the sample moments
´
E(i
i
j
i
) =
1
:
a
i=1
i
i
j
i
´
E
_
i
i
i
t
i
_
=
1
:
a
i=1
i
i
i
t
i
.
The moment estimator of d replaces the population moments in (3.4) with the sample moments:
`
d =
_
´
E
_
i
i
i
t
i
_
_
÷1
´
E(i
i
j
i
)
=
_
1
:
a
i=1
i
i
i
t
i
_
÷1
_
1
:
a
i=1
i
i
j
i
_
=
_
a
i=1
i
i
i
t
i
_
÷1
_
a
i=1
i
i
j
i
_
which is identical with (3.7).
Least Squares Estimation
De…nition 3.3.1 The leastsquares estimator
`
d is
`
d = argmin
f¸R
k
o
a
(d)
where
o
a
(d) =
1
:
a
i=1
_
j
i
÷i
t
i
d
_
2
and has the solution
`
d =
_
a
i=1
i
i
i
t
i
_
÷1
_
a
i=1
i
i
j
i
_
.
To illustrate leastsquares estimation in practice, consider the data used to generate Figure 2.3.
These are white male wage earners from the March 2004 Current Population Survey, excluding
30
military, with 1015 years of potential work experience. This sample has 988 observations. Let j
i
be log wages and i
i
be an intercept and years of education. Then
1
:
a
i=1
i
i
j
i
=
_
2.951
42.405
_
and
1
:
a
i=1
i
i
i
t
i
=
_
1 14.136
14.136 205.826
_
.
Thus
`
d =
_
1 14.136
14.136 205.826
_
÷1
_
2.951
42.405
_
=
_
1. 33
0.115
_
. (3.8)
We often write the estimated equation using the format
\
log(\aqc) = 1.33 + 0.115 cdncatio:. (3.9)
An interpretation of the estimated equation is that each year of education is associated with an
11% increase in mean wages.
Equation (3.9) is called a bivariate regression as there are only two variables. A multivariate
regression has two or more regressors, and allows a more detailed investigation. Let’s redo the
example, but now including all levels of experience. This expanded sample includes 6578 observa
tions. Including as regressors years of experience and its square (experience
2
,100) (we divide by
100 to simplify reporting), we obtain the estimates
\
log(\aqc) = 0.959 + 0.100 cdncatio: + 0.053 crjcric:cc ÷0.095 crjcric:cc
2
,100. (3.10)
These estimates suggest a 10% increase in mean wages per year of education.
AdrienMarie Legendre
The method of leastsquares was …rst published in 1805 by the French mathematician
AdrienMarie Legendre (17521833). Legendre proposed leastsquares as a solution to the
algebraic problem of solving a system of equations when the number of equations exceeded
the number of unknowns. This was a vexing and common problem in astronomical mea
surement. As viewed by Legendre, (3.1) is a set of : equations with / unknowns. As the
equations cannot be solved exactly, Legendre’s goal was to select d to make the set of
errors as small as possible. He proposed the sum of squared error criterion, and derived
the algebraic solution presented above. As he noted, the …rstorder conditions (3.6) is a
system of / equations with / unknowns, which can be solved by “ordinary” methods. Hence
the method became known as Ordinary Least Squares and to this day we still use the
abbreviation OLS to refer to Legendre’s estimation method.
31
3.4 Least Squares Residuals
As a byproduct of estimation, we de…ne the …tted or predicted value
^ j
i
= i
t
i
`
d
and the residual
^ c
i
= j
i
÷ ^ j
i
= j
i
÷i
t
i
`
d. (3.11)
Note that j
i
= ^ j
i
+ ^ c
i
. We make a distinction between the error c
i
and the residual ^ c
i
. The
error c
i
is unobservable while the residual ^ c
i
is a byproduct of estimation. These two variables are
frequently mislabeled, which can cause confusion.
Equation (3.6) implies that
1
:
a
i=1
i
i
^ c
i
= 0. (3.12)
To see this by a direct calculation, using (3.11) and (3.7),
1
:
a
i=1
i
i
^ c
i
=
1
:
a
i=1
i
i
_
j
i
÷i
t
i
`
d
_
=
1
:
a
i=1
i
i
j
i
÷
1
:
a
i=1
i
i
i
t
i
`
d
=
1
:
a
i=1
i
i
j
i
÷
1
:
a
i=1
i
i
i
t
i
_
a
i=1
i
i
i
t
i
_
÷1
_
a
i=1
i
i
j
i
_
=
1
:
a
i=1
i
i
j
i
÷
a
i=1
i
i
j
i
= 0.
When i
i
contains a constant, an implication of (3.12) is
1
:
a
i=1
^ c
i
= 0.
Thus the residuals have a sample mean of zero and the sample correlation between the regressors
and the residual is zero. These are algebraic results, and hold true for all linear regression estimates.
Given the residuals, we can construct an estimator for o
2
as de…ned in (2.13):
^ o
2
=
1
:
a
i=1
^ c
2
i
. (3.13)
3.5 Model in Matrix Notation
For many purposes, including computation, it is convenient to write the model and statistics in
matrix notation. The linear equation (2.12) is a system of : equations, one for each observation.
We can stack these : equations together as
j
1
= i
t
1
d +c
1
j
2
= i
t
2
d +c
2
.
.
.
j
a
= i
t
a
d +c
a
.
32
Now de…ne
¸ =
_
_
_
_
_
j
1
j
2
.
.
.
j
a
_
_
_
_
_
, A =
_
_
_
_
_
i
t
1
i
t
2
.
.
.
i
t
a
_
_
_
_
_
, c =
_
_
_
_
_
c
1
c
2
.
.
.
c
a
_
_
_
_
_
.
Observe that ¸ and c are :1 vectors, and A is an :/ matrix. Then the system of : equations
can be compactly written in the single equation
¸ = Ad +c.
Sample sums can also be written in matrix notation. For example
a
i=1
i
i
i
t
i
= A
t
A
a
i=1
i
i
j
i
= A
t
¸.
Therefore
`
d =
_
A
t
A
_
÷1
_
A
t
¸
_
. (3.14)
Using matrix notation we have simple expressions for most estimators. This is particularly conve
nient for computer programming, as most languages allow matrix notation and manipulation.
Important Matrix Expressions
¸ = Ad +c
`
d =
_
A
t
A
_
÷1
_
A
t
¸
_
` c = ¸ ÷A
`
d
^ o
2
= :
÷1
` c
t
` c.
3.6 Projection Matrices
De…ne the matrices
1 = A
_
A
t
A
_
÷1
A
t
and
A = 1
a
÷A
_
A
t
A
_
÷1
A
t
= 1
a
÷1
where 1
a
is the : : identity matrix. 1 and A are called projection matrices due to the
property that for any matrix Z which can be written as Z = AI for some matrix I (we say that
Z lies in the range space of A), then
1Z = 1AI = A
_
A
t
A
_
÷1
A
t
AI = AI = Z
and
AZ = (1
a
÷1) Z = Z ÷1Z = Z ÷Z = 0.
33
As an important example of this property, partition the matrix A into two matrices A
1
and
A
2
so that
A = [A
1
A
2
] .
Then 1A
1
= A
1
and AA
1
= 0. It follows that AA = 0 and A1 = 0, so A and 1 are
orthogonal.
The matrices 1 and A are symmetric and idempotent
1
. To see that 1 is symmetric,
1
t
=
_
A
_
A
t
A
_
÷1
A
t
_
t
=
_
A
t
_
t
_
_
A
t
A
_
÷1
_
t
(A)
t
= A
_
_
A
t
A
_
t
_
÷1
A
t
= A
_
(A)
t
_
A
t
_
t
_
÷1
A
t
= 1.
To establish that it is idempotent,
11 =
_
A
_
A
t
A
_
÷1
A
t
__
A
_
A
t
A
_
÷1
A
t
_
= A
_
A
t
A
_
÷1
A
t
A
_
A
t
A
_
÷1
A
t
= A
_
A
t
A
_
÷1
A
t
= 1.
Similarly,
A
t
= (1
a
÷1)
t
= 1
a
÷1 = A
and
AA = A (1
a
÷1)
= A ÷A1
= A,
since A1 = 0.
Another useful property is that
tr 1 = / (3.15)
tr A = : ÷/ (3.16)
(See Appendix A.4 for de…nition and properties of the trace operator.) To show (3.15) and (3.16),
tr 1 = tr
_
A
_
A
t
A
_
÷1
A
t
_
= tr
_
_
A
t
A
_
÷1
A
t
A
_
= tr (1
I
)
= /,
and
tr A = tr (1
a
÷1) = tr (1
a
) ÷tr (1) = : ÷/.
1
A matrix P is symmetric if P
0
= P: A matrix P is idempotent if PP = P: See Appendix A.8.
34
Given the de…nitions of 1 and A, observe that
` ¸ = A
`
d = A
_
A
t
A
_
÷1
A
t
¸ = 1¸
and
` c = ¸ ÷A
`
d = ¸ ÷1¸ = A¸. (3.17)
Furthermore, since ¸ = Ad +c and AA = 0, then
` c = A (Ad +c) = Ac. (3.18)
Another way of writing (3.17) is
¸ = (1 +A) ¸ = 1¸ +A¸ = ` ¸ + ` c.
This decomposition is orthogonal, that is
` ¸
t
` c = (1¸)
t
(A¸) = ¸
t
1A¸ = 0.
The projection matrix 1 is also known as the hat matrix due to the equation ` ¸ = 1¸. The
i’th diagonal element of 1 = A(A
t
A)
÷1
A
t
is
/
ii
= i
t
i
_
A
t
A
_
÷1
i
i
(3.19)
which is called the leverage of the i’th observation. The /
ii
take values in [0, 1] and sum to /
a
i=1
/
ii
= / (3.20)
(See Exercise 3.6).
3.7 Residual Regression
Partition
A = [A
1
A
2
]
and
d =
_
d
1
d
2
_
.
Then the regression model can be rewritten as
¸ = A
1
d
1
+A
2
d
2
+c. (3.21)
Observe that the OLS estimator of d = (d
t
1
, d
t
2
)
t
can be obtained by regression of ¸ on A = [A
1
A
2
]. OLS estimation can be written as
¸ = A
1
`
d
1
+A
2
`
d
2
+ ` c (3.22)
Suppose that we are primarily interested in d
2
, not in d
1
, and we want to obtain the OLS sub
component
`
d
2
. In this section we derive an alternative expression for
`
d
2
which does not involve
estimation of the full model.
De…ne
A
1
= 1
a
÷A
1
_
A
t
1
A
1
_
÷1
A
t
1
.
Recalling the de…nition A = 1
a
÷A(A
t
A)
÷1
A
t
, observe that A
t
1
A
1
= 0 and thus
A
1
A = A ÷A
1
_
A
t
1
A
1
_
÷1
A
t
1
A = A.
35
It follows that
A
1
` c = A
1
A¸ = A¸ = ` c.
Using this result, if we premultiply (3.22) by A
1
we obtain
A
1
¸ = A
1
A
1
`
d
1
+A
1
A
2
`
d
2
+A
1
` c
= A
1
A
2
`
d
2
+ ` c (3.23)
the second equality since A
1
A
1
= 0. Premultiplying by A
t
2
and recalling that A
t
2
` c = 0, we
obtain
A
t
2
A
1
¸ = A
t
2
A
1
A
2
`
d
2
+A
t
2
` c = A
t
2
A
1
A
2
`
d
2
.
Solving,
`
d
2
=
_
A
t
2
A
1
A
2
_
÷1
_
A
t
2
A
1
¸
_
an alternative expression for
`
d
2
.
Now, de…ne
¯
A
2
= A
1
A
2
(3.24)
¯ ¸ = A
1
¸, (3.25)
the leastsquares residuals from the regression of A
2
and ¸, respectively, on the matrix A
1
only.
Since the matrix A
1
is idempotent, A
1
= A
1
A
1
and thus
`
d
2
=
_
A
t
2
A
1
A
2
_
÷1
_
A
t
2
A
1
¸
_
=
_
A
t
2
A
1
A
1
A
2
_
÷1
_
A
t
2
A
1
A
1
¸
_
=
_
¯
A
t
2
¯
A
2
_
÷1
_
¯
A
t
2
¯ ¸
_
.
This shows that
`
d
2
can be calculated by the OLS regression of ¯ ¸ on
¯
A
2
. This technique is called
residual regression.
Furthermore, using the de…nitions (3.24) and (3.25), expression (3.23) can be equivalently writ
ten as
¯ ¸ =
¯
A
2
`
d
2
+ ` c.
Since
`
d
2
is precisely the OLS coe¢cient from a regression of ¯ ¸ on
¯
A
2
, this shows that the residual
vector from this regression is ` c, numerically the same residual vector as from the joint regression
(3.22). We have proven the following theorem.
Theorem 3.7.1 FrischWaughLovell
In the model (3.21), the OLS estimator of d
2
and the OLS residuals ` c
may be equivalently computed by either the OLS regression (3.22) or via
the following algorithm:
1. Regress ¸ on A
1
, obtain residuals ¯ ¸;
2. Regress A
2
on A
1
, obtain residuals
¯
A
2
;
3. Regress ¯ ¸ on
¯
A
2
, obtain OLS estimates
`
d
2
and residuals ` c.
In some contexts, the FWL theorem can be used to speed computation, but in most cases
there is little computational advantage to using the twostep algorithm. Rather, the primary use
is theoretical.
36
A common application of the FWL theorem, which you may have seen in an introductory
econometrics course, is the demeaning formula for regression. Partition A = [A
1
A
2
] where
A
1
= i is a vector of ones, and A
2
is the vector of observed regressors. In this case,
A
1
= 1 ÷i
_
i
t
i
_
÷1
i
t
.
Observe that
¯
A
2
= A
1
A
2
= A
2
÷i
_
i
t
i
_
÷1
i
t
A
2
= A
2
÷A
2
and
¯ ¸ = A
1
¸
= ¸ ÷i
_
i
t
i
_
÷1
i
t
¸
= ¸ ÷¸,
which are “demeaned”. The FWL theorem says that
`
d
2
is the OLS estimate from a regression of
j
i
÷¸ on i
2i
÷i
2
:
`
d
2
=
_
a
i=1
(i
2i
÷i
2
) (i
2i
÷i
2
)
t
_
÷1
_
a
i=1
(i
2i
÷i
2
) (j
i
÷¸)
_
.
Thus the OLS estimator for the slope coe¢cients is a regression with demeaned data.
Ragnar Frisch
Ragnar Frisch (18951973) was cowinner with Jan Tinbergen of the …rst Nobel Memorial
Prize in Economic Sciences in 1969 for their work in developing and applying dynamic mod
els for the analysis of economic problems. Frisch made a number of foundational contribu
tions to modern economics beyond the FrischWaughLovell Theorem, including formalizing
consumer theory, production theory, and business cycle theory.
3.8 Prediction Errors
The leastsquares residual ^ c
i
are not true prediction errors, as they are constructed based on
the full sample including j
i
. A proper prediction for j
i
should be based on estimates constructed
only using the other observations. We can do this by de…ning the leaveoneout OLS estimator
of d as that obtained from the sample excluding the i’th observation:
`
d
(÷i)
=
_
_
1
: ÷1
),=i
i
)
i
t
)
_
_
÷1
_
_
1
: ÷1
),=i
i
)
j
)
_
_
=
_
A
t
(÷i)
A
(÷i)
_
÷1
A
(÷i)
¸
(÷i)
(3.26)
where A
(÷i)
and ¸
(÷i)
are the data matrices omitting the i’th row. The leaveoneout predicted
value for j
i
is
~ j
i
= i
t
i
`
d
(÷i)
,
37
and the leaveoneout residual or prediction error is
~ c
i
= j
i
÷ ~ j
i
.
A convenient alternative expression for
`
d
(÷i)
(derived below) is
`
d
(÷i)
=
`
d ÷(1 ÷/
ii
)
÷1
_
A
t
A
_
÷1
i
i
^ c
i
(3.27)
where /
ii
are the leverage values as de…ned in (3.19).
Using (3.27) we can simplify the expression for the prediction error:
~ c
i
= j
i
÷i
t
i
`
d
(÷i)
= j
i
÷i
t
i
`
d + (1 ÷/
ii
)
÷1
i
t
i
_
A
t
A
_
÷1
i
i
^ c
i
= ^ c
i
+ (1 ÷/
ii
)
÷1
/
ii
^ c
i
= (1 ÷/
ii
)
÷1
^ c
i
. (3.28)
A convenient feature of this expression is that it shows that computation of ~ c
i
is based on a simple
linear operation, and does not really require : separate estimations.
One use of the prediction errors is to estimate the outofsample mean squared error
~ o
2
=
1
:
a
i=1
~ c
2
i
=
1
:
a
i=1
(1 ÷/
ii
)
÷2
^ c
2
i
.
This is also known as the mean squared prediction error. Its square root ~ o =
_
~ o
2
is the
prediction standard error.
Proof of Equation (3.27). The Sherman–Morrison formula (A.2) from Appendix A.5 states that
for nonsingular A and vector I
_
A÷II
t
_
÷1
= A
÷1
+
_
1 ÷I
t
A
÷1
I
_
÷1
A
÷1
II
t
A
÷1
.
This implies
_
A
t
A ÷i
i
i
t
i
_
÷1
=
_
A
t
A
_
÷1
+ (1 ÷/
i
)
÷1
_
A
t
A
_
÷1
i
i
i
t
i
_
A
t
A
_
÷1
and thus
`
d
(÷i)
=
_
A
t
A ÷i
i
i
t
i
_
÷1
_
A
t
¸ ÷i
i
j
i
_
=
_
A
t
A
_
÷1
A
t
¸ ÷
_
A
t
A
_
÷1
i
i
j
i
+(1 ÷/
i
)
÷1
_
A
t
A
_
÷1
i
i
i
t
i
_
A
t
A
_
÷1
_
A
t
¸ ÷i
i
j
i
_
=
`
d ÷
_
A
t
A
_
÷1
i
i
j
i
+ (1 ÷/
i
)
÷1
_
A
t
A
_
÷1
i
i
_
i
t
i
`
d ÷/
i
j
i
_
=
`
d ÷(1 ÷/
i
)
÷1
_
A
t
A
_
÷1
i
i
_
(1 ÷/
i
) j
i
÷i
t
i
^
, +/
i
j
i
_
=
`
d ÷(1 ÷/
i
)
÷1
_
A
t
A
_
÷1
i
i
^ c
i
the third equality making the substitutions
`
d = (A
t
A)
÷1
A
t
¸ and /
i
= i
t
i
(A
t
A)
÷1
i
i
, and the
remainder collecting terms.
38
3.9 In‡uential Observations
Another use of the leaveoneout estimator is to investigate the impact of in‡uential obser
vations, sometimes called outliers. We say that observation i is in‡uential if its omission from
the sample induces a substantial change in a parameter of interest. From (3.27)(3.28) we know
that
`
d ÷
`
d
(÷i)
= (1 ÷/
ii
)
÷1
_
A
t
A
_
÷1
i
i
^ c
i
=
_
A
t
A
_
÷1
i
i
~ c
i
.
By direct calculation of this quantity for each observation i, we can directly discover if a speci…c
observation i is in‡uential for a coe¢cient estimate of interest.
For a more general assessment, we can focus on the predicted values. The di¤erence between
the fullsample and leaveoneout predicted values is
^ j
i
÷ ~ j
i
= i
t
i
`
d ÷i
t
i
`
d
(÷i)
= i
t
i
_
A
t
A
_
÷1
i
i
~ c
i
= /
ii
~ c
i
which is a simple function of the leverage values /
ii
and prediction errors ~ c
i
. Observation i is
in‡uential for the predicted value if [/
ii
~ c
i
[ is large, which requires that both /
ii
and [~ c
i
[ are large.
One way to think about this is that a large leverage value /
ii
gives the potential for observation
i to be in‡uential. A large /
ii
means that observation i is unusual in the sense that the regressor i
i
is far from its sample mean. We call this observation with large /
ii
a leverage point. A leverage
point is not necessarily in‡uential as this also requires that the prediction error ~ c
i
is large.
To determine if any individual observations are in‡uential in this sense, a useful summary
statistic is
In‡uence = max
1¸i¸a
[^ j
i
÷ ~ j
i
[
~ o
= max
1¸i¸a
/
ii
[~ c
i
[
~ o
which scales the maximum change in predicted values by the prediction standard error. If In‡uence
is large, it may be useful to examine the corresponding observation or observations. (As this is an
informal comparison there is no magic threshold, so judgement must be employed.)
If an observation is determined to be in‡uential, what should be done? Certainly, the recorded
values for the observations should be examined. It is quite possible that there is a data error, and
this is a common cause of in‡uential observations. If there is an error, you should scrutinize all
observations more carefully, as it would seem unlikely that data error would be con…ned to a single
observation. If it is determined that an observation is incorrectly recorded, then the observation is
typically deleted from the sample. When this is done it is proper empirical practice to document
such choices. (It is useful to keep the source data in its original form, a revised data …le after
cleaning, and a record describing the revision process. This is especially useful when revising
empirical work at a later date.)
It is also possible that an observation is correctly measured, but unusual and in‡uential. In
this case it is unclear how to proceed. Some researchers will try to alter the speci…cation to
properly model the in‡uential observation. Other researchers will delete the observation from the
sample. The motivation for this choice is to prevent the results from being skewed or determined
by individual observations, but this practice is viewed skeptically by many researchers, who believe
it reduces the integrity of reported empirical results.
3.10 Measures of Fit
When a leastsquares regression is reported in applied economics, it is common to see a reported
summary measure of …t, measuring how well the regressors explain the observed variation in the
dependent variable.
39
Some common summary measures are based on scaled or transformed estimates of the mean
squared error o
2
. These include the sum of squared errors
a
i=1
^ c
2
i
, the mean squared error
of sample variance :
÷1
a
i=1
^ c
2
i
= ^ o
2
, and the root mean squared error
_
:
÷1
a
i=1
^ c
2
i
(sometimes
called the standard error of the regression), and the mean prediction error ~ o
2
=
1
a
a
i=1
~ c
2
i
.
A related and commonly reported statistic is the coe¢cient of determination or Rsquared:
1
2
=
a
i=1
(^ j
i
÷j)
2
a
i=1
(j
i
÷j)
2
= 1 ÷
^ o
2
^ o
2
j
where
^ o
2
j
=
1
:
a
i=1
(j
i
÷j)
2
is the sample variance of j
i
. 1
2
can be viewed as an estimator of the population parameter
j
2
=
var (i
t
i
d)
var(j
i
)
= 1 ÷
o
2
o
2
j
where o
2
j
= var(j
i
). A high j
2
or 1
2
means that forecasts of j using i
t
d or i
t
´
d will be quite
accurate relative to the unconditional mean. In this sense 1
2
can be a useful summary measure for
an outofsample forecast or policy experiment.
An alternative estimator of j
2
proposed by Theil called Rbarsquared or adjusted 1
2
is
1
2
= 1 ÷
(: ÷1)
a
i=1
^ c
2
i
(: ÷/)
a
i=1
(j
i
÷j)
2
.
Theil’s estimator 1
2
is better estimator of j
2
than the unadjusted estimator 1
2
because it can be
expressed as a ratio of biascorrected variance estimates.
Unfortunately, the frequent reporting of 1
2
and 1
2
seems to have led to exaggerated beliefs
regarding their usefulness. One mistaken belief is that 1
2
is a measure of “…t”. This belief is
incorrect, as an incorrectly speci…ed model can still have a reasonably high 1
2
. For example,
suppose the truth is that r
i
~ ·(0, 1) and j
i
= ,r
i
+r
2
i
. If we regress j
i
on r
i
(incorrectly omitting
r
2
i
), the best linear predictor is j
i
= 1+,r
i
+c
i
where c
i
= r
2
i
÷1. This is a misspeci…ed regression,
as the true relationship is deterministic! You can also calculate that the population j
2
= ,,(2 +,)
which can be arbitrarily close to 1 if , is large. For example, if , = 8, then 1
2
· j
2
= .8, or if
, = 18 then 1
2
· j
2
= .9. This example shows that a regression with a high 1
2
can actually have
poor …t.
Another mistaken belief is that a high 1
2
is important in order to justify interpretation of the
regression coe¢cients. This is mistaken as there is no known association between the level of 1
2
and the “correctness” of a regression, the accuracy of the coe¢cient estimates, or the validity of
statistical inferences based on the estimated regression. In contrast, even if the 1
2
is quite small,
accurate estimates of regression coe¢cients is quite possible when sample sizes are large.
The bottom line is that while 1
2
and 1
2
have appropriate uses, their usefulness should not be
exaggerated.
Henri Theil
Henri Theil (19242000) of Holland invented 1
2
and twostage least squares, both of which
are routinely seen in applied econometrics. He also wrote an early and in‡uential advanced
textbook on econometrics (Theil, 1971).
40
3.11 Normal Regression Model
The normal regression model is the linear regression model under the restriction that the error
c
i
is independent of i
i
and has the distribution N
_
0, o
2
_
. We can write this as
c
i
[ i
i
~ N
_
0, o
2
_
.
This assumption implies
j
i
[ i
i
~ N
_
i
t
i
d, o
2
_
.
Normal regression is a parametric model, where likelihood methods can be used for estimation,
testing, and distribution theory.
The loglikelihood function for the normal regression model is
log 1(d, o
2
) =
a
i=1
log
_
1
(2¬o
2
)
1¸2
exp
_
÷
1
2o
2
_
j
i
÷i
t
i
d
_
2
_
_
= ÷
:
2
log
_
2¬o
2
_
÷
1
2o
2
oo1
a
(d).
The maximum likelihood estimator (MLE) (
`
d, ^ o
2
) maximize log 1(d, o
2
). Since the latter is a
function of d only through the sum of squared errors oo1
a
(d), maximizing the likelihood is
identical to minimizing oo1
a
(d). Hence
`
d
nc
=
`
d
cc
,
the MLE for d equals the OLS estimator. Due to this equivalence, the least squares estimator
`
d is
also known as the MLE.
We can also …nd the MLE for o
2
. Plugging
`
d into the loglikelihood we obtain
log 1
_
`
d, o
2
_
= ÷
:
2
log
_
2¬o
2
_
÷
1
2o
2
a
i=1
^ c
2
i
.
Maximization with respect to o
2
yields the …rstorder condition
0
0o
2
log 1
_
`
d, ^ o
2
_
= ÷
:
2^ o
2
+
1
2
_
^ o
2
_
2
a
i=1
^ c
2
i
= 0.
Solving for ^ o
2
yields the MLE for o
2
^ o
2
=
1
:
a
i=1
^ c
2
i
which is the same as the moment estimator (3.13).
It may seem surprising that the MLE
`
d is numerically equal to the OLS estimator, despite
emerging from quite di¤erent motivations. It is not completely accidental. The leastsquares
estimator minimizes a particular sample loss function – the sum of squared error criterion – and
most loss functions are equivalent to the likelihood of a speci…c parametric distribution, in this case
the normal regression model. In this sense it is not surprising that the leastsquares estimator can
be motivated as either the minimizer of a sample loss function or as the maximizer of a likelihood
function.
41
Carl Friedrich Gauss
The mathematician Carl Friedrich Gauss (17771855) proposed the normal regression model,
and derived the least squares estimator as the maximum likelihood estimator for this model.
He claimed to have discovered the method in 1795 at the age of eighteen, but did not publish
the result until 1809. Interest in Gauss’s approach was reinforced by Laplace’s simultaneous
discovery of the central limit theorem, which provided a justi…cation for viewing random
disturbances as approximately normal.
42
Exercises
Exercise 3.1 Let j be a random variable with j = Ej and o
2
= var(j). De…ne
q
_
j, j, o
2
_
=
_
j ÷j
(j ÷j)
2
÷o
2
_
.
Let (^ j, ^ o
2
) be the values such that q
a
(^ j, ^ o
2
) = 0 where q
a
(:, :) = :
÷1
a
i=1
q (j
i
, :, :) . Show that
^ j and ^ o
2
are the sample mean and variance.
Exercise 3.2 Consider the OLS regression of the :1 vector ¸ on the :/ matrix A. Consider
an alternative set of regressors Z = AC, where C is a / / nonsingular matrix. Thus, each
column of Z is a mixture of some of the columns of A. Compare the OLS estimates and residuals
from the regression of ¸ on A to the OLS estimates from the regression of ¸ on Z.
Exercise 3.3 Let ` c be the OLS residual from a regression of ¸ on A = [A
1
A
2
]. Find A
t
2
` c.
Exercise 3.4 Let ` c be the OLS residual from a regression of ¸ on A. Find the OLS coe¢cient
from a regression of ` c on A.
Exercise 3.5 Let ` ¸ = A(A
t
A)
÷1
A
t
¸. Find the OLS coe¢cient from a regression of ` ¸ on A.
Exercise 3.6 Show ()3.20), that /
ii
in (3.19) sum to /. (Hint: Use (3.15).)
Exercise 3.7 A dummy variable takes on only the values 0 and 1. It is used for categorical data,
such as an individual’s gender. Let u
1
and u
2
be vectors of 1’s and 0’s, with the i
t
th element of u
1
equaling 1 and that of u
2
equaling 0 if the person is a man, and the reverse if the person is a woman.
Suppose that there are :
1
men and :
2
women in the sample. Consider the three regressions
¸ = j +u
1
c
1
+u
2
c
2
+c (3.29)
¸ = u
1
c
1
+u
2
c
2
+c (3.30)
¸ = j +u
1
c +c (3.31)
Can all three regressions (3.29), (3.30), and (3.31) be estimated by OLS? Explain if not.
(a) Compare regressions (3.30) and (3.31). Is one more general than the other? Explain the
relationship between the parameters in (3.30) and (3.31).
(b) Compute i
t
u
1
and i
t
u
2
, where i is an : 1 is a vector of ones.
(c) Letting o = (c
1
c
2
)
t
, write equation (3.30) as ¸ = Ao + c. Consider the assumption
E(i
i
c
i
) = 0. Is there any content to this assumption in this setting?
Exercise 3.8 Let u
1
and u
2
be de…ned as in the previous exercise.
(a) In the OLS regression
¸ = u
1
^ ¸
1
+u
2
^ ¸
2
+ ` u,
show that ^ ¸
1
is sample mean of the dependent variable among the men of the sample (j
1
),
and that ^ ¸
2
is the sample mean among the women (j
2
).
(b) Describe in words the transformations
¸
+
= ¸ ÷u
1
j
1
÷u
2
j
2
A
+
= A ÷u
1
A
1
÷u
2
A
2
.
43
(c) Compare
¯
d from the OLS regresion
¸
+
= A
+
¯
d + ¯ c
with
`
d from the OLS regression
¸ = u
1
^ c
1
+u
2
^ c
2
+A
`
d + ` c.
Exercise 3.9 Let
`
d
a
= (A
t
a
A
a
)
÷1
A
t
a
¸
a
denote the OLS estimate when ¸
a
is : 1 and A
a
is
: /. A new observation (j
a+1
, i
a+1
) becomes available. Prove that the OLS estimate computed
using this additional observation is
`
d
a+1
=
`
d
a
+
1
1 +i
t
a+1
(A
t
a
A
a
)
÷1
i
a+1
_
A
t
a
A
a
_
÷1
i
a+1
_
j
a+1
÷i
t
a+1
`
d
a
_
.
Exercise 3.10 Prove that 1
2
is the square of the simple correlation between ¸ and ` ¸.
Exercise 3.11 The data …le cps85.dat contains a random sample of 528 individuals from the
1985 Current Population Survey by the U.S. Census Bureau. The …le contains observations on nine
variables, listed in the …le cps85.pdf.
V1 = education (in years)
V2 = region of residence (coded 1 if South, 0 otherwise)
V3 = (coded 1 if nonwhite and nonHispanic, 0 otherwise)
V4 = (coded 1 if Hispanic, 0 otherwise)
V5 = gender (coded 1 if female, 0 otherwise)
V6 = marital status (coded 1 if married, 0 otherwise)
V7 = potential labor market experience (in years)
V8 = union status (coded 1 if in union job, 0 otherwise)
V9 = hourly wage (in dollars)
Estimate a regression of wage j
i
on education r
1i
, experience r
2i
, and experiencedsquared r
3i
= r
2
2i
(and a constant). Report the OLS estimates.
Let ^ c
i
be the OLS residual and ^ j
i
the predicted value from the regression. Numerically calculate
the following:
(a)
a
i=1
^ c
i
(b)
a
i=1
r
1i
^ c
i
(c)
a
i=1
r
2i
^ c
i
(d)
a
i=1
r
2
1i
^ c
i
(e)
a
i=1
r
2
2i
^ c
i
(f)
a
i=1
^ j
i
^ c
i
(g)
a
i=1
^ c
2
i
(h) 1
2
Are these calculations consistent with the theoretical properties of OLS? Explain.
44
Exercise 3.12 Using the data from the previous problem, restimate the slope on education using
the residual regression approach. Regress j
i
on (1, r
2i
, r
2
2i
), regress r
1i
on (1, r
2i
, r
2
2i
), and regress
the residuals on the residuals. Report the estimate from this regression. Does it equal the value
from the …rst OLS regression? Explain.
In the secondstage residual regression, (the regression of the residuals on the residuals), cal
culate the equation 1
2
and sum of squared errors. Do they equal the values from the initial OLS
regression? Explain.
45
Chapter 4
Least Squares Regression
4.1 Introduction
In this chapter we investigate some …nitesample properties of leastsquares applied to a random
sample in the the linear regression model. Throughout this chapter we maintain the following.
Assumption 4.1.1 Linear Regression Model
The observations (j
i
, i
i
) come from a random sample and satisfy the linear
regression equation
j
i
= i
t
i
d +c
i
(4.1)
E(c
i
[ i
i
) = 0. (4.2)
The variables have …nite second moments
Ej
2
i
< ·
and
Er
2
)i
< ·
for , = 1, ..., /, and an invertible design matrix
Q = E
_
i
i
i
t
i
_
0.
We will consider both the general case of heteroskedastic regression, where the conditional
variance
E
_
c
2
i
[ i
i
_
= o
2
(i
i
) = o
2
i
is unrestricted, and the specialized case of homoskedastic regression, where the conditional variance
is constant. In the latter case we add the following assumption.
Assumption 4.1.2 Homoskedastic Linear Regression Model
In addition to Assumption 4.1.1,
E
_
c
2
i
[ i
i
_
= o
2
(i
i
) = o
2
(4.3)
is independent of r
i
.
46
Figure 4.1: Sampling Density of
^
,
4.2 Sampling Distribution
The leastsquares estimator is random, since it is a function of random data, and therefore has a
sampling distribution. In general, its distribution is a complicated function of the joint distribution
of (j
i
, i
i
) and the sample size :.
To illustrate the possibilities in one example, let j
i
and r
i
be drawn from the joint density
)(r, j) =
1
2¬rj
exp
_
÷
1
2
(log j ÷log r)
2
_
exp
_
÷
1
2
(log r)
2
_
and let
^
, be the slope coe¢cient estimate from a bivariate regression on observations from this
joint density. Using simulation methods, the density function of
^
, was computed and plotted in
Figure 4.1 for sample sizes of : = 25, : = 100 and : = 800. The vertical line marks the true value
of the projection coe¢cient.
From the …gure we can see that the density functions are dispersed and highly nonnormal. As
the sample size increases the density becomes more concentrated about the population coe¢cient.
To learn about the true value of , from the sample estimate
^
,, we need to have a way to characterize
the sampling distribution of
^
,. We start in the next sections by deriving the mean and variance of
^
,.
4.3 Mean of LeastSquares Estimator
In this section we show that the OLS estimator is unbiased in the linear regression model.
Under (4.1)(4.2) note that
E(¸ [ A) =
_
_
_
_
.
.
.
E(j
i
[ A)
.
.
.
_
_
_
_
=
_
_
_
_
.
.
.
E(j
i
[ i
i
)
.
.
.
_
_
_
_
=
_
_
_
_
.
.
.
i
t
i
d
.
.
.
_
_
_
_
= Ad. (4.4)
47
Similarly
E(c [ A) =
_
_
_
_
.
.
.
E(c
i
[ A)
.
.
.
_
_
_
_
=
_
_
_
_
.
.
.
E(c
i
[ i
i
)
.
.
.
_
_
_
_
= 0. (4.5)
By (3.14), conditioning on A, the linearity of expectations, (4.4), and the properties of the
matrix inverse,
E
_
`
d [ A
_
= E
_
_
A
t
A
_
÷1
A
t
¸ [ A
_
=
_
A
t
A
_
÷1
A
t
E(¸ [ A)
=
_
A
t
A
_
÷1
A
t
Ad
= d.
Applying the law of iterated expectations to E
_
`
d [ A
_
= d, we …nd that
E
_
`
d
_
= E
_
E
_
`
d [ A
__
= d.
Another way to calculate the same result is as follows. Insert ¸ = Ad + c into the formula
(3.14) for
`
d to obtain
`
d =
_
A
t
A
_
÷1
_
A
t
(Ad +c)
_
=
_
A
t
A
_
÷1
A
t
Ad +
_
A
t
A
_
÷1
_
A
t
c
_
= d +
_
A
t
A
_
÷1
A
t
c. (4.6)
This is a useful linear decomponsition of the estimator
`
d into the true parameter d and the
stochastic component (A
t
A)
÷1
A
t
c.
Using (4.6), conditioning on A, and (4.5),
E
_
`
d ÷d [ A
_
= E
_
_
A
t
A
_
÷1
A
t
c [ A
_
=
_
A
t
A
_
÷1
A
t
E(c [ A)
= 0.
Using either derivation, we have shown the following theorem.
Theorem 4.3.1 Mean of LeastSquares Estimator
In the linear regression model (Assumption 4.1.1)
E
_
`
d [ A
_
= d (4.7)
and
E(
`
d) = d. (4.8)
Equation (4.8) says that the estimator is unbiased, meaning that the distribution of
`
d is centered
at d. Equation (4.7) says that the estimator is conditionally unbiased, which is a stronger result.
It says that
`
d is unbiased for any realization of the regressor matrix A.
48
4.4 Variance of Least Squares Estimator
In this section we calculate the conditional variance of the OLS estimator.
For any r 1 random vector Z de…ne the r r covariance matrix
var(Z) = E(Z ÷EZ) (Z ÷EZ)
t
= EZZ
t
÷(EZ) (EZ)
t
and for any pair (Z, X) de…ne the conditional covariance matrix
var(Z [ A) = E
_
(Z ÷E(Z [ A)) (Z ÷E(Z [ A))
t
[ A
_
.
The conditional covariance matrix of the : 1 regression error c is the : : matrix
L = E
_
cc
t
[ A
_
.
The i’th diagonal element of L is
E
_
c
2
i
[ A
_
= E
_
c
2
i
[ i
i
_
= o
2
i
while the i,
t
th o¤diagonal element of L is
E(c
i
c
)
[ A) = E(c
i
[ i
i
) E(c
)
[ i
)
) = 0.
where the …rst equality uses independence of the observations (Assumption 1.5.1) and the second
is (4.2). Thus L is a diagonal matrix with i’th diagonal element o
2
i
:
L = diag
_
o
2
1
, ..., o
2
a
_
=
_
_
_
_
_
o
2
1
0 0
0 o
2
2
0
.
.
.
.
.
.
.
.
.
.
.
.
0 0 o
2
a
_
_
_
_
_
. (4.9)
In the special case of the linear homoskedastic regression model (4.3), then
E
_
c
2
i
[ i
i
_
= o
2
i
= o
2
and we have the simpli…cation
L = 1
a
o
2
.
In general, however, L need not necessarily take this simpli…ed form.
For any matrix : r matrix A = A(A),
var(A
t
¸ [ A) = var(A
t
c [ A) = A
t
LA. (4.10)
In particular, we can write
`
d = A
t
¸ where A = A(A
t
A)
÷1
and thus
var
_
`
d [ A
_
= A
t
LA
=
_
A
t
A
_
÷1
A
t
LA
_
A
t
A
_
÷1
.
It is useful to note that
A
t
LA =
a
i=1
i
i
i
t
i
o
2
i
,
a weighted version of A
t
A.
49
Rather than working with the variance of the unscaled estimator
`
d, it will be useful to work
with the conditional variance of the scaled estimator
_
:
_
`
d ÷d
_
X
^
f
= var
_
_
:
_
`
d ÷d
_
[ A
_
= :var
_
`
d [ A
_
= :
_
A
t
A
_
÷1
_
A
t
LA
_ _
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
_
1
:
A
t
LA
__
1
:
A
t
A
_
÷1
.
This rescaling might seem rather odd, but it will help provide continuity between the …nitesample
treatment of this chapter and the asymptotic treatment of later chapters. As we will see in the
next chapter, var
_
`
d [ A
_
vanishes as : tends to in…nity, yet X
^
f
converges to a constant matrix.
In the special case of the linear homoskedastic regression model, L = 1
a
o
2
, so A
t
LA =
A
t
Ao
2
, and the variance matrix simpli…es to
X
^
f
=
_
1
:
A
t
A
_
÷1
o
2
.
Theorem 4.4.1 Variance of LeastSquares Estimator
In the linear regression model (Assumption 4.1.1),
X
^
f
= var
_
_
:
_
`
d ÷d
_
[ A
_
=
_
1
:
A
t
A
_
÷1
_
1
:
A
t
LA
__
1
:
A
t
A
_
÷1
where L is de…ned in (4.9).
In the homoskedastic linear regression model (Assumption 4.1.2), the co
variance matrix simpli…es to
X
^
f
=
_
1
:
A
t
A
_
÷1
o
2
.
4.5 GaussMarkov Theorem
Now consider the class of estimators of d which are linear functions of the vector ¸, and thus
can be written as
¯
d = A
t
¸
where A is an : / function of A. The leastsquares estimator is the special case obtained by
setting A = A(A
t
A)
÷1
. What is the best choice of A? The GaussMarkov theorem, which we now
present, says that the leastsquares estimator is the best choice when the errors are homoskedastic,
as the leastsquares estimator has the smallest variance among all unbiased linear estimators.
To see this, since E(¸ [ A) = Ad, then for any linear estimator
¯
d = A
t
¸ we have
E
_
¯
d [ A
_
= A
t
E(¸ [ A) = A
t
Ad,
50
so
¯
d is unbiased if (and only if) A
t
A = 1
I
. Furthermore, we saw in (4.10) that
var
_
¯
d [ A
_
= var
_
A
t
¸ [ A
_
= A
t
LA = A
t
Ao
2
.
the last equality using the homoskedasticity assumption L = 1
a
o
2
. The “best” unbiased linear
estimator is obtained by …nding the matrix A such that A
t
A is minimized in the positive de…nite
sense.
Theorem 4.5.1 GaussMarkov
1. In the homoskedastic linear regression model (Assumption 4.1.2),
the best (minimumvariance) unbiased linear estimator is the least
squares estimator
`
d =
_
A
t
A
_
÷1
A
t
¸
2. In the linear regression model (Assumption 4.1.1), the best unbiased
linear estimator is
¯
d =
_
A
t
L
÷1
A
_
÷1
A
t
L
÷1
¸ (4.11)
The …rst part of the GaussMarkov theorem is a limited e¢ciency justi…cation for the least
squares estimator. The justi…cation is limited because the class of models is restricted to ho
moskedastic linear regression and the class of potential estimators is restricted to linear unbiased
estimators. This latter restriction is particularly unsatisfactory as the theorem leaves open the
possibility that a nonlinear or biased estimator could have lower mean squared error than the
leastsquares estimator.
The second part of the theorem shows that in the (heteroskedastic) linear regression model,
the leastsquares estimator is ine¢cient. Within the class of linear unbiased estimators the best
estimator is (4.11) and is called the Generalized Least Squares (GLS) estimator. This estimator
is infeasible as the matrix L is unknown. This result does not suggest a practical alternative to
leastsquares. We return to the issue of feasible implementation of GLS in Section 7.1.
Proof of Theorem 4.5.1.1. Let A be any :/ function of A such that A
t
A = 1
I
. The variance
of the leastsquares estimator is (A
t
A)
÷1
o
2
and that of A
t
¸ is A
t
Ao
2
. It is su¢cient to show
that the di¤erence A
t
A÷(A
t
A)
÷1
is positive semide…nite. Set C = A÷A(A
t
A)
÷1
. Note that
A
t
C = 0. Then we calculate that
A
t
A÷
_
A
t
A
_
÷1
=
_
C +A
_
A
t
A
_
÷1
_
t
_
C +A
_
A
t
A
_
÷1
_
÷
_
A
t
A
_
÷1
= C
t
C +C
t
A
_
A
t
A
_
÷1
+
_
A
t
A
_
÷1
A
t
C
+
_
A
t
A
_
÷1
A
t
A
_
A
t
A
_
÷1
÷
_
A
t
A
_
÷1
= C
t
C
The matrix C
t
C is positive semide…nite (see Appendix A.7) as required.
The proof of Theorem 4.5.1.2 is left for Exercise 4.3.
51
4.6 Residuals
What are some properties of the residuals ^ c
i
= j
i
÷i
t
i
`
d and prediction errors ~ c
i
= j
i
÷i
t
i
`
d
(÷i)
,
at least in the context of the linear regression model?
Recall from (3.17) and (3.18) that we can write the residuals in vector notation as
` c = ¸ ÷A
`
d = A¸ = Ac
where A = 1
a
÷A(A
t
A)
÷1
A
t
is the matrix which projects on the the space orthogonal to the
columns of A. Using the properties of conditional expectation
E(` c [ A) = E(Ac [ A) = AE(c [ A) = 0
and
var (` c [ A) = var (Ac [ A) = A var {c j A) A = ALA (4.12)
where L is de…ned in (4.9).
We can simplify this expression under the assumption of conditional homoskedasticity
E
_
c
2
i
[ i
i
_
= o
2
.
In this case (4.12) simplies to
var (` c [ A) = Ao
2
.
In particular, for a single observation i, we obtain
var (^ c
i
[ A) = E
_
^ c
2
i
[ A
_
= (1 ÷/
ii
) o
2
(4.13)
since the diagonal elements of A are 1 ÷ /
ii
as de…ned in (3.19). Thus the residuals are het
eroskedastic even if the errors are homoskedastic.
Similarly, we can write the prediction errors ~ c
i
= (1 ÷/
ii
)
÷1
^ c
i
in vector notation. Set
A
+
= diag¦(1 ÷/
11
)
÷1
, .., (1 ÷/
aa
)
÷1
¦
Then we can write the prediction errors as
¯ c = A
+
A¸
= A
+
Ac.
We can calculate that
E(¯ c [ A) = A
+
AE(c [ A) = 0
and
var (¯ c [ A) = A
+
A var {c j A) AA
+
= A
+
ALAA
+
which simpli…es under homoskedasticity to
var (¯ c [ A) = A
+
AAA
+
o
2
= A
+
AA
+
o
2
.
The variance of the i’th prediction error is then
var (~ c
i
[ A) = E
_
~ c
2
i
[ A
_
= (1 ÷/
ii
)
÷1
(1 ÷/
ii
) (1 ÷/
ii
)
÷1
o
2
= (1 ÷/
ii
)
÷1
o
2
.
52
A residual with proper variance can be obtained by rescaling. The studentized residuals are
c
i
= (1 ÷/
i
)
÷1¸2
^ c
i
, (4.14)
and in vector notation
¯ c = ( c
1
, ..., c
a
)
t
= A
+1¸2
Ac.
From our above calculations, under homoskedasticity,
var (¯ c [ A) = A
+1¸2
AA
+1¸2
o
2
and
var ( c
i
[ A) = E
_
c
2
i
[ A
_
= o
2
(4.15)
and thus these rescaled residuals have the same bias and variance as the original errors when the
latter are homoskedastic.
4.7 Estimation of Error Variance
The error variance o
2
= Ec
2
i
can be a parameter of interest, even in a heteroskedastic regression
or a projection model. o
2
measures the variation in the “unexplained” part of the regression. Its
method of moments estimator (MME) is the sample average of the squared residuals:
^ o
2
=
1
:
a
i=1
^ c
2
i
and equals the MLE in the normal regression model (3.13).
In the linear regression model we can calculate the mean of ^ o
2
. From (3.18), the properties of
projection matrices and the trace operator, observe that
^ o
2
=
1
:
` c
t
` c =
1
:
c
t
AAc =
1
:
c
t
Ac =
1
:
tr
_
c
t
Ac
_
=
1
:
tr
_
Acc
t
_
.
Then
E
_
^ o
2
[ A
_
=
1
:
tr
_
E
_
Acc
t
[ A
__
=
1
:
tr
_
AE
_
cc
t
[ A
__
=
1
:
tr (AL) . (4.16)
Adding the assumption of conditional homoskedasticity E
_
c
2
i
[ i
i
_
= o
2
, so that L = 1
a
o
2
, then
(4.16) simpli…es to
E
_
^ o
2
[ A
_
=
1
:
tr
_
Ao
2
_
= o
2
_
: ÷/
:
_
,
the …nal equality by (3.16). This calculation shows that ^ o
2
is biased towards zero. The order of
the bias depends on /,:, the ratio of the number of estimated coe¢cients to the sample size.
53
Another way to see this is to use (4.13). Note that
E
_
^ o
2
[ A
_
=
1
:
a
i=1
E
_
^ c
2
i
[ A
_
=
1
:
a
i=1
(1 ÷/
ii
) o
2
=
_
: ÷/
:
_
o
2
using (3.20).
Since the bias takes a scale form, a classic method to obtain an unbiased estimator is by rescaling
the estimator. De…ne
:
2
=
1
: ÷/
a
i=1
^ c
2
i
. (4.17)
By the above calculation,
E
_
:
2
[ A
_
= o
2
(4.18)
so
E
_
:
2
_
= o
2
and the estimator :
2
is unbiased for o
2
. Consequently, :
2
is known as the “biascorrected estimator”
for o
2
and in empirical practice :
2
is the most widely used estimator for o
2
.
Interestingly, this is not the only method to construct an unbiased estimator for o
2
. An al
ternative unbiased estimator can be using the studentized residuals c
i
from (4.14), yielding the
estimator
o
2
=
1
:
a
i=1
c
2
i
=
1
:
a
i=1
(1 ÷/
ii
)
÷1
^ c
2
i
.
You can show (see Exercise 4.6) that
E
_
o
2
[ A
_
= o
2
(4.19)
and thus o
2
is unbiased for o
2
(in the homoskedastic linear regression model).
When the sample sizes are large and the number of regressors small, the estimators ^ o
2
, :
2
and
o
2
are likely to be close. For example, in the regression (3.10), ^ o, :, and o all equal 0.490. The
estimators are more likely to di¤er when : is small and / is large.
4.8 Covariance Matrix Estimation Under Homoskedasticity
For inference, we need an estimate of the covariance matrix X
^
o
of the leastsquares estimator.
In this section we consider estimation of X
^
o
in the homoskedastic regression model (4.1)(4.2)(4.3).
Under homoskedasticity, the covariance matrix takes the relatively simple form
X
^
f
=
_
1
:
A
t
A
_
÷1
o
2
.
which is known up to the unknown scale o
2
. In the previous section we discussed three estimators
of o
2
. The most commonly used choice is :
2
, leading to the classic covariance matrix estimator
´
X
0
^
f
=
_
1
:
A
t
A
_
÷1
:
2
. (4.20)
54
Since :
2
is conditionally unbiased for o
2
, it is simple to calculate that
´
X
0
^
f
is conditionally
unbiased for X
^
f
under the assumption of homoskedasticity:
E
_
´
X
0
^
f
[ A
_
=
_
1
:
A
t
A
_
÷1
E
_
:
2
[ A
_
=
_
1
:
A
t
A
_
÷1
o
2
= X
^
f
.
This estimator was the dominant covariance matrix estimator in applied econometrics in pre
vious generations, and is still the default in most regression packages.
If the estimator (4.20) is used, but the regression error is heteroskedastic, it is possible for
´
X
0
^
f
to be quite biased for the correct covariance matrix X
^
f
=
_
1
:
A
t
A
_
÷1
_
1
:
A
t
LA
__
1
:
A
t
A
_
÷1
.
For example, suppose / = 1 and o
2
i
= r
2
i
(extreme heteroskedasticity). The ratio of the true
variance of the leastsquares estimator to the expectation of the variance estimator is
X
^
f
E
_
´
X
0
^
f
[ A
_ =
1
:
a
i=1
r
4
i
o
2
1
:
a
i=1
r
2
i
·
Er
4
i
o
2
Er
2
i
=
Er
4
i
_
Er
2
i
_
2
.
(Notice that we use the fact that o
2
i
= r
2
i
implies o
2
= Eo
2
i
= Er
2
i
.) This is the kurtosis of
the regressor r
i
. As the kurtosis can be any number greater than one, we conclude that the bias
of
´
X
0
^
f
can be arbitrarily large. While this is an extreme and constructed example, the point is
that the classic covariance matrix estimator (4.20) may be quite biased when the homoskedasticity
assumption fails.
4.9 Covariance Matrix Estimation Under Heteroskedasticity
In the previous section we showed that that the classic covariance matrix estimator can be
highly biased if homoskedasticity fails. In this section we show how to contruct covariance matrix
estimators which do not require homoskedasticity.
Recall that the general form for the covariance matrix is
X
^
f
=
_
1
:
A
t
A
_
÷1
_
1
:
A
t
LA
__
1
:
A
t
A
_
÷1
.
This depends on the unknown matrix L which we can write as
L = diag
_
o
2
1
, ..., o
2
a
_
= E
_
cc
t
[ A
_
= E
_
diag
_
c
2
1
, ..., c
2
a
_
[ A
_
.
Thus L is the conditional mean of diag
_
c
2
1
, ..., c
2
a
_
, so the latter is an unbiased estimator for L.
Therefore, if the squared errors c
2
i
were observable, we could construct the unbiased estimator
X
ioco
^
f
=
_
1
:
A
t
A
_
÷1
_
1
:
A
t
diag
_
c
2
1
, ..., c
2
a
_
A
__
1
:
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
i
i
i
t
i
c
2
i
_
_
1
:
A
t
A
_
÷1
.
55
Indeed,
E
_
X
ioco
^
f
[ A
_
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
i
i
i
t
i
E
_
c
2
i
[ A
_
_
_
1
:
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
i
i
i
t
i
o
2
i
_
_
1
:
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
_
1
:
A
t
LA
__
1
:
A
t
A
_
÷1
= X
^
f
verifying that X
ioco
^
f
is unbiased for X
^
f
Since the errors c
2
i
are unobserved, X
ioco
^
f
is not a feasible estimator. To construct a feasible
estimator we can replace the errors with the leastsquares residuals ^ c
i
, the prediction errors ~ c
i
or
the unbiased residuals c
i
, e.g.
´
L = diag
_
^ c
2
1
, ..., ^ c
2
a
_
,
¯
L = diag
_
~ c
2
1
, ..., ~ c
2
a
_
,
L = diag
_
c
2
1
, ..., c
2
a
_
.
Substituting these matrices into the formula for X
^
o
we obtain the estimators
´
X
^
f
=
_
1
:
A
t
A
_
÷1
_
1
:
A
t
´
LA
__
1
:
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
i
i
i
t
i
^ c
2
i
_
_
1
:
A
t
A
_
÷1
,
¯
X
^
f
=
_
1
:
A
t
A
_
÷1
_
1
:
A
t
¯
LA
__
1
:
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
i
i
i
t
i
~ c
2
i
_
_
1
:
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
(1 ÷/
ii
)
÷2
i
i
i
t
i
^ c
2
i
_
_
1
:
A
t
A
_
÷1
,
and
X
^
f
=
_
1
:
A
t
A
_
÷1
_
1
:
A
t
LA
__
1
:
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
i
i
i
t
i
c
2
i
_
_
1
:
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
(1 ÷/
ii
)
÷1
i
i
i
t
i
^ c
2
i
_
_
1
:
A
t
A
_
÷1
.
The estimators
´
X
^
f
,
¯
X
^
f
, and X
^
f
are often called robust, heteroskedasticityconsistent, or heteroskedasticity
robust covariance matrix estimators. The estimator
´
X
^
f
was …rst developed by Eicker (1963), and
introduced to econometrics by White (1980), and is sometimes called the EickerWhite or White
56
covariance matrix estimator
1
. The estimator
¯
X
^
f
was introduced by Andrews (1991) based on the
principle of leaveoneout crossvalidation, and the estimator X
^
o
was introduced by Horn, Horn
and Duncan (1975) as a reducedbias covariance matrix estimator.
In general, the bias of the estimators
´
X
^
f
,
¯
X
^
f
and X
^
f
, is quite complicated, but they greatly
simplify under the assumption of homoskedasticity (4.3). For example, using (4.13),
E
_
´
X
^
f
[ A
_
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
i
i
i
t
i
E
_
^ c
2
i
[ A
_
_
_
1
:
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
i
i
i
t
i
(1 ÷/
ii
) o
2
_
_
1
:
A
t
A
_
÷1
=
_
1
:
A
t
A
_
÷1
o
2
÷
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
i
i
i
t
i
/
ii
_
_
1
:
A
t
A
_
÷1
o
2
<
_
1
:
A
t
A
_
÷1
o
2
= X
^
f
.
The inequality A < H when applied to matrices means that the matrix H÷A is positive de…nite,
which holds here since
a
i=1
i
i
i
t
i
/
ii
is positive de…nite. This calculation shows that
´
X
^
f
is biased
downwards.
Similarly, (again under homoskedasticity) we can calculate that
¯
X
^
f
is biased upwards, speci…
cally
E
_
¯
X
^
f
[ A
_
_
1
:
A
t
A
_
÷1
o
2
(4.21)
while the estimator X
^
f
is unbiased
E
_
X
^
f
[ A
_
=
_
1
:
A
t
A
_
÷1
o
2
. (4.22)
(See Exercise 4.7
It might seem rather odd to compare the bias of heteroskedasticityrobust estimators under the
assumption of homoskedasticity, but it does give us a baseline for comparison.
We have introduced four covariance matrix estimators,
´
X
0
^
f
,
´
X
^
f
,
¯
X
^
f
, and X
^
f
. Which should
you use? The classic estimator
´
X
0
^
f
is typically a poor choice, as it is only valid under the unlikely
homoskedasticity restriction. For this reason it is not typically used in contemporary economet
ric research. Of the three robust estimators,
´
X
^
f
is the most commonly used, as it is the most
straightforward and familiar. However,
¯
X
^
f
, and in particular X
^
f
, are perferred based on their
improved bias. Unfortunately, standard regression packages set the classic estimator
´
X
0
^
f
as the
default. As
¯
X
^
f
and X
^
f
are simple to implement, this should not be a barrier. For example, in
STATA, X
^
f
is implemented by selecting “Robust” standard errors and selecting the bias correction
option “1,(1 ÷/)”, or using the vce(hc2) option.
4.10 Standard Errors
A variance estimator such as
´
X
^
f
is an estimate of the variance of the distribution of
`
d. A
more easily interpretable measure of spread is its square root – the standard deviation. This is
1
Often, this estimator is rescaled by multiplying by the ad hoc bias adjustment
n
n k
in analogy to the bias
corrected error variance estimator.
57
so important when discussing the distribution of parameter estimates, we have a special name for
estimates of their standard deviation.
De…nition 4.10.1 A standard error :(
^
,) for an real
valued estimator
^
, is an estimate of the standard deviation
of the distribution of
^
,.
When d is a vector with estimate
`
d and covariance matrix estimate :
÷1
´
X
^
f
, standard errors
for individual elements are the square roots of the diagonal elements of :
÷1
´
X
^
f
. That is,
:(
^
,
)
) =
_
:
÷1 ´
X
^
o
j
= :
÷1¸2
_
_
´
X
^
f
_
))
.
As we discussed in the previous section, there are multiple possible covariance matrix estimators,
so standard errors are not unique. It is therefore important to understand what formula and method
is used by an author when studying their work. It is also important to understand that a particular
standard error may be relevant under one set of model assumptions, but not under another set of
assumptions.
4.11 Multicollinearity
If rank(A
t
A) < /, then
`
d is not de…ned
2
. This is called strict multicollinearity. This
happens when the columns of A are linearly dependent, i.e., there is some o ,= 0 such that
Ao = 0. Most commonly, this arises when sets of regressors are included which are identically
related. For example, if A includes both the logs of two prices and the log of the relative prices,
log(j
1
), log(j
2
) and log(j
1
,j
2
). When this happens, the applied researcher quickly discovers the
error as the statistical software will be unable to construct (A
t
A)
÷1
. Since the error is discovered
quickly, this is rarely a problem for applied econometric practice.
The more relevant situation is near multicollinearity, which is often called “multicollinearity”
for brevity. This is the situation when the A
t
A matrix is near singular, when the columns of A are
close to linearly dependent. This de…nition is not precise, because we have not said what it means
for a matrix to be “near singular”. This is one di¢culty with the de…nition and interpretation of
multicollinearity.
One implication of near singularity of matrices is that the numerical reliability of the calculations
is reduced. In extreme cases it is possible that the reported calculations will be in error.
A more relevant implication of near multicollinearity is that individual coe¢cient estimates will
be imprecise. We can see this most simply in a homoskedastic linear regression model with two
regressors
j
i
= r
1i
,
1
+r
2i
,
2
+c
i
,
and
1
:
A
t
A =
_
1 j
j 1
_
In this case
var
_
`
d [ A
_
=
o
2
:
_
1 j
j 1
_
÷1
=
o
2
:(1 ÷j
2
)
_
1 ÷j
÷j 1
_
.
2
See Appendix A.5 for the de…ntion of the rank of a matrix.
58
The correlation j indexes collinearity, since as j approaches 1 the matrix becomes singular. We
can see the e¤ect of collinearity on precision by observing that the variance of a coe¢cient esti
mate o
2
_
:
_
1 ÷j
2
_¸
÷1
approaches in…nity as j approaches 1. Thus the more “collinear” are the
regressors, the worse the precision of the individual coe¢cient estimates.
What is happening is that when the regressors are highly dependent, it is statistically di¢cult
to disentangle the impact of ,
1
from that of ,
2
. As a consequence, the precision of individual
estimates are reduced. The imprecision, however, will be re‡ected by large standard errors, so
there is no distortion in inference.
Some earlier textbooks overemphasized a concern about multicollinearity. A very amusing
parody of these texts appeared in Chapter 23.3 of Goldberger’s A Course in Econometrics (1991),
which is reprinted below. To understand his basic point, you should notice how the estimation
variance o
2
_
:
_
1 ÷j
2
_¸
÷1
depends equally and symmetrically on the the correlation j and the
sample size :.
Arthur S. Goldberger
Art Goldberger (19302009) was one of the most distinguished members of the Depart
ment of Economics at the University of Wisconsin. His PhD thesis developed an early
macroeconometric forecasting model (known as the KleinGoldberger model) but most of
his career focused on microeconometric issues. He was the leading pioneer of what has been
called the Wisconsin Tradition of empirical work – a combination of formal econometric
theory with a careful critical analysis of empirical work. Goldberger wrote a series of highly
regarded and in‡uential graduate econometric textbooks, including including Econometric
Theory (1964), Topics in Regression Analysis (1968), and A Course in Econometrics (1991).
59
Micronumerosity
Arthur S. Goldberger
A Course in Econometrics (1991), Chapter 23.3
Econometrics texts devote many pages to the problem of multicollinearity in multiple regres
sion, but they say little about the closely analogous problem of small sample size in estimation
a univariate mean. Perhaps that imbalance is attributable to the lack of an exotic polysyllabic
name for “small sample size.” If so, we can remove that impediment by introducing the term
micronumerosity.
Suppose an econometrician set out to write a chapter about small sample size in sampling
from a univariate population. Judging from what is now written about multicollinearity, the
chapter might look like this:
1. Micronumerosity
The extreme case, “exact micronumerosity,” arises when : = 0, in which case the sample
estimate of j is not unique. (Technically, there is a violation of the rank condition : 0 : the
matrix 0 is singular.) The extreme case is easy enough to recognize. “Near micronumerosity”
is more subtle, and yet very serious. It arises when the rank condition : 0 is barely
satis…ed. Near micronumerosity is very prevalent in empirical economics.
2. Consequences of micronumerosity
The consequences of micronumerosity are serious. Precision of estimation is reduced. There
are two aspects of this reduction: estimates of j may have large errors, and not only that,
but \
j
will be large.
Investigators will sometimes be led to accept the hypothesis j = 0 because j,^ o
j
is small,
even though the true situation may be not that j = 0 but simply that the sample data have
not enabled us to pick j up.
The estimate of j will be very sensitive to sample data, and the addition of a few more
observations can sometimes produce drastic shifts in the sample mean.
The true j may be su¢ciently large for the null hypothesis j = 0 to be rejected, even
though \
j
= o
2
,: is large because of micronumerosity. But if the true j is small (although
nonzero) the hypothesis j = 0 may mistakenly be accepted.
3. Testing for micronumerosity
Tests for the presence of micronumerosity require the judicious use of various …ngers. Some
researchers prefer a single …nger, others use their toes, still others let their thumbs rule.
A generally reliable guide may be obtained by counting the number of observations. Most
of the time in econometric analysis, when : is close to zero, it is also far from in…nity.
Several test procedures develop critical values :
+
, such that micronumerosity is a problem
only if : is smaller than :
+
. But those procedures are questionable.
4. Remedies for micronumerosity
If micronumerosity proves serious in the sense that the estimate of j has an unsatisfactorily
low degree of precision, we are in the statistical position of not being able to make bricks
without straw. The remedy lies essentially in the acquisition, if possible, of larger samples
from the same population.
But more data are no remedy for micronumerosity if the additional data are simply “more
of the same.” So obtaining lots of small samples from the same population will not help.
60
4.12 Omitted Variable Bias
Let the regressors be partitioned as
i
i
=
_
i
1i
i
2i
_
.
We can write the regression of j
i
on i
i
as
j
i
= i
t
1i
d
1
+i
t
2i
d
2
+c
i
(4.23)
E(i
i
c
i
) = 0.
Now suppose that instead of estimating equation (4.23) by leastsquares, we regress j
i
on i
1i
only. Perhaps this is done because the variables i
2i
are not in the data set, in order to reduce the
number of estimated parameters. E¤ectively, we are estimating the equation
j
i
= i
t
1i
_
1
+n
i
(4.24)
E(i
1i
n
i
) = 0
Notice that we have written the coe¢cient on i
1i
as _
1
rather than d
1
and the error as n
i
rather
than c
i
. This is because the model being estimated is di¤erent than (4.23). Goldberger (1991)
introduced the labels (4.23) the long regression and (4.24) the short regression to emphasize
the distinction.
Typically, d
1
,= _
1
, except in special cases. To see this, we calculate
_
1
=
_
E
_
i
1i
i
t
1i
__
÷1
E(i
1i
j
i
)
=
_
E
_
i
1i
i
t
1i
__
÷1
E
_
i
1i
_
i
t
1i
d
1
+i
t
2i
d
2
+c
i
__
= d
1
+
_
E
_
i
1i
i
t
1i
__
÷1
E
_
i
1i
i
t
2i
_
d
2
= d
1
+Id
2
where
I =
_
E
_
i
1i
i
t
1i
__
÷1
E
_
i
1i
i
t
2i
_
is the coe¢cient from a regression of i
2i
on i
1i
.
Observe that _
1
,= d
1
unless I = 0 or d
2
= 0. Thus the short and long regressions have the
same coe¢cient on i
1i
only under one of two conditions. First, the regression of i
2i
on i
1i
yields
a set of zero coe¢cients (they are uncorrelated), or second, the coe¢cient on i
2i
in (4.23) is zero.
In general, leastsquares estimation of (4.24) is an estimate of _
1
= d
1
+Id
2
rather than d
1
. The
di¤erence Id
2
is known as omitted variable bias. It is the consequence of omission of a relevant
correlated variable.
To avoid omitted variables bias the standard advice is to include potentially relevant variables
in the estimated model. By construction, the general model will be free of the omitted variables
problem. Typically there are limits, as many desired variables are not available in a given dataset.
In this case, the possibility of omitted variables bias should be acknowledged and discussed in the
course of an empirical investigation.
4.13 Normal Regression Model
In the special case of the normal linear regression model introduced in Section 3.11, we can derive
exact sampling distributions for the leastsquares estimator, residuals, and variance estimator.
In particular, under the normality assumption c
i
[ i
i
~ N
_
0, o
2
_
then we have the multivariate
implication
c [ A ~ N
_
0, 1
a
o
2
_
.
61
That is, the error vector c is independent of A and is normally distributed. Since linear functions
of normals are also normal, this implies that conditional on A
_
`
d ÷d
` c
_
=
_
(A
t
A)
÷1
A
t
A
_
c ~ N
_
0,
_
o
2
(A
t
A)
÷1
0
0 o
2
A
__
where A = 1
a
÷A(A
t
A)
÷1
A
t
. Since uncorrelated normal variables are independent, it follows
that
`
d is independent of any function of the OLS residuals including the estimated error variance
:
2
or ^ o
2
or prediction errors ¯ c.
The spectral decomposition of A yields
A = H
_
1
a÷I
0
0 0
_
H
t
(see equation (A.4)) where H
t
H = 1
a
. Let u = o
÷1
H
t
c ~ N(0, H
t
H) ~ N(0, 1
a
) . Then
:^ o
2
o
2
=
(: ÷/) :
2
o
2
=
1
o
2
` c
t
` c
=
1
o
2
c
t
Ac
=
1
o
2
c
t
H
_
1
a÷I
0
0 0
_
H
t
c
= u
t
_
1
a÷I
0
0 0
_
u
~ ¸
2
a÷I
,
a chisquare distribution with : ÷/ degrees of freedom.
Furthermore, if standard errors are calculated using the homoskedastic formula (4.20)
^
,
)
÷,
)
:(
^
,
)
)
=
^
,
)
÷,
)
:
_
_
(A
t
A)
÷1
_
))
~
N
_
0, o
2
_
(A
t
A)
÷1
_
))
_
_
o
2
a÷I
¸
2
a÷I
_
_
(A
t
A)
÷1
_
))
=
N(0, 1)
_
¸
2
nk
a÷I
~ t
a÷I
a t distribution with : ÷/ degrees of freedom.
Theorem 4.13.1 Normal Regression
In the linear regression model (Assumption 4.1.1) if c
i
is independent of
i
i
and distributed N
_
0, o
2
_
then
«
`
d ÷d ~ N
_
0, o
2
(A
t
A)
÷1
_
«
a^ o
2
o
2
=
(a÷I)c
2
o
2
~ ¸
2
a÷I
«
^
o
j
÷o
j
c(
^
o
j
)
~ t
a÷I
These are the exact …nitesample distributions of the leastsquares estimator and variance esti
mators, and are the basis for traditional inference in linear regression.
62
While elegant, the di¢culty in applying Theorem 4.13.1 is that the normality assumption is
too restrictive to be empirical plausible, and therefore inference based on Theorem 4.13.1 has no
guarantee of accuracy. We develop a more broadlyapplicable inference theory based on large
sample (asymptotic) approximations in the following chapter.
63
Exercises
Exercise 4.1 Explain the di¤erence between
1
a
a
i=1
i
i
i
t
i
and E(i
i
i
t
i
) .
Exercise 4.2 True or False. If j
i
= r
i
, + c
i
, r
i
¸ R, E(c
i
[ r
i
) = 0, and ^ c
i
is the OLS residual
from the regression of j
i
on r
i
, then
a
i=1
r
2
i
^ c
i
= 0.
Exercise 4.3 Prove Theorem 4.5.1.2.
Exercise 4.4 In a linear model
¸ = Ad +c, E(c [ A) = 0, var (c [ A) = o
2
D
with D known, the GLS estimator is
¯
d =
_
A
t
D
÷1
A
_
÷1
_
A
t
D
÷1
¸
_
.
the residual vector is ` c = ¸ ÷A
¯
d, and an estimate of o
2
is
:
2
=
1
: ÷/
` c
t
D
÷1
` c.
(a) Why is this a reasonable estimator for o
2
?
(b) Prove that ` c = A
1
c, where A
1
= 1 ÷A
_
A
t
D
÷1
A
_
÷1
A
t
D
÷1
.
(c) Prove that A
t
1
D
÷1
A
1
= D
÷1
÷D
÷1
A
_
A
t
D
÷1
A
_
÷1
A
t
D
÷1
.
Exercise 4.5 Let (j
i
, i
i
) be a random sample with E(¸ [ A) = Ad. Consider the Weighted
Least Squares (WLS) estimator of d
¯
d =
_
A
t
MA
_
÷1
_
A
t
M¸
_
where M = diag (n
1
, ..., n
a
) and n
i
= r
÷2
)i
, where r
)i
is one of the i
i
.
(a) In which contexts would
¯
d be a good estimator?
(b) Using your intuition, in which situations would you expect that
¯
d would perform better than
OLS?
Exercise 4.6 Show (4.19) in the homoskedastic regression model.
Exercise 4.7 Show (4.21) and (4.22) in the homoskedastic regression model.
64
Chapter 5
Asymptotic Theory
5.1 Introduction
As discussed in Section 4.2, the OLS estimator
`
d is has an unknown statistical distribution. In
ference (con…dence intervals and hypothesis testing) requires useful approximations to the sampling
distribution. The most widely used and versatile method is asymptotic theory, which approximates
sampling distributions by taking the limit of the …nite sample distribution as the sample size : tends
to in…nity. The primary tools of asymptotic theory are the weak law of large numbers (WLLN),
central limit theorem (CLT), and continuous mapping theorem (CMT). With these tools we can
approximate the sampling distributions of most econometric estimators.
It turns out that most of this theory equally applies to the projection model and the linear
conditional mean model, and therefore the results in this Chapter will be stated for the broader
projection model unless otherwise stated. Throughout this chapter we maintain the following.
Assumption 5.1.1 Linear Projection Model
The observations (j
i
, i
i
) come from a random sample with …nite second
moments
Ej
2
i
< ·
and
Er
2
)i
< ·
for , = 1, ..., /, and an invertible design matrix
Q = E
_
i
i
i
t
i
_
0.
From Theorems 2.9.1 and 2.9.2, under Assumtpion 5.1.1 the variables satisfy the linear projec
tion equation
j
i
= i
t
i
d +c
i
E(i
i
c
i
) = 0
d =
_
E
_
ii
t
__
÷1
E(ij) .
A review of the most important tools in asymptotic theory is contained in Appendix C.
5.2 Weak Law of Large Numbers
At the beginning of Chapter 4, we showed in Figure 4.1 how the sampling density of the least
square estimator varies with the sample size :. It is possible to see in the …gure that the sampling
65
density concentrates about the true parameter value as the sample size increases. This is the
property of estimator consistency – convergence in probability to the true parameter value. In this
section we review the core theory explaining this phenomenon.
At its heart, estimator consistency is the e¤ect of sample size on the variance of the sample
mean. To review, suppose n
i
is an iid random variable with …nite mean En
i
= j and variance
E(n
i
÷j)
2
= o
2
, and consider the sample mean ^ j =
1
a
a
i=1
n
i
. The mean and variance of ^ j are
E^ j = E
1
:
a
i=1
n
i
=
1
:
a
i=1
En
i
= j
and
var(^ j) = E(^ j ÷j)
2
= E
_
1
:
a
i=1
(n
i
÷j)
_
2
=
1
:
2
a
i=1
a
)=1
E(n
i
÷j) (n
)
÷j) =
1
:
2
a
i=1
o
2
=
o
2
:
where the secondtolast inequality is because E(n
i
÷j) (n
)
÷j) = o
2
for i = , yet E(n
i
÷j) (n
)
÷j) =
0 for i ,= , due to independence.
We see that var(^ j) = o
2
,: which is decreasing in : (as long as o
2
< ·). It follows that
var(^ j) = o
2
,: ÷ 0 as : ÷ ·. This means that the distribution of ^ j is increasingly concentrated
about its mean j as : increases.
To be more precise, for any c 0, an application of Chebyshev’s inequality yields
P([^ j ÷j[ c) _
var(^ j)
c
2
=
o
2
,:
c
2
÷0
as : ÷·. This says that the probability that ^ j di¤ers from j by more than c declines to zero as
: ÷ ·. Equivalently, the distribution of ^ j becomes concentrated within the region [j ÷ c, j + c]
as : diverges. As this holds for any c (even an extremely small value) it is reasonable to say that
the distribution of ^ j concentrates about j as : increases.
We have described three distinct but intertwined concepts: convergence in probability (concen
tration of a sampling distribution), consistency (convergence in probability of an estimator to the
parameter value), and the weak law of large numbers (convergence in probability of the sample
mean). We now state these concepts formally.
De…nition 5.2.1 We say that a random variable .
a
¸ R converges in
probability to . as : ÷·, denoted .
a
j
÷÷., if for all c 0,
lim
a÷o
P([.
a
÷.[ c) = 0.
De…nition 5.2.2 An estimator
`
0 of a parameter 0 is consistent if
`
0
j
÷÷
0 as : ÷·
Consistency is a good property for an estimator to possess. It means that for any given data
distribution, there is a sample size : su¢ciently large such that the estimator
^
0 will be arbitrarily
close to the true value 0 with high probability.
Above, we showed that the sample mean ^ j converges in probability to the population mean j
as : ÷·, and is thus consistent for j. This result is known as the weak law of large numbers.
66
Theorem 5.2.1 Weak Law of Large Numbers (WLLN)
If n
i
¸ R is iid and E[n
i
[ < ·, then
n
a
=
1
:
a
i=1
n
i
j
÷÷E(n
i
)
as : ÷· .
Theorem 5.2.2 WLLN for Random Matrices
If 1
i
¸ R
Iv
is iid and E[n
)i
[ < · for 1 _ , _ / and 1 _  _ r then
1
a
=
1
:
a
i=1
1
i
j
÷÷E(1
i
)
as : ÷·.
In our derivation, we proved the WLLN under the assumption that n
i
has a …nite variance.
Theorem 5.2.1 states that the WLLN holds under the weaker assumption of a …nite mean. We
provide a proof of this more general result for the technicallyinclinded readers.
Proof of Theorem 5.2.1: Without loss of generality, we can assume E(n
i
) = 0 by recentering n
i
on its expectation.
We need to show that for all c 0 and j 0 there is some · < · so that for all : _ ·,
P([n
a
[ c) _ j. Fix c and j. Set  = cj,3. Pick C < · large enough so that
E([n
i
[ 1 ([n
i
[ C)) _  (5.1)
(where 1 () is the indicator function) which is possible since E[n
i
[ < ·. De…ne the random variables
n
i
= n
i
1 ([n
i
[ _ C) ÷E(n
i
1 ([n
i
[ _ C))
.
i
= n
i
1 ([n
i
[ C) ÷E(n
i
1 ([n
i
[ C)) .
By the Triangle Inequality (A.8), the Expectation Inequality (C.2), and (5.1),
E[.
a
[ = E
¸
¸
¸
¸
¸
1
:
a
i=1
.
i
¸
¸
¸
¸
¸
_
1
:
a
i=1
E[.
i
[
= E[.
i
[
_ E[n
i
[ 1 ([n
i
[ C) +[E(n
i
1 ([n
i
[ C))[
_ 2E[n
i
[ 1 ([n
i
[ C)
_ 2. (5.2)
67
By Jensen’s Inequality (C.1), the fact that the n
i
are iid and mean zero, and the bound [n
i
[ _ 2C,
(E[n
a
[)
2
_ En
2
a
=
En
2
i
:
_
4C
2
:
_ 
2
(5.3)
the …nal inequality holding for : _ 4C
2
,
2
= 36C
2
,c
2
j
2
.
Finally, by Markov’s Inequality (C.6), the fact that n
a
= n
a
+.
a
, the triangle inequality, (5.2)
and (5.3),
P([n
a
[ c) _
E[n
a
[
c
_
E[n
a
[ +E[.
a
[
c
_
3
c
= j,
the equality by the de…nition of . We have shown that for any c 0 and j 0 then for all
: _ 36C
2
,c
2
j
2
, P([n
a
[ c) _ j, as needed.
Proof of Theorem 5.2.2: A random vector or matrix converges in probability to its limit if (and
only if) all elements in the vector or matrix converge in probability. Since each element of 1
i
has
a …nite mean by assumption, Theorem 5.2.1 applies to each element and therefore converges in
probability, as needed.
Jacob Bernoulli
Jacob Bernoulli (1654 1705) of Switzerland was one of many famous mathematicians in the
Bernoulli family. One of Jacob Bernoulli’s important contributions was the …rst proof of
the weak law of large numbers, published in his posthumous masterpiece Ars Conjectandi.
5.3 Consistency of LeastSquares Estimation
In this section we use the WLLN and continuous mapping theorem (CMT, Theorem C.3.1) to
show that the leastsquares estimator
`
d is consistent for the projection coe¢cient d.
This derivation is based on three key components. First, the OLS estimator can be written as
a continuous function of a set of sample moments. Second, the weak law of large numbers (WLLN,
Theorem 5.2.1) shows that sample moments converge in probability to population moments. And
third, the continuous mapping theorem (CMT, Theorem C.3.1) states that continuous functions
preserve convergence in probability. We now explain each step in brief and then in greater detail.
First, observe that the OLS estimator
`
d =
_
1
:
a
i=1
i
i
i
t
i
_
÷1
_
1
:
a
i=1
i
i
j
i
_
is a function of the sample moments
1
a
a
i=1
i
i
i
t
i
and
1
a
a
i=1
i
i
j
i
.
Second, by an application of the WLLN these sample moments converge in probability to the
population moments. Speci…cally, as : ÷·,
1
:
a
i=1
i
i
i
t
i
j
÷÷E
_
i
i
i
t
i
_
= Q (5.4)
68
and
1
:
a
i=1
i
i
j
i
j
÷÷E(i
i
j
i
) . (5.5)
Third, the CMT to allows us to combine these equations to show that
`
d converges in probability
to d. Speci…cally, as : ÷·,
`
d =
_
1
:
a
i=1
i
i
i
t
i
_
÷1
_
1
:
a
i=1
i
i
j
i
_
j
÷÷
_
E
_
i
i
i
t
i
__
÷1
(E(i
i
j
i
))
= d. (5.6)
We have shown that
`
d
j
÷÷d, as : ÷·. In words, the OLS estimator converges in probability to
the projection coe¢cient vector d as the sample size : gets large.
For a slightly di¤erent demonstration of this result, recall that (4.6) implies that
`
d ÷d =
_
1
:
a
i=1
i
i
i
t
i
_
÷1
_
1
:
a
i=1
i
i
c
i
_
. (5.7)
The WLLN and (2.14) imply
1
:
a
i=1
i
i
c
i
j
÷÷E(i
i
c
i
) = 0. (5.8)
Therefore
`
d ÷d =
_
1
:
a
i=1
i
i
i
t
i
_
÷1
_
1
:
a
i=1
i
i
c
i
_
j
÷÷Q
÷1
0
= 0
which is the same as
`
d
j
÷÷d.
Theorem 5.3.1 Consistency of LeastSquares
Under Assumption 5.1.1,
`
d
j
÷÷d as : ÷·.
Theorem 5.3.1 states that the OLS estimator
`
d converges in probability to d as : diverges to
positive in…nity, and thus
`
d is consistent for d.
We now explain the application of the WLLN in (5.4) and (5.5) and the CMT in (5.6) in greater
detail.
The weak law of large numbers (Theorem 5.2.1, Section 5.2) says that when when random vari
ables are iid and have …nite mean, then sample averages converge in probability to their population
mean. Thus to apply the WLLN to (5.4) and (5.5) it is su¢cient to verify that the elements of the
random matrices i
i
i
t
i
and i
i
j
i
are iid and have …nite mean. First, these random variables are iid
because the observations (j
i
, i
i
) are mutually independent and identically distributed (Assumption
1.5.1), and so are any functions of the observations, including i
i
i
t
i
and i
i
j
i
. Second, Assumption
69
5.1.1 is su¢cient for 1 _ , _ / and 1 _  _ /, E[r
)i
r
i
[ < · and E[r
)i
j
i
[ < ·. Indeed, by an
application of the CauchySchwarz inequality and Assumption 5.1.1
E[r
)i
r
i
[ _
_
Er
2
)i
Er
2
i
_
1¸2
< ·
and
E[r
)i
j
i
[ _
_
Er
2
)i
Ej
2
i
_
1¸2
< ·.
We have veri…ed the conditions for the WLLN, and thus (5.4) and (5.5).
The …nal step of the proof is the application of the continuous mapping theorem to obtain (5.6).
To fully understand its application we walk through it in detail. We can write
`
d =
_
1
:
a
i=1
i
i
i
t
i
_
÷1
_
1
:
a
i=1
i
i
j
i
_
= j
_
1
:
a
i=1
i
i
i
t
i
,
1
:
a
i=1
i
i
j
i
_
where j (A, I) = A
÷1
I is a function of A and I. The function j (A, I) is a continuous function
of A and I at all values of the arguments such that A
÷1
exists. Assumption 5.1.1 implies that
Q
÷1
exists and thus j (A, I) is continuous at A = Q. Hence by the continuous mapping theorem
(Theorem C.3.1), as : ÷·,
`
d = j
_
1
:
a
i=1
i
i
i
t
i
,
1
:
a
i=1
i
i
j
i
_
j
÷÷j (Q, E(i
i
j
i
))
= E
_
i
i
i
t
i
_
÷1
E(i
i
j
i
)
= d.
This completes the proof of Theorem 5.3.1.
5.4 Asymptotic Normality
We started this Chapter discussing the need for an approximation to the distribution of the OLS
estimator
`
d. In Section 5.3 we showed that
`
d converges in probability to d. Consistency is a useful
…rst step, but in itself does not provide a useful approximation to the distribution of the estimator.
In this Section we derive an approximation typically called the asymptotic distribution.
The derivation starts by writing the estimator as a function of sample moments. One of the
moments must be written as a sum of zeromean random vectors and normalized so that the central
limit theorem can be applied. The steps are as follows.
Take equation (5.7) and multiply it by
_
:. This yields the expression
_
:
_
`
d ÷d
_
=
_
1
:
a
i=1
i
i
i
t
i
_
÷1
_
1
_
:
a
i=1
i
i
c
i
_
. (5.9)
This shows that the normalized and centered estimator
_
:
_
`
d ÷d
_
is a function of the sample
average
1
a
a
i=1
i
i
i
t
i
and the normalized sample average
1
_
a
a
i=1
i
i
c
i
. Furthermore, the latter has
mean zero so the central limit theorem (CLT) applies.
70
Central Limit Theorem (Theorem C.2.1)
If u
i
¸ R
I
is iid, Eu
i
= 0 and En
2
)i
< · for , = 1, ..., /, then as : ÷·
1
_
:
a
i=1
u
i
o
÷÷N
_
0, E
_
u
i
u
t
i
__
.
For our application, u
i
= i
i
c
i
which is iid (since the observations are iid) and mean zero (since
E(i
i
c
i
) = 0). We calculate that E(u
i
u
t
i
) = E
_
i
i
i
t
i
c
2
i
_
. By the CLT we conclude
1
_
:
a
i=1
i
i
c
i
o
÷÷N(0, D) (5.10)
as : ÷·, where
D = E
_
i
i
i
t
i
c
2
i
_
. (5.11)
Putting these steps together, using (5.4), (5.9), and (5.10),
_
:
_
`
d ÷d
_
o
÷÷Q
÷1
N(0, D)
= N
_
0, Q
÷1
DQ
÷1
_
as : ÷ ·, where the …nal equality follows from the property that linear combinations of normal
vectors are also normal (Theorem B.9.1).
Formally, (5.10) requires that the elements of u
i
= i
i
c
i
have …nite variances. Indeed, if this is
not true then (5.11) is not well de…ned and (5.10) does not make sense. A su¢cient condition can
be found as follows. For any , = 1, ..., /, by the CauchySchwarz Inequality (C.3), note that
E[r
)i
c
i
[
2
= E
¸
¸
r
2
)i
c
2
i
¸
¸
_
_
Er
4
)i
_
1¸2
_
Ec
4
i
_
1¸2
(5.12)
which is …nite if r
)i
and c
i
have …nite fourth moments. As c
i
is a linear combination of j
i
and i
i
,
it is su¢cient that the observables have …nite fourth moments.
Assumption 5.4.1 In addition to Assumption 5.1.1, Ej
4
i
< · and for
, = 1, ..., /, Er
4
)i
< ·.
We have derived the asymptotic normal approximation to the distribution of the leastsquares
estimator.
Theorem 5.4.1 Asymptotic Normality of LeastSquares Estimator
Under Assumption 5.4.1, as : ÷·
_
:
_
`
d ÷d
_
o
÷÷N(0, X
f
)
where
X
f
= Q
÷1
DQ
÷1
.
71
As X
f
is the variance of the asymptotic distribution of
_
:
_
`
d ÷d
_
, X
f
is often referred to as
the asymptotic covariance matrix of
`
d. The expression X
f
= Q
÷1
DQ
÷1
is called a sandwich
form.
Theorem 5.4.1 states that the sampling distribution of the leastsquares estimator, after rescal
ing, is approximately normal when the sample size : is su¢ciently large. This holds true for all
joint distributions of (j
i
, i
i
) which satisfy the conditions of Assumption 5.4.1. However, for any
…xed : the sampling distribution of
`
d can be arbitrarily far from the normal distribution. In Figure
4.1 we have already seen a simple example where the leastsquares estimate is quite asymmetric
and nonnormal even for reasonably large sample sizes.
There is a special case where D and X
f
simplify. We say that c
i
is a Homoskedastic Pro
jection Error when
cov(i
i
i
t
i
, c
2
i
) = 0. (5.13)
Condition (5.13) holds in the homoskedastic linear regression model, but is somewhat broader.
Under (5.13) the asymptotic variance formulas simplify as
D = E
_
i
i
i
t
i
_
1
_
c
2
i
_
= Qo
2
(5.14)
X
f
= Q
÷1
DQ
÷1
= Q
÷1
o
2
= X
0
f
(5.15)
In (5.15) we de…ne X
0
f
= Q
÷1
o
2
whether (5.13) is true or false. When (5.13) is true then X
f
= X
0
f
,
otherwise X
f
,= X
0
f
. We call X
0
the homoskedastic covariance matrix.
The asymptotic distribution of Theorem 5.4.1 is commonly used to approximate the …nite
sample distribution of
_
:
_
`
d ÷d
_
. The approximation may be poor when : is small. How large
should : be in order for the approximation to be useful? Unfortunately, there is no simple answer
to this reasonable question. The trouble is that no matter how large is the sample size, the
normal approximation is arbitrarily poor for some data distribution satisfying the assumptions.
We illustrate this problem using a simulation. Let j
i
= ,
0
+ ,
1
r
i
+ c
i
where r
i
is N(0, 1) , and
c
i
is independent of r
i
with the Double Pareto density )(c) =
c
2
[c[
÷c÷1
, [c[ _ 1. If c 2 the
error c
i
has zero mean and variance c,(c ÷ 2). As c approaches 2, however, its variance diverges
to in…nity. In this context the normalized leastsquares slope estimator
_
:
c÷2
c
_
^
,
2
÷,
2
_
has the
N(0, 1) asymptotic distibution for any c 2. In Figure 5.1 we display the …nite sample densities
of the normalized estimator
_
:
c÷2
c
_
^
,
2
÷,
2
_
, setting : = 100 and varying the parameter c.
For c = 3.0 the density is very close to the N(0, 1) density. As c diminishes the density changes
signi…cantly, concentrating most of the probability mass around zero.
Vilfredo Pareto
Vilfredo Pareto (18481923) of Italy was a major economic theorist, introducing the eco
nomic concept of Pareto e¢ciency. His major econometric contribution was the Pareto
(or power law) distribution which is commonly used to model the empirical distribution of
wealth.
Another example is shown in Figure 5.2. Here the model is j
i
= , +c
i
where (5.16)
c
i
=
n
I
i
÷E
_
n
I
i
_
_
E
_
n
2I
i
_
÷
_
E
_
n
I
i
__
2
_
1¸2
(5.16)
72
Figure 5.1: Density of Normalized OLS estimator with Double Pareto Error
and n
i
~ N(0, 1). We show the sampling distribution of
_
:
_
^
, ÷,
_
setting : = 100, for / = 1, 4,
6 and 8. As / increases, the sampling distribution becomes highly skewed and nonnormal. The
lesson from Figures 5.1 and 5.2 is that the N(0, 1) asymptotic approximation is never guaranteed
to be accurate.
5.5 Consistency of Sample Variance Estimators
Using the methods of Section 5.3 we can show that the estimators ^ o
2
and :
2
are consistent for
o
2
.
Theorem 5.5.1 Under Assumption 5.1.1, ^ o
2
j
÷÷ o
2
and :
2
j
÷÷ o
2
as
: ÷·.
One implication of this theorem is that multiple estimators can be consistent for the sample
population parameter. While ^ o
2
and :
2
are unequal in any given application, they are close in
value when : is very large.
Proof of Theorem 5.5.1. Note that
^ c
i
= j
i
÷i
t
i
`
d
= c
i
+i
t
i
d ÷r
t
i
`
d
= c
i
÷i
t
i
_
`
d ÷d
_
.
Thus
^ c
2
i
= c
2
i
÷2c
i
i
t
i
_
`
d ÷d
_
+
_
`
d ÷d
_
t
i
i
i
t
i
_
`
d ÷d
_
(5.17)
73
Figure 5.2: Density of Normalized OLS estimator with error process (5.16)
and
^ o
2
=
1
:
a
i=1
^ c
2
i
=
1
:
a
i=1
c
2
i
÷2
_
1
:
a
i=1
c
i
i
t
i
_
_
`
d ÷d
_
+
_
`
d ÷d
_
t
_
1
:
a
i=1
i
i
i
t
i
_
_
`
d ÷d
_
j
÷÷o
2
as : ÷·, the last line using the WLLN, (5.4), (5.8) and Theorem 5.3.1. Thus ^ o
2
is consistent for
o
2
.
Finally, since :,(: ÷/) ÷1 as : ÷·, it follows that as : ÷·,
:
2
=
_
:
: ÷/
_
^ o
2
j
÷÷o
2
.
5.6 Consistent Covariance Matrix Estimation
In Sections 4.8 and 4.9 we introduced estimators of the …nitesample covariance matrix of the
leastsquares estimator in the regression model. In this section we show that these estimators, when
normalized, are consistent for the asymptotic covariance matrix.
First, consider
´
X
0
^
f
, the covariance matrix estimate constructed under the assumption of ho
moskedasticity. Writing
`
Q =
1
:
a
i=1
i
i
i
t
i
=
1
:
A
t
A
as the moment estimator of Q, we can write the covariance matrix estimator as
´
X
0
^
f
=
_
1
:
A
t
A
_
÷1
:
2
=
`
Q
÷1
:
2
.
74
Since
`
Q
j
÷÷Q and :
2
j
÷÷o
2
(see (5.4) and Theorem 5.5.1), and the invertibility of Q (Assumption
5.1.1), it follows that
´
X
0
^
f
=
`
Q
÷1
:
2
j
÷÷Q
÷1
o
2
= X
0
f
so that
´
X
0
^
f
is consistent for X
0
f
, the homoskedastic covariance matrix.
Theorem 5.6.1 Under Assumption 5.1.1,
´
X
0
^
f
j
÷÷X
0
f
as : ÷·.
Now consider
´
X
0
^
f
, the White covariance matrix estimator. Writing
`
D =
1
:
a
i=1
i
i
i
t
i
^ c
2
i
(5.18)
as the moment estimator for D = E
_
i
i
i
t
i
c
2
i
_
, then
´
X
^
f
=
_
1
:
A
t
A
_
÷1
_
1
:
a
i=1
i
i
i
t
i
^ c
2
i
_
_
1
:
A
t
A
_
÷1
=
`
Q
÷1
`
D
`
Q
÷1
.
With some work, we can show that
`
D is consisent for D. Combined with the consistency of
`
Q for
Q and the invertibility of Q we …nd that
´
X
^
f
converges in probability to Q
÷1
DQ
÷1
= X
f
.
Theorem 5.6.2 Under Assumption 5.4.1,
`
D
j
÷÷ D and
´
X
^
f
j
÷÷ X
f
as
: ÷·.
To illustrate, we return to the log wage regression (3.9) of Section 3.3. We calculate that
:
2
= 0.20 and
`
D =
_
0.199 2.80
2.80 40.6
_
.
Therefore the two covariance matrix estimates are
´
X
0
^
f
=
_
1 14.14
14.14 205.83
_
÷1
0.20 =
_
6.98 ÷0.480
÷0.480 .039
_
and
`
X
f
=
_
1 14.14
14.14 205.83
_
÷1
_
.199 2.80
2.80 40.6
__
1 14.14
14.14 205.83
_
÷1
=
_
7.20 ÷0.493
÷0.493 0.035
_
.
In this case the two estimates are quite similar. The (White) standard errors for
^
,
0
are
_
7.2,988 =
.085 and that for
^
,
1
is
_
.035,988 = .006. We can write the estimated equation with standard errors
using the format
\
log(\aqc) = 1.33
(.08)
+ 0.115
(.006)
1dncatio:.
75
Proof of Theorem 5.6.2. We …rst show
`
D
j
÷÷D. Using (5.17)
`
D =
1
:
a
i=1
i
i
i
t
i
^ c
2
i
=
1
:
a
i=1
i
i
i
t
i
c
2
i
÷
2
:
a
i=1
i
i
i
t
i
_
`
d ÷d
_
t
i
i
c
i
+
1
:
a
i=1
i
i
i
t
i
_
_
`
d ÷d
_
t
i
i
_
2
. (5.19)
We now examine each / / sum on the righthandside of (5.19) in turn.
Take the …rst term on the righthandside of (5.19). The ,’th element of i
i
i
t
i
c
2
i
is r
)i
r
i
c
2
i
.
Using the CauchySchwarz Inequality (C.3) twice and Assumption 5.4.1,
E
¸
¸
r
)i
r
i
c
2
i
¸
¸
_
_
Er
2
)i
r
2
i
_
1¸2
_
Ec
4
i
_
1¸2
_
_
Er
4
)i
_
1¸4
_
Er
4
i
_
1¸4
_
Ec
4
i
_
1¸2
.
Since this expectation is …nite, we can apply the WLLN (Theorem 5.2.1) to …nd that
1
:
a
i=1
i
i
i
t
i
c
2
i
j
÷÷E
_
i
i
i
t
i
c
2
i
_
= D.
Now take the second term on the righthandside of (5.19). Applying the Triangle Inequality
(A.8) to the matrix Euclidean norm, the Matrix Schwarz Inequality (A.7), equation (A.5) and the
Schwarz Inequality (A.6)
_
_
_
_
_
2
:
a
i=1
i
i
i
t
i
_
`
d ÷d
_
t
i
i
c
i
_
_
_
_
_
_
2
:
a
i=1
_
_
_
_
i
i
i
t
i
_
`
d ÷d
_
t
i
i
c
i
_
_
_
_
_
2
:
a
i=1
_
_
i
i
i
t
i
_
_
¸
¸
¸
¸
_
`
d ÷d
_
t
i
i
¸
¸
¸
¸
[c
i
[
_
_
2
:
a
i=1
i
i

3
[c
i
[
_
_
_
_
`
d ÷d
_
_
_. (5.20)
Using Holder’s inequality (C.4) and Assumption 5.4.1,
E
_
i
i

3
[c
i
[
_
_
_
Ei
i

4
_
3¸4 _
E
¸
¸
c
4
i
¸
¸
_
1¸4
< ·.
By the WLLN
1
:
a
i=1
i
i

3
[c
i
[
j
÷÷E
_
i
i

3
[c
i
[
_
< ·.
Since
`
d÷d
j
÷÷0 it follows that (5.20) converges in probability to zero. This shows that the second
term on the righthandside of (5.19) converges in probability to zero.
We now take the third term in (5.19). Again by the Triangle Inequality, the Matrix Schwarz
Inequality, (A.5) and the Schwarz Inequality
_
_
_
_
_
1
:
a
i=1
i
i
i
t
i
_
_
`
d ÷d
_
t
i
i
_
2
_
_
_
_
_
_
1
:
a
i=1
_
_
i
i
i
t
i
_
_
_
_
`
d ÷d
_
t
i
i
_
2
_
1
:
a
i=1
i
i

4
_
_
_
`
d ÷d
_
_
_
j
÷÷0
76
the …nal convergence since
`
d ÷ d
j
÷÷ 0 and
1
a
a
i=1
i
i

4
j
÷÷ 1 i
i

4
< · under Assumption
5.4.1. This shows that the third term on the righthandside of (5.19) converges in probability to
zero.
Considering the three terms on the righthandside of (5.19), we have shown that the …rst
term converges in probability to D, and the second and third converge in probability to zero. We
conclude that
`
D
µ
! D as claimed.
Finally, combined with (5.4) and the invertibilility of Q,
`
X
f
=
`
Q
÷1
`
D
`
Q
÷1 µ
! Q
1
DQ
1
= X
f
,
from which it follows that
`
X
f
j
÷÷X
f
as : ÷·.
5.7 Functions of Parameters
Sometimes we are interested in some lowerdimensional function of the parameter vector d =
(,
1
, ..., ,
I
). For example, we may be interested in a single coe¢cient ,
)
or a ratio ,
)
,,

. In these
cases we can write the parameter of interest as a function of d. Let l : R
I
÷ R
q
denote this
function and let
0 = l(d)
denote the parameter of interest. The estimate of 0 is
`
0 = l(
`
d).
What is the asymptotic distribution of
`
0? Assume that l(d) is di¤erentiable at the true value
of d. By a …rstorder Taylor series approximation:
l(
`
d) · l(d) +H
t
f
_
`
d ÷d
_
.
where
H
f
=
0
0d
l(d) / ¡.
Thus
_
:
_
`
0 ÷0
_
=
_
:
_
l(
`
d) ÷l(d)
_
· H
t
f
_
:
_
`
d ÷d
_
o
÷÷H
t
f
N(0, X
f
)
= N(0, X
0
) . (5.21)
where
X
0
= H
t
f
X
f
H
f
. (5.22)
The asymptotic approximation (5.21) is often called the delta method because it approximates
the distribution of
`
0 by a …rstorder expansion. It shows that (at least approximately), nonlinear
functions of asymptotically normal estimators are themselves asymptotically normally distributed.
It is a very powerful result, as most parameters of interest can be written in this form.
In many cases, the function l(d) is linear:
l(d) = H
t
d
for some / ¡ matrix H. In this case, H
f
= H.
77
In particular, if H is a “selector matrix”
H =
_
1
0
_
(5.23)
so that if d = (d
1
, d
2
), then 0 = H
t
d = d
1
and
X
0
=
_
1 0
_
X
f
_
1
0
_
= X
11
,
the upperleft block of X
f
. In other words, (5.21)(5.22) in this case is
_
:
_
`
d
1
÷d
1
_
o
÷÷N(0, X
11
)
where
X
11
= [X ]
11
How do we estimate the covariance matrix for
`
0? From (5.22) we see we need an estimate of
H
f
and X
f
. We already have an estimate of the latter,
`
X
^
f
. To estimate H
f
we use
´
H
f
=
0
0d
l(
`
d).
Putting the parts together we obtain
´
X
^
0
=
´
H
t
f
´
X
^
f
´
H
f
as the covariance matrix estimator for
`
0. As the primary justi…cation for
´
X
^
0
is the asymptotic
approximation (5.21),
´
X
^
0
is often called an asymptotic covariance matrix estimator.
When l(d) is linear
l(d) = H
t
d
then H
f
= H and
´
X
^
0
= H
t
´
X
^
f
H.
When H takes the form of a selector matrix as in (5.23) then
´
X
^
0
=
´
X
11
=
_
´
X
_
11
,
the upperleft block of the covariance matrix estimate
´
X .
When ¡ = 1 (so l(d) is realvalued), the standard error for
^
0 is the square root of
´
X
^
0
, that is,
:(
^
0) = :
÷1¸2
_
´
X
^
0
= :
÷1¸2
_
´
H
t
f
´
X
^
f
´
H
f
.
Theorem 5.7.1 Asymptotic Distribution of Functions of Parameters
Under Assumption 5.4.1,
_
:
_
`
0 ÷0
_
o
÷÷N(0, X
0
)
where
X
0
= H
t
f
X
f
H
f
and
´
X
^
0
j
÷÷X
0
as : ÷·.
78
Proof. We showed (5.21), we need only to show consistency of the covariance matrix estimator.
First, from Theorem 5.6.2,
´
X
^
f
j
÷÷X
f
.
Second, since
`
d
j
÷÷
`
d and l(d) is continuously di¤erentiable, by the continuous mapping theorem,
´
H
f
=
0
0d
l(
`
d)
j
÷÷
0
0d
l(d) = H
f
.
Putting these together
´
X
^
0
=
´
H
t
f
:
´
X
^
f
´
H
f
j
÷÷H
t
f
X
f
H
f
= X
0
,
completing the proof .
5.8 t statistic
Let 0 = /(d) : R
I
÷ R be any parameter of interest (for example, 0 could be a single element
of d),
^
0 its estimate and :(
^
0) its asymptotic standard error. Consider the statistic
t
a
(0) =
^
0 ÷0
:(
^
0)
(5.24)
which di¤erent writers alternatively call a tstatistic, a zstatistic or a studentized statistic.
We won’t be making such distinctions and will typically refer to t
a
(0) as a tstatistic. We also
often suppress the parameter dependence, writing it as t
a
. The tstatistic is a simple function of
the estimate, its standard error, and the parameter.
Theorem 5.8.1 t
a
(0)
o
÷÷N(0, 1)
Thus the asymptotic distribution of the tratio t
a
(0) is the standard normal. Since this dis
tribution does not depend on the parameters, we say that t
a
(0) is asymptotically pivotal. In
special cases (such as the normal regression model, see Section 3.11), the statistic t
a
has an exact
t distribution, and is therefore exactly free of unknowns. In this case, we say that t
a
is exactly
pivotal. In general, however, pivotal statistics are unavailable and we must rely on asymptotically
pivotal statistics.
William Gosset
William S. Gosset (18761937) of England is most famous for his derivation of the student’s
t distribution, published in the paper “The probable error of a mean” in 1908. At the time,
Gosset worked at Guiness brewery, which prohibited its employees from publishing in order
to prevent the possible loss of trade secrets. To circumvent this barrier, Gosset published
under the pseudonym “Student”. Consequently, this famous distribution is known as the
student’s t rather than Gosset’s t!
79
Proof of Theorem 5.8.1. By Theorem 5.7.1,
_
:
_
`
0 ÷0
_
o
÷÷N(0, X
0
)
and
´
X
^
0
j
÷÷X
0
Thus
t
a
(0) =
^
0 ÷0
:(
^
0)
=
_
:
_
^
0 ÷0
_
_
´
\
^
0
o
÷÷
N(0, \
0
)
_
\
0
= N(0, 1)
The last equality is by the property that linear scales of normal distributions are normal.
5.9 Con…dence Intervals
A con…dence interval C
a
is an interval estimate of 0 ¸ R. It is a function of the data and
hence is random. It is designed to cover 0 with high probability. Either 0 ¸ C
a
or 0 , ¸ C
a
. The
coverage probability is P(0 ¸ C
a
). The convention is to design con…dence intervals to have coverage
probability approximately equal to a prespeci…ed target, typically 90% or 95%, or more generally
written as (1 ÷ c)% for some c ¸ (0, 1). In this case, by reporting a (1 ÷ c)% con…dence interval
C
a
, we are stating that with (1 ÷c)% probability (in repeated samples) the true 0 lies in C
a
.
There is not a unique method to construct con…dence intervals. For example, a simple (yet
silly) interval is
C
a
=
_
R with probability 1 ÷c
^
0 with probability c
By construction, if
^
0 has a continuous distribution, P(0 ¸ C
a
) = 1 ÷c, so this con…dence interval
has perfect coverage, but C
a
is uninformative about 0. This is not a useful con…dence interval.
When we have an asymptotically normal parameter estimate
^
0 with standard error :(
^
0), it turns
out that a generally reasonable con…dence interval for 0 takes the form
C
a
=
_
^
0 ÷c :(
^
0),
^
0 +c :(
^
0)
_
(5.25)
where c 0 is a prespeci…ed constant. This con…dence interval is symmetric about the point
estimate
^
0, and its length is proportional to the standard error :(
^
0).
Equivalently, C
a
is the set of parameter values for 0 such that the tstatistic t
a
(0) is smaller (in
absolute value) than c, that is
C
a
= ¦0 : [t
a
(0)[ _ c¦ =
_
0 : ÷c _
^
0 ÷0
:(
^
0)
_ c
_
.
The coverage probability of this con…dence interval is
P(0 ¸ C
a
) = P([t
a
(0)[ _ c)
80
which is generally unknown, but we can approximate the coverage probability by taking the as
ymptotic limit as : ÷·. Since t
a
(0) is asymptotically standard normal (Theorem 5.8.1), it follows
that as : ÷· that
P(0 ¸ C
a
) ÷P([7[ _ c) = (c) ÷(÷c)
where 7 ~ N(0, 1) and (n) = P(7 _ n) is the standard normal distribution function. Thus the
asymptotic coverage probability is a function only of c.
The convention is to design the con…dence interval to have a prespeci…ed coverage probability
1 ÷c, typically 90% or 95%. This means selecting the constant c so that
(c) ÷(÷c) = 1 ÷c.
E¤ectively, this makes c a function of c, and can be backed out of a normal distribution table.
For example, c = 0.05 (a 95% interval) implies c = 1.96 and c = 0.1 (a 90% interval) implies
c = 1.645. Rounding 1.96 to 2, this yields the most commonly implied con…dence interval in
applied econometric practice
C
a
=
_
^
0 ÷2:(
^
0),
^
0 + 2:(
^
0)
_
.
This is a useful ruleof thumb. This asymptotic 95% con…dence interval C
a
is simple to compute
and can be roughly calculated from tables of coe¢cient estimates and standard errors. (Technically,
it is a 95.4% interval, due to the substitution of 2.0 for 1.96, but this distinction is meaningless.)
Con…dence intervals are a simple yet e¤ective tool to assess estimation uncertainty. When
reading a set of empirical results, look at the estimated coe¢cient estimates and the standard
errors. For a parameter of interest, compute the con…dence interval C
a
and consider the meaning
of the spread of the suggested values. If the rage of values in the con…dence interval are too wide
to learn about 0, then do not jump to a conclusion about 0 based on the point estimate alone.
5.10 Semiparametric E¢ciency
In Section 4.5 we presented the GaussMarkov theorem as a limited e¢ciency justi…cation for the
leastsquares estimator. A broader justi…cation is provided in Chamberlain (1987), who established
that in the projection model the OLS estimator has the smallest asymptotic meansquared error
among feasible estimators. This property is called semiparametric e¢ciency, and is a strong
justi…cation for the leastsquares estimator. We discuss the intuition behind his result in this
section.
Suppose that the joint distribution of (j
i
, i
i
) is discrete. That is, for …nite r,
1
_
j
i
= t
)
, i
i
= ¸
)
_
= j
)
, , = 1, ..., r (5.26)
for some constants j
)
, t
)
, and ¸
)
. Assume that the t
)
and ¸
)
are known, but the j
)
are unknown.
(We know the values j
i
and i
i
can take, but we don’t know the probabilities.)
In this discrete setting, the de…nition of linear the projection coe¢cient (2.10) can be rewritten
as
d =
_
_
v
)=1
j
)
¸
)
¸
t
)
_
_
÷1
_
_
v
)=1
j
)
¸
)
t
)
_
_
(5.27)
Thus d is a function of (¬
1
, ..., ¬
v
) .
As the data are multinomial, the maximum likelihood estimator (MLE) is
^ j
)
=
1
:
a
i=1
1 (j
i
= t
)
) 1
_
i
i
= ¸
)
_
81
for , = 1, ..., r, where 1 () is the indicator function. That is, ^ j
)
is the percentage of the observations
which fall in each category. The MLE
`
d
mle
for d is then the analog of (5.27) with the parameters
j
)
replaced by the estimates ^ j
)
:
`
d
mle
=
_
_
v
)=1
^ j
)
¸
)
¸
t
)
_
_
÷1
_
_
v
)=1
^ j
)
¸
)
t
)
_
_
.
Substituting in the expressions for ^ j
)
,
v
)=1
^ j
)
¸
)
¸
t
)
=
v
)=1
1
:
a
i=1
1 (j
i
= t
)
) 1
_
i
i
= ¸
)
_
¸
)
¸
t
)
=
1
:
a
i=1
v
)=1
1 (j
i
= t
)
) 1
_
i
i
= ¸
)
_
i
i
i
t
i
=
1
:
a
i=1
i
i
i
t
i
and
v
)=1
^ j
)
¸
)
t
)
=
v
)=1
1
:
a
i=1
1 (j
i
= t
)
) 1
_
i
i
= ¸
)
_
¸
)
t
)
=
1
:
a
i=1
v
)=1
1 (j
i
= t
)
) 1
_
i
i
= ¸
)
_
i
i
j
i
=
1
:
a
i=1
i
i
j
i
.
Thus
`
d
mle
=
_
1
:
a
i=1
i
i
i
t
i
_
÷1
_
1
:
a
i=1
i
i
j
i
_
=
`
d
ols
.
In other words, if the data have a discrete distribution, the maximum likelihood estimator is
identical to the OLS estimator.
Since this is a regular parametric model the MLE is asymptotically e¢cient (see Appendix D).
It follows that the OLS estimator is asymptotically e¢cient.
The hard part of the argument (which was rigorously developed in Chamberlain’s paper, but we
do not present it here) is the extension to the case of continuouslydistributed data.The intuition
is that all continuous distributions can be arbitrarily well approximated by some multinomial
distribution, and for any multinomial distribution the moment estimator is asymptotically e¢cient.
Formalizing this intuition using a rigorous mathematical argument, Chamberlain proved that the
OLS estimator is asymptotically semiparametrically e¢cient for the projection coe¢cient d for the
class of models satisfying Assumption 5.1.1.
5.11 Semiparametric E¢ciency in the Projection Model
In this section we continue the investigation of semiparametric e¢ciency as raised in Section
5.10. There we presented the intuition behind Chamberlain’s demonstration of the asymptotic
e¢ciency of the leastsquares estimator. In this section we provide an alternative demonstration
based on the rich but technically challenging theory of semiparametric e¢ciency bounds. An
excellent accessible review has been provided by Newey (1990).
82
Our treatment covers what is known as the smooth function model, which includes the projection
model as a special case. Let z ¸ R
n
be a random vector with …nite mean µ = Ez and …nite variance
matrix X = var (z) , and let z
1
, ..., z
a
be an iid sample from this distribution. The parameter of
interest is d = g (µ) where g () is a continuously di¤erentiable function. The standard moment
estimator for µ is the sample mean ` µ = :
÷1
a
i=1
z
i
and that for d is
`
d = g (` µ) . This setting
includes the leastsquares estimator for the projection model j = i
t
d+c by letting z be the vector
with elements r
)
c and r
)
r

for all , _ / and  _ /.
The sample mean has the asymptotic distribution
_
:(` µ ÷µ)
o
÷÷N(0, X) . Applying the Delta
Method (Theorem C.3.3), we see that the moment estimator
`
d has the asymptotic distribution
_
:
_
`
d ÷d
_
o
÷÷ N(0, X ) where X =
0
0µ
0
g (µ) X
0
0µ
g (µ)
t
. We want to know if
`
d is the best
feasible estimator. Is there another estimator with a smaller asymptotic variance? While it seems
intuitively unlikely that another estimator could have a smaller asymptotic variance than
`
d, how
do we know that this is not the case?
To show that the answer is not immediately obvious, it might be helpful to review a set
ting where the sample mean is ine¢cient. Suppose that . ¸ R has the density ) (. [ j) =
2
÷1¸2
exp
_
÷[. ÷j[
_
2
_
. Since var (.) = 1 we see that the sample mean satis…es
_
:(^ j ÷j)
o
÷÷
N(0, 1). In this model the maximum likelihood estimator (MLE) ~ j for j is di¤erent than the sam
ple mean (and happens to be the sample median). Recall from the theory of maximum likelhood
that the MLE satis…es
_
:(~ j ÷j)
o
÷÷ N(0, J
0
) where J
0
=
_
Eo
2
j
_
÷1
and o
j
=
0
0j
log ) (. [ j) =
÷
_
2 sgn(. ÷j) is the score. We can calculate that Eo
2
j
= 2 and thus conclude that
_
:(~ j ÷j)
o
÷÷
N(0, 1,2) . The asymptotic variance of the MLE is onehalf that of the sample mean. In this setting
the sample mean is ine¢cient.
But the question at hand is whether or not the sample mean is e¢cient when the form of the
distribution is unknown. We call this setting semiparametric as the parameter of interest (the
mean) is …nite dimensional while the remaining features of the distribution are unspeci…ed. In the
semiparametric context an estimator is called semiparametrically e¢cient if it has the smallest
asymptotic variance among all semiparametric estimators.
The mathematical trick is to reduce the semiparametric model to a set of parametric “submod
els”. The classic CramerRao variance bound can be found for each parametric submodel. The
variance bound for the semiparametric model (the union of the submodels) is then de…ned as the
supremum of the individual variance bounds.
Formally, suppose that the true density of z is the unknown function )(z) with mean µ =
Ez =
_
z)(z)dz and the parameter of interest is d = g (µ) . A parametric submodel j for )(z) is
a density )
j
(z [ 0) which is a smooth function of a parameter 0, and there is some 0
0
such that
)
j
(z [ 0
0
) = )(z). The index j indicates the submodels. The equality )
j
(z [ 0
0
) = )(z) means
that the submodel class passes through the true density, so the submodel is a true model. The class
of submodels j and parameter 0
0
depend on the true density ). In the submodel )
j
(z [ 0) , the
mean is µ
j
(0) =
_
z)
j
(z [ 0) dz, and the parameter of interest is d
j
(0) = g
_
µ
j
(0)
_
which varies
with the parameter 0. Let j ¸ ì be the class of all submodels for ).
Since each submodel j is parametric we can calculate its CramerRao bound for estimation
of d. Speci…cally, given the density )
j
(z [ 0) we can construct the MLE
`
0
j
for 0, the MLE
` µ
j
=
_
z)
j
_
z [
`
0
j
_
dz for µ, and the MLE
`
d
j
= g(` µ
j
) for d. The MLE satis…es
_
:
_
`
d
j
÷d
j
(0)
_
o
÷÷N(0, X
j
)
where X
j
is the smallest possible covariance matrix among regular estimators. By the CramerRao
theorem no estimator (and in particular no semiparametric estimator) has an asymptotic vari
ance smaller than X
j
. This comparison is true for all submodels j, so the asymptotic variance
of any semiparametric estimator cannot be smaller than the CramerRao bound for any paramet
ric submodel. The semiparametric asymptotic variance bound (which is sometimes called
83
the semiparametric e¢ciency bound) is the supremum of the CramerRao bounds from all
conceivable submodels.
X = sup
j¸ì
X
j
.
It is a lower bound for the asymptotic variance of any semiparametric estimator. If the asymptotic
variance of a speci…c semiparametric estimator equals the bound X we say that the estimator is
semiparametrically e¢cient.
For many statistical problems it is quite challenging to calculate the semiparametric variance
bound. However the solution is straightforward in the smooth function model. As the semiparamet
ric variance bound cannot be smaller than the CramerRao bound for any submodel, and cannot
be larger than the asymptotic variance of any feasible semiparametric estimator, it follows that if
the asymptotic variance of a feasible semiparametric estimator equals the CramerRao bound for
at least one submodel, then this is the semiparametric asymptotic variance bound, and the afore
mentioned feasible semiparametric estimator must be semiparametrically e¢cient. In these cases,
it is su¢cient to construct a parametric submodel for which the CramerRao bound (equivalently,
the asymptotic variance of the MLE) equals that of a known semiparametric estimator.
Formally, for any submodel j with CramerRao variance X
j
and any semiparametric estimator
`
d with asymptotic variance X
f
, then it is necessary that
X
j
_ X _ X
f
.
The …rst inequality holds by the de…nition of X , and the second holds since no semiparametric
estimator can be more e¢cient than the MLE in any parametric submodel. Thus if we …nd a
submodel j and semiparametric estimator
`
d such that X
j
= X
f
, then it must be the case that
X = X
f
and
`
d is semiparametrically e¢cient.
We now show this for the moment estimator
`
d = g (` µ) discussed above. As
`
d has asymptotic
variance X
f
, our goal is to …nd a parametric submodel whose CramerRao bound for estimation of
d is X
f
. The solution involves creating a tilted version of the true density. Consider the parametric
submodel
) (z [ 0) = )(z)
_
1 +0
t
X
÷1
(z ÷µ)
_
(5.28)
where )(z) is the true density and µ = Ez. Note that
_
) (z [ 0) dz =
_
)(z)dz +0
t
X
÷1
_
)(z) (z ÷µ) dz = 1
and for all 0 close to zero ) (z [ 0) _ 0. Thus ) (z [ 0) is a valid density function. It is a parametric
submodel since ) (z [ 0
0
) = )(z) when 0
0
= 0. This parametric submodel has the mean
µ(0) =
_
z) (z [ 0) dz
=
_
z)(z)dz +
_
)(z)z (z ÷µ)
t
X
÷1
0dz
= µ +0
and parameter of interest d (0) = g (µ +0) both which are smooth functions of 0.
Since
0
00
log ) (z [ 0) =
0
00
log
_
1 +0
t
X
÷1
(z ÷µ)
_
=
X
÷1
(z ÷µ)
1 +0
t
X
÷1
(z ÷µ)
it follows that the score function for 0 is
s =
0
00
log ) (z [ 0
0
) = X
÷1
(z ÷µ) . (5.29)
84
By classic theory the asymptotic variance of the MLE
`
0 for 0 is the CramerRao bound (E(ss
t
))
÷1
=
_
X
÷1
E
_
(z ÷µ) (z ÷µ)
t
_
X
÷1
_
÷1
= X. The MLE for d is d(
`
0) = g
_
µ +
`
0
_
which by the delta
method has asymptotic variance X
f
=
0
0µ
0
g (µ) X
0
0µ
g (µ)
t
, which is identical to the asymptotic
variance of the moment estimator
`
d. This shows that moment estimators are semiparametrically
e¢cient, and this includes the OLS estimator in the projection model. We have established the
following theorem.
Theorem 5.11.1 Under Assumption 5.1.1, the semiparametric variance
bound for estimation of d is X
f
= Q
÷1
DQ
÷1
, and the OLS estimator is
semiparametrically e¢cient.
5.12 Semiparametric E¢ciency in the Homoskedastic Regression
Model
In Section 4.5 we presented the GaussMarkov theorem, which stated that in the homoskedastic
regression model, in the class of linear unbiased estimators the one with the smallest variance is
leastsquares. As we noted in that section, the restriction to linear unbiased estimators is unsat
isfactory as it leaves open the possibility that an alternative (nonlinear) estimator could have a
smaller asymptotic variance. In Sections 5.10 and 5.11 we showed that the OLS estimator is ef
…cient in the projection model, but this does not address the question of whether or not OLS is
e¢cient in the homoskedastic regression model. In this section we return to the question of e¢cient
estimation in this model using the theory of semiparametric variance bounds as presented in the
previous section.
Recall that in the homoskedastic regression model the asymptotic variance of the OLS estimator
`
d for d is X
0
f
= Q
÷1
o
2
. Therefore, as described in the previous section, it is su¢cient to …nd a
parametric submodel whose CramerRao bound for estimation of d is X
0
f
. This would establish
that X
0
f
is the semiparametric variance bound and the OLS estimator
`
d is semiparametrically
e¢cient for d.
Let the joint density of j and i be written as ) (j, i) = )
1
(j [ i) )
2
(i) , the product of the
conditional density of j given i, and the marginal density of i. Now consider the parametric
submodel
) (j, i [ 0) = )
1
(j [ i)
_
1 +
_
j ÷i
t
d
_ _
i
t
0
_
,o
2
_
)
2
(i) . (5.30)
You can check that in this submodel, the marginal density of i is )
2
(i) , and the conditional density
of j given i is )
1
(j [ i)
_
1 + (j ÷i
t
d) (i
t
0) ,o
2
_
. To see that the latter is a valid conditional
density, observe that the regression assumption implies that
_
j)
1
(j [ i) dj = i
t
d and therefore
_
)
1
(j [ i)
_
1 +
_
j ÷i
t
d
_ _
i
t
0
_
,o
2
_
dj =
_
)
1
(j [ i) dj +
_
)
1
(j [ i)
_
j ÷i
t
d
_
dj
_
i
t
0
_
,o
2
= 1.
85
In this parametric submodel the conditional mean of j given i is
E
0
(j [ i) =
_
j)
1
(j [ i)
_
1 +
_
j ÷i
t
d
_ _
i
t
0
_
,o
2
_
dj
=
_
j)
1
(j [ i) dj +
_
j)
1
(j [ i)
_
j ÷i
t
d
_ _
i
t
0
_
,o
2
dj
=
_
j)
1
(j [ i) dj +
_
_
j ÷i
t
d
_
2
)
1
(j [ i)
_
i
t
0
_
,o
2
dj
+
_
_
j ÷i
t
d
_
)
1
(j [ i) dj
_
i
t
d
_ _
i
t
0
_
,o
2
= i
t
(d +0) ,
using the homoskedasticity assumption that
_
(j ÷i
t
d)
2
)
1
(j [ i) dj = o
2
. This means that in
this parametric submodel, the conditional mean is linear in i and the regression coe¢cient is
d (0) = d +0.
We now calculate the score for estimation of 0. Since
0
00
log ) (j, i [ 0) =
0
00
log
_
1 +
_
j ÷i
t
d
_ _
i
t
0
_
,o
2
_
=
i(j ÷i
t
d) ,o
2
1 + (j ÷i
t
d) (i
t
0) ,o
2
the score is
s =
0
00
log ) (j, i [ 0
0
) = ic,o
2
.
The CramerRao bound for estimation of 0 (and therefore d (0) as well) is
_
E
_
ss
t
__
÷1
=
_
o
÷4
E
_
(ic) (ic)
t
__
÷1
= o
2
Q
÷1
= X
0
f
.
We have shown that there is a parametric submodel (5.30) whose CramerRao bound for estimation
of d is identical to the asymptotic variance of the leastsquares estimator, which therefore is the
semiparametric variance bound.
Theorem 5.12.1 In the homoskedastic regression model, the semipara
metric variance bound for estimation of d is X
0
= o
2
Q
÷1
and the OLS
estimator is semiparametrically e¢cient.
This result is similar to the GaussMarkov theorem, in that it asserts the e¢ciency of the least
squares estimator in the context of the homoskedastic regression model. The di¤erence is that the
GaussMarkov theorem states that OLS has the smallest variance among the set of unbiased linear
estimators, while Theorem 5.12.1 states that OLS has the smallest asymptotic variance among
regular estimators. This is a much more powerful statement.
86
Exercises
Exercise 5.1 You have two independent samples (¸
1
, A
1
) and (¸
2
, A
2
) which satisfy ¸
1
= A
1
d
1
+
c
1
and ¸
2
= A
2
d
2
+ c
2
, where E(i
1i
c
1i
) = 0 and E(i
2i
c
2i
) = 0, and both A
1
and A
2
have /
columns. Let
`
d
1
and
`
d
2
be the OLS estimates of d
1
and d
2
. For simplicity, you may assume that
both samples have the same number of observations :.
(a) Find the asymptotic distribution of
_
:
__
`
d
2
÷
`
d
1
_
÷(d
2
÷d
1
)
_
as : ÷·.
(b) Find an appropriate test statistic for H
0
: d
2
= d
1
.
(c) Find the asymptotic distribution of this statistic under H
0
.
Exercise 5.2 The model is
j
i
= i
t
i
d +c
i
E(i
i
c
i
) = 0
D = E
_
i
i
i
t
i
c
2
i
_
.
Find the method of moments estimators
_
`
d,
`
D
_
for (d, D) .
(a) In this model, are
_
`
d,
`
D
_
e¢cient estimators of (d, D)?
(b) If so, in what sense are they e¢cient?
Exercise 5.3 Take the model j
i
= i
t
1i
d
1
+i
t
2i
d
2
+c
i
with Ei
i
c
i
= 0. Suppose that d
1
is estimated
by regressing j
i
on i
1i
only. Find the probability limit of this estimator. In general, is it consistent
for d
1
? If not, under what conditions is this estimator consistent for d
1
?
Exercise 5.4 Let ¸ be :1, A be :/ (rank /). ¸ = Ad+c with E(i
i
c
i
) = 0. De…ne the ridge
regression estimator
`
d =
_
a
i=1
i
i
i
t
i
+`1
I
_
÷1
_
a
i=1
i
i
j
i
_
where ` 0 is a …xed constant. Find the probability limit of
`
d as : ÷·. Is
`
d consistent for d?
Exercise 5.5 Of the variables (j
+
i
, j
i
, i
i
) only the pair (j
i
, i
i
) are observed. In this case, we say
that j
+
i
is a latent variable. Suppose
j
+
i
= i
t
i
d +c
i
E(i
i
c
i
) = 0
j
i
= j
+
i
+n
i
where n
i
is a measurement error satisfying
E(i
i
n
i
) = 0
E(j
+
i
n
i
) = 0
Let
`
d denote the OLS coe¢cient from the regression of j
i
on i
i
.
(a) Is d the coe¢cient from the linear projection of j
i
on i
i
?
(b) Is
`
d consistent for d as : ÷·?
87
(c) Find the asymptotic distribution of
_
:
_
`
d ÷d
_
as : ÷·.
Exercise 5.6 The model is
j
i
= r
i
, +c
i
E(c
i
[ r
i
) = 0
where r
i
¸ R. Consider the two estimators
^
, =
a
i=1
r
i
j
i
a
i=1
r
2
i
~
, =
1
:
a
i=1
j
i
r
i
.
(a) Under the stated assumptions, are both estimators consistent for ,?
(b) Are there conditions under which either estimator is e¢cient?
88
Chapter 6
Testing
6.1 t tests
The ttest is routinely used to test hypotheses on 0. A simple null and composite hypothesis
takes the form
H
0
: 0 = 0
0
H
1
: 0 ,= 0
0
where 0
0
is some prespeci…ed value. A ttest rejects H
0
in favor of H
1
when [t
a
(0
0
)[ is large. By
“large” we mean that the observed value of the tstatistic would be unlikely if H
0
were true.
Formally, we …rst pick an asymptotic signi…cance level c. We then …nd .
c¸2
, the upper c,2
quantile of the standard normal distribution which has the property that if 7 ~ N(0, 1) then
P
_
[7[ .
c¸2
_
= c.
For example, .
.025
= 1.96 and .
.05
= 1.645. A test of asymptotic signi…cance c rejects H
0
if
[t
a
[ .
c¸2
. Otherwise the test does not reject, or “accepts” H
0
.
The asymptotic signi…cance level is c because Theorem 5.8.1 implies that
P(reject H
0
[ H
0
true) = P
_
[t
a
[ .
c¸2
[ 0 = 0
0
_
÷ P
_
[7[ .
c¸2
_
= c.
The rejection/acceptance dichotomy is associated with the NeymanPearson approach to hypothesis
testing.
While there is no objective scienti…c basis for choice of signi…cance level c, the common practice
is to set c = .05 or 5%. This implies a critical value of .
.025
= 1.96  2. When [t
a
[ 2 it is common
to say that the tstatistic is statistically signi…cant. and if [t
a
[ < 2 it is common to say that
the tstatistic is statistically insigni…cant. It is helpful to remember that this is simply a way of
saying “Using a ttest, the hypothesis that 0 = 0
0
can [cannot] be rejected at the asymptotic 5%
level.”
A related statistic is the asymptotic pvalue, which can be interpreted as a measure of the
evidence against the null hypothesis. The asymptotic pvalue of the statistic t
a
is
j
a
= j(t
a
)
where j(t) is the tail probability function
j(t) = P([7[ [t[) = 2 (1 ÷([t[)) .
If the pvalue j
a
is small (close to zero) then the evidence against H
0
is strong.
89
An equivalent statement of a NeymanPearson test is to reject at the c% level if and only if
j
a
< c. Signi…cance tests can be deduced directly from the pvalue since for any c, j
a
< c if and
only if [t
a
[ .
c¸2
. The pvalue is more general, however, in that the reader is allowed to pick the
level of signi…cance c, in contrast to NeymanPearson rejection/acceptance reporting where the
researcher picks the signi…cance level.
Another helpful observation is that the pvalue function is a unitfree transformation of the
t statistic. That is, under H
0
, j
a
o
÷÷ U[0, 1], so the “unusualness” of the test statistic can be
compared to the easytounderstand uniform distribution, regardless of the complication of the
distribution of the original test statistic. To see this fact, note that the asymptotic distribution of
[t
a
[ is 1(r) = 1 ÷j(r). Thus
P(1 ÷j
a
_ n) = P(1 ÷j(t
a
) _ n)
= P(1(t
a
) _ n)
= P
_
[t
a
[ _ 1
÷1
(n)
_
÷ 1
_
1
÷1
(n)
_
= n,
establishing that 1 ÷j
a
o
÷÷U[0, 1], from which it follows that j
a
o
÷÷U[0, 1].
6.2 tratios
Some applied papers (especially older ones) report “tratios” for each estimated coe¢cient. For
a coe¢cient 0 these are
t
a
= t
a
(0) =
^
0
:(
^
0)
,
the ratio of the coe¢cient estimate to its standard error, and equal the tstatistic for the test of
the hypothesis H
0
: 0 = 0. Such papers often discuss the “signi…cance” of certain variables or
coe¢cients, or describe “which regressors have a signi…cant e¤ect on j” by noting which tratios
exceed 2 in absolute value.
This is very poor econometric practice, and should be studiously avoided. It is a receipe for
banishment of your work to lower tier economics journals.
Fundamentally, the common tratio is a test for the hypothesis that a coe¢cient equals zero.
This should be reported and discussed when this is an interesting economic hypothesis of interest.
But if this is not the case, it is distracting.
Instead, when a coe¢cient 0 is of interest, it is constructive to focus on the point estimate,
its standard error, and its con…dence interval. The point estimate gives our “best guess” for the
value. The standard error is a measure of precision. The con…dence interval gives us the range
of values consistent with the data. If the standard error is large then the point estimate is not a
good summary about 0. The endpoints of the con…dence interval describe the bounds on the likely
possibilities. If the con…dence interval embraces too broad a set of values for 0, then the dataset
is not su¢ciently informative to render inferences about 0. On the other hand if the con…dence
interval is tight, then the data have produced an accurate estimate, and the focus should be on
the value and interpretation of this estimate. In contrast, the widelyseen statement “the tratio is
highly signi…cant” has little interpretive value.
The above discussion requires that the researcher knows what the coe¢cient 0 means (in terms
of the economic problem) and can interpret values and magnitudes, not just signs. This is critical
for good applied econometric practice.
90
6.3 Wald Tests
Sometimes 0 = l(d) is a ¡ 1 vector, and it is desired to test the joint restrictions simultane
ously. In this case the tstatistic approach does not work. We have the null and alternative
H
0
: 0 = 0
0
H
1
: 0 ,= 0
0
.
The natural estimate of 0 is
`
0 = l(
`
d) and has asymptotic covariance matrix estimate
`
X
0
=
`
H
t
f
`
X
f
`
H
f
where
`
H
f
=
0
0d
l(
`
d).
The Wald statistic for H
0
against H
1
is
\
a
= :
_
`
0 ÷0
0
_
t
`
X
÷1
0
_
`
0 ÷0
0
_
= :
_
l(
`
d) ÷0
0
_
t
_
`
H
t
f
`
X
f
`
H
f
_
÷1
_
l(
`
d) ÷0
0
_
. (6.1)
When l is a linear function of d, l(d) = H
t
d, then the Wald statistic takes the form
\
a
= :
_
H
t
`
d ÷0
0
_
t
_
H
t
`
X
f
H
_
÷1
_
H
t
`
d ÷0
0
_
.
The delta method (5.21) showed that
_
:
_
`
0 ÷0
_
o
÷÷ Z ~ N(0, X
0
) , and Theorem 5.6.2
showed that
`
X
f
j
÷÷ X
f
. Furthermore, H
f
(d) is a continuous function of d, so by the continuous
mapping theorem, H
f
(
`
d)
j
÷÷ H
f
. Thus
`
X
0
=
`
H
t
f
`
X
f
`
H
f
j
÷÷ H
t
f
X
f
H
f
= X
0
0 if H
f
has
full rank ¡. Hence
\
a
= :
_
`
0 ÷0
0
_
t
`
X
÷1
0
_
`
0 ÷0
0
_
o
÷÷Z
t
X
÷1
0
Z = ¸
2
q
,
by Theorem B.9.3. We have established:
Theorem 6.3.1 Under H
0
and Assumption 5.4.1, if rank(H
f
) = ¡, then
\
a
o
÷÷¸
2
q
, a chisquare random variable with ¡ degrees of freedom.
An asymptotic Wald test rejects H
0
in favor of H
1
if \
a
exceeds ¸
2
q
(c), the upperc quantile
of the ¸
2
q
distribution. For example, ¸
2
1
(.05) = 3.84 = .
2
.025
. The Wald test fails to reject if \
a
is
less than ¸
2
q
(c). As with ttests, it is conventional to describe a Wald test as “signi…cant” if \
a
exceeds the 5% critical value.
Notice that the asymptotic distribution in Theorem 6.3.1 depends solely on ¡ – the number of
restrictions being tested. It does not depend on / – the number of parameters estimated.
The asymptotic pvalue for \
a
is j
a
= j(\
a
), where j(r) = P
_
¸
2
q
_ r
_
is the tail probability
function of the ¸
2
q
distribution. The Wald test rejects at the c% level if and only if j
a
< c, and
j
a
is asymptotically U[0, 1] under H
0
. In applied work it is good practice to report the pvalue of
a Wald statistic, as it helps readers intrepret the magnitude of the statistic.
91
6.4 F Tests
Take the linear model
¸ = A
1
d
1
+A
2
d
2
+c
where A
1
is : /
1
, A
2
is : /
2
, / = /
1
+/
2
, and the null hypothesis is
H
0
: d
2
= 0.
In this case, 0 = d
2
, and there are ¡ = /
2
restrictions. Also l(d) = H
t
d is linear with H =
_
0
1
_
a selector matrix. We know that the Wald statistic takes the form
\
a
= :
`
0
t
`
X
÷1
0
`
0
= :
`
d
t
2
_
H
t
`
X
f
H
_
÷1
`
d
2
.
Now suppose that covariance matrix is computed under the assumption of homoskedasticity, so
that
`
X
f
is replaced with
`
X
0
f
= :
2
_
:
÷1
A
t
A
_
÷1
. We de…ne the “homoskedastic” Wald statistic
\
0
a
= :
`
0
t
_
`
X
0
0
_
÷1
`
0
= :
`
d
t
2
_
H
t
`
X
0
f
H
_
÷1
`
d
2
.
What we show in this section is that this Wald statistic can be written very simply using the
formula
\
0
a
= (: ÷/)
_
¯ c
t
¯ c ÷ ` c
t
` c
` c
t
` c
_
(6.2)
where
¯ c = ¸ ÷A
1
¯
d
1
,
¯
d
1
=
_
A
t
1
A
1
_
÷1
A
t
1
¸
are from OLS of ¸ on A
1
, and
` c = ¸ ÷A
`
d,
`
d =
_
A
t
A
_
÷1
A
t
¸
are from OLS of ¸ on A = (A
1
, A
2
).
The elegant feature about (6.2) is that it is directly computable from the standard output
from two simple OLS regressions, as the sum of squared errors is a typical output from statistical
packages. This statistic is typically reported as an “Fstatistic” which is de…ned as
1
a
=
\
0
a
/
2
=
_
¯ c
t
¯ c ÷ ` c
t
` c
_
,/
2
` c
t
` c,(: ÷/)
.
While it should be emphasized that equality (6.2) only holds if
`
X
0
f
= :
2
_
:
÷1
A
t
A
_
÷1
, still this
formula often …nds good use in reading applied papers. Because of this connection we call (6.2) the
F form of the Wald statistic. (We can also call \
0
a
a homoskedastic form of the Wald statistic.)
We now derive expression (6.2). First, note that by partitioned matrix inversion (A.3)
H
t
_
A
t
A
_
÷1
H = H
t
_
A
t
1
A
1
A
t
1
A
2
A
t
2
A
1
A
t
2
A
2
_
÷1
H =
_
A
t
2
A
1
A
2
_
÷1
where A
1
= 1 ÷A
1
(A
t
1
A
1
)
÷1
A
t
1
. Thus
_
H
t
`
X
0
f
H
_
÷1
= :
÷2
:
÷1
_
H
t
_
A
t
A
_
÷1
H
_
÷1
= :
÷2
:
÷1
_
A
t
2
A
1
A
2
_
92
and
\
0
a
= :
`
d
t
2
_
H
t
`
X
0
f
H
_
÷1
`
d
2
=
`
d
t
2
(A
t
2
A
1
A
2
)
`
d
2
:
2
.
To simplify this expression further, note that if we regress ¸ on A
1
alone, the residual is
¯ c = A
1
¸. Now consider the residual regression of ¯ c on
¯
A
2
= A
1
A
2
. By the FWL theorem,
¯ c =
¯
A
2
`
d
2
+ ` c and
¯
A
t
2
` c = 0. Thus
¯ c
t
¯ c =
_
¯
A
2
`
d
2
+ ` c
_
t
_
¯
A
2
`
d
2
+ ` c
_
=
`
d
t
2
¯
A
t
2
¯
A
2
`
d
2
+ ` c
t
` c
=
`
d
t
2
A
t
2
A
1
A
2
`
d
2
+ ` c
t
` c,
or alternatively,
`
d
t
2
A
t
2
A
1
A
2
`
d
2
= ¯ c
t
¯ c ÷ ` c
t
` c.
Also, since
:
2
= (: ÷/)
÷1
` c
t
` c
we conclude that
\
0
a
= (: ÷/)
_
¯ c
t
¯ c ÷ ` c
t
` c
` c
t
` c
_
as claimed.
In many statistical packages, when an OLS regression is estimated, an “Fstatistic” is reported.
This is 1
a
when A
1
is a vector is ones, so H
0
is an interceptonly model. This special F statistic is
testing the hypothesis that all slope coe¢cients (all coe¢cients other than the intercept) are zero.
This was a popular statistic in the early days of econometric reporting, when sample sizes were very
small and researchers wanted to know if there was “any explanatory power” to their regression.
This is rarely an issue today, as sample sizes are typically su¢ciently large that this F statistic is
nearly always highly signi…cant. While there are special cases where this F statistic is useful, these
cases are atypical. As a general rule, there is no reason to report this F statistic.
6.5 Normal Regression Model
Now let us partition d = (d
1
, d
2
) and consider tests of the linear restriction
H
0
: d
2
= 0
H
1
: d
2
,= 0
in the normal regression model. In parametric models, a good test statistic is the likelihood ratio,
which is twice the di¤erence in the loglikelihood function evaluated under the null and alternative
hypotheses. The estimator under the alternative is the unrestricted estimator (
`
d
1
,
`
d
2
, ^ o
2
) discussed
above. The Gaussian loglikelihood at these estimates is
log 1(
`
d
1
,
`
d
2
, ^ o
2
) = ÷
:
2
log
_
2¬^ o
2
_
÷
1
2^ o
2
` c
t
` c
= ÷
:
2
log
_
^ o
2
_
÷
:
2
log (2¬) ÷
:
2
.
The MLE under the null hypothesis is the restricted estimates (
¯
d
1
, 0, ~ o
2
) where
¯
d
1
is the OLS
estimate from a regression of j
i
on i
1i
only, with residual variance ~ o
2
. The loglikelihood of this
model is
log 1(
¯
d
1
, 0, ~ o
2
) = ÷
:
2
log
_
~ o
2
_
÷
:
2
log (2¬) ÷
:
2
.
93
The LR statistic for H
0
against H
1
is
11
a
= 2
_
log 1(
`
d
1
,
`
d
2
, ^ o
2
) ÷log 1(
¯
d
1
, 0, ~ o
2
)
_
= :
_
log
_
~ o
2
_
÷log
_
^ o
2
__
= :log
_
~ o
2
^ o
2
_
.
By a …rstorder Taylor series approximation
11
a
= :log
_
1 +
~ o
2
^ o
2
÷1
_
· :
_
~ o
2
^ o
2
÷1
_
= \
0
a
.
the homoskedastic Wald statistic. This shows that the two statistics (11
a
and \
0
a
) can be numer
ically close. It also shows that the homoskedastic Wald statistic for linear hypotheses can also be
interpreted as an appropriate likelihood ratio statistic under normality.
6.6 Problems with Tests of NonLinear Hypotheses
While the t and Wald tests work well when the hypothesis is a linear restriction on d, they
can work quite poorly when the restrictions are nonlinear. This can be seen by a simple example
introduced by Lafontaine and White (1986). Take the model
j
i
= , +c
i
c
i
~ N(0, o
2
)
and consider the hypothesis
H
0
: , = 1.
Let
^
, and ^ o
2
be the sample mean and variance of j
i
. The standard Wald test for H
0
is
\
a
= :
_
^
, ÷1
_
2
^ o
2
.
Now notice that H
0
is equivalent to the hypothesis
H
0
(r) : ,
v
= 1
for any positive integer r. Letting /(,) = ,
v
, and noting H
o
= r,
v÷1
, we …nd that the standard
Wald test for H
0
(r) is
\
a
(r) = :
_
^
,
v
÷1
_
2
^ o
2
r
2^
,
2v÷2
.
While the hypothesis ,
v
= 1 is una¤ected by the choice of r, the statistic \
a
(r) varies with r. This
is an unfortunate feature of the Wald statistic.
To demonstrate this e¤ect, we have plotted in Figure 6.1 the Wald statistic \
a
(r) as a function
of r, setting :,o
2
= 10. The increasing solid line is for the case
^
, = 0.8. The decreasing dashed
line is for the case
^
, = 1.6. It is easy to see that in each case there are values of r for which the
test statistic is signi…cant relative to asymptotic critical values, while there are other values of r
for which the test statistic is insigni…cant. This is distressing since the choice of r is arbitrary and
irrelevant to the actual hypothesis.
Our …rstorder asymptotic theory is not useful to help pick r, as \
a
(r)
o
÷÷¸
2
1
under H
0
for any
r. This is a context where Monte Carlo simulation can be quite useful as a tool to study and
94
Figure 6.1: Wald Statistic as a function of :
compare the exact distributions of statistical procedures in …nite samples. The method uses random
simulation to create arti…cial datasets, to which we apply the statistical tools of interest. This
produces random draws from the statistic’s sampling distribution. Through repetition, features of
this distribution can be calculated.
In the present context of the Wald statistic, one feature of importance is the Type I error
of the test using the asymptotic 5% critical value 3.84 – the probability of a false rejection,
P(\
a
(r) 3.84 [ , = 1) . Given the simplicity of the model, this probability depends only on r, :,
and o
2
. In Table 2.1 we report the results of a Monte Carlo simulation where we vary these three
parameters. The value of r is varied from 1 to 10, : is varied among 20, 100 and 500, and o is
varied among 1 and 3. Table 4.1 reports the simulation estimate of the Type I error probability
from 50,000 random samples. Each row of the table corresponds to a di¤erent value of r – and thus
corresponds to a particular choice of test statistic. The second through seventh columns contain the
Type I error probabilities for di¤erent combinations of : and o. These probabilities are calculated
as the percentage of the 50,000 simulated Wald statistics \
a
(r) which are larger than 3.84. The
null hypothesis ,
v
= 1 is true, so these probabilities are Type I error.
To interpret the table, remember that the ideal Type I error probability is 5% (.05) with devia
tions indicating distortion. Type I error rates between 3% and 8% are considered reasonable. Error
rates above 10% are considered excessive. Rates above 20% are unacceptable. When comparing
statistical procedures, we compare the rates row by row, looking for tests for which rejection rates
are close to 5% and rarely fall outside of the 3%8% range. For this particular example the only
test which meets this criterion is the conventional \
a
= \
a
(1) test. Any other choice of r leads
to a test with unacceptable Type I error probabilities.
In Table 4.1 you can also see the impact of variation in sample size. In each case, the Type I
error probability improves towards 5% as the sample size : increases. There is, however, no magic
choice of : for which all tests perform uniformly well. Test performance deteriorates as r increases,
which is not surprising given the dependence of \
a
(r) on r as shown in Figure 6.1.
Table 4.1
Type I error Probability of Asymptotic 5% \
a
(r) Test
95
o = 1 o = 3
r : = 20 : = 100 : = 500 : = 20 : = 100 : = 500
1 .06 .05 .05 .07 .05 .05
2 .08 .06 .05 .15 .08 .06
3 .10 .06 .05 .21 .12 .07
4 .13 .07 .06 .25 .15 .08
5 .15 .08 .06 .28 .18 .10
6 .17 .09 .06 .30 .20 .11
7 .19 .10 .06 .31 .22 .13
8 .20 .12 .07 .33 .24 .14
9 .22 .13 .07 .34 .25 .15
10 .23 .14 .08 .35 .26 .16
Note: Rejection frequencies from 50,000 simulated random samples
In this example it is not surprising that the choice r = 1 yields the best test statistic. Other
choices are arbitrary and would not be used in practice. While this is clear in this particular
example, in other examples natural choices are not always obvious and the best choices may in fact
appear counterintuitive at …rst.
This point can be illustrated through another example which is similar to one developed in
Gregory and Veall (1985). Take the model
j
i
= ,
0
+r
1i
,
1
+r
2i
,
2
+c
i
(6.3)
E(i
i
c
i
) = 0
and the hypothesis
H
0
:
,
1
,
2
= r
where r is a known constant. Equivalently, de…ne 0 = ,
1
,,
2
, so the hypothesis can be stated as
H
0
: 0 = r.
Let
`
d = (
^
,
0
,
^
,
1
,
^
,
2
) be the leastsquares estimates of (6.3), let
`
X
^
f
be an estimate of the
asymptotic covariance matrix for
`
d and set
^
0 =
^
,
1
,
^
,
2
. De…ne
`
H
1
=
_
_
_
_
_
_
_
_
_
_
_
0
1
^
,
2
÷
^
,
1
^
,
2
2
_
_
_
_
_
_
_
_
_
_
_
so that the standard error for
^
0 is :(
^
0) =
_
:
÷1
`
H
t
1
`
X
`
H
1
_
1¸2
. In this case a tstatistic for H
0
is
t
1a
=
_
^
o
1
^
o
2
÷r
_
:(
^
0)
.
An alternative statistic can be constructed through reformulating the null hypothesis as
H
0
: ,
1
÷r,
2
= 0.
A tstatistic based on this formulation of the hypothesis is
t
2a
=
^
,
1
÷r
^
,
2
_
:
÷1
H
t
2
`
X
^
f
H
2
_
1¸2
.
96
where
H
2
=
_
_
0
1
÷r
_
_
.
To compare t
1a
and t
2a
we perform another simple Monte Carlo simulation. We let r
1i
and r
2i
be mutually independent N(0, 1) variables, c
i
be an independent N(0, o
2
) draw with o = 3, and
normalize ,
0
= 0 and ,
1
= 1. This leaves ,
2
as a free parameter, along with sample size :. We
vary ,
2
among .1, .25, .50, .75, and 1.0 and : among 100 and 500.
Table 4.2
Type I error Probability of Asymptotic 5% ttests
: = 100 : = 500
P(t
a
< ÷1.645) P(t
a
1.645) P(t
a
< ÷1.645) P(t
a
1.645)
,
2
t
1a
t
2a
t
1a
t
2a
t
1a
t
2a
t
1a
t
2a
.10 .47 .06 .00 .06 .28 .05 .00 .05
.25 .26 .06 .00 .06 .15 .05 .00 .05
.50 .15 .06 .00 .06 .10 .05 .00 .05
.75 .12 .06 .00 .06 .09 .05 .00 .05
1.00 .10 .06 .00 .06 .07 .05 .02 .05
The onesided Type I error probabilities P(t
a
< ÷1.645) and P(t
a
1.645) are calculated from
50,000 simulated samples. The results are presented in Table 4.2. Ideally, the entries in the table
should be 0.05. However, the rejection rates for the t
1a
statistic diverge greatly from this value,
especially for small values of ,
2
. The left tail probabilities P(t
1a
< ÷1.645) greatly exceed 5%, while
the right tail probabilities P(t
1a
1.645) are close to zero in most cases. In contrast, the rejection
rates for the linear t
2a
statistic are invariant to the value of ,
2
, and are close to the ideal 5% rate for
both sample sizes. The implication of Table 4.2 is that the two tratios have dramatically di¤erent
sampling behavior.
The common message from both examples is that Wald statistics are sensitive to the algebraic
formulation of the null hypothesis. In all cases, if the hypothesis can be expressed as a linear
restriction on the model parameters, this formulation should be used. If no linear formulation is
feasible, then the “most linear” formulation should be selected (as suggested by the theory of Park
and Phillips (1988)), and alternatives to asymptotic critical values should be considered. It is also
prudent to consider alternative tests to the Wald statistic, such as the GMM distance statistic
which will be presented in Section 9.7 (as advocated by Hansen (2006)).
6.7 Monte Carlo Simulation
In the previous section we introduced the method of Monte Carlo simulation to illustrate the
small sample problems with tests of nonlinear hypotheses. In this section we describe the method
in more detail.
Recall, our data consist of observations (j
i
, i
i
) which are random draws from a population
distribution 1. Let 0 be a parameter and let T
a
= T
a
((j
1
, i
1
) , ..., (j
a
, i
a
) , 0) be a statistic of
interest, for example an estimator
^
0 or a tstatistic (
^
0 ÷0),:(
^
0). The exact distribution of T
a
is
G
a
(n, 1) = P(T
a
_ n [ 1) .
While the asymptotic distribution of T
a
might be known, the exact (…nite sample) distribution G
a
is generally unknown.
Monte Carlo simulation uses numerical simulation to compute G
a
(n, 1) for selected choices of 1.
This is useful to investigate the performance of the statistic T
a
in reasonable situations and sample
sizes. The basic idea is that for any given 1, the distribution function G
a
(n, 1) can be calculated
97
numerically through simulation. The name Monte Carlo derives from the famous Mediterranean
gambling resort where games of chance are played.
The method of Monte Carlo is quite simple to describe. The researcher chooses 1 (the dis
tribution of the data) and the sample size :. A “true” value of 0 is implied by this choice, or
equivalently the value 0 is selected directly by the researcher which implies restrictions on 1.
Then the following experiment is conducted
« : independent random pairs (j
+
i
, i
+
i
) , i = 1, ..., :, are drawn from the distribution 1 using
the computer’s random number generator.
« The statistic T
a
= T
a
((j
+
1
, i
+
1
) , ..., (j
+
a
, i
+
a
) , 0) is calculated on this pseudo data.
For step 1, most computer packages have builtin procedures for generating U[0, 1] and N(0, 1)
random numbers, and from these most random variables can be constructed. (For example, a
chisquare can be generated by sums of squares of normals.)
For step 2, it is important that the statistic be evaluated at the “true” value of 0 corresponding
to the choice of 1.
The above experiment creates one random draw from the distribution G
a
(n, 1). This is one
observation from an unknown distribution. Clearly, from one observation very little can be said.
So the researcher repeats the experiment 1 times, where 1 is a large number. Typically, we set
1 = 1000 or 1 = 5000. We will discuss this choice later.
Notationally, let the /
t
th experiment result in the draw T
ab
, / = 1, ..., 1. These results are stored.
They constitute a random sample of size 1 from the distribution of G
a
(n, 1) = P(T
ab
_ n) =
P(T
a
_ n [ 1) .
From a random sample, we can estimate any feature of interest using (typically) a method of
moments estimator. For example:
Suppose we are interested in the bias, meansquared error (MSE), or variance of the distribution
of
^
0 ÷0. We then set T
a
=
^
0 ÷0, run the above experiment, and calculate
\
1ia:(
^
0) =
1
1
1
b=1
T
ab
=
1
1
1
b=1
^
0
b
÷0
\
'o1(
^
0) =
1
1
1
b=1
(T
ab
)
2
=
1
1
1
b=1
_
^
0
b
÷0
_
2
\
var(
^
0) =
\
'o1(
^
0) ÷
_
\
1ia:(
^
0)
_
2
Suppose we are interested in the Type I error associated with an asymptotic 5% twosided ttest.
We would then set T
a
=
¸
¸
¸
^
0 ÷0
¸
¸
¸ ,:(
^
0) and calculate
^
P =
1
1
1
b=1
1 (T
ab
_ 1.96) , (6.4)
the percentage of the simulated tratios which exceed the asymptotic 5% critical value.
Suppose we are interested in the 5% and 95% quantile of T
a
=
^
0. We then compute the 5% and
95% sample quantiles of the sample ¦T
ab
¦. The c% sample quantile is a number ¡
c
such that c% of
the sample are less than ¡
c
. A simple way to compute sample quantiles is to sort the sample ¦T
ab
¦
from low to high. Then ¡
c
is the ·’th number in this ordered sequence, where · = (1 + 1)c. It
is therefore convenient to pick 1 so that · is an integer. For example, if we set 1 = 999, then the
5% sample quantile is 50’th sorted value and the 95% sample quantile is the 950’th sorted value.
The typical purpose of a Monte Carlo simulation is to investigate the performance of a statistical
procedure (estimator or test) in realistic settings. Generally, the performance will depend on : and
98
1. In many cases, an estimator or test may perform wonderfully for some values, and poorly for
others. It is therefore useful to conduct a variety of experiments, for a selection of choices of : and
1.
As discussed above, the researcher must select the number of experiments, 1. Often this is
called the number of replications. Quite simply, a larger 1 results in more precise estimates of
the features of interest of G
a
, but requires more computational time. In practice, therefore, the
choice of 1 is often guided by the computational demands of the statistical procedure. Since the
results of a Monte Carlo experiment are estimates computed from a random sample of size 1, it
is straightforward to calculate standard errors for any quantity of interest. If the standard error is
too large to make a reliable inference, then 1 will have to be increased.
In particular, it is simple to make inferences about rejection probabilities from statistical
tests, such as the percentage estimate reported in (6.4). The random variable 1 (T
ab
_ 1.96) is
iid Bernoulli, equalling 1 with probability j = E1 (T
ab
_ 1.96) . The average (6.4) is therefore an
unbiased estimator of j with standard error : (^ j) =
_
j (1 ÷j) ,1. As j is unknown, this may be
approximated by replacing j with ^ j or with an hypothesized value. For example, if we are assessing
an asymptotic 5% test, then we can set : (^ j) =
_
(.05) (.95) ,1 · .22,
_
1. Hence, standard errors
for 1 = 100, 1000, and 5000, are, respectively, : (^ j) = .022, .007, and .003.
6.8 Estimating a Wage Equation
We again return to our wage equation. We use the sample of wage earners from the March 2004
Current Population Survey, excluding military. For the dependent variable we use the natural log
of wages so that coe¢cients may be interpreted as semielasticities. For regressors we include years
of education, potential work experience, experience squared, and dummy variable indicators for
the following: married, female, union member, immigrant, hispanic, and nonwhite. Furthermore,
we included a dummy variable for state of residence (including the District of Columbia, this adds
50 regressors). The available sample is 18,808 so the parameter estimates are quite precise and
reported in Table 4.1, excluding the coe¢cients on the state dummy variables.
Table 4.1 displays the parameter estimates in a standard format. The Table clearly states the
estimation method (OLS), the dependent variable (log(Wage)), and the regressors are clearly la
beled. Parameter estimates are both reported for the coe¢cients of interest (the coe¢cients on the
state dummy variables are omitted) and standard errors are reported for all reported coe¢cient es
timates. In addition to the coe¢cient estimates, the table also reports the estimated error standard
deviation, and the sample size. These are useful summary measures of …t which aid readers.
Table 4.1
OLS Estimates of Linear Equation for Log(Wage)
^
, :(
^
,)
Intercept 1.027 .032
Education .101 .002
Experience .033 .001
Experience
2
÷.00057 .00002
Married .102 .008
Female ÷.232 .007
Union Member .097 .010
Immigrant ÷.121 .013
Hispanic ÷.102 .014
NonWhite ÷.070 .010
^ o .4877
Sample Size 18,808
99
Note: Equation also includes state dummy variables.
As a general rule, it is best to always report standard errors along with parameter estimates
(as done in Table 4.1). This allows readers to assess the precision of the parameter estimates, and
form con…dence intervals and ttests on individual coe¢cients if desired. For example, if you are
interested in the di¤erence in mean wages between men and women, you can read from the table
that the estimated coe¢cient on the Female dummy variable is ÷0.232, implying a mean wage
di¤erence of 23%. To assess the precision, you can see that the standard error for this coe¢cient
estimate is 0.007. This implies a 95% asymptotic con…dence interval for the coe¢cient estimate of
[÷.246, ÷.218]. This means that we have estimated the di¤erence in mean wages between men and
women to lie between 22% and 25%. I interpret this as a precise estimate because there is not an
important di¤erence between the lower and upper bound.
Instead of reporting standard errors, some empirical researchers report tratios for each pa
rameter estimate. “tratios” are tstatistics which test the hypothesis that the coe¢cient equals
zero. An example is reported in Table 4.2. In this example, all the tratios are highly signi…cant,
ranging in magnitude from 9.3 to 50. What we learn from these statistics is that these coe¢cients
are nonzero, but not much more. In a sample of this size this …nding is rather uninteresting;
consequently the reporting of tratios is a waste of space. Again consider the malefemale wage
di¤erence. Table 4.2 reports that the tratio is 33, enabling us to reject the hypothesis that the
coe¢cient is zero. But how precise is the reported estimate of a wage gap of 23%? It is hard to
assess from a quick reading of Table 4.2 Standard errors are much more useful, for they enable for
quick and easy assessment of the degree of estimation uncertainty.
Table 4.2
OLS Estimates of Linear Equation for Log(Wage)
Improper Reporting: tratios replacing standard errors
^
, t
Intercept 1.027 32
Education .101 50
Experience .033 33
Experience
2
÷.00057 28
Married .102 12.8
Female ÷.232 33
Union Member .097 9.7
Immigrant ÷.121 9.3
Hispanic ÷.102 7.3
NonWhite ÷.070 7
Returning to the estimated wage equation, one might question whether or not the state dummy
variables are relevant. Computing the Wald statistic (6.1) that the state coe¢cients are jointly zero,
we …nd \
a
= 550. Alternatively, reestimating the model with the 50 state dummies excluded, the
restricted standard deviation estimate is ~ o = .4945. The 1 form of the Wald statistic (6.2) is
\
a
= :
_
~ o
2
^ o
2
÷1
_
= 18, 808
_
.4945
2
.4877
2
÷1
_
= 528.
Notice that the two statistics are close, but not equal. Using either statistic the hypothesis is easily
rejected, as the 1% critical value for the ¸
2
50
distribution is 76.
100
Another interesting question which can be addressed from these estimates is the maximal impact
of experience on mean wages. Ignoring the other coe¢cients, we can write this e¤ect as
log(\aqc) = ,
2
1rjcric:cc +,
3
1rjcric:cc
2
+
Our question is: At which level of experience 0 do workers achieve the highest wage? In this
quadratic model, if ,
2
0 and ,
3
< 0 the solution is
0 = ÷
,
2
2,
3
.
From Table 4.1 we …nd the point estimate
^
0 = ÷
^
,
2
2
^
,
3
= 28.69.
Using the Delta Method, we can calculate a standard error of :(
^
0) = .40, implying a 95% con…dence
interval of [27.9, 29.5].
However, this is a poor choice, as the coverage probability of this con…dence interval is one
minus the Type I error of the hypothesis test based on the ttest. In Section 6.6 we discovered
that such ttests have very poor Type I error rates. Instead, we found better Type I error rates by
reformulating the hypothesis as a linear restriction. These tstatistics take the form
t
a
(0) =
^
,
2
+ 2
^
,
3
0
_
l
t
0
`
X l
0
_
1¸2
where
l
0
=
_
1
20
_
and
`
X is the covariance matrix for (
^
,
2
^
,
3
).
In the present context we are interested in forming a con…dence interval, not testing a hypothesis,
so we have to go one step further. Our desired con…dence interval will be the set of parameter values
0 which are not rejected by the hypothesis test. This is the set of 0 such that [t
a
(0)[ _ 1.96. Since
t
a
(0) is a nonlinear function of 0, there is not a simple expression for this set, but it can be found
numerically quite easily. This set is [27.0, 29.5]. Notice that the upper end of the con…dence interval
is the same as that from the delta method, but the lower end is substantially lower.
101
Exercises
For exercises 14, the following de…nition is used. In the model ¸ = Ad +c, the leastsquares
estimate of d subject to the restriction l(d) = 0 is
¯
d = argmin
h(f)=0
o
a
(d)
o
a
(d) = (¸ ÷Ad)
t
(¸ ÷Ad) .
That is,
¯
d minimizes the sum of squared errors o
a
(d) over all d such that the restriction holds.
Exercise 6.1 In the model ¸ = A
1
d
1
+ A
2
d
2
+ c, show that the leastsquares estimate of d =
(d
1
, d
2
) subject to the constraint that d
2
= 0 is the OLS regression of ¸ on A
1
.
Exercise 6.2 In the model ¸ = A
1
d
1
+ A
2
d
2
+ c, show that the leastsquares estimate of d =
(d
1
, d
2
), subject to the constraint that d
1
= c (where c is some given vector) is simply the OLS
regression of ¸ ÷A
1
c on A
2
.
Exercise 6.3 In the model ¸ = A
1
d
1
+ A
2
d
2
+ c, with A
1
and A
2
each : /, …nd the least
squares estimate of d = (d
1
, d
2
), subject to the constraint that d
1
= ÷d
2
.
Exercise 6.4 Take the model ¸ = Ad + c with the restriction H
t
d = r where H is a known
/ : matrix, r is a known : 1 vector, 0 < : < /, and rank(H) = :. Explain why
¯
d solves the
minimization of the Lagrangian
/(d, X) =
1
2
o
a
(d) +X
t
_
H
t
d ÷r
_
where X is : 1.
(a) Show that the solution is
¯
d =
`
d ÷
_
A
t
A
_
÷1
H
_
H
t
_
A
t
A
_
÷1
H
_
÷1
_
H
t
`
d ÷r
_
`
X =
_
H
t
_
A
t
A
_
÷1
H
_
÷1
_
H
t
`
d ÷r
_
where
`
d =
_
A
t
A
_
÷1
A
t
¸
is the unconstrained OLS estimator.
(b) Verify that H
t
¯
d = r.
(c) Show that if H
t
d = r is true, then
¯
d ÷d =
_
1
I
÷
_
A
t
A
_
÷1
H
_
H
t
_
A
t
A
_
÷1
H
_
÷1
H
t
_
_
A
t
A
_
÷1
A
t
c.
(d) Under the standard assumptions plus H
t
d = r, …nd the asymptotic distribution of
_
:
_
¯
d ÷d
_
as : ÷·.
(e) Find an appropriate formula to calculate standard errors for the elements of
¯
d.
102
Exercise 6.5 Prove that if an additional regressor A
I+1
is added to A, Theil’s adjusted 1
2
increases if and only if [t
I+1
[ 1, where t
I+1
=
^
,
I+1
,:(
^
,
I+1
) is the tratio for
^
,
I+1
and
:(
^
,
I+1
) =
_
:
2
[(A
t
A)
÷1
]
I+1,I+1
_
1¸2
is the homoskedasticityformula standard error.
Exercise 6.6 The data set invest.dat contains data on 565 U.S. …rms extracted from Compustat
for the year 1987. The variables, in order, are
« 1
i
Investment to Capital Ratio (multiplied by 100).
« Q
i
Total Market Value to Asset Ratio (Tobin’s Q).
« C
i
Cash Flow to Asset Ratio.
« 1
i
Long Term Debt to Asset Ratio.
The ‡ow variables are annual sums for 1987. The stock variables are beginning of year.
(a) Estimate a linear regression of 1
i
on the other variables. Calculate appropriate standard
errors.
(b) Calculate asymptotic con…dence intervals for the coe¢cients.
(c) This regression is related to Tobin’s ¡ theory of investment, which suggests that investment
should be predicted solely by Q
i
. Thus the coe¢cient on Q
i
should be positive and the others
should be zero. Test the joint hypothesis that the coe¢cients on C
i
and 1
i
are zero. Test the
hypothesis that the coe¢cient on Q
i
is zero. Are the results consistent with the predictions
of the theory?
(d) Now try a nonlinear (quadratic) speci…cation. Regress 1
i
on Q
i
, C
i
, 1
i
, Q
2
i
, C
2
i
, 1
2
i
, Q
i
C
i
,
Q
i
1
i
, C
i
1
i
. Test the joint hypothesis that the six interaction and quadratic coe¢cients are
zero.
Exercise 6.7 In a paper in 1963, Marc Nerlove analyzed a cost function for 145 American electric
companies. (The problem is discussed in Example 8.3 of Greene, section 1.7 of Hayashi, and the
empirical exercise in Chapter 1 of Hayashi). The data …le nerlov.dat contains his data. The
variables are described on page 77 of Hayashi. Nerlov was interested in estimating a cost function:
TC = )(Q, 11, 11, 11).
(a) First estimate an unrestricted CobbDouglass speci…cation
log TC
i
= ,
1
+,
2
log Q
i
+,
3
log 11
i
+,
4
log 11
i
+,
5
log 11
i
+c
i
. (6.5)
Report parameter estimates and standard errors. You should obtain the same OLS estimates
as in Hayashi’s equation (1.7.7), but your standard errors may di¤er.
(b) Using a Wald statistic, test the hypothesis H
0
: ,
3
+,
4
+,
5
= 1.
(c) Estimate (6.5) by leastsquares imposing this restriction by substitution. Report your para
meter estimates and standard errors.
(d) Estimate (6.5) subject to ,
3
+ ,
4
+ ,
5
= 1 using the restricted leastsquares estimator from
problem 4. Do you obtain the same estimates as in part (c)?
103
Chapter 7
Additional Regression Topics
7.1 Generalized Least Squares
In the projection model, we know that the leastsquares estimator is semiparametrically e¢cient
for the projection coe¢cient. However, in the linear regression model
j
i
= i
t
i
d +c
i
E(c
i
[ i
i
) = 0,
the leastsquares estimator is ine¢cient. The theory of Chamberlain (1987) can be used to show
that in this model the semiparametric e¢ciency bound is obtained by the Generalized Least
Squares (GLS) estimator (4.11) introduced in Section 4.5.1. The GLS estimator is sometimes
called the Aitken estimator. The GLS estimator (7.1) is infeasible since the matrix L is unknown.
A feasible GLS (FGLS) estimator replaces the unknown L with an estimate
`
L = diag¦^ o
2
1
, ..., ^ o
2
a
¦.
We now discuss this estimation problem.
Suppose that we model the conditional variance using the parametric form
o
2
i
= c
0
+z
t
1i
o
1
= o
t
z
i
,
where z
1i
is some ¡ 1 function of i
i
. Typically, z
1i
are squares (and perhaps levels) of some (or
all) elements of i
i
. Often the functional form is kept simple for parsimony.
Let j
i
= c
2
i
. Then
E(j
i
[ i
i
) = c
0
+z
t
1i
o
1
and we have the regression equation
j
i
= c
0
+z
t
1i
o
1
+¸
i
(7.1)
E(¸
i
[ i
i
) = 0.
This regression error ¸
i
is generally heteroskedastic and has the conditional variance
var (¸
i
[ i
i
) = var
_
c
2
i
[ i
i
_
= E
_
_
c
2
i
÷E
_
c
2
i
[ i
i
__
2
[ i
i
_
= E
_
c
4
i
[ i
i
_
÷
_
E
_
c
2
i
[ i
i
__
2
.
Suppose c
i
(and thus j
i
) were observed. Then we could estimate o by OLS:
` o =
_
Z
t
Z
_
÷1
Z
t
µ
j
÷÷o
104
and
_
:(` o÷o)
o
÷÷N(0, X
o
)
where
X
o
=
_
E
_
z
i
z
t
i
__
÷1
E
_
z
i
z
t
i
¸
2
i
_ _
E
_
z
i
z
t
i
__
÷1
. (7.2)
While c
i
is not observed, we have the OLS residual ^ c
i
= j
i
÷i
t
i
`
d = c
i
÷i
t
i
(
`
d ÷d). Thus
c
i
= ^ j ÷j
i
= ^ c
2
i
÷c
2
i
= ÷2c
i
i
t
i
_
`
d ÷d
_
+ (
`
d ÷d)
t
i
i
i
t
i
(
`
d ÷d).
And then
1
_
:
a
i=1
z
i
c
i
=
÷2
:
a
i=1
z
i
c
i
i
t
i
_
:
_
`
d ÷d
_
+
1
:
a
i=1
z
i
(
`
d ÷d)
t
i
i
i
t
i
(
`
d ÷d)
_
:
j
÷÷0
Let
¯ o =
_
Z
t
Z
_
÷1
Z
t
` µ (7.3)
be from OLS regression of ^ j
i
on z
i
. Then
_
:(¯ o÷o) =
_
:(` o÷o) +
_
:
÷1
Z
t
Z
_
÷1
:
÷1¸2
Z
t
ç
o
÷÷N(0, X
o
) (7.4)
Thus the fact that j
i
is replaced with ^ j
i
is asymptotically irrelevant. We call (7.3) the skedastic
regression, as it is estimating the conditional variance of the regression of j
i
on i
i
. We have shown
that o is consistently estimated by a simple procedure, and hence we can estimate o
2
i
= z
t
i
o by
~ o
2
i
= ¯ o
t
z
i
. (7.5)
Suppose that ~ o
2
i
0 for all i. Then set
¯
L = diag¦~ o
2
1
, ..., ~ o
2
a
¦
and
¯
d =
_
A
t
¯
L
÷1
A
_
÷1
A
t
¯
L
÷1
¸.
This is the feasible GLS, or FGLS, estimator of d. Since there is not a unique speci…cation for
the conditional variance the FGLS estimator is not unique, and will depend on the model (and
estimation method) for the skedastic regression.
One typical problem with implementation of FGLS estimation is that in the linear speci…cation
(7.1), there is no guarantee that ~ o
2
i
0 for all i. If ~ o
2
i
< 0 for some i, then the FGLS estimator
is not well de…ned. Furthermore, if ~ o
2
i
 0 for some i then the FGLS estimator will force the
regression equation through the point (j
i
, i
i
), which is undesirable. This suggests that there is a
need to bound the estimated variances away from zero. A trimming rule takes the form
o
2
i
= max[~ o
2
i
, c^ o
2
]
for some c 0. For example, setting c = 1,4 means that the conditional variance function is
constrained to exceed onefourth of the unconditional variance. As there is no clear method to
select c, this introduces a degree of arbitrariness. In this context it is useful to reestimate the
model with several choices for the trimming parameter. If the estimates turn out to be sensitive to
its choice, the estimation method should probably be reconsidered.
It is possible to show that if the skedastic regression is correctly speci…ed, then FGLS is asymp
totically equivalent to GLS. As the proof is tricky, we just state the result without proof.
105
Theorem 7.1.1 If the skedastic regression is correctly speci…ed,
_
:
_
¯
d
G1S
÷
¯
d
1G1S
_
j
÷÷0,
and thus
_
:
_
¯
d
1G1S
÷d
_
o
÷÷N(0, X
f
) ,
where
X
f
=
_
E
_
o
÷2
i
i
i
i
t
i
__
÷1
.
Examining the asymptotic distribution of Theorem 7.1.1, the natural estimator of the asymp
totic variance of
¯
d is
¯
X
0
f
=
_
1
:
a
i=1
~ o
÷2
i
i
i
i
t
i
_
÷1
=
_
1
:
A
t
¯
L
÷1
A
_
÷1
.
which is consistent for X
f
as : ÷ ·. This estimator
¯
X
0
f
is appropriate when the skedastic
regression (7.1) is correctly speci…ed.
It may be the case that o
t
z
i
is only an approximation to the true conditional variance o
2
i
=
E(c
2
i
[ i
i
). In this case we interpret o
t
z
i
as a linear projection of c
2
i
on z
i
.
¯
d should perhaps be
called a quasiFGLS estimator of d. Its asymptotic variance is not that given in Theorem 7.1.1.
Instead,
X
f
=
_
E
_
_
o
t
z
i
_
÷1
i
i
i
t
i
__
÷1
_
E
_
_
o
t
z
i
_
÷2
o
2
i
i
i
i
t
i
___
E
_
_
o
t
z
i
_
÷1
i
i
i
t
i
__
÷1
.
X
f
takes a sandwich form similar to the covariance matrix of the OLS estimator. Unless o
2
i
= o
t
z
i
,
¯
X
0
f
is inconsistent for X
f
.
An appropriate solution is to use a Whitetype estimator in place of
¯
X
0
f
. This may be written
as
¯
X
f
=
_
1
:
a
i=1
~ o
÷2
i
i
i
i
t
i
_
÷1
_
1
:
a
i=1
~ o
÷4
i
^ c
2
i
i
i
i
t
i
__
1
:
a
i=1
~ o
÷2
i
i
i
i
t
i
_
÷1
=
_
1
:
A
t
¯
L
÷1
A
_
÷1
_
1
:
A
t
¯
L
÷1
`
L
¯
L
÷1
A
__
1
:
A
t
¯
L
÷1
A
_
÷1
where
`
L = diag¦^ c
2
1
, ..., ^ c
2
a
¦. This is estimator is robust to misspeci…cation of the conditional vari
ance, and was proposed by Cragg (1992).
In the linear regression model, FGLS is asymptotically superior to OLS. Why then do we not
exclusively estimate regression models by FGLS? This is a good question. There are three reasons.
First, FGLS estimation depends on speci…cation and estimation of the skedastic regression.
Since the form of the skedastic regression is unknown, and it may be estimated with considerable
error, the estimated conditional variances may contain more noise than information about the true
conditional variances. In this case, FGLS can do worse than OLS in practice.
Second, individual estimated conditional variances may be negative, and this requires trimming
to solve. This introduces an element of arbitrariness which is unsettling to empirical researchers.
Third, and probably most importantly, OLS is a robust estimator of the parameter vector. It
is consistent not only in the regression model, but also under the assumptions of linear projection.
The GLS and FGLS estimators, on the other hand, require the assumption of a correct conditional
mean. If the equation of interest is a linear projection and not a conditional mean, then the OLS
106
and FGLS estimators will converge in probability to di¤erent limits as they will be estimating two
di¤erent projections. The FGLS probability limit will depend on the particular function selected for
the skedastic regression. The point is that the e¢ciency gains from FGLS are built on the stronger
assumption of a correct conditional mean, and the cost is a loss of robustness to misspeci…cation.
7.2 Testing for Heteroskedasticity
The hypothesis of homoskedasticity is that E
_
c
2
i
[ i
i
_
= o
2
, or equivalently that
H
0
: o
1
= 0
in the regression (7.1). We may therefore test this hypothesis by the estimation (7.3) and con
structing a Wald statistic. In the classic literature it is typical to impose the stronger assumption
that c
i
is independent of i
i
, in which case ¸
i
is independent of i
i
and the asymptotic variance (7.2)
for ¯ o simpli…es to
\
o
=
_
E
_
z
i
z
t
i
__
÷1
E
_
¸
2
i
_
. (7.6)
Hence the standard test of H
0
is a classic 1 (or Wald) test for exclusion of all regressors from
the skedastic regression (7.3). The asymptotic distribution (7.4) and the asymptotic variance (7.6)
under independence show that this test has an asymptotic chisquare distribution.
Theorem 7.2.1 Under H
0
and c
i
independent of i
i
, the Wald test of H
0
is asymptotically ¸
2
q
.
Most tests for heteroskedasticity take this basic form. The main di¤erences between popular
tests are which transformations of i
i
enter z
i
. Motivated by the form of the asymptotic variance
of the OLS estimator
`
d, White (1980) proposed that the test for heteroskedasticity be based on
setting z
i
to equal all nonredundant elements of i
i
, its squares, and all crossproducts. Breusch
Pagan (1979) proposed what might appear to be a distinct test, but the only di¤erence is that they
allowed for general choice of z
i
, and replaced E
_
¸
2
i
_
with 2o
4
which holds when c
i
is N
_
0, o
2
_
. If
this simpli…cation is replaced by the standard formula (under independence of the error), the two
tests coincide.
It is important not to misuse tests for heteroskedasticity. It should not be used to determine
whether to estimate a regression equation by OLS or FGLS, nor to determine whether classic or
White standard errors should be reported. Hypothesis tests are not designed for these purposes.
Rather, tests for heteroskedasticity should be used to answer the scienti…c question of whether or
not the conditional variance is a function of the regressors. If this question is not of economic
interest, then there is no value in conducting a test for heteorskedasticity.
7.3 Forecast Intervals
In the linear regression model the conditional mean of j
i
given i
i
= i is
:(i) = E(j
i
[ i
i
= i) = i
t
d.
In some cases, we want to estimate :(i) at a particular point i. Notice that this is a (linear)
function of d. Letting /(d) = i
t
d and 0 = /(d), we see that ^ :(i) =
^
0 = i
t
`
d and H
f
= i, so
:(
^
0) =
_
:
÷1
i
t `
X
f
i. Thus an asymptotic 95% con…dence interval for :(i) is
_
i
t
`
d ±2
_
:
÷1
i
t `
X
f
i
_
.
It is interesting to observe that if this is viewed as a function of i, the width of the con…dence set
is dependent on i.
107
For a given value of i
i
= i, we may want to forecast (guess) j
i
outofsample. A reasonable
rule is the conditional mean :(i) as it is the meansquareminimizing forecast. A point forecast is
the estimated conditional mean ^ :(i) = i
t
`
d. We would also like a measure of uncertainty for the
forecast.
The forecast error is ^ c
i
= j
i
÷ ^ :(i) = c
i
÷ i
t
_
`
d ÷d
_
. As the outofsample error c
i
is
independent of the insample estimate
`
d, this has variance
E^ c
2
i
= E
_
c
2
i
[ i
i
= i
_
+i
t
E
_
`
d ÷d
__
`
d ÷d
_
t
i
= o
2
(i) +:
÷1
i
t
X
f
i.
Assuming E
_
c
2
i
[ i
i
_
= o
2
, the natural estimate of this variance is ^ o
2
+ :
÷1
i
t
`
X
f
i, so a standard
error for the forecast is ^ :(i) =
_
^ o
2
+:
÷1
i
t `
X
f
i. Notice that this is di¤erent from the standard
error for the conditional mean. If we have an estimate of the conditional variance function, e.g.
~ o
2
(i) = ¯ o
t
z from (7.5), then the forecast standard error is ^ :(i) =
_
~ o
2
(i) +:
÷1
i
t `
X
f
i
It would appear natural to conclude that an asymptotic 95% forecast interval for j
i
is
_
i
t
`
d ±2^ :(i)
_
,
but this turns out to be incorrect. In general, the validity of an asymptotic con…dence interval is
based on the asymptotic normality of the studentized ratio. In the present case, this would require
the asymptotic normality of the ratio
c
i
÷i
t
_
`
d ÷d
_
^ :(i)
.
But no such asymptotic approximation can be made. The only special exception is the case where
c
i
has the exact distribution N(0, o
2
), which is generally invalid.
To get an accurate forecast interval, we need to estimate the conditional distribution of c
i
given
i
i
= i, which is a much more di¢cult task. Perhaps due to this di¢culty, many applied forecasters
use the simple approximate interval
_
i
t
`
d ±2^ :(i)
_
despite the lack of a convincing justi…cation.
7.4 NonLinear Least Squares
In some cases we might use a parametric regression function :(i, 0) = E(j
i
[ i
i
= i) which
is a nonlinear function of the parameters 0. We describe this setting as nonlinear regression.
Examples of nonlinear regression functions include
:(r, 0) = 0
1
+0
2
r
1 +0
3
r
:(r, 0) = 0
1
+0
2
r
0
3
:(r, 0) = 0
1
+0
2
exp(0
3
r)
:(i, 0) = G(i
t
0), G known
:(i, 0) = 0
t
1
i
1
+
_
0
t
2
i
1
_
_
r
2
÷0
3
0
4
_
:(r, 0) = 0
1
+0
2
r +0
3
(r ÷0
4
) 1 (r 0
4
)
:(i, 0) =
_
0
t
1
i
1
_
1 (r
2
< 0
3
) +
_
0
t
2
i
1
_
1 (r
2
0
3
)
In the …rst …ve examples, :(i, 0) is (generically) di¤erentiable in the parameters 0. In the …nal
two examples, : is not di¤erentiable with respect to 0
4
and 0
3
which alters some of the analysis.
When it exists, let
n
0
(i, 0) =
0
00
:(i, 0) .
108
Nonlinear regression is sometimes adopted because the functional form :(i, 0) is suggested
by an economic model. In other cases, it is adopted as a ‡exible approximation to an unknown
regression function.
The least squares estimator
`
0 minimizes the normalized sumofsquarederrors
o
a
(0) =
1
:
a
i=1
(j
i
÷:(i
i
, 0))
2
.
When the regression function is nonlinear, we call this the nonlinear least squares (NLLS)
estimator. The NLLS residuals are ^ c
i
= j
i
÷:
_
i
i
,
`
0
_
.
One motivation for the choice of NLLS as the estimation method is that the parameter 0 is the
solution to the population problem min
0
E(j
i
÷:(i
i
, 0))
2
Since sumofsquarederrors function o
a
(0) is not quadratic,
`
0 must be found by numerical
methods. See Appendix E. When :(i, 0) is di¤erentiable, then the FOC for minimization are
0 =
a
i=1
n
0
_
i
i
,
`
0
_
^ c
i
. (7.7)
Theorem 7.4.1 Asymptotic Distribution of NLLS Estimator
If the model is identi…ed and :(i, 0) is di¤erentiable with respect to 0,
_
:
_
`
0 ÷0
_
o
÷÷N(0, X
0
)
X
0
=
_
E
_
n
0i
n
t
0i
__
÷1
_
E
_
n
0i
n
t
0i
c
2
i
__ _
E
_
n
0i
n
t
0i
__
÷1
where n
0i
= n
0
(i
i
, 0
0
).
Based on Theorem 7.4.1, an estimate of the asymptotic variance X
0
is
`
X
0
=
_
1
:
a
i=1
` n
0i
` n
t
0i
_
÷1
_
1
:
a
i=1
` n
0i
` n
t
0i
^ c
2
i
__
1
:
a
i=1
` n
0i
` n
t
0i
_
÷1
where ` n
0i
= n
0
(i
i
,
`
0) and ^ c
i
= j
i
÷:(i
i
,
`
0).
Identi…cation is often tricky in nonlinear regression models. Suppose that
:(i
i
, 0) = d
t
1
z
i
+d
t
2
i
i
(¸)
where i
i
(¸) is a function of i
i
and the unknown parameter _. Examples include r
i
(¸) = r
¸
i
,
r
i
(¸) = exp(¸r
i
) , and r
i
(_) = r
i
1 (q (r
i
) ¸). The model is linear when d
2
= 0, and this is
often a useful hypothesis (submodel) to consider. Thus we want to test
H
0
: d
2
= 0.
However, under H
0
, the model is
j
i
= d
t
1
z
i
+c
i
and both d
2
and ¸ have dropped out. This means that under H
0
, ¸ is not identi…ed. This renders
the distribution theory presented in the previous section invalid. Thus when the truth is that
109
d
2
= 0, the parameter estimates are not asymptotically normally distributed. Furthermore, tests
of H
0
do not have asymptotic normal or chisquare distributions.
The asymptotic theory of such tests have been worked out by Andrews and Ploberger (1994)
and B. Hansen (1996). In particular, Hansen shows how to use simulation (similar to the bootstrap)
to construct the asymptotic critical values (or pvalues) in a given application.
Proof of Theorem 7.4.1 (Sketch). NLLS estimation falls in the class of optimization estimators.
For this theory, it is useful to denote the true value of the parameter 0 as 0
0
.
The …rst step is to show that
`
0
j
÷÷0
0
. Proving that nonlinear estimators are consistent is more
challenging than for linear estimators. We sketch the main argument. The idea is that
`
0 minimizes
the sample criterion function o
a
(0), which (for any 0) converges in probability to the meansquared
error function E(j
i
÷:(i
i
, 0))
2
. Thus it seems reasonable that the minimizer
`
0 will converge in
probability to 0
0
, the minimizer of E(j
i
÷:(i
i
, 0))
2
. It turns out that to show this rigorously, we
need to show that o
a
(0) converges uniformly to its expectation E(j
i
÷:(i
i
, 0))
2
, which means
that the maximum discrepancy must converge in probability to zero, to exclude the possibility that
o
a
(0) is excessively wiggly in 0. Proving uniform convergence is technically challenging, but it
can be shown to hold broadly for relevant nonlinear regression models, especially if the regression
function :(i
i
, 0) is di¤erentiabel in 0. For a complete treatment of the theory of optimization
estimators see Newey and McFadden (1994).
Since
`
0
j
÷÷ 0
0
,
`
0 is close to 0
0
for : large, so the minimization of o
a
(0) only needs to be
examined for 0 close to 0
0
. Let
j
0
i
= c
i
+n
t
0i
0
0
.
For 0 close to the true value 0
0
, by a …rstorder Taylor series approximation,
:(i
i
, 0) · :(i
i
, 0
0
) +n
t
0i
(0 ÷0
0
) .
Thus
j
i
÷:(i
i
, 0) · (c
i
+:(i
i
, 0
0
)) ÷
_
:(i
i
, 0
0
) +n
t
0i
(0 ÷0
0
)
_
= c
i
÷n
t
0i
(0 ÷0
0
)
= j
0
i
÷n
t
0i
0.
Hence the sum of squared errors function is
o
a
(0) =
a
i=1
(j
i
÷:(i
i
, 0))
2
·
a
i=1
_
j
0
i
÷n
t
0i
0
_
2
and the righthandside is the SSE function for a linear regression of j
0
i
on n
0i
. Thus the NLLS
estimator
`
0 has the same asymptotic distribution as the (infeasible) OLS regression of j
0
i
on n
0i
,
which is that stated in the theorem.
7.5 Least Absolute Deviations
We stated that a conventional goal in econometrics is estimation of impact of variation in i
i
on the central tendency of j
i
. We have discussed projections and conditional means, but these are
not the only measures of central tendency. An alternative good measure is the conditional median.
To recall the de…nition and properties of the median, let j be a continuous random variable.
The median 0 = med(j) is the value such that P(j _ 0) = P(j _ 0
0
) = .5. Two useful facts about
the median are that
0 = argmin
0
E[j ÷0[ (7.8)
110
and
Esgn(j ÷0) = 0
where
sgn(n) =
_
1 if n _ 0
÷1 if n < 0
is the sign function.
These facts and de…nitions motivate three estimators of 0. The …rst de…nition is the 50t/
empirical quantile. The second is the value which minimizes
1
a
a
i=1
[j
i
÷0[ , and the third de…nition
is the solution to the moment equation
1
a
a
i=1
sgn(j
i
÷0) . These distinctions are illusory, however,
as these estimators are indeed identical.
Now let’s consider the conditional median of j given a random vector i. Let :(i) = med(j [ i)
denote the conditional median of j given i. The linear median regression model takes the form
j
i
= i
t
i
d +c
i
med(c
i
[ i
i
) = 0
In this model, the linear function med(j
i
[ i
i
= i) = i
t
d is the conditional median function, and
the substantive assumption is that the median function is linear in i.
Conditional analogs of the facts about the median are
« P(j
i
_ i
t
d
0
[ i
i
= i) = P(j
i
i
t
d [ i
i
= i) = .5
« E(sgn(c
i
) [ i
i
) = 0
« E(i
i
sgn(c
i
)) = 0
« d = min
f
E[j
i
÷i
t
i
d[
These facts motivate the following estimator. Let
1¹1
a
(d) =
1
:
a
i=1
¸
¸
j
i
÷i
t
i
d
¸
¸
be the average of absolute deviations. The least absolute deviations (LAD) estimator of d
minimizes this function
`
d = argmin
f
1¹1
a
(d)
Equivalently, it is a solution to the moment condition
1
:
a
i=1
i
i
sgn
_
j
i
÷i
t
i
`
d
_
= 0. (7.9)
The LAD estimator has an asymptotic normal distribution.
Theorem 7.5.1 Asymptotic Distribution of LAD Estimator
When the conditional median is linear in i
_
:
_
`
d ÷d
_
o
÷÷N(0, X )
where
\ =
1
4
_
E
_
i
i
i
t
i
) (0 [ i
i
)
__
÷1
_
Ei
i
i
t
i
_ _
E
_
i
i
i
t
i
) (0 [ i
i
)
__
÷1
and ) (c [ i) is the conditional density of c
i
given i
i
= i.
111
The variance of the asymptotic distribution inversely depends on ) (0 [ i) , the conditional
density of the error at its median. When ) (0 [ i) is large, then there are many innovations near
to the median, and this improves estimation of the median. In the special case where the error is
independent of i
i
, then ) (0 [ i) = ) (0) and the asymptotic variance simpli…es
X =
(Ei
i
i
t
i
)
÷1
4) (0)
2
(7.10)
This simpli…cation is similar to the simpli…cation of the asymptotic covariance of the OLS estimator
under homoskedasticity.
Computation of standard error for LAD estimates typically is based on equation (7.10). The
main di¢culty is the estimation of )(0), the height of the error density at its median. This can be
done with kernel estimation techniques. See Chapter 16. While a complete proof of Theorem 7.5.1
is advanced, we provide a sketch here for completeness.
Proof of Theorem 7.5.1: Similar to NLLS, LAD is an optimization estimator. Let d
0
denote
the true value of d
0
.
The …rst step is to show that
`
d
j
÷÷d
0
. The general nature of the proof is similar to that for the
NLLS estimator, and is sketched here. For any …xed d, by the WLLN, 1¹1
a
(d)
j
÷÷E[j
i
÷i
t
i
d[ .
Furthermore, it can be shown that this convergence is uniform in d. (Proving uniform convergence
is more challenging than for the NLLS criterion since the LAD criterion is not di¤erentiable in
d.) It follows that
`
d, the minimizer of 1¹1
a
(d), converges in probability to d
0
, the minimizer of
E[j
i
÷i
t
i
d[.
Since sgn(a) = 1÷2 1 (a _ 0) , (7.9) is equivalent to j
a
(
`
d) = 0, where j
a
(d) = :
÷1
a
i=1
j
i
(d)
and j
i
(d) = i
i
(1 ÷2 1 (j
i
_ i
t
i
d)) . Let j(d) = Ej
i
(d). We need three preliminary results. First,
by the central limit theorem (Theorem C.2.1)
_
:(j
a
(d
0
) ÷j(d
0
)) = ÷:
÷1¸2
a
i=1
j
i
(d
0
)
o
÷÷N
_
0, Ei
i
i
t
i
_
since Ej
i
(d
0
)j
i
(d
0
)
t
= Ei
i
i
t
i
. Second using the law of iterated expectations and the chain rule of
di¤erentiation,
0
0d
t
j(d) =
0
0d
t
Ei
i
_
1 ÷2 1
_
j
i
_ i
t
i
d
__
= ÷2
0
0d
t
E
_
i
i
E
_
1
_
c
i
_ i
t
i
d ÷i
t
i
d
0
_
[ i
i
_¸
= ÷2
0
0d
t
E
_
i
i
_
æ
0
i
f÷æ
0
i
f
0
÷o
) (c [ i
i
) dc
_
= ÷2E
_
i
i
i
t
i
)
_
i
t
i
d ÷i
t
i
d
0
[ i
i
_¸
so
0
0d
t
j(d) = ÷2E
_
i
i
i
t
i
) (0 [ i
i
)
¸
.
Third, by a Taylor series expansion and the fact j(d) = 0
j(
`
d) ·
0
0d
t
j(d)
_
`
d ÷d
_
.
112
Together
_
:
_
`
d ÷d
0
_
·
_
0
0d
t
j(d
0
)
_
÷1
_
:j(
`
d)
=
_
÷2E
_
i
i
i
t
i
) (0 [ i
i
)
¸_
÷1
_
:
_
j(
`
d) ÷j
a
(
`
d)
_
·
1
2
_
E
_
i
i
i
t
i
) (0 [ i
i
)
¸_
÷1
_
:(j
a
(d
0
) ÷j(d
0
))
o
÷÷
1
2
_
E
_
i
i
i
t
i
) (0 [ i
i
)
¸_
÷1
N
_
0, Ei
i
i
t
i
_
= N(0, X ) .
The third line follows from an asymptotic empirical process argument and the fact that
`
d
j
÷÷d
0
.
7.6 Quantile Regression
Quantile regression has become quite popular in recent econometric practice. For t ¸ [0, 1] the
t’th quantile Q
t
of a random variable with distribution function 1(n) is de…ned as
Q
t
= inf ¦n : 1(n) _ t¦
When 1(n) is continuous and strictly monotonic, then 1 (Q
t
) = t, so you can think of the quantile
as the inverse of the distribution function. The quantile Q
t
is the value such that t (percent) of
the mass of the distribution is less than Q
t
. The median is the special case t = .5.
The following alternative representation is useful. If the random variable l has t’th quantile
Q
t
, then
Q
t
= argmin
0
Ej
t
(l ÷0) . (7.11)
where j
t
(¡) is the piecewise linear function
j
t
(¡) =
_
÷¡ (1 ÷t) ¡ < 0
¡t ¡ _ 0
(7.12)
= ¡ (t ÷1 (¡ < 0)) .
This generalizes representation (7.8) for the median to all quantiles.
For the random variables (j
i
, i
i
) with conditional distribution function 1 (j [ i) the conditional
quantile function ¡
t
(i) is
Q
t
(i) = inf ¦j : 1 (j [ i) _ t¦ .
Again, when 1 (j [ i) is continuous and strictly monotonic in j, then 1 (Q
t
(i) [ i) = t. For
…xed t, the quantile regression function ¡
t
(i) describes how the t’th quantile of the conditional
distribution varies with the regressors.
As functions of i, the quantile regression functions can take any shape. However for computa
tional convenience it is typical to assume that they are (approximately) linear in i (after suitable
transformations). This linear speci…cation assumes that Q
t
(i) = d
t
t
i where the coe¢cients d
t
vary across the quantiles t. We then have the linear quantile regression model
j
i
= i
t
i
d
t
+c
i
where c
i
is the error de…ned to be the di¤erence between j
i
and its t’th conditional quantile i
t
i
d
t
.
By construction, the t’th conditional quantile of c
i
is zero, otherwise its properties are unspeci…ed
without further restrictions.
113
Given the representation (7.11), the quantile regression estimator
`
d
t
for d
t
solves the mini
mization problem
`
d
t
= argmin
f
o
t
a
(d)
where
o
t
a
(d) =
1
:
a
i=1
j
t
_
j
i
÷i
t
i
d
_
and j
t
(¡) is de…ned in (7.12).
Since the quanitle regression criterion function o
t
a
(d) does not have an algebraic solution,
numerical methods are necessary for its minimization. Furthermore, since it has discontinuous
derivatives, conventional Newtontype optimization methods are inappropriate. Fortunately, fast
linear programming methods have been developed for this problem, and are widely available.
An asymptotic distribution theory for the quantile regression estimator can be derived using
similar arguments as those for the LAD estimator in Theorem 7.5.1.
Theorem 7.6.1 Asymptotic Distribution of the Quantile Regres
sion Estimator
When the t’th conditional quantile is linear in i
_
:
_
`
d
t
÷d
t
_
o
÷÷N(0, X
t
) ,
where
X
t
= t (1 ÷t)
_
E
_
i
i
i
t
i
) (0 [ i
i
)
__
÷1
_
Ei
i
i
t
i
_ _
E
_
i
i
i
t
i
) (0 [ i
i
)
__
÷1
and ) (c [ i) is the conditional density of c
i
given i
i
= i.
In general, the asymptotic variance depends on the conditional density of the quantile regression
error. When the error c
i
is independent of i
i
, then ) (0 [ i
i
) = ) (0) , the unconditional density of
c
i
at 0, and we have the simpli…cation
X
t
=
t (1 ÷t)
) (0)
2
_
E
_
i
i
i
t
i
__
÷1
.
A recent monograph on the details of quantile regression is Koenker (2005).
7.7 Testing for Omitted NonLinearity
If the goal is to estimate the conditional expectation E(j
i
[ i
i
) , it is useful to have a general
test of the adequacy of the speci…cation.
One simple test for neglected nonlinearity is to add nonlinear functions of the regressors to the
regression, and test their signi…cance using a Wald test. Thus, if the model j
i
= i
t
i
`
d + ^ c
i
has been
…t by OLS, let z
i
= l(i
i
) denote functions of i
i
which are not linear functions of i
i
(perhaps
squares of nonbinary regressors) and then …t j
i
= i
t
i
¯
d+z
t
i
¯ _+~ c
i
by OLS, and form a Wald statistic
for _ = 0.
Another popular approach is the RESET test proposed by Ramsey (1969). The null model is
j
i
= i
t
i
d +c
i
114
which is estimated by OLS, yielding predicted values ^ j
i
= i
t
i
`
d. Now let
z
i
=
_
_
_
^ j
2
i
.
.
.
^ j
n
i
_
_
_
be an (:÷1)vector of powers of ^ j
i
. Then run the auxiliary regression
j
i
= i
t
i
¯
d +z
t
i
¯ _ + ~ c
i
(7.13)
by OLS, and form the Wald statistic \
a
for _ = 0. It is easy (although somewhat tedious) to
show that under the null hypothesis, \
a
o
÷÷¸
2
n÷1
. Thus the null is rejected at the c% level if \
a
exceeds the upper c% tail critical value of the ¸
2
n÷1
distribution.
To implement the test, : must be selected in advance. Typically, small values such as : = 2,
3, or 4 seem to work best.
The RESET test appears to work well as a test of functional form against a wide range of
smooth alternatives. It is particularly powerful at detecting singleindex models of the form
j
i
= G(i
t
i
d) +c
i
where G() is a smooth “link” function. To see why this is the case, note that (7.13) may be written
as
j
i
= i
t
i
¯
d +
_
i
t
i
`
d
_
2
~ ¸
1
+
_
i
t
i
`
d
_
3
~ ¸
2
+
_
i
t
i
`
d
_
n
~ ¸
n÷1
+ ~ c
i
which has essentially approximated G() by a :’th order polynomial.
7.8 Irrelevant Variables
In the model
j
i
= i
t
1i
d
1
+i
t
2i
d
2
+c
i
E(i
i
c
i
) = 0,
i
2i
is “irrelevant” if d
1
is the parameter of interest and d
2
= 0. One estimator of d
1
is to regress
j
i
on i
1i
alone,
¯
d
1
= (A
t
1
A
1
)
÷1
(A
t
1
¸) . Another is to regress j
i
on i
1i
and i
2i
jointly, yielding
(
`
d
1
,
`
d
2
). Under which conditions is
`
d
1
or
¯
d
1
superior?
It is easy to see that both estimators are consistent for d
1
. However, they will (typically) have
di¤erent asymptotic variances.
The comparison between the two estimators is straightforward when the error is conditionally
homoskedastic E
_
c
2
i
[ i
i
_
= o
2
. In this case
lim
a÷o
:var(
¯
d
1
) =
_
Ei
1i
i
t
1i
_
÷1
o
2
= Q
÷1
11
o
2
,
say, and
lim
a÷o
:var(
`
d
1
) =
_
Ei
1i
i
t
1i
÷Ei
1i
i
t
2i
_
Ei
2i
i
t
2i
_
÷1
Ei
2i
i
t
1i
_
÷1
o
2
=
_
Q
11
÷Q
12
Q
÷1
22
Q
21
_
÷1
o
2
,
say. If Q
12
= 0 (so the variables are orthogonal) then these two variance matrices equal, and the
two estimators have equal asymptotic e¢ciency. Otherwise, since Q
12
Q
÷1
22
Q
21
0, then Q
11
Q
11
÷Q
12
Q
÷1
22
Q
21
, and consequently
Q
÷1
11
o
2
<
_
Q
11
÷Q
12
Q
÷1
22
Q
21
_
÷1
o
2
.
115
This means that
¯
d
1
has a lower asymptotic variance matrix than
`
d
1
. We conclude that the inclusion
of irrelevant variable reduces estimation e¢ciency if these variables are correlated with the relevant
variables.
For example, take the model j
i
= ,
0
+ ,
1
r
i
+ c
i
and suppose that ,
0
= 0. Let
^
,
1
be the
estimate of ,
1
from the unconstrained model, and
~
,
1
be the estimate under the constraint ,
0
= 0.
(The leastsquares estimate with the intercept omitted.). Let Er
i
= j, and E(r
i
÷j)
2
= o
2
a
. Then
under (5.13),
lim
a÷o
:var(
~
,
1
) =
o
2
o
2
a
+j
2
while
lim
a÷o
:var(
^
,
1
) =
o
2
o
2
a
.
When j ,= 0, we see that
~
,
1
has a lower asymptotic variance.
However, this result can be reversed when the error is conditionally heteroskedastic. In the
absence of the homoskedasticity assumption, there is no clear ranking of the e¢ciency of the
restricted estimator
¯
d
1
versus the unrestricted estimator.
7.9 Model Selection
In earlier sections we discussed the costs and bene…ts of inclusion/exclusion of variables. How
does a researcher go about selecting an econometric speci…cation, when economic theory does not
provide complete guidance? This is the question of model selection. It is important that the model
selection question be wellposed. For example, the question: “What is the right model for j?”
is not wellposed, because it does not make clear the conditioning set. In contrast, the question,
“Which subset of (r
1
, ..., r
1
) enters the regression function E(j
i
[ r
1i
= r
1
, ..., r
1i
= r
1
)?” is well
posed.
In many cases the problem of model selection can be reduced to the comparison of two nested
models, as the larger problem can be written as a sequence of such comparisons. We thus consider
the question of the inclusion of A
2
in the linear regression
¸ = A
1
d
1
+A
2
d
2
+c,
where A
1
is : /
1
and A
2
is : /
2
. This is equivalent to the comparison of the two models
/
1
: ¸ = A
1
d
1
+c, E(c [ A
1
, A
2
) = 0
/
2
: ¸ = A
1
d
1
+A
2
d
2
+c, E(c [ A
1
, A
2
) = 0.
Note that /
1
¸ /
2
. To be concrete, we say that /
2
is true if d
2
,= 0.
To …x notation, models 1 and 2 are estimated by OLS, with residual vectors ` c
1
and ` c
2
, estimated
variances ^ o
2
1
and ^ o
2
2
, etc., respectively. To simplify some of the statistical discussion, we will on
occasion use the homoskedasticity assumption E
_
c
2
i
[ i
1i
, i
2i
_
= o
2
.
A model selection procedure is a datadependent rule which selects one of the two models. We
can write this as
´
/. There are many possible desirable properties for a model selection procedure.
One useful property is consistency, that it selects the true model with probability one if the sample
is su¢ciently large. A model selection procedure is consistent if
P
_
´
/= /
1
[ /
1
_
÷ 1
P
_
´
/= /
2
[ /
2
_
÷ 1
However, this rule only makes sense when the true model is …nite dimensional. If the truth is
in…nite dimensional, it is more appropriate to view model selection as determining the best …nite
sample approximation.
116
A common approach to model selection is to base the decision on a statistical test such as
the Wald \
a
. The model selection rule is as follows. For some critical level c, let c
c
satisfy
P
_
¸
2
I
2
c
c
_
= c. Then select /
1
if \
a
_ c
c
, else select /
2
.
A major problem with this approach is that the critical level c is indeterminate. The reasoning
which helps guide the choice of c in hypothesis testing (controlling Type I error) is not relevant for
model selection. That is, if c is set to be a small number, then P
_
´
/= /
1
[ /
1
_
 1 ÷ c but
P
_
´
/= /
2
[ /
2
_
could vary dramatically, depending on the sample size, etc. Another problem is
that if c is held …xed, then this model selection procedure is inconsistent, as P
_
´
/= /
1
[ /
1
_
÷
1 ÷c < 1.
Another common approach to model selection is to use a selection criterion. One popular choice
is the Akaike Information Criterion (AIC). The AIC under normality for model : is
¹1C
n
= log
_
^ o
2
n
_
+ 2
/
n
:
. (7.14)
where ^ o
2
n
is the variance estimate for model :, and /
n
is the number of coe¢cients in the model.
The AIC can be derived as an estimate of the KullbackLeibler information distance 1(/) =
E(log )(¸ [ A) ÷log )(¸ [ A, /)) between the true density and the model density. The rule is
to select /
1
if ¹1C
1
< ¹1C
2
, else select /
2
. AIC selection is inconsistent, as the rule tends to
over…t. Indeed, since under /
1
,
11
a
= :
_
log ^ o
2
1
÷log ^ o
2
2
_
· \
a
o
÷÷¸
2
I
2
, (7.15)
then
P
_
´
/= /
1
[ /
1
_
= P(¹1C
1
< ¹1C
2
[ /
1
)
= P
_
log(^ o
2
1
) + 2
/
1
:
< log(^ o
2
2
) + 2
/
1
+/
2
:
[ /
1
_
= P(11
a
< 2/
2
[ /
1
)
÷ P
_
¸
2
I
2
< 2/
2
_
< 1.
While many criterions similar to the AIC have been proposed, the most popular is one proposed
by Schwarz based on Bayesian arguments. His criterion, known as the BIC, is
11C
n
= log
_
^ o
2
n
_
+ log(:)
/
n
:
. (7.16)
Since log(:) 2 (if : 8), the BIC places a larger penalty than the AIC on the number of
estimated parameters and is more parsimonious.
In contrast to the AIC, BIC model selection is consistent. Indeed, since (7.15) holds under /
1
,
11
a
log(:)
j
÷÷0,
so
P
_
´
/= /
1
[ /
1
_
= P(11C
1
< 11C
2
[ /
1
)
= P(11
a
< log(:)/
2
[ /
1
)
= P
_
11
a
log(:)
< /
2
[ /
1
_
÷ P(0 < /
2
) = 1.
117
Also under /
2
, one can show that
11
a
log(:)
j
÷÷·,
thus
P
_
´
/= /
2
[ /
2
_
= P
_
11
a
log(:)
/
2
[ /
2
_
÷ 1.
We have discussed model selection between two models. The methods extend readily to the
issue of selection among multiple regressors. The general problem is the model
j
i
= ,
1
r
1i
+,
2
r
2i
+ +,
1
r
1i
+c
i
, E(c
i
[ i
i
) = 0
and the question is which subset of the coe¢cients are nonzero (equivalently, which regressors
enter the regression).
There are two leading cases: ordered regressors and unordered.
In the ordered case, the models are
/
1
: ,
1
,= 0, ,
2
= ,
3
= = ,
1
= 0
/
2
: ,
1
,= 0, ,
2
,= 0, ,
3
= = ,
1
= 0
.
.
.
/
1
: ,
1
,= 0, ,
2
,= 0, . . . , ,
1
,= 0.
which are nested. The AIC selection criteria estimates the 1 models by OLS, stores the residual
variance ^ o
2
for each model, and then selects the model with the lowest AIC (7.14). Similarly for
the BIC, selecting based on (7.16).
In the unordered case, a model consists of any possible subset of the regressors ¦r
1i
, ..., r
1i
¦,
and the AIC or BIC in principle can be implemented by estimating all possible subset models.
However, there are 2
1
such models, which can be a very large number. For example, 2
10
= 1024,
and 2
20
= 1, 048, 576. In the latter case, a fullblown implementation of the BIC selection criterion
would seem computationally prohibitive.
118
Exercises
Exercise 7.1 The data …le cps78.dat contains 550 observations on 20 variables taken from the
May 1978 current population survey. Variables are listed in the …le cps78.pdf. The goal of the
exercise is to estimate a model for the log of earnings (variable LNWAGE) as a function of the
conditioning variables.
(a) Start by an OLS regression of LNWAGE on the other variables. Report coe¢cient estimates
and standard errors.
(b) Consider augmenting the model by squares and/or crossproducts of the conditioning vari
ables. Estimate your selected model and report the results.
(c) Are there any variables which seem to be unimportant as a determinant of wages? You may
reestimate the model without these variables, if desired.
(d) Test whether the error variance is di¤erent for men and women. Interpret.
(e) Test whether the error variance is di¤erent for whites and nonwhites. Interpret.
(f) Construct a model for the conditional variance. Estimate such a model, test for general
heteroskedasticity and report the results.
(g) Using this model for the conditional variance, reestimate the model from part (c) using
FGLS. Report the results.
(h) Do the OLS and FGLS estimates di¤er greatly? Note any interesting di¤erences.
(i) Compare the estimated standard errors. Note any interesting di¤erences.
Exercise 7.2 In the homoskedastic regression model ¸ = Ad + c with E(c
i
[ i
i
) = 0 and E(c
2
i
[
i
i
) = o
2
, suppose
`
d is the OLS estimate of d with covariance matrix
`
X , based on a sample of
size :. Let ^ o
2
be the estimate of o
2
. You wish to forecast an outofsample value of j
a+1
given
that i
a+1
= i. Thus the available information is the sample (¸, A), the estimates (
`
d,
`
X , ^ o
2
), the
residuals ` c, and the outofsample value of the regressors, i
a+1
.
(a) Find a point forecast of j
a+1
.
(b) Find an estimate of the variance of this forecast.
Exercise 7.3 Suppose that j
i
= q(i
i
, 0)+c
i
with E(c
i
[ i
i
) = 0,
`
0 is the NLLS estimator, and
`
X is
the estimate of var
_
`
0
_
. You are interested in the conditional mean function E(j
i
[ i
i
= i) = q(i)
at some i. Find an asymptotic 95% con…dence interval for q(i).
Exercise 7.4 For any predictor q(i
i
) for j
i
, the mean absolute error (MAE) is
E[j
i
÷q(i
i
)[ .
Show that the function q(i) which minimizes the MAE is the conditional median :(i) = med(j
i
[
i
i
).
Exercise 7.5 De…ne
q(n) = t ÷1 (n < 0)
where 1 () is the indicator function (takes the value 1 if the argument is true, else equals zero).
Let 0 satisfy Eq(j
i
÷0) = 0. Is 0 a quantile of the distribution of j
i
?
119
Exercise 7.6 Verify equation (7.11).
Exercise 7.7 In Exercise 6.7, you estimated a cost function on a crosssection of electric companies.
The equation you estimated was
log TC
i
= ,
1
+,
2
log Q
i
+,
3
log 11
i
+,
4
log 11
i
+,
5
log 11
i
+c
i
. (7.17)
(a) Following Nerlove, add the variable (log Q
i
)
2
to the regression. Do so. Assess the merits of
this new speci…cation using (i) a hypothesis test; (ii) AIC criterion; (iii) BIC criterion. Do
you agree with this modi…cation?
(b) Now try a nonlinear speci…cation. Consider model (7.17) plus the extra term ,
6
z
i
, where
z
i
= log Q
i
(1 + exp(÷(log Q
i
÷,
7
)))
÷1
.
In addition, impose the restriction ,
3
+,
4
+,
5
= 1. This model is called a smooth threshold
model. For values of log Q
i
much below ,
7
, the variable log Q
i
has a regression slope of ,
2
.
For values much above ,
7
, the regression slope is ,
2
+ ,
6
, and the model imposes a smooth
transition between these regimes. The model is nonlinear because of the parameter ,
7
.
The model works best when ,
7
is selected so that several values (in this example, at least
10 to 15) of log Q
i
are both below and above ,
7
. Examine the data and pick an appropriate
range for ,
7
.
(c) Estimate the model by nonlinear least squares. I recommend the concentration method:
Pick 10 (or more or you like) values of ,
7
in this range. For each value of ,
7
, calculate z
i
and estimate the model by OLS. Record the sum of squared errors, and …nd the value of ,
7
for which the sum of squared errors is minimized.
(d) Calculate standard errors for all the parameters (,
1
, ..., ,
7
).
120
Chapter 8
The Bootstrap
8.1 De…nition of the Bootstrap
Let 1 denote a distribution function for the population of observations (j
i
, i
i
) . Let
T
a
= T
a
((j
1
, i
1
) , ..., (j
a
, i
a
) , 1)
be a statistic of interest, for example an estimator
^
0 or a tstatistic
_
^
0 ÷0
_
,:(
^
0). Note that we
write T
a
as possibly a function of 1. For example, the tstatistic is a function of the parameter 0
which itself is a function of 1.
The exact CDF of T
a
when the data are sampled from the distribution 1 is
G
a
(n, 1) = P(T
a
_ n [ 1)
In general, G
a
(n, 1) depends on 1, meaning that G changes as 1 changes.
Ideally, inference would be based on G
a
(n, 1). This is generally impossible since 1 is unknown.
Asymptotic inference is based on approximating G
a
(n, 1) with G(n, 1) = lim
a÷o
G
a
(n, 1).
When G(n, 1) = G(n) does not depend on 1, we say that T
a
is asymptotically pivotal and use the
distribution function G(n) for inferential purposes.
In a seminal contribution, Efron (1979) proposed the bootstrap, which makes a di¤erent ap
proximation. The unknown 1 is replaced by a consistent estimate 1
a
(one choice is discussed in
the next section). Plugged into G
a
(n, 1) we obtain
G
+
a
(n) = G
a
(n, 1
a
). (8.1)
We call G
+
a
the bootstrap distribution. Bootstrap inference is based on G
+
a
(n).
Let (j
+
i
, i
+
i
) denote random variables with the distribution 1
a
. A random sample from this dis
tribution is called the bootstrap data. The statistic T
+
a
= T
a
((j
+
1
, i
+
1
) , ..., (j
+
a
, i
+
a
) , 1
a
) constructed
on this sample is a random variable with distribution G
+
a
. That is, P(T
+
a
_ n) = G
+
a
(n). We call T
+
a
the bootstrap statistic. The distribution of T
+
a
is identical to that of T
a
when the true CDF of 1
a
rather than 1.
The bootstrap distribution is itself random, as it depends on the sample through the estimator
1
a
.
In the next sections we describe computation of the bootstrap distribution.
8.2 The Empirical Distribution Function
Recall that 1(j, i) = P(j
i
_ j, i
i
_ i) = E(1 (j
i
_ j) 1 (i
i
_ i)) , where 1() is the indicator
function. This is a population moment. The method of moments estimator is the corresponding
121
sample moment:
1
a
(j, i) =
1
:
a
i=1
1 (j
i
_ j) 1 (i
i
_ i) . (8.2)
1
a
(j, i) is called the empirical distribution function (EDF). 1
a
is a nonparametric estimate of 1.
Note that while 1 may be either discrete or continuous, 1
a
is by construction a step function.
The EDF is a consistent estimator of the CDF. To see this, note that for any (j, i), 1 (j
i
_ j) 1 (i
i
_ i)
is an iid random variable with expectation 1(j, i). Thus by the WLLN (Theorem 5.2.1), 1
a
(j, i)
j
÷÷
1 (j, i) . Furthermore, by the CLT (Theorem C.2.1),
_
:(1
a
(j, i) ÷1 (j, i))
o
÷÷N(0, 1 (j, i) (1 ÷1 (j, i))) .
To see the e¤ect of sample size on the EDF, in the Figure below, I have plotted the EDF and
true CDF for three random samples of size : = 25, 50, 100, and 500. The random draws are from
the N(0, 1) distribution. For : = 25, the EDF is only a crude approximation to the CDF, but the
approximation appears to improve for the large :. In general, as the sample size gets larger, the
EDF step function gets uniformly close to the true CDF.
Figure 8.1: Empirical Distribution Functions
The EDF is a valid discrete probability distribution which puts probability mass 1,: at each
pair (j
i
, i
i
), i = 1, ..., :. Notationally, it is helpful to think of a random pair (j
+
i
, i
+
i
) with the
distribution 1
a
. That is,
P(j
+
i
_ j, i
+
i
_ i) = 1
a
(j, i).
We can easily calculate the moments of functions of (j
+
i
, i
+
i
) :
E/(j
+
i
, i
+
i
) =
_
/(j, i)d1
a
(j, i)
=
a
i=1
/(j
i
, i
i
) P(j
+
i
= j
i
, i
+
i
= i
i
)
=
1
:
a
i=1
/(j
i
, i
i
) ,
the empirical sample average.
122
8.3 Nonparametric Bootstrap
The nonparametric bootstrap is obtained when the bootstrap distribution (8.1) is de…ned
using the EDF (8.2) as the estimate 1
a
of 1.
Since the EDF 1
a
is a multinomial (with : support points), in principle the distribution G
+
a
could
be calculated by direct methods. However, as there are 2
a
possible samples ¦(j
+
1
, i
+
1
) , ..., (j
+
a
, i
+
a
)¦,
such a calculation is computationally infeasible. The popular alternative is to use simulation to ap
proximate the distribution. The algorithm is identical to our discussion of Monte Carlo simulation,
with the following points of clari…cation:
« The sample size : used for the simulation is the same as the sample size.
« The random vectors (j
+
i
, i
+
i
) are drawn randomly from the empirical distribution. This is
equivalent to sampling a pair (j
i
, i
i
) randomly from the sample.
The bootstrap statistic T
+
a
= T
a
((j
+
1
, i
+
1
) , ..., (j
+
a
, i
+
a
) , 1
a
) is calculated for each bootstrap sam
ple. This is repeated 1 times. 1 is known as the number of bootstrap replications. A theory
for the determination of the number of bootstrap replications 1 has been developed by Andrews
and Buchinsky (2000). It is desirable for 1 to be large, so long as the computational costs are
reasonable. 1 = 1000 typically su¢ces.
When the statistic T
a
is a function of 1, it is typically through dependence on a parameter.
For example, the tratio
_
^
0 ÷0
_
,:(
^
0) depends on 0. As the bootstrap statistic replaces 1 with
1
a
, it similarly replaces 0 with 0
a
, the value of 0 implied by 1
a
. Typically 0
a
=
^
0, the parameter
estimate. (When in doubt use
^
0.)
Sampling from the EDF is particularly easy. Since 1
a
is a discrete probability distribution
putting probability mass 1,: at each sample point, sampling from the EDF is equivalent to random
sampling a pair (j
i
, i
i
) from the observed data with replacement. In consequence, a bootstrap
sample ¦(j
+
1
, i
+
1
) , ..., (j
+
a
, i
+
a
)¦ will necessarily have some ties and multiple values, which is generally
not a problem.
8.4 Bootstrap Estimation of Bias and Variance
The bias of
^
0 is t
a
= E(
^
0 ÷ 0
0
). Let T
a
(0) =
^
0 ÷ 0. Then t
a
= E(T
a
(0
0
)). The bootstrap
counterparts are
^
0
+
=
^
0((j
+
1
, i
+
1
) , ..., (j
+
a
, i
+
a
)) and T
+
a
=
^
0
+
÷ 0
a
=
^
0
+
÷
^
0. The bootstrap estimate
of t
a
is
t
+
a
= E(T
+
a
).
If this is calculated by the simulation described in the previous section, the estimate of t
+
a
is
^ t
+
a
=
1
1
1
b=1
T
+
ab
=
1
1
1
b=1
^
0
+
b
÷
^
0
=
^
0
+
÷
^
0.
If
`
0 is biased, it might be desirable to construct a biasedcorrected estimator (one with reduced
bias). Ideally, this would be
~
0 =
^
0 ÷t
a
,
123
but t
a
is unknown. The (estimated) bootstrap biasedcorrected estimator is
~
0
+
=
^
0 ÷ ^ t
+
a
=
^
0 ÷(
^
0
+
÷
^
0)
= 2
^
0 ÷
^
0
+
.
Note, in particular, that the biasedcorrected estimator is not
^
0
+
. Intuitively, the bootstrap makes
the following experiment. Suppose that
^
0 is the truth. Then what is the average value of
^
0
calculated from such samples? The answer is
^
0
+
. If this is lower than
^
0, this suggests that the
estimator is downwardbiased, so a biasedcorrected estimator of 0 should be larger than
^
0, and the
best guess is the di¤erence between
^
0 and
^
0
+
. Similarly if
^
0
+
is higher than
^
0, then the estimator is
upwardbiased and the biasedcorrected estimator should be lower than
^
0.
Let T
a
=
^
0. The variance of
^
0 is
\
a
= E(T
a
÷ET
a
)
2
.
Let T
+
a
=
^
0
+
. It has variance
\
+
a
= E(T
+
a
÷ET
+
a
)
2
.
The simulation estimate is
^
\
+
a
=
1
1
1
b=1
_
^
0
+
b
÷
^
0
+
_
2
.
A bootstrap standard error for
^
0 is the square root of the bootstrap estimate of variance,
:
+
(
^
0) =
_
^
\
+
a
.
While this standard error may be calculated and reported, it is not clear if it is useful. The
primary use of asymptotic standard errors is to construct asymptotic con…dence intervals, which are
based on the asymptotic normal approximation to the tratio. However, the use of the bootstrap
presumes that such asymptotic approximations might be poor, in which case the normal approxi
mation is suspected. It appears superior to calculate bootstrap con…dence intervals, and we turn
to this next.
8.5 Percentile Intervals
For a distribution function G
a
(n, 1), let ¡
a
(c, 1) denote its quantile function. This is the
function which solves
G
a
(¡
a
(c, 1), 1) = c.
[When G
a
(n, 1) is discrete, ¡
a
(c, 1) may be nonunique, but we will ignore such complications.]
Let ¡
a
(c) denote the quantile function of the true sampling distribution, and ¡
+
a
(c) = ¡
a
(c, 1
a
)
denote the quantile function of the bootstrap distribution. Note that this function will change
depending on the underlying statistic T
a
whose distribution is G
a
.
Let T
a
=
^
0, an estimate of a parameter of interest. In (1 ÷c)% of samples,
^
0 lies in the region
[¡
a
(c,2), ¡
a
(1 ÷c,2)]. This motivates a con…dence interval proposed by Efron:
C
1
= [¡
+
a
(c,2), ¡
+
a
(1 ÷c,2)].
This is often called the percentile con…dence interval.
Computationally, the quantile ¡
+
a
(c) is estimated by ^ ¡
+
a
(c), the c’th sample quantile of the
simulated statistics ¦T
+
a1
, ..., T
+
a1
¦, as discussed in the section on Monte Carlo simulation. The
(1 ÷c)% Efron percentile interval is then [^ ¡
+
a
(c,2), ^ ¡
+
a
(1 ÷c,2)].
124
The interval C
1
is a popular bootstrap con…dence interval often used in empirical practice. This
is because it is easy to compute, simple to motivate, was popularized by Efron early in the history
of the bootstrap, and also has the feature that it is translation invariant. That is, if we de…ne
c = )(0) as the parameter of interest for a monotonically increasing function ), then percentile
method applied to this problem will produce the con…dence interval [)(¡
+
a
(c,2)), )(¡
+
a
(1÷c,2))],
which is a naturally good property.
However, as we show now, C
1
is in a deep sense very poorly motivated.
It will be useful if we introduce an alternative de…nition C
1
. Let T
a
(0) =
^
0 ÷ 0 and let ¡
a
(c)
be the quantile function of its distribution. (These are the original quantiles, with 0 subtracted.)
Then C
1
can alternatively be written as
C
1
= [
^
0 +¡
+
a
(c,2),
^
0 +¡
+
a
(1 ÷c,2)].
This is a bootstrap estimate of the “ideal” con…dence interval
C
0
1
= [
^
0 +¡
a
(c,2),
^
0 +¡
a
(1 ÷c,2)].
The latter has coverage probability
P
_
0
0
¸ C
0
1
_
= P
_
^
0 +¡
a
(c,2) _ 0
0
_
^
0 +¡
a
(1 ÷c,2)
_
= P
_
÷¡
a
(1 ÷c,2) _
^
0 ÷0
0
_ ÷¡
a
(c,2)
_
= G
a
(÷¡
a
(c,2), 1
0
) ÷G
a
(÷¡
a
(1 ÷c,2), 1
0
)
which generally is not 1÷c! There is one important exception. If
^
0÷0
0
has a symmetric distribution,
then G
a
(÷n, 1
0
) = 1 ÷G
a
(n, 1
0
), so
P
_
0
0
¸ C
0
1
_
= G
a
(÷¡
a
(c,2), 1
0
) ÷G
a
(÷¡
a
(1 ÷c,2), 1
0
)
= (1 ÷G
a
(¡
a
(c,2), 1
0
)) ÷(1 ÷G
a
(¡
a
(1 ÷c,2), 1
0
))
=
_
1 ÷
c
2
_
÷
_
1 ÷
_
1 ÷
c
2
__
= 1 ÷c
and this idealized con…dence interval is accurate. Therefore, C
0
1
and C
1
are designed for the case
that
^
0 has a symmetric distribution about 0
0
.
When
^
0 does not have a symmetric distribution, C
1
may perform quite poorly.
However, by the translation invariance argument presented above, it also follows that if there
exists some monotonically increasing transformation )() such that )(
^
0) is symmetrically distributed
about )(0
0
), then the idealized percentile bootstrap method will be accurate.
Based on these arguments, many argue that the percentile interval should not be used unless
the sampling distribution is close to unbiased and symmetric.
The problems with the percentile method can be circumvented, at least in principle, by an
alternative method.
Let T
a
(0) =
^
0 ÷0. Then
1 ÷c = P(¡
a
(c,2) _ T
a
(0
0
) _ ¡
a
(1 ÷c,2))
= P
^
0 ÷¡
a
(1 ÷c,2) _ 0
0
_
^
0 ÷¡
a
(c,2),
so an exact (1 ÷c)% con…dence interval for 0
0
would be
C
0
2
= [
^
0 ÷¡
a
(1 ÷c,2),
^
0 ÷¡
a
(c,2)].
This motivates a bootstrap analog
C
2
= [
^
0 ÷¡
+
a
(1 ÷c,2),
^
0 ÷¡
+
a
(c,2)].
125
Notice that generally this is very di¤erent from the Efron interval C
1
! They coincide in the special
case that G
+
a
(n) is symmetric about
^
0, but otherwise they di¤er.
Computationally, this interval can be estimated from a bootstrap simulation by sorting the
bootstrap statistics T
+
a
=
_
^
0
+
÷
^
0
_
, which are centered at the sample estimate
^
0. These are sorted
to yield the quantile estimates ^ ¡
+
a
(.025) and ^ ¡
+
a
(.975). The 95% con…dence interval is then [
^
0 ÷
^ ¡
+
a
(.975),
^
0 ÷ ^ ¡
+
a
(.025)].
This con…dence interval is discussed in most theoretical treatments of the bootstrap, but is not
widely used in practice.
8.6 Percentilet EqualTailed Interval
Suppose we want to test H
0
: 0 = 0
0
against H
1
: 0 < 0
0
at size c. We would set T
a
(0) =
_
^
0 ÷0
_
,:(
^
0) and reject H
0
in favor of H
1
if T
a
(0
0
) < c, where c would be selected so that
P(T
a
(0
0
) < c) = c.
Thus c = ¡
a
(c). Since this is unknown, a bootstrap test replaces ¡
a
(c) with the bootstrap estimate
¡
+
a
(c), and the test rejects if T
a
(0
0
) < ¡
+
a
(c).
Similarly, if the alternative is H
1
: 0 0
0
, the bootstrap test rejects if T
a
(0
0
) ¡
+
a
(1 ÷c).
Computationally, these critical values can be estimated from a bootstrap simulation by sorting
the bootstrap tstatistics T
+
a
=
_
^
0
+
÷
^
0
_
,:(
^
0
+
). Note, and this is important, that the bootstrap test
statistic is centered at the estimate
^
0, and the standard error :(
^
0
+
) is calculated on the bootstrap
sample. These tstatistics are sorted to …nd the estimated quantiles ^ ¡
+
a
(c) and/or ^ ¡
+
a
(1 ÷c).
Let T
a
(0) =
_
^
0 ÷0
_
,:(
^
0). Then taking the intersection of two onesided intervals,
1 ÷c = P(¡
a
(c,2) _ T
a
(0
0
) _ ¡
a
(1 ÷c,2))
= P
_
¡
a
(c,2) _
_
^
0 ÷0
0
_
,:(
^
0) _ ¡
a
(1 ÷c,2)
_
= P
_
^
0 ÷:(
^
0)¡
a
(1 ÷c,2) _ 0
0
_
^
0 ÷:(
^
0)¡
a
(c,2)
_
,
so an exact (1 ÷c)% con…dence interval for 0
0
would be
C
0
3
= [
^
0 ÷:(
^
0)¡
a
(1 ÷c,2),
^
0 ÷:(
^
0)¡
a
(c,2)].
This motivates a bootstrap analog
C
3
= [
^
0 ÷:(
^
0)¡
+
a
(1 ÷c,2),
^
0 ÷:(
^
0)¡
+
a
(c,2)].
This is often called a percentilet con…dence interval. It is equaltailed or central since the probability
that 0
0
is below the left endpoint approximately equals the probability that 0
0
is above the right
endpoint, each c,2.
Computationally, this is based on the critical values from the onesided hypothesis tests, dis
cussed above.
8.7 Symmetric Percentilet Intervals
Suppose we want to test H
0
: 0 = 0
0
against H
1
: 0 ,= 0
0
at size c. We would set T
a
(0) =
_
^
0 ÷0
_
,:(
^
0) and reject H
0
in favor of H
1
if [T
a
(0
0
)[ c, where c would be selected so that
P([T
a
(0
0
)[ c) = c.
126
Note that
P([T
a
(0
0
)[ < c) = P(÷c < T
a
(0
0
) < c)
= G
a
(c) ÷G
a
(÷c)
= G
a
(c),
which is a symmetric distribution function. The ideal critical value c = ¡
a
(c) solves the equation
G
a
(¡
a
(c)) = 1 ÷c.
Equivalently, ¡
a
(c) is the 1 ÷c quantile of the distribution of [T
a
(0
0
)[ .
The bootstrap estimate is ¡
+
a
(c), the 1 ÷ c quantile of the distribution of [T
+
a
[ , or the number
which solves the equation
G
+
a
(¡
+
a
(c)) = G
+
a
(¡
+
a
(c)) ÷G
+
a
(÷¡
+
a
(c)) = 1 ÷c.
Computationally, ¡
+
a
(c) is estimated from a bootstrap simulation by sorting the bootstrap t
statistics [T
+
a
[ =
¸
¸
¸
^
0
+
÷
^
0
¸
¸
¸ ,:(
^
0
+
), and taking the upper c% quantile. The bootstrap test rejects if
[T
a
(0
0
)[ ¡
+
a
(c).
Let
C
4
= [
^
0 ÷:(
^
0)¡
+
a
(c),
^
0 +:(
^
0)¡
+
a
(c)],
where ¡
+
a
(c) is the bootstrap critical value for a twosided hypothesis test. C
4
is called the symmetric
percentilet interval. It is designed to work well since
P(0
0
¸ C
4
) = P
_
^
0 ÷:(
^
0)¡
+
a
(c) _ 0
0
_
^
0 +:(
^
0)¡
+
a
(c)
_
= P([T
a
(0
0
)[ < ¡
+
a
(c))
· P([T
a
(0
0
)[ < ¡
a
(c))
= 1 ÷c.
If 0 is a vector, then to test H
0
: 0 = 0
0
against H
1
: 0 ,= 0
0
at size c, we would use a Wald
statistic
\
a
(0) = :
_
`
0 ÷0
_
t
`
X
÷1
0
_
`
0 ÷0
_
or some other asymptotically chisquare statistic. Thus here T
a
(0) = \
a
(0). The ideal test rejects
if \
a
_ ¡
a
(c), where ¡
a
(c) is the (1 ÷c)% quantile of the distribution of \
a
. The bootstrap test
rejects if \
a
_ ¡
+
a
(c), where ¡
+
a
(c) is the (1 ÷c)% quantile of the distribution of
\
+
a
= :
_
`
0
+
÷
`
0
_
t
`
X
+÷1
0
_
`
0
+
÷
`
0
_
.
Computationally, the critical value ¡
+
a
(c) is found as the quantile from simulated values of \
+
a
.
Note in the simulation that the Wald statistic is a quadratic form in
_
`
0
+
÷
`
0
_
, not
_
`
0
+
÷0
0
_
.
[This is a typical mistake made by practitioners.]
8.8 Asymptotic Expansions
Let T
a
¸ R be a statistic such that
T
a
o
÷÷N(0, o
2
). (8.3)
In some cases, such as when T
a
is a tratio, then o
2
= 1. In other cases o
2
is unknown. Equivalently,
writing T
a
~ G
a
(n, 1) then
lim
a÷o
G
a
(n, 1) =
_
n
o
_
,
127
or
G
a
(n, 1) =
_
n
o
_
+o (1) . (8.4)
While (8.4) says that G
a
converges to
_
&
o
_
as : ÷ ·, it says nothing, however, about the rate
of convergence, or the size of the divergence for any particular sample size :. A better asymptotic
approximation may be obtained through an asymptotic expansion.
The following notation will be helpful. Let a
a
be a sequence.
De…nition 8.8.1 a
a
= o(1) if a
a
÷0 as : ÷·
De…nition 8.8.2 a
a
= O(1) if [a
a
[ is uniformly bounded.
De…nition 8.8.3 a
a
= o(:
÷v
) if :
v
[a
a
[ ÷0 as : ÷·.
Basically, a
a
= O(:
÷v
) if it declines to zero like :
÷v
.
We say that a function q(n) is even if q(÷n) = q(n), and a function /(n) is odd if /(÷n) = ÷/(n).
The derivative of an even function is odd, and viceversa.
Theorem 8.8.1 Under regularity conditions and (8.3),
G
a
(n, 1) =
_
n
o
_
+
1
:
1¸2
q
1
(n, 1) +
1
:
q
2
(n, 1) +O(:
÷3¸2
)
uniformly over n, where q
1
is an even function of n, and q
2
is an odd
function of n. Moreover, q
1
and q
2
are di¤erentiable functions of n and
continuous in 1 relative to the supremum norm on the space of distribution
functions.
The expansion in Theorem 8.8.1 is often called an Edgeworth expansion.
We can interpret Theorem 8.8.1 as follows. First, G
a
(n, 1) converges to the normal limit at
rate :
1¸2
. To a second order of approximation,
G
a
(n, 1) 
_
n
o
_
+:
÷1¸2
q
1
(n, 1).
Since the derivative of q
1
is odd, the density function is skewed. To a third order of approximation,
G
a
(n, 1) 
_
n
o
_
+:
÷1¸2
q
1
(n, 1) +:
÷1
q
2
(n, 1)
which adds a symmetric nonnormal component to the approximate density (for example, adding
leptokurtosis).
[Side Note: When T
a
=
_
:
_
A
a
÷j
_
,o, a standardized sample mean, then
q
1
(n) = ÷
1
6
i
3
_
n
2
÷1
_
c(n)
q
2
(n) = ÷
_
1
24
i
4
_
n
3
÷3n
_
+
1
72
i
2
3
_
n
5
÷10n
3
+ 15n
_
_
c(n)
128
where c(n) is the standard normal pdf, and
i
3
= E(A ÷j)
3
,o
3
i
4
= E(A ÷j)
4
,o
4
÷3
the standardized skewness and excess kurtosis of the distribution of A. Note that when i
3
= 0
and i
4
= 0, then q
1
= 0 and q
2
= 0, so the secondorder Edgeworth expansion corresponds to the
normal distribution.]
Francis Edgeworth
Francis Ysidro Edgeworth (18451926) of Ireland, founding editor of the Economic Journal,
was a profound economic and statistical theorist, developing the theories of indi¤erence
curves and asymptotic expansions. He also could be viewed as the …rst econometrician due
to his early use of mathematical statistics in the study of economic data.
8.9 OneSided Tests
Using the expansion of Theorem 8.8.1, we can assess the accuracy of onesided hypothesis tests
and con…dence regions based on an asymptotically normal tratio T
a
. An asymptotic test is based
on (n).
To the second order, the exact distribution is
P(T
a
< n) = G
a
(n, 1
0
) = (n) +
1
:
1¸2
q
1
(n, 1
0
) +O(:
÷1
)
since o = 1. The di¤erence is
(n) ÷G
a
(n, 1
0
) =
1
:
1¸2
q
1
(n, 1
0
) +O(:
÷1
)
= O(:
÷1¸2
),
so the order of the error is O(:
÷1¸2
).
A bootstrap test is based on G
+
a
(n), which from Theorem 8.8.1 has the expansion
G
+
a
(n) = G
a
(n, 1
a
) = (n) +
1
:
1¸2
q
1
(n, 1
a
) +O(:
÷1
).
Because (n) appears in both expansions, the di¤erence between the bootstrap distribution and
the true distribution is
G
+
a
(n) ÷G
a
(n, 1
0
) =
1
:
1¸2
(q
1
(n, 1
a
) ÷q
1
(n, 1
0
)) +O(:
÷1
).
Since 1
a
converges to 1 at rate
_
:, and q
1
is continuous with respect to 1, the di¤erence
(q
1
(n, 1
a
) ÷q
1
(n, 1
0
)) converges to 0 at rate
_
:. Heuristically,
q
1
(n, 1
a
) ÷q
1
(n, 1
0
) 
0
01
q
1
(n, 1
0
) (1
a
÷1
0
)
= O(:
÷1¸2
),
The “derivative”
0
01
q
1
(n, 1) is only heuristic, as 1 is a function. We conclude that
G
+
a
(n) ÷G
a
(n, 1
0
) = O(:
÷1
),
129
or
P(T
+
a
_ n) = P(T
a
_ n) +O(:
÷1
),
which is an improved rate of convergence over the asymptotic test (which converged at rate
O(:
÷1¸2
)). This rate can be used to show that onetailed bootstrap inference based on the t
ratio achieves a socalled asymptotic re…nement – the Type I error of the test converges at a faster
rate than an analogous asymptotic test.
8.10 Symmetric TwoSided Tests
If a random variable j has distribution function H(n) = P(j _ n), then the random variable [j[
has distribution function
H(n) = H(n) ÷H(÷n)
since
P([j[ _ n) = P(÷n _ j _ n)
= P(j _ n) ÷P(j _ ÷n)
= H(n) ÷H(÷n).
For example, if 7 ~ N(0, 1), then [7[ has distribution function
(n) = (n) ÷(÷n) = 2(n) ÷1.
Similarly, if T
a
has exact distribution G
a
(n, 1), then [T
a
[ has the distribution function
G
a
(n, 1) = G
a
(n, 1) ÷G
a
(÷n, 1).
A twosided hypothesis test rejects H
0
for large values of [T
a
[ . Since T
a
o
÷÷ 7, then [T
a
[
o
÷÷
[7[ ~ . Thus asymptotic critical values are taken from the distribution, and exact critical values
are taken from the G
a
(n, 1
0
) distribution. From Theorem 8.8.1, we can calculate that
G
a
(n, 1) = G
a
(n, 1) ÷G
a
(÷n, 1)
=
_
(n) +
1
:
1¸2
q
1
(n, 1) +
1
:
q
2
(n, 1)
_
÷
_
(÷n) +
1
:
1¸2
q
1
(÷n, 1) +
1
:
q
2
(÷n, 1)
_
+O(:
÷3¸2
)
= (n) +
2
:
q
2
(n, 1) +O(:
÷3¸2
), (8.5)
where the simpli…cations are because q
1
is even and q
2
is odd. Hence the di¤erence between the
asymptotic distribution and the exact distribution is
(n) ÷G
a
(n, 1
0
) =
2
:
q
2
(n, 1
0
) +O(:
÷3¸2
) = O(:
÷1
).
The order of the error is O(:
÷1
).
Interestingly, the asymptotic twosided test has a better coverage rate than the asymptotic
onesided test. This is because the …rst term in the asymptotic expansion, q
1
, is an even function,
meaning that the errors in the two directions exactly cancel out.
Applying (8.5) to the bootstrap distribution, we …nd
G
+
a
(n) = G
a
(n, 1
a
) = (n) +
2
:
q
2
(n, 1
a
) +O(:
÷3¸2
).
130
Thus the di¤erence between the bootstrap and exact distributions is
G
+
a
(n) ÷G
a
(n, 1
0
) =
2
:
(q
2
(n, 1
a
) ÷q
2
(n, 1
0
)) +O(:
÷3¸2
)
= O(:
÷3¸2
),
the last equality because 1
a
converges to 1
0
at rate
_
:, and q
2
is continuous in 1. Another way
of writing this is
P([T
+
a
[ < n) = P([T
a
[ < n) +O(:
÷3¸2
)
so the error from using the bootstrap distribution (relative to the true unknown distribution) is
O(:
÷3¸2
). This is in contrast to the use of the asymptotic distribution, whose error is O(:
÷1
). Thus
a twosided bootstrap test also achieves an asymptotic re…nement, similar to a onesided test.
A reader might get confused between the two simultaneous e¤ects. Twosided tests have better
rates of convergence than the onesided tests, and bootstrap tests have better rates of convergence
than asymptotic tests.
The analysis shows that there may be a tradeo¤ between onesided and twosided tests. Two
sided tests will have more accurate size (Reported Type I error), but onesided tests might have
more power against alternatives of interest. Con…dence intervals based on the bootstrap can be
asymmetric if based on onesided tests (equaltailed intervals) and can therefore be more informative
and have smaller length than symmetric intervals. Therefore, the choice between symmetric and
equaltailed con…dence intervals is unclear, and needs to be determined on a casebycase basis.
8.11 Percentile Con…dence Intervals
To evaluate the coverage rate of the percentile interval, set T
a
=
_
:
_
^
0 ÷0
0
_
. We know that
T
a
o
÷÷ N(0, \ ), which is not pivotal, as it depends on the unknown \. Theorem 8.8.1 shows that
a …rstorder approximation
G
a
(n, 1) =
_
n
o
_
+O(:
÷1¸2
),
where o =
_
\ , and for the bootstrap
G
+
a
(n) = G
a
(n, 1
a
) =
_
n
o
_
+O(:
÷1¸2
),
where ^ o = \ (1
a
) is the bootstrap estimate of o. The di¤erence is
G
+
a
(n) ÷G
a
(n, 1
0
) =
_
n
o
_
÷
_
n
o
_
+O(:
÷1¸2
)
= ÷c
_
n
o
_
n
o
(^ o ÷o) +O(:
÷1¸2
)
= O(:
÷1¸2
)
Hence the order of the error is O(:
÷1¸2
).
The good news is that the percentiletype methods (if appropriately used) can yield
_
:
convergent asymptotic inference. Yet these methods do not require the calculation of standard
errors! This means that in contexts where standard errors are not available or are di¢cult to
calculate, the percentile bootstrap methods provide an attractive inference method.
The bad news is that the rate of convergence is disappointing. It is no better than the rate
obtained from an asymptotic onesided con…dence region. Therefore if standard errors are available,
it is unclear if there are any bene…ts from using the percentile bootstrap over simple asymptotic
methods.
Based on these arguments, the theoretical literature (e.g. Hall, 1992, Horowitz, 2001) tends to
advocate the use of the percentilet bootstrap methods rather than percentile methods.
131
8.12 Bootstrap Methods for Regression Models
The bootstrap methods we have discussed have set G
+
a
(n) = G
a
(n, 1
a
), where 1
a
is the EDF.
Any other consistent estimate of 1 may be used to de…ne a feasible bootstrap estimator. The
advantage of the EDF is that it is fully nonparametric, it imposes no conditions, and works in
nearly any context. But since it is fully nonparametric, it may be ine¢cient in contexts where
more is known about 1. We discuss bootstrap methods appropriate for the linear regression model
j
i
= i
t
i
d +c
i
E(c
i
[ i
i
) = 0.
The nonparametric bootstrap resamples the observations (j
+
i
, i
+
i
) from the EDF, which implies
j
+
i
= i
+t
i
`
d +c
+
i
E(i
+
i
c
+
i
) = 0
but generally
E(c
+
i
[ i
+
i
) ,= 0.
The the bootstrap distribution does not impose the regression assumption, and is thus an ine¢cient
estimator of the true distribution (when in fact the regression assumption is true.)
One approach to this problem is to impose the very strong assumption that the error 
i
is
independent of the regressor i
i
. The advantage is that in this case it is straightforward to con
struct bootstrap distributions. The disadvantage is that the bootstrap distribution may be a poor
approximation when the error is not independent of the regressors.
To impose independence, it is su¢cient to sample the i
+
i
and c
+
i
independently, and then create
j
+
i
= i
+t
i
`
d + c
+
i
. There are di¤erent ways to impose independence. A nonparametric method
is to sample the bootstrap errors c
+
i
randomly from the OLS residuals ¦^ c
1
, ..., ^ c
a
¦. A parametric
method is to generate the bootstrap errors c
+
i
from a parametric distribution, such as the normal
c
+
i
~ N(0, ^ o
2
).
For the regressors i
+
i
, a nonparametric method is to sample the i
+
i
randomly from the EDF
or sample values ¦i
1
, ..., i
a
¦. A parametric method is to sample i
+
i
from an estimated parametric
distribution. A third approach sets i
+
i
= i
i
. This is equivalent to treating the regressors as …xed
in repeated samples. If this is done, then all inferential statements are made conditionally on the
observed values of the regressors, which is a valid statistical approach. It does not really matter,
however, whether or not the i
i
are really “…xed” or random.
The methods discussed above are unattractive for most applications in econometrics because
they impose the stringent assumption that i
i
and c
i
are independent. Typically what is desirable
is to impose only the regression condition E(c
i
[ i
i
) = 0. Unfortunately this is a harder problem.
One proposal which imposes the regression condition without independence is the Wild Boot
strap. The idea is to construct a conditional distribution for c
+
i
so that
E(c
+
i
[ i
i
) = 0
E
_
c
+2
i
[ i
i
_
= ^ c
2
i
E
_
c
+3
i
[ i
i
_
= ^ c
3
i
.
A conditional distribution with these features will preserve the main important features of the data.
This can be achieved using a twopoint distribution of the form
P
_
c
+
i
=
_
1 +
_
5
2
_
^ c
i
_
=
_
5 ÷1
2
_
5
P
_
c
+
i
=
_
1 ÷
_
5
2
_
^ c
i
_
=
_
5 + 1
2
_
5
For each i
i
, you sample c
+
i
using this twopoint distribution.
132
Exercises
Exercise 8.1 Let 1
a
(i) denote the EDF of a random sample. Show that
_
:(1
a
(i) ÷1
0
(i))
o
÷÷N(0, 1
0
(i) (1 ÷1
0
(i))) .
Exercise 8.2 Take a random sample ¦j
1
, ..., j
a
¦ with j = Ej
i
and o
2
= var (j
i
) . Let the statistic
of interest be the sample mean T
a
= j
a
. Find the population moments ET
a
and var (T
a
) . Let
¦j
+
1
, ..., j
+
a
¦ be a random sample from the empirical distribution function and let T
+
a
= j
+
a
be its
sample mean. Find the bootstrap moments ET
+
a
and var (T
+
a
) .
Exercise 8.3 Consider the following bootstrap procedure for a regression of j
i
on i
i
. Let
`
d denote
the OLS estimator from the regression of ¸ on A, and ` c = ¸ ÷A
`
d the OLS residuals.
(a) Draw a random vector (i
+
, c
+
) from the pair ¦(i
i
, ^ c
i
) : i = 1, ..., :¦ . That is, draw a random
integer i
t
from [1, 2, ..., :], and set i
+
= i
i
0 and c
+
= ^ c
i
0 . Set j
+
= i
+t
`
d + c
+
. Draw (with
replacement) : such vectors, creating a random bootstrap data set (¸
+
, A
+
).
(b) Regress ¸
+
on A
+
, yielding OLS estimates
`
d
+
and any other statistic of interest.
Show that this bootstrap procedure is (numerically) identical to the nonparametric boot
strap.
Exercise 8.4 Consider the following bootstrap procedure. Using the nonparametric bootstrap,
generate bootstrap samples, calculate the estimate
^
0
+
on these samples and then calculate
T
+
a
= (
^
0
+
÷
^
0),:(
^
0),
where :(
^
0) is the standard error in the original data. Let ¡
+
a
(.05) and ¡
+
a
(.95) denote the 5% and
95% quantiles of T
+
a
, and de…ne the bootstrap con…dence interval
C =
_
^
0 ÷:(
^
0)¡
+
a
(.95),
^
0 ÷:(
^
0)¡
+
a
(.05)
_
.
Show that C exactly equals the Alternative percentile interval (not the percentilet interval).
Exercise 8.5 You want to test H
0
: 0 = 0 against H
1
: 0 0. The test for H
0
is to reject if
T
a
=
^
0,:(
^
0) c where c is picked so that Type I error is c. You do this as follows. Using the non
parametric bootstrap, you generate bootstrap samples, calculate the estimates
^
0
+
on these samples
and then calculate
T
+
a
=
^
0
+
,:(
^
0
+
).
Let ¡
+
a
(.95) denote the 95% quantile of T
+
a
. You replace c with ¡
+
a
(.95), and thus reject H
0
if
T
a
=
^
0,:(
^
0) ¡
+
a
(.95). What is wrong with this procedure?
Exercise 8.6 Suppose that in an application,
^
0 = 1.2 and :(
^
0) = .2. Using the nonparametric
bootstrap, 1000 samples are generated from the bootstrap distribution, and
^
0
+
is calculated on each
sample. The
^
0
+
are sorted, and the 2.5% and 97.5% quantiles of the
^
0
+
are .75 and 1.3, respectively.
(a) Report the 95% Efron Percentile interval for 0.
(b) Report the 95% Alternative Percentile interval for 0.
(c) With the given information, can you report the 95% Percentilet interval for 0?
Exercise 8.7 The data…le hprice1.dat contains data on house prices (sales), with variables listed
in the …le hprice1.pdf. Estimate a linear regression of price on the number of bedrooms, lot
size, size of house, and the colonial dummy. Calculate 95% con…dence intervals for the regression
coe¢cients using both the asymptotic normal approximation and the percentilet bootstrap.
133
Chapter 9
Generalized Method of Moments
9.1 Overidenti…ed Linear Model
Consider the linear model
j
i
= i
t
i
d +c
i
= i
t
1i
d
1
+i
t
2i
d
2
+c
i
E(i
i
c
i
) = 0
where i
1i
is / 1 and i
2
is r 1 with / = / + r. We know that without further restrictions, an
asymptotically e¢cient estimator of d is the OLS estimator. Now suppose that we are given the
information that d
2
= 0. Now we can write the model as
j
i
= i
t
1i
d
1
+c
i
E(i
i
c
i
) = 0.
In this case, how should d
1
be estimated? One method is OLS regression of j
i
on i
1i
alone. This
method, however, is not necessarily e¢cient, as there are / restrictions in E(i
i
c
i
) = 0, while d
1
is
of dimension / < /. This situation is called overidenti…ed. There are / ÷ / = r more moment
restrictions than free parameters. We call r the number of overidentifying restrictions.
This is a special case of a more general class of moment condition models. Let j(j, i, z, d) be
an / 1 function of a / 1 parameter d with / _ / such that
Ej(j
i
, i
i
, z
i
, d
0
) = 0 (9.1)
where d
0
is the true value of d. In our previous example, j(j, z, d) = z(j ÷i
t
1
d). In econometrics,
this class of models are called moment condition models. In the statistics literature, these are
known as estimating equations.
As an important special case we will devote special attention to linear moment condition models,
which can be written as
j
i
= i
t
i
d +c
i
E(z
i
c
i
) = 0.
where the dimensions of i
i
and z
i
are / 1 and / 1 , with / _ /. If / = / the model is just
identi…ed, otherwise it is overidenti…ed. The variables i
i
may be components and functions of
z
i
, but this is not required. This model falls in the class (9.1) by setting
j(j, i, z, d
0
) = z(j ÷i
t
d) (9.2)
134
9.2 GMM Estimator
De…ne the sample analog of (9.2)
j
a
(d) =
1
:
a
i=1
j
i
(d) =
1
:
a
i=1
z
i
_
j
i
÷i
t
i
d
_
=
1
:
_
Z
t
¸ ÷Z
t
Ad
_
. (9.3)
The method of moments estimator for d is de…ned as the parameter value which sets j
a
(d) = 0.
This is generally not possible when / /, as there are more equations than free parameters. The
idea of the generalized method of moments (GMM) is to de…ne an estimator which sets j
a
(d)
“close” to zero.
For some / / weight matrix M
a
0, let
J
a
(d) = : j
a
(d)
t
M
a
j
a
(d).
This is a nonnegative measure of the “length” of the vector j
a
(d). For example, if M
a
= 1, then,
J
a
(d) = : j
a
(d)
t
j
a
(d) = : j
a
(d)
2
, the square of the Euclidean length. The GMM estimator
minimizes J
a
(d).
De…nition 9.2.1 d
GAA
= argmin
f
J
a
(d) .
Note that if / = /, then j
a
(
`
d) = 0, and the GMM estimator is the method of moments
estimator. The …rst order conditions for the GMM estimator are
0 =
0
0d
J
a
(
`
d)
= 2
0
0d
j
a
(
`
d)
t
M
a
j
a
(
`
d)
= ÷2
_
1
:
A
t
Z
_
M
a
_
1
:
Z
t
_
¸ ÷A
`
d
_
_
so
2
_
A
t
Z
_
M
a
_
Z
t
A
_
`
d = 2
_
A
t
Z
_
M
a
_
Z
t
¸
_
which establishes the following.
Proposition 9.2.1
`
d
GAA
=
__
A
t
Z
_
M
a
_
Z
t
A
__
÷1
_
A
t
Z
_
M
a
_
Z
t
¸
_
.
While the estimator depends on M
a
, the dependence is only up to scale, for if M
a
is replaced
by cM
a
for some c 0,
`
d
GAA
does not change.
135
9.3 Distribution of GMM Estimator
Assume that M
a
j
÷÷M 0. Let
Q = E
_
z
i
i
t
i
_
and
D = E
_
z
i
z
t
i
c
2
i
_
= E
_
j
i
j
t
i
_
,
where j
i
= z
i
c
i
. Then
_
1
:
A
t
Z
_
M
a
_
1
:
Z
t
A
_
j
÷÷Q
t
MQ
and
_
1
:
A
t
Z
_
M
a
_
1
_
:
Z
t
c
_
o
÷÷Q
t
MN(0, D) .
We conclude:
Theorem 9.3.1 Asymptotic Distribution of GMM Estimator
_
:
_
`
d ÷d
_
o
÷÷N(0, X
f
) ,
where
X
f
=
_
Q
t
MQ
_
÷1
_
Q
t
MDMQ
_ _
Q
t
MQ
_
÷1
.
In general, GMM estimators are asymptotically normal with “sandwich form” asymptotic vari
ances.
The optimal weight matrix M
0
is one which minimizes X
f
. This turns out to be M
0
= D
÷1
.
The proof is left as an exercise. This yields the e¢cient GMM estimator:
`
d =
_
A
t
ZD
÷1
Z
t
A
_
÷1
A
t
ZD
÷1
Z
t
¸.
Thus we have
Theorem 9.3.2 Asymptotic Distribution of E¢cient GMM Esti
mator
_
:
_
`
d ÷d
_
o
÷÷N
_
0,
_
Q
t
D
÷1
Q
_
÷1
_
.
M
0
= D
÷1
is not known in practice, but it can be estimated consistently. For any M
a
j
÷÷M
0
,
we still call
`
d the e¢cient GMM estimator, as it has the same asymptotic distribution.
By “e¢cient”, we mean that this estimator has the smallest asymptotic variance in the class
of GMM estimators with this set of moment conditions. This is a weak concept of optimality, as
we are only considering alternative weight matrices M
a
. However, it turns out that the GMM
estimator is semiparametrically e¢cient, as shown by Gary Chamberlain (1987).
If it is known that E(j
i
(d)) = 0, and this is all that is known, this is a semiparametric
problem, as the distribution of the data is unknown. Chamberlain showed that in this context,
no semiparametric estimator (one which is consistent globally for the class of models considered)
can have a smaller asymptotic variance than
_
C
t
D
÷1
C
_
÷1
where C = E
0
0f
0
j
i
(d). Since the GMM
estimator has this asymptotic variance, it is semiparametrically e¢cient.
This result shows that in the linear model, no estimator has greater asymptotic e¢ciency than
the e¢cient linear GMM estimator. No estimator can do better (in this …rstorder asymptotic
sense), without imposing additional assumptions.
136
9.4 Estimation of the E¢cient Weight Matrix
Given any weight matrix M
a
0, the GMM estimator
`
d is consistent yet ine¢cient. For
example, we can set M
a
= 1
¹
. In the linear model, a better choice is M
a
= (Z
t
Z)
÷1
. Given
any such …rststep estimator, we can de…ne the residuals ^ c
i
= j
i
÷ i
t
i
`
d and moment equations
` j
i
= z
i
^ c
i
= j(j
i
, i
i
, z
i
,
`
d). Construct
j
a
= j
a
(
`
d) =
1
:
a
i=1
` j
i
,
` j
+
i
= ` j
i
÷j
a
,
and de…ne
M
a
=
_
1
:
a
i=1
` j
+
i
` j
+t
i
_
÷1
=
_
1
:
a
i=1
` j
i
` j
t
i
÷j
a
j
t
a
_
÷1
. (9.4)
Then M
a
j
÷÷D
÷1
= M
0
, and GMM using M
a
as the weight matrix is asymptotically e¢cient.
A common alternative choice is to set
M
a
=
_
1
:
a
i=1
` j
i
` j
t
i
_
÷1
which uses the uncentered moment conditions. Since Ej
i
= 0, these two estimators are asymptot
ically equivalent under the hypothesis of correct speci…cation. However, Alastair Hall (2000) has
shown that the uncentered estimator is a poor choice. When constructing hypothesis tests, under
the alternative hypothesis the moment conditions are violated, i.e. Ej
i
,= 0, so the uncentered
estimator will contain an undesirable bias term and the power of the test will be adversely a¤ected.
A simple solution is to use the centered moment conditions to construct the weight matrix, as in
(9.4) above.
Here is a simple way to compute the e¢cient GMM estimator for the linear model. First, set
M
a
= (Z
t
Z)
÷1
, estimate
`
d using this weight matrix, and construct the residual ^ c
i
= j
i
÷ i
t
i
`
d.
Then set ` j
i
= z
i
^ c
i
, and let ` j be the associated : / matrix. Then the e¢cient GMM estimator is
`
d =
_
A
t
Z
_
` j
t
` j ÷:j
a
j
t
a
_
÷1
Z
t
A
_
÷1
A
t
Z
_
` j
t
` j ÷:j
a
j
t
a
_
÷1
Z
t
¸.
In most cases, when we say “GMM”, we actually mean “e¢cient GMM”. There is little point in
using an ine¢cient GMM estimator when the e¢cient estimator is easy to compute.
An estimator of the asymptotic variance of
`
d can be seen from the above formula. Set
`
X = :
_
A
t
Z
_
` j
t
` j ÷:j
a
j
t
a
_
÷1
Z
t
A
_
÷1
.
Asymptotic standard errors are given by the square roots of the diagonal elements of
`
X .
There is an important alternative to the twostep GMM estimator just described. Instead, we
can let the weight matrix be considered as a function of d. The criterion function is then
J(d) = : j
a
(d)
t
_
1
:
a
i=1
j
+
i
(d)j
+
i
(d)
t
_
÷1
j
a
(d).
where
j
+
i
(d) = j
i
(d) ÷j
a
(d)
The
`
d which minimizes this function is called the continuouslyupdated GMM estimator, and
was introduced by L. Hansen, Heaton and Yaron (1996).
The estimator appears to have some better properties than traditional GMM, but can be nu
merically tricky to obtain in some cases. This is a current area of research in econometrics.
137
9.5 GMM: The General Case
In its most general form, GMM applies whenever an economic or statistical model implies the
/ 1 moment condition
E(j
i
(d)) = 0.
Often, this is all that is known. Identi…cation requires  _ / = dim(d). The GMM estimator
minimizes
J(d) = : j
a
(d)
t
M
a
j
a
(d)
where
j
a
(d) =
1
:
a
i=1
j
i
(d)
and
M
a
=
_
1
:
a
i=1
` j
i
` j
t
i
÷j
a
j
t
a
_
÷1
,
with ` j
i
= j
i
(
¯
d) constructed using a preliminary consistent estimator
¯
d, perhaps obtained by …rst
setting M
a
= 1. Since the GMM estimator depends upon the …rststage estimator, often the weight
matrix M
a
is updated, and then
`
d recomputed. This estimator can be iterated if needed.
Theorem 9.5.1 Distribution of Nonlinear GMM Estimator
Under general regularity conditions,
_
:
_
`
d ÷d
_
o
÷÷N
_
0,
_
C
t
D
÷1
C
_
÷1
_
,
where
D =
_
E
_
j
i
j
t
i
__
÷1
and
C = E
0
0d
t
j
i
(d).
The variance of
`
d may be estimated by
´
X
f
=
_
`
C
t
`
D
÷1
`
C
_
÷1
where
`
D = :
÷1
i
` j
+
i
` j
+t
i
and
`
C = :
÷1
i
0
0d
t
j
i
(
`
d).
The general theory of GMM estimation and testing was exposited by L. Hansen (1982).
9.6 OverIdenti…cation Test
Overidenti…ed models (/ /) are special in the sense that there may not be a parameter value
d such that the moment condition
138
Ej(j
i
, i
i
, z
i
, d) = 0
holds. Thus the model – the overidentifying restrictions – are testable.
For example, take the linear model j
i
= d
t
1
i
1i
+d
t
2
i
2i
+c
i
with E(i
1i
c
i
) = 0 and E(i
2z
c
i
) = 0.
It is possible that d
2
= 0, so that the linear equation may be written as j
i
= d
t
1
i
1i
+c
i
. However,
it is possible that d
2
,= 0, and in this case it would be impossible to …nd a value of d
1
so that
both E(i
1i
(j
i
÷i
t
1i
d
1
)) = 0 and E(i
2i
(j
i
÷i
t
1i
d
1
)) = 0 hold simultaneously. In this sense an
exclusion restriction can be seen as an overidentifying restriction.
Note that j
a
j
÷÷ Ej
i
, and thus j
a
can be used to assess whether or not the hypothesis that
Ej
i
= 0 is true or not. The criterion function at the parameter estimates is
J = : j
t
a
M
a
j
a
= :
2
j
t
a
_
` j
t
` j ÷:j
a
j
t
a
_
÷1
j
a
.
is a quadratic form in j
a
, and is thus a natural test statistic for H
0
: Ej
i
= 0.
Theorem 9.6.1 (SarganHansen). Under the hypothesis of correct speci
…cation, and if the weight matrix is asymptotically e¢cient,
J = J(
`
d)
o
÷÷¸
2
¹÷I
.
The proof of the theorem is left as an exercise. This result was established by Sargan (1958)
for a specialized case, and by L. Hansen (1982) for the general case.
The degrees of freedom of the asymptotic distribution are the number of overidentifying restric
tions. If the statistic J exceeds the chisquare critical value, we can reject the model. Based on
this information alone, it is unclear what is wrong, but it is typically cause for concern. The GMM
overidenti…cation test is a very useful byproduct of the GMM methodology, and it is advisable to
report the statistic J whenever GMM is the estimation method.
When overidenti…ed models are estimated by GMM, it is customary to report the J statistic
as a general test of model adequacy.
9.7 Hypothesis Testing: The Distance Statistic
We described before how to construct estimates of the asymptotic covariance matrix of the
GMM estimates. These may be used to construct Wald tests of statistical hypotheses.
If the hypothesis is nonlinear, a better approach is to directly use the GMM criterion function.
This is sometimes called the GMM Distance statistic, and sometimes called a LRlike statistic (the
LR is for likelihoodratio). The idea was …rst put forward by Newey and West (1987).
For a given weight matrix M
a
, the GMM criterion function is
J(d) = : j
a
(d)
t
M
a
j
a
(d)
For l : R
I
÷R
v
, the hypothesis is
H
0
: l(d) = 0.
The estimates under H
1
are
`
d = argmin
f
J(d)
139
and those under H
0
are
¯
d = argmin
h(f)=0
J(d).
The two minimizing criterion functions are J(
`
d) and J(
¯
d). The GMM distance statistic is the
di¤erence
1 = J(
¯
d) ÷J(
`
d).
Proposition 9.7.1 If the same weight matrix M
a
is used for both null
and alternative,
1. 1 _ 0
2. 1
o
÷÷¸
2
v
3. If l is linear in d, then 1 equals the Wald statistic.
If l is nonlinear, the Wald statistic can work quite poorly. In contrast, current evidence
suggests that the 1 statistic appears to have quite good sampling properties, and is the preferred
test statistic.
Newey and West (1987) suggested to use the same weight matrix M
a
for both null and alter
native, as this ensures that 1 _ 0. This reasoning is not compelling, however, and some current
research suggests that this restriction is not necessary for good performance of the test.
This test shares the useful feature of LR tests in that it is a natural byproduct of the compu
tation of alternative models.
9.8 Conditional Moment Restrictions
In many contexts, the model implies more than an unconditional moment restriction of the form
Ej
i
(d) = 0. It implies a conditional moment restriction of the form
E(c
i
(d) [ z
i
) = 0
where c
i
(d) is some : 1 function of the observation and the parameters. In many cases, : = 1.
It turns out that this conditional moment restriction is much more powerful, and restrictive,
than the unconditional moment restriction discussed above.
Our linear model j
i
= i
t
i
d + c
i
with instruments z
i
falls into this class under the stronger
assumption E(c
i
[ z
i
) = 0. Then c
i
(d) = j
i
÷i
t
i
d.
It is also helpful to realize that conventional regression models also fall into this class, except
that in this case i
i
= z
i
. For example, in linear regression, c
i
(d) = j
i
÷i
t
i
d, while in a nonlinear
regression model c
i
(d) = j
i
÷j(i
i
, d). In a joint model of the conditional mean and variance
c
i
(d, _) =
_
_
_
j
i
÷i
t
i
d
(j
i
÷i
t
i
d)
2
÷) (i
i
)
t
_
.
Here : = 2.
Given a conditional moment restriction, an unconditional moment restriction can always be
constructed. That is for any / 1 function ç(i
i
, d) , we can set j
i
(d) = ç(i
i
, d) c
i
(d) which
satis…es Ej
i
(d) = 0 and hence de…nes a GMM estimator. The obvious problem is that the class of
functions ç is in…nite. Which should be selected?
140
This is equivalent to the problem of selection of the best instruments. If r
i
¸ R is a valid
instrument satisfying E(c
i
[ r
i
) = 0, then r
i
, r
2
i
, r
3
i
, ..., etc., are all valid instruments. Which
should be used?
One solution is to construct an in…nite list of potent instruments, and then use the …rst /
instruments. How is / to be determined? This is an area of theory still under development. A
recent study of this problem is Donald and Newey (2001).
Another approach is to construct the optimal instrument. The form was uncovered by Cham
berlain (1987). Take the case : = 1. Let
H
i
= E
_
0
0d
c
i
(d) [ z
i
_
and
o
2
i
= E
_
c
i
(d)
2
[ z
i
_
.
Then the “optimal instrument” is
A
i
= ÷o
÷2
i
H
i
so the optimal moment is
j
i
(d) = A
i
c
i
(d).
Setting j
i
(d) to be this choice (which is / 1, so is justidenti…ed) yields the best GMM estimator
possible.
In practice, A
i
is unknown, but its form does help us think about construction of optimal
instruments.
In the linear model c
i
(d) = j
i
÷i
t
i
d, note that
H
i
= ÷E(i
i
[ z
i
)
and
o
2
i
= E
_
c
2
i
[ z
i
_
,
so
A
i
= o
÷2
i
E(i
i
[ z
i
) .
In the case of linear regression, i
i
= z
i
, so A
i
= o
÷2
i
z
i
. Hence e¢cient GMM is GLS, as we
discussed earlier in the course.
In the case of endogenous variables, note that the e¢cient instrument A
i
involves the estimation
of the conditional mean of i
i
given z
i
. In other words, to get the best instrument for i
i
, we need the
best conditional mean model for i
i
given z
i
, not just an arbitrary linear projection. The e¢cient
instrument is also inversely proportional to the conditional variance of c
i
. This is the same as the
GLS estimator; namely that improved e¢ciency can be obtained if the observations are weighted
inversely to the conditional variance of the errors.
9.9 Bootstrap GMM Inference
Let
`
d be the 2SLS or GMM estimator of d. Using the EDF of (j
i
, z
i
, i
i
), we can apply the
bootstrap methods discussed in Chapter 8 to compute estimates of the bias and variance of
`
d,
and construct con…dence intervals for d, identically as in the regression model. However, caution
should be applied when interpreting such results.
A straightforward application of the nonparametric bootstrap works in the sense of consistently
achieving the …rstorder asymptotic distribution. This has been shown by Hahn (1996). However,
it fails to achieve an asymptotic re…nement when the model is overidenti…ed, jeopardizing the
theoretical justi…cation for percentilet methods. Furthermore, the bootstrap applied J test will
yield the wrong answer.
141
The problem is that in the sample,
`
d is the “true” value and yet j
a
(
`
d) ,= 0. Thus according to
random variables (j
+
i
, z
+
i
, i
+
i
) drawn from the EDF 1
a
,
E
_
j
i
_
`
d
__
= j
a
(
`
d) ,= 0.
This means that (j
+
i
, z
+
i
, i
+
i
) do not satisfy the same moment conditions as the population distrib
ution.
A correction suggested by Hall and Horowitz (1996) can solve the problem. Given the bootstrap
sample (¸
+
, Z
+
, A
+
), de…ne the bootstrap GMM criterion
J
+
(d) = :
_
j
+
a
(d) ÷j
a
(
`
d)
_
t
M
+
a
_
j
+
a
(d) ÷j
a
(
`
d)
_
where j
a
(
`
d) is from the insample data, not from the bootstrap data.
Let
`
d
+
minimize J
+
(d), and de…ne all statistics and tests accordingly. In the linear model, this
implies that the bootstrap estimator is
`
d
+
=
_
A
+t
Z
+
M
+
a
Z
+t
A
+
_
÷1
_
A
+t
Z
+
M
+
a
_
Z
+t
¸
+
÷Z
t
` c
__
.
where ` c = ¸ ÷A
`
d are the insample residuals. The bootstrap J statistic is J
+
(
`
d
+
).
Brown and Newey (2002) have an alternative solution. They note that we can sample from
the observations with the empirical likelihood probabilities ^ j
i
described in Chapter 10. Since
a
i=1
^ j
i
j
i
_
`
d
_
= 0, this sampling scheme preserves the moment conditions of the model, so no
recentering or adjustments is needed. Brown and Newey argue that this bootstrap procedure will
be more e¢cient than the HallHorowitz GMM bootstrap.
142
Exercises
Exercise 9.1 Take the model
j
i
= i
t
i
d +c
i
E(i
i
c
i
) = 0
c
2
i
= z
t
i
_ +j
i
E(z
i
j
i
) = 0.
Find the method of moments estimators
_
`
d, ` _
_
for (d, _) .
Exercise 9.2 Take the single equation
¸ = Ad +c
E(c [ Z) = 0
Assume E
_
c
2
i
[ z
i
_
= o
2
. Show that if
`
d is estimated by GMM with weight matrix M
a
= (Z
t
Z)
÷1
,
then
_
:
_
`
d ÷d
_
o
÷÷N
_
0, o
2
_
Q
t
A
÷1
Q
_
÷1
_
where Q = E(z
i
i
t
i
) and A = E(z
i
z
t
i
) .
Exercise 9.3 Take the model j
i
= i
t
i
d + c
i
with E(z
i
c
i
) = 0. Let ^ c
i
= j
i
÷ i
t
i
`
d where
`
d is
consistent for d (e.g. a GMM estimator with arbitrary weight matrix). De…ne the estimate of the
optimal GMM weight matrix
M
a
=
_
1
:
a
i=1
z
i
z
t
i
^ c
2
i
_
÷1
.
Show that M
a
j
÷÷D
÷1
where D = E
_
z
i
z
t
i
c
2
i
_
.
Exercise 9.4 In the linear model estimated by GMM with general weight matrix M, the asymp
totic variance of
`
d
GAA
is
X =
_
Q
t
MQ
_
÷1
Q
t
MDMQ
_
Q
t
MQ
_
÷1
(a) Let X
0
be this matrix when M = D
÷1
. Show that X
0
=
_
Q
t
D
÷1
Q
_
÷1
.
(b) We want to show that for any M, X ÷X
0
is positive semide…nite (for then X
0
is the smaller
possible covariance matrix and M = D
÷1
is the e¢cient weight matrix). To do this, start by
…nding matrices A and H such that X = A
t
DA and X
0
= H
t
DH.
(c) Show that H
t
DA = H
t
DH and therefore that H
t
D(A÷H) = 0.
(d) Use the expressions X = A
t
DA, A = H + (A÷H) , and H
t
D(A÷H) = 0 to show that
X _ X
0
.
Exercise 9.5 The equation of interest is
j
i
= j(i
i
, d) +c
i
E(z
i
c
i
) = 0.
The observed data is (j
i
, z
i
, i
i
). z
i
is / 1 and d is / 1, / _ /. Show how to construct an e¢cient
GMM estimator for d.
143
Exercise 9.6 In the linear model ¸ = Ad+c with E(i
i
c
i
) = 0, a Generalized Method of Moments
(GMM) criterion function for d is de…ned as
J
a
(d) =
1
:
(¸ ÷Ad)
t
A
`
D
÷1
a
A
t
(¸ ÷Ad) (9.5)
where
`
D
a
=
1
a
a
i=1
i
i
i
t
i
^ c
2
i
, ^ c
i
= j
i
÷ i
t
i
`
d are the OLS residuals, and
`
d = (A
t
A)
÷1
A
t
A is LS.
The GMM estimator of d, subject to the restriction l(d) = 0, is de…ned as
¯
d = argmin
h(f)=0
J
a
(d).
The GMM test statistic (the distance statistic) of the hypothesis l(d) = 0 is
1 = J
a
(
¯
d) = min
h(f)=0
J
a
(d). (9.6)
(a) Show that you can rewrite J
a
(d) in (9.5) as
J
a
(d) =
_
d ÷
`
d
_
t
`
X
÷1
a
_
d ÷
`
d
_
where
`
X
a
=
_
A
t
A
_
÷1
_
a
i=1
i
i
i
t
i
^ c
2
i
_
_
A
t
A
_
÷1
.
(b) Now focus on linear restrictions: l(d) = H
t
d ÷r. Thus
¯
d = argmin
1
0
f÷r=0
J
a
(d)
and hence H
t
¯
d = r. De…ne the Lagrangian (d, X) =
1
2
J
a
(d) +X
t
(H
t
d ÷r) where X is : 1.
Show that the minimizer is
¯
d =
`
d ÷
`
X
a
H
_
H
t
a
`
X H
_
÷1
_
H
t
`
d ÷r
_
`
X =
_
H
t
a
`
X H
_
÷1
_
H
t
`
d ÷r
_
.
(c) Show that if H
t
d = r then
_
:
_
¯
d ÷d
_
o
÷÷N(0, X
1
) where
X
1
= X ÷X H
_
H
t
X H
_
÷1
H
t
X .
(d) Show that in this setting, the distance statistic 1 in (9.6) equals the Wald statistic.
Exercise 9.7 Take the linear model
j
i
= i
t
i
d +c
i
E(z
i
c
i
) = 0.
and consider the GMM estimator
`
d of d. Let
J
a
= :j
a
(
`
d)
t
`
D
÷1
j
a
(
`
d)
denote the test of overidentifying restrictions. Show that J
a
o
÷÷¸
2
¹÷I
as : ÷· by demonstrating
each of the following:
144
(a) Since D 0, we can write D
÷1
= CC
t
and D = C
t÷1
C
÷1
(b) J
a
= :
_
C
t
j
a
(
`
d)
_
t
_
C
t
`
DC
_
÷1
C
t
j
a
(
`
d)
(c) C
t
j
a
(
`
d) = L
a
C
t
j
a
(d
0
) where
L
a
= 1
¹
÷C
t
_
1
:
Z
t
A
___
1
:
A
t
Z
_
`
D
÷1
_
1
:
Z
t
A
__
÷1
_
1
:
A
t
Z
_
`
D
÷1
C
t÷1
j
a
(d
0
) =
1
:
Z
t
c.
(d) L
a
j
÷÷1
¹
÷H(H
t
H)
÷1
H
t
where H = C
t
E(z
i
i
t
i
)
(e) :
1¸2
C
t
j
a
(d
0
)
o
÷÷A ~ N(0, 1
¹
)
(f) J
a
o
÷÷A
t
_
1
¹
÷H(H
t
H)
÷1
H
t
_
A
(g) A
t
_
1
¹
÷H(H
t
H)
÷1
H
t
_
A ~ ¸
2
¹÷I
.
Hint: 1
¹
÷H(H
t
H)
÷1
H
t
is a projection matrix.
145
Chapter 10
Empirical Likelihood
10.1 NonParametric Likelihood
An alternative to GMM is empirical likelihood. The idea is due to Art Owen (1988, 2001) and
has been extended to moment condition models by Qin and Lawless (1994). It is a nonparametric
analog of likelihood estimation.
The idea is to construct a multinomial distribution 1(j
1
, ..., j
a
) which places probability j
i
at each observation. To be a valid multinomial distribution, these probabilities must satisfy the
requirements that j
i
_ 0 and
a
i=1
j
i
= 1. (10.1)
Since each observation is observed once in the sample, the loglikelihood function for this multino
mial distribution is
log 1(j
1
, ..., j
a
) =
a
i=1
log(j
i
). (10.2)
First let us consider a justidenti…ed model. In this case the moment condition places no
additional restrictions on the multinomial distribution. The maximum likelihood estimators of
the probabilities (j
1
, ..., j
a
) are those which maximize the loglikelihood subject to the constraint
(10.1). This is equivalent to maximizing
a
i=1
log(j
i
) ÷j
_
a
i=1
j
i
÷1
_
where j is a Lagrange multiplier. The : …rst order conditions are 0 = j
÷1
i
÷j. Combined with the
constraint (10.1) we …nd that the MLE is j
i
= :
÷1
yielding the loglikelihood ÷:log(:).
Now consider the case of an overidenti…ed model with moment condition
Ej
i
(d
0
) = 0
where j is / 1 and d is / 1 and for simplicity we write j
i
(d) = j(j
i
, z
i
, i
i
, d). The multinomial
distribution which places probability j
i
at each observation (j
i
, i
i
, z
i
) will satisfy this condition if
and only if
a
i=1
j
i
j
i
(d) = 0 (10.3)
The empirical likelihood estimator is the value of d which maximizes the multinomial log
likelihood (10.2) subject to the restrictions (10.1) and (10.3).
146
The Lagrangian for this maximization problem is
/(d, j
1
, ..., j
a
, X, j) =
a
i=1
log(j
i
) ÷j
_
a
i=1
j
i
÷1
_
÷:X
t
a
i=1
j
i
j
i
(d)
where X and j are Lagrange multipliers. The …rstorderconditions of / with respect to j
i
, j, and
X are
1
j
i
= j +:X
t
j
i
(d)
a
i=1
j
i
= 1
a
i=1
j
i
j
i
(d) = 0.
Multiplying the …rst equation by j
i
, summing over i, and using the second and third equations, we
…nd j = : and
j
i
=
1
:
_
1 +X
t
j
i
(d)
_.
Substituting into / we …nd
1(d, X) = ÷:log (:) ÷
a
i=1
log
_
1 +X
t
j
i
(d)
_
. (10.4)
For given d, the Lagrange multiplier X(d) minimizes 1(d, X) :
X(d) = argmin
X
1(d, X). (10.5)
This minimization problem is the dual of the constrained maximization problem. The solution
(when it exists) is well de…ned since 1(d, X) is a convex function of X. The solution cannot be
obtained explicitly, but must be obtained numerically (see section 6.5). This yields the (pro…le)
empirical loglikelihood function for d.
1(d) = 1(d, X(d))
= ÷:log (:) ÷
a
i=1
log
_
1 +X(d)
t
j
i
(d)
_
The EL estimate
`
d is the value which maximizes 1(d), or equivalently minimizes its negative
`
d = argmin
f
[÷1(d)] (10.6)
Numerical methods are required for calculation of
`
d (see Section 10.5).
As a byproduct of estimation, we also obtain the Lagrange multiplier
`
X = X(
`
d), probabilities
^ j
i
=
1
:
_
1 +
`
X
t
j
i
_
`
d
__.
and maximized empirical likelihood
1(
`
d) =
a
i=1
log (^ j
i
) . (10.7)
147
10.2 Asymptotic Distribution of EL Estimator
De…ne
C
i
(d) =
0
0d
t
j
i
(d) (10.8)
C = EC
i
(d
0
)
D = E
_
j
i
(d
0
) j
i
(d
0
)
t
_
and
X =
_
C
t
D
÷1
C
_
÷1
(10.9)
X
X
= D÷C
_
C
t
D
÷1
C
_
÷1
C
t
(10.10)
For example, in the linear model, C
i
(d) = ÷z
i
i
t
i
, C = ÷E(z
i
i
t
i
), and D = E
_
z
i
z
t
i
c
2
i
_
.
Theorem 10.2.1 Under regularity conditions,
_
:
_
`
d ÷d
0
_
o
÷÷N(0, X
f
)
_
:
`
X
o
÷÷D
÷1
N(0, X
X
)
where X and X
X
are de…ned in (10.9) and (10.10), and
_
:
_
`
d ÷d
0
_
and
_
:
`
X are asymptotically independent.
The theorem shows that asymptotic variance X
f
for
`
d is the same as for e¢cient GMM. Thus
the EL estimator is asymptotically e¢cient.
Chamberlain (1987) showed that X
f
is the semiparametric e¢ciency bound for d in the overi
denti…ed moment condition model. This means that no consistent estimator for this class of models
can have a lower asymptotic variance than X
f
. Since the EL estimator achieves this bound, it is
an asymptotically e¢cient estimator for d.
Proof of Theorem 10.2.1. (
`
d,
`
X) jointly solve
0 =
0
0X
1(d, X) = ÷
a
i=1
j
i
_
`
d
_
_
1 +
`
X
t
j
i
_
`
d
__ (10.11)
0 =
0
0d
1(d, X) = ÷
a
i=1
C
i
_
`
d
_
t
X
1 +
`
X
t
j
i
_
`
d
_. (10.12)
Let C
a
=
1
a
a
i=1
C
i
(d
0
) , j
a
=
1
a
a
i=1
j
i
(d
0
) and D
a
=
1
a
a
i=1
j
i
(d
0
) j
i
(d
0
)
t
.
Expanding (10.12) around d = d
0
and X = X
0
= 0 yields
0 · C
t
a
_
`
X ÷X
0
_
. (10.13)
Expanding (10.11) around d = d
0
and X = X
0
= 0 yields
0 · ÷j
a
÷C
a
_
`
d ÷d
0
_
+D
a
`
X (10.14)
148
Premultiplying by C
t
a
D
÷1
a
and using (10.13) yields
0 · ÷C
t
a
D
÷1
a
j
a
÷C
t
a
D
÷1
a
C
a
_
`
d ÷d
0
_
+C
t
a
D
÷1
a
D
a
`
X
= ÷C
t
a
D
÷1
a
j
a
÷C
t
a
D
÷1
a
C
a
_
`
d ÷d
0
_
Solving for
`
d and using the WLLN and CLT yields
_
:
_
`
d ÷d
0
_
· ÷
_
C
t
a
D
÷1
a
C
a
_
÷1
C
t
a
D
÷1
a
_
:j
a
(10.15)
o
÷÷
_
C
t
D
÷1
C
_
÷1
C
t
D
÷1
N(0, D)
= N(0, X
f
)
Solving (10.14) for
`
X and using (10.15) yields
_
:
`
X · D
÷1
a
_
1 ÷C
a
_
C
t
a
D
÷1
a
C
a
_
÷1
C
t
a
D
÷1
a
_
_
:j
a
(10.16)
o
÷÷D
÷1
_
1 ÷C
_
C
t
D
÷1
C
_
÷1
C
t
D
÷1
_
N(0, D)
= D
÷1
N(0, X
X
)
Furthermore, since
C
t
_
1 ÷D
÷1
C
_
C
t
D
÷1
C
_
÷1
C
t
_
= 0
_
:
_
`
d ÷d
0
_
and
_
:
`
X are asymptotically uncorrelated and hence independent.
10.3 Overidentifying Restrictions
In a parametric likelihood context, tests are based on the di¤erence in the log likelihood func
tions. The same statistic can be constructed for empirical likelihood. Twice the di¤erence between
the unrestricted empirical loglikelihood ÷:log (:) and the maximized empirical loglikelihood for
the model (10.7) is
11
a
=
a
i=1
2 log
_
1 +
`
X
t
j
i
_
`
d
__
. (10.17)
Theorem 10.3.1 If Ej
i
(d
0
) = 0 then 11
a
o
÷÷¸
2
¹÷I
.
The EL overidenti…cation test is similar to the GMM overidenti…cation test. They are asymp
totically …rstorder equivalent, and have the same interpretation. The overidenti…cation test is a
very useful byproduct of EL estimation, and it is advisable to report the statistic 11
a
whenever
EL is the estimation method.
Proof of Theorem 10.3.1. First, by a Taylor expansion, (10.15), and (10.16),
1
_
:
a
i=1
j
i
_
`
d
_
·
_
:
_
j
a
+C
a
_
`
d ÷d
0
__
·
_
1 ÷C
a
_
C
t
a
D
÷1
a
C
a
_
÷1
C
t
a
D
÷1
a
_
_
:j
a
· D
a
_
:
`
X.
149
Second, since log(1 +n) · n ÷n
2
,2 for n small,
11
a
=
a
i=1
2 log
_
1 +
`
X
t
j
i
_
`
d
__
· 2
`
X
t
a
i=1
j
i
_
`
d
_
÷
`
X
t
a
i=1
j
i
_
`
d
_
j
i
_
`
d
_
t
`
X
· :
`
X
t
D
a
`
X
o
÷÷N(0, X
X
)
t
D
÷1
N(0, X
X
)
= ¸
2
¹÷I
where the proof of the …nal equality is left as an exercise.
10.4 Testing
Let the maintained model be
Ej
i
(d) = 0 (10.18)
where j is / 1 and d is / 1. By “maintained” we mean that the overidentfying restrictions
contained in (10.18) are assumed to hold and are not being challenged (at least for the test discussed
in this section). The hypothesis of interest is
l(d) = 0.
where l : R
I
÷R
o
. The restricted EL estimator and likelihood are the values which solve
¯
d = argmax
h(f)=0
1(d)
1(
¯
d) = max
h(f)=0
1(d).
Fundamentally, the restricted EL estimator
¯
d is simply an EL estimator with /÷/+a overidentifying
restrictions, so there is no fundamental change in the distribution theory for
¯
d relative to
`
d. To test
the hypothesis l(d) while maintaining (10.18), the simple overidentifying restrictions test (10.17)
is not appropriate. Instead we use the di¤erence in loglikelihoods:
11
a
= 2
_
1(
`
d) ÷1(
¯
d)
_
.
This test statistic is a natural analog of the GMM distance statistic.
Theorem 10.4.1 Under (10.18) and H
0
: l(d) = 0, 11
a
o
÷÷¸
2
o
.
The proof of this result is more challenging and is omitted.
150
10.5 Numerical Computation
Gauss code which implements the methods discussed below can be found at
http://www.ssc.wisc.edu/~bhansen/progs/elike.prc
Derivatives
The numerical calculations depend on derivatives of the dual likelihood function (10.4). De…ne
j
+
i
(d, X) =
j
i
(d)
_
1 +X
t
j
i
(d)
_
C
+
i
(d, X) =
C
i
(d)
t
X
1 +X
t
j
i
(d)
The …rst derivatives of (10.4) are
H
X
=
0
0X
1(d, X) = ÷
a
i=1
j
+
i
(d, X)
H
f
=
0
0d
1(d, X) = ÷
a
i=1
C
+
i
(d, X) .
The second derivatives are
H
XX
=
0
2
0X0X
t
1(d, X) =
a
i=1
j
+
i
(d, X) j
+
i
(d, X)
t
H
Xf
=
0
2
0X0d
t
1(d, X) =
a
i=1
_
j
+
i
(d, X) C
+
i
(d, X)
t
÷
C
i
(d)
1 +X
t
j
i
(d)
_
H
ff
=
0
2
0d0d
t
1(d, X) =
a
i=1
_
_
C
+
i
(d, X) C
+
i
(d, X)
t
÷
0
2
0f0f
0
_
j
i
(d)
t
X
_
1 +X
t
j
i
(d)
_
_
Inner Loop
The socalled “inner loop” solves (10.5) for given d. The modi…ed Newton method takes a
quadratic approximation to 1
a
(d, X) yielding the iteration rule
X
)+1
= X
)
÷c (H
XX
(d, X
)
))
÷1
H
X
(d, X
)
) . (10.19)
where c 0 is a scalar steplength (to be discussed next). The starting value X
1
can be set to the
zero vector. The iteration (10.19) is continued until the gradient 1
X
(d, X
)
) is smaller than some
prespeci…ed tolerance.
E¢cient convergence requires a good choice of steplength c. One method uses the following
quadratic approximation. Set c
0
= 0, c
1
=
1
2
and c
2
= 1. For j = 0, 1, 2, set
X
j
= X
)
÷c
j
(H
XX
(d, X
)
))
÷1
H
X
(d, X
)
))
1
j
= 1(d, X
j
)
A quadratic function can be …t exactly through these three points. The value of c which minimizes
this quadratic is
^
c =
1
2
+ 31
0
÷41
1
41
2
+ 41
0
÷81
1
.
yielding the steplength to be plugged into (10.19).
151
A complication is that X must be constrained so that 0 _ j
i
_ 1 which holds if
:
_
1 +X
t
j
i
(d)
_
_ 1 (10.20)
for all i. If (10.20) fails, the stepsize c needs to be decreased.
Outer Loop
The outer loop is the minimization (10.6). This can be done by the modi…ed Newton method
described in the previous section. The gradient for (10.6) is
H
f
=
0
0d
1(d) =
0
0d
1(d, X) = H
f
+X
t
f
H
X
= H
f
since H
X
(d, X) = 0 at X = X(d), where
X
f
=
0
0d
t
X(d) = ÷H
÷1
XX
H
Xf
,
the second equality following from the implicit function theorem applied to H
X
(d, X(d)) = 0.
The Hessian for (10.6) is
H
ff
= ÷
0
0d0d
t
1(d)
= ÷
0
0d
t
_
H
f
(d, X(d)) +X
t
f
H
X
(d, X(d))
¸
= ÷
_
H
ff
(d, X(d)) +H
t
Xf
X
f
+X
t
f
H
Xf
+X
t
f
H
XX
X
f
_
= H
t
Xf
H
÷1
XX
H
Xf
÷H
ff
.
It is not guaranteed that H
ff
0. If not, the eigenvalues of H
ff
should be adjusted so that all
are positive. The Newton iteration rule is
d
)+1
= d
)
÷cH
÷1
ff
H
f
where c is a scalar stepsize, and the rule is iterated until convergence.
152
Chapter 11
Endogeneity
We say that there is endogeneity in the linear model j = i
t
i
d + c
i
if d is the parameter of
interest and E(i
i
c
i
) ,= 0. This cannot happen if d is de…ned by linear projection, so requires a
structural interpretation. The coe¢cient d must have meaning separately from the de…nition of a
conditional mean or linear projection.
Example: Measurement error in the regressor. Suppose that (j
i
, i
+
i
) are joint random
variables, E(j
i
[ i
+
i
) = i
+t
i
d is linear, d is the parameter of interest, and i
+
i
is not observed. Instead
we observe i
i
= i
+
i
+u
i
where u
i
is an / 1 measurement error, independent of j
i
and i
+
i
. Then
j
i
= i
+t
i
d +c
i
= (i
i
÷u
i
)
t
d +c
i
= i
t
i
d +·
i
where
·
i
= c
i
÷u
t
i
d.
The problem is that
E(i
i
·
i
) = E
_
(i
+
i
+u
i
)
_
c
i
÷u
t
i
d
_¸
= ÷E
_
u
i
u
t
i
_
d ,= 0
if d ,= 0 and E(u
i
u
t
i
) ,= 0. It follows that if
`
d is the OLS estimator, then
`
d
j
÷÷d
+
= d ÷
_
E
_
i
i
i
t
i
__
÷1
E
_
u
i
u
t
i
_
d ,= d.
This is called measurement error bias.
Example: Supply and Demand. The variables ¡
i
and j
i
(quantity and price) are determined
jointly by the demand equation
¡
i
= ÷,
1
j
i
+c
1i
and the supply equation
¡
i
= ,
2
j
i
+c
2i
.
Assume that c
i
=
_
c
1i
c
2i
_
is iid, Ec
i
= 0, ,
1
+ ,
2
= 1 and Ec
i
c
t
i
= 1
2
(the latter for simplicity).
The question is, if we regress ¡
i
on j
i
, what happens?
It is helpful to solve for ¡
i
and j
i
in terms of the errors. In matrix notation,
_
1 ,
1
1 ÷,
2
_ _
¡
i
j
i
_
=
_
c
1i
c
2i
_
153
so
_
¡
i
j
i
_
=
_
1 ,
1
1 ÷,
2
_
÷1
_
c
1i
c
2i
_
=
_
,
2
,
1
1 ÷1
_ _
c
1i
c
2i
_
=
_
,
2
c
1i
+,
1
c
2i
(c
1i
÷c
2i
)
_
.
The projection of ¡
i
on j
i
yields
¡
i
= ,
+
j
i
+
i
E(j
i

i
) = 0
where
,
+
=
E(j
i
¡
i
)
E
_
j
2
i
_ =
,
2
÷,
1
2
Hence if it is estimated by OLS,
^
,
j
÷÷ ,
+
, which does not equal either ,
1
or ,
2
. This is called
simultaneous equations bias.
11.1 Instrumental Variables
Let the equation of interest be
j
i
= i
t
i
d +c
i
(11.1)
where i
i
is / 1, and assume that E(i
i
c
i
) ,= 0 so there is endogeneity. We call (11.1) the
structural equation. In matrix notation, this can be written as
¸ = Ad +c. (11.2)
Any solution to the problem of endogeneity requires additional information which we call in
struments.
De…nition 11.1.1 The / 1 random vector z
i
is an instrumental vari
able for (11.1) if E(z
i
c
i
) = 0.
In a typical setup, some regressors in i
i
will be uncorrelated with c
i
(for example, at least the
intercept). Thus we make the partition
i
i
=
_
i
1i
i
2i
_
/
1
/
2
(11.3)
where E(i
1i
c
i
) = 0 yet E(i
2i
c
i
) ,= 0. We call i
1i
exogenous and i
2i
endogenous. By the above
de…nition, i
1i
is an instrumental variable for (11.1), so should be included in z
i
. So we have the
partition
z
i
=
_
i
1i
z
2i
_
/
1
/
2
(11.4)
where i
1i
= z
1i
are the included exogenous variables, and z
2i
are the excluded exogenous
variables. That is z
2i
are variables which could be included in the equation for j
i
(in the sense
that they are uncorrelated with c
i
) yet can be excluded, as they would have true zero coe¢cients
in the equation.
The model is justidenti…ed if / = / (i.e., if /
2
= /
2
) and overidenti…ed if / / (i.e., if
/
2
/
2
).
We have noted that any solution to the problem of endogeneity requires instruments. This does
not mean that valid instruments actually exist.
154
11.2 Reduced Form
The reduced form relationship between the variables or “regressors” i
i
and the instruments z
i
is found by linear projection. Let
I = E
_
z
i
z
t
i
_
÷1
E
_
z
i
i
t
i
_
be the / / matrix of coe¢cients from a projection of i
i
on z
i
, and de…ne
u
i
= i
i
÷I
t
z
i
as the projection error. Then the reduced form linear relationship between i
i
and z
i
is
i
i
= I
t
z
i
+u
i
. (11.5)
In matrix notation, we can write (11.5) as
A = ZI +1 (11.6)
where 1 is : /.
By construction,
E(z
i
u
t
i
) = 0,
so (11.5) is a projection and can be estimated by OLS:
i = z
^
+ ` u
`
I =
_
z
t
z
_
÷1
_
z
t
i
_
.
Substituting (11.6) into (11.2), we …nd
¸ = (ZI +1) d +c
= ZX +r, (11.7)
where
X = Id (11.8)
and
r = 1d +c.
Observe that
E(z
i
·
i
) = E
_
z
i
u
t
i
_
d +E(z
i
c
i
) = 0.
Thus (11.7) is a projection equation and may be estimated by OLS. This is
¸ = Z
`
X + ` r,
`
X =
_
Z
t
Z
_
÷1
_
Z
t
¸
_
The equation (11.7) is the reduced form for ¸. (11.6) and (11.7) together are the reduced form
equations for the system
¸ = ZX +r
i = ZI +1.
As we showed above, OLS yields the reducedform estimates
_
`
X,
`
I
_
155
11.3 Identi…cation
The structural parameter d relates to (X, I) through (11.8). The parameter d is identi…ed,
meaning that it can be recovered from the reduced form, if
rank (I) = /. (11.9)
Assume that (11.9) holds. If / = /, then d = I
÷1
X. If / /, then for any M 0, d =
(I
t
MI)
÷1
I
t
MX.
If (11.9) is not satis…ed, then d cannot be recovered from (X, I) . Note that a necessary (although
not su¢cient) condition for (11.9) is / _ /.
Since Z and A have the common variables A
1
, we can rewrite some of the expressions. Using
(11.3) and (11.4) to make the matrix partitions Z = [Z
1
, Z
2
] and A = [Z
1
, A
2
] , we can partition
I as
I =
_
I
11
I
12
I
21
I
22
_
=
_
1 I
12
0 I
22
_
(11.6) can be rewritten as
A
1
= Z
1
A
2
= Z
1
I
12
+Z
2
I
22
+1
2
. (11.10)
d is identi…ed if rank(I) = /, which is true if and only if rank(I
22
) = /
2
(by the upperdiagonal
structure of I). Thus the key to identi…cation of the model rests on the /
2
/
2
matrix I
22
in
(11.10).
11.4 Estimation
The model can be written as
j
i
= i
t
i
d +c
i
E(z
i
c
i
) = 0
or
Ej
i
(d) = 0
j
i
(d) = z
i
_
j
i
÷i
t
i
d
_
.
This is a moment condition model. Appropriate estimators include GMM and EL. The estimators
and distribution theory developed in those Chapter 8 and 9 directly apply. Recall that the GMM
estimator, for given weight matrix M
a
, is
`
d =
_
A
t
ZM
a
Z
t
A
_
÷1
A
t
ZM
a
Z
t
¸.
11.5 Special Cases: IV and 2SLS
If the model is justidenti…ed, so that / = /, then the formula for GMM simpli…es. We …nd that
`
d =
_
A
t
ZM
a
Z
t
A
_
÷1
A
t
ZM
a
Z
t
¸
=
_
Z
t
A
_
÷1
M
÷1
a
_
A
t
Z
_
÷1
A
t
ZM
a
Z
t
¸
=
_
Z
t
A
_
÷1
Z
t
¸
156
This estimator is often called the instrumental variables estimator (IV) of d, where Z is used
as an instrument for A. Observe that the weight matrix M
a
has disappeared. In the justidenti…ed
case, the weight matrix places no role. This is also the MME estimator of d, and the EL estimator.
Another interpretation stems from the fact that since d = I
÷1
X, we can construct the Indirect
Least Squares (ILS) estimator:
`
d =
`
I
÷1
`
X
=
_
_
Z
t
Z
_
÷1
_
Z
t
A
_
_
÷1
_
_
Z
t
Z
_
÷1
_
Z
t
¸
_
_
=
_
Z
t
A
_
÷1
_
Z
t
Z
_ _
Z
t
Z
_
÷1
_
Z
t
¸
_
=
_
Z
t
A
_
÷1
_
Z
t
¸
_
.
which again is the IV estimator.
Recall that the optimal weight matrix is an estimate of the inverse of D = E
_
z
i
z
t
i
c
2
i
_
. In the
special case that E
_
c
2
i
[ z
i
_
= o
2
(homoskedasticity), then D = E(z
i
z
t
i
) o
2
· E(z
i
z
t
i
) suggesting
the weight matrix M
a
= (Z
t
Z)
÷1
. Using this choice, the GMM estimator equals
`
d
2S1S
=
_
A
t
Z
_
Z
t
Z
_
÷1
Z
t
A
_
÷1
A
t
Z
_
Z
t
Z
_
÷1
Z
t
¸
This is called the twostageleast squares (2SLS) estimator. It was originally proposed by Theil
(1953) and Basmann (1957), and is the classic estimator for linear equations with instruments.
Under the homoskedasticity assumption, the 2SLS estimator is e¢cient GMM, but otherwise it is
ine¢cient.
It is useful to observe that writing
1 = Z
_
Z
t
Z
_
÷1
Z
t
`
A = 1A = Z
`
I
then
`
d =
_
A
t
1A
_
÷1
A
t
1¸
=
_
`
Z
t
`
Z
_
÷1
`
Z
t
¸.
The source of the “twostage” name is since it can be computed as follows
« First regress A on Z, vis.,
`
I = (Z
t
Z)
÷1
(Z
t
A) and
`
A = Z
`
I = 1A.
« Second, regress ¸ on
`
Z, vis.,
`
d =
_
`
Z
t
`
Z
_
÷1
`
Z
t
¸.
It is useful to scrutinize the projection
`
Z. Recall, A = [A
1
, A
2
] and Z = [A
1
, Z
2
]. Then
`
A =
_
`
A
1
,
`
A
2
_
= [1A
1
, 1A
2
]
= [A
1
, 1A
2
]
=
_
A
1
,
`
A
2
_
,
since A
1
lies in the span of A. Thus in the second stage, we regress ¸ on A
1
and
`
A
2
. So only the
endogenous variables A
2
are replaced by their …tted values:
`
A
2
= Z
1
`
I
12
+Z
2
`
I
22
.
157
11.6 Bekker Asymptotics
Bekker (1994) used an alternative asymptotic framework to analyze the …nitesample bias in
the 2SLS estimator. Here we present a simpli…ed version of one of his results. In our notation, the
model is
¸ = Ad +c (11.11)
A = ZI +1 (11.12)
¸ = (c, 1)
E(¸ [ Z) = 0
E
_
¸
t
¸ [ Z
_
= S
As before, Z is :  so there are  instruments.
First, let’s analyze the approximate bias of OLS applied to (11.11). Using (11.12),
E
_
1
:
A
t
c
_
= E(i
i
c
i
) = I
t
E(z
i
c
i
) +E(u
i
c
i
) = s
21
and
E
_
1
:
A
t
A
_
= E
_
i
i
i
t
i
_
= I
t
E
_
z
i
z
t
i
_
I +E
_
u
i
z
t
i
_
I +I
t
E
_
z
i
u
t
i
_
+E
_
u
i
u
t
i
_
= I
t
QI +S
22
where Q = E(z
i
z
t
i
) . Hence by a …rstorder approximation
E
_
`
d
O1S
÷d
_

_
E
_
1
:
A
t
A
__
÷1
E
_
1
:
A
t
c
_
=
_
I
t
QI +S
22
_
÷1
s
21
(11.13)
which is zero only when s
21
= 0 (when A is exogenous).
We now derive a similar result for the 2SLS estimator.
`
d
2S1S
=
_
A
t
1A
_
÷1
_
A
t
1¸
_
.
Let 1 = Z (Z
t
Z)
÷1
Z
t
. By the spectral decomposition of an idempotent matrix, 1 = HAH
t
where A = diag (1

, 0) . Let Q = H
t
¸S
÷1¸2
which satis…es EQ
t
Q = 1
a
and partition Q = (g
t
1
Q
t
2
)
where g
1
is  1. Hence
E
_
1
:
¸
t
1¸ [ Z
_
=
1
:
S
1¸2t
E
_
Q
t
AQ [ Z
_
S
1¸2
=
1
:
S
1¸2t
E
_
1
:
g
t
1
g
1
_
S
1¸2
=

:
S
1¸2t
S
1¸2
= cS
where
c =

:
.
Using (11.12) and this result,
1
:
E
_
A
t
1c
_
=
1
:
E
_
I
t
Z
t
c
_
+
1
:
E
_
1
t
1c
_
= cs
21
,
158
and
1
:
E
_
A
t
1A
_
= I
t
E
_
z
i
z
t
i
_
I +I
t
E(z
i
u
i
) +E
_
u
i
z
t
i
_
I +
1
:
E
_
1
t
11
_
= I
t
QI +cS
22
.
Together
E
_
`
d
2S1S
÷d
_

_
E
_
1
:
A
t
1A
__
÷1
E
_
1
:
A
t
1c
_
= c
_
I
t
QI +cS
22
_
÷1
s
21
. (11.14)
In general this is nonzero, except when s
21
= 0 (when A is exogenous). It is also close to zero
when c = 0. Bekker (1994) pointed out that it also has the reverse implication – that when c = ,:
is large, the bias in the 2SLS estimator will be large. Indeed as c ÷ 1, the expression in (11.14)
approaches that in (11.13), indicating that the bias in 2SLS approaches that of OLS as the number
of instruments increases.
Bekker (1994) showed further that under the alternative asymptotic approximation that c is
…xed as : ÷ · (so that the number of instruments goes to in…nity proportionately with sample
size) then the expression in (11.14) is the probability limit of
`
d
2S1S
÷d
11.7 Identi…cation Failure
Recall the reduced form equation
A
2
= Z
1
I
12
+Z
2
I
22
+1
2
.
The parameter d fails to be identi…ed if I
22
has de…cient rank. The consequences of identi…cation
failure for inference are quite severe.
Take the simplest case where / =  = 1 (so there is no Z
1
). Then the model may be written as
j
i
= r
i
, +c
i
r
i
= .
i
¸ +n
i
and
22
= ¸ = E(.
i
r
i
) ,E.
2
i
. We see that , is identi…ed if and only if ¸ ,= 0, which occurs
when E(r
i
.
i
) ,= 0. Thus identi…cation hinges on the existence of correlation between the excluded
exogenous variable and the included endogenous variable.
Suppose this condition fails, so E(r
i
.
i
) = 0. Then by the CLT
1
_
:
a
i=1
.
i
c
i
o
÷÷·
1
~ N
_
0, E
_
.
2
i
c
2
i
__
(11.15)
1
_
:
a
i=1
.
i
r
i
=
1
_
:
a
i=1
.
i
n
i
o
÷÷·
2
~ N
_
0, E
_
.
2
i
n
2
i
__
(11.16)
therefore
^
, ÷, =
1
_
a
a
i=1
.
i
c
i
1
_
a
a
i=1
.
i
i
i
o
÷÷
·
1
·
2
~ Cauchy,
since the ratio of two normals is Cauchy. This is particularly nasty, as the Cauchy distribution
does not have a …nite mean. This result carries over to more general settings, and was examined
by Phillips (1989) and Choi and Phillips (1992).
159
Suppose that identi…cation does not completely fail, but is weak. This occurs when
22
is full
rank, but small. This can be handled in an asymptotic analysis by modeling it as localtozero, viz
I
22
= :
÷1¸2
C,
where C is a full rank matrix. The :
÷1¸2
is picked because it provides just the right balancing to
allow a rich distribution theory.
To see the consequences, once again take the simple case / =  = 1. Here, the instrument r
i
is
weak for .
i
if
¸ = :
÷1¸2
c.
Then (11.15) is una¤ected, but (11.16) instead takes the form
1
_
:
a
i=1
.
i
r
i
=
1
_
:
a
i=1
.
2
i
¸ +
1
_
:
a
i=1
.
i
n
i
=
1
:
a
i=1
.
2
i
c +
1
_
:
a
i=1
.
i
n
i
o
÷÷Qc +·
2
therefore
^
, ÷,
o
÷÷
·
1
Qc +·
2
.
As in the case of complete identi…cation failure, we …nd that
^
, is inconsistent for , and the
asymptotic distribution of
^
, is nonnormal. In addition, standard test statistics have nonstandard
distributions, meaning that inferences about parameters of interest can be misleading.
The distribution theory for this model was developed by Staiger and Stock (1997) and extended
to nonlinear GMM estimation by Stock and Wright (2000). Further results on testing were obtained
by Wang and Zivot (1998).
The bottom line is that it is highly desirable to avoid identi…cation failure. Once again, the
equation to focus on is the reduced form
A
2
= Z
1
I
12
+Z
2
I
22
+1
2
and identi…cation requires rank(I
22
) = /
2
. If /
2
= 1, this requires
22
,= 0, which is straightforward
to assess using a hypothesis test on the reduced form. Therefore in the case of /
2
= 1 (one RHS
endogenous variable), one constructive recommendation is to explicitly estimate the reduced form
equation for A
2
, construct the test of I
22
= 0, and at a minimum check that the test rejects
H
0
:
22
= 0.
When /
2
1, I
22
,= 0 is not su¢cient for identi…cation. It is not even su¢cient that each
column of I
22
is nonzero (each column corresponds to a distinct endogenous variable in Z
2
). So
while a minimal check is to test that each columns of I
22
is nonzero, this cannot be interpreted
as de…nitive proof that I
22
has full rank. Unfortunately, tests of de…cient rank are di¢cult to
implement. In any event, it appears reasonable to explicitly estimate and report the reduced form
equations for Z
2
, and attempt to assess the likelihood that I
22
has de…cient rank.
160
Exercises
1. Consider the single equation model
j
i
= r
i
, +c
i
,
where j
i
and .
i
are both realvalued (1 1). Let
^
, denote the IV estimator of , using as an
instrument a dummy variable d
i
(takes only the values 0 and 1). Find a simple expression
for the IV estimator in this context.
2. In the linear model
j
i
= i
t
i
d +c
i
E(c
i
[ i
i
) = 0
suppose o
2
i
= E
_
c
2
i
[ A
i
_
is known. Show that the GLS estimator of d can be written as an
IV estimator using some instrument z
i
. (Find an expression for z
i
.)
3. Take the linear model
¸ = Ad +c.
Let the OLS estimator for d be
`
d and the OLS residual be ` c = ¸ ÷A
`
d.
Let the IV estimator for d using some instrument Z be
¯
d and the IV residual be ¯ c = ¸÷A
¯
d.
If Z is indeed endogeneous, will IV “…t” better than OLS, in the sense that ¯ c
t
¯ c < ` c
t
` c, at
least in large samples?
4. The reduced form between the regressors i
i
and instruments z
i
takes the form
i
i
= I
t
z
i
+u
i
or
A = ZI +1
where A
i
is / 1, z
i
is  1, A is :/, Z is :, 1 is :/, and I is  /. The parameter
I is de…ned by the population moment condition
E
_
z
i
u
t
i
_
= 0
Show that the method of moments estimator for I is
`
I = (Z
t
Z)
÷1
(Z
t
A) .
5. In the structural model
¸ = Ad +c
A = ZI +1
with I  /,  _ /, we claim that d is identi…ed (can be recovered from the reduced form) if
rank(I) = /. Explain why this is true. That is, show that if rank(I) < / then d cannot be
identi…ed.
6. Take the linear model
j
i
= i
i
d +c
i
E(c
i
[ i
i
) = 0.
where r
i
and d are 1 1.
161
(a) Show that E(r
i
c
i
) = 0 and E
_
r
2
i
c
i
_
= 0. Is z
i
= (r
i
r
2
i
)
t
a valid instrumental variable
for estimation of d?
(b) De…ne the 2SLS estimator of d, using z
i
as an instrument for r
i
. How does this di¤er
from OLS?
(c) Find the e¢cient GMM estimator of d based on the moment condition
E(z
i
(j
i
÷r
i
d)) = 0.
Does this di¤er from 2SLS and/or OLS?
7. Suppose that price and quantity are determined by the intersection of the linear demand and
supply curves
Demand : Q = a
0
+a
1
1 +a
2
1 +c
1
Supply : Q = /
0
+/
1
1 +/
2
\ +c
2
where income (1 ) and wage (\) are determined outside the market. In this model, are the
parameters identi…ed?
8. The data …le card.dat is taken from David Card “Using Geographic Variation in College
Proximity to Estimate the Return to Schooling” in Aspects of Labour Market Behavior (1995).
There are 2215 observations with 29 variables, listed in card.pdf. We want to estimate a wage
equation
log(\aqc) = ,
0
+,
1
1dnc +,
2
1rjcr +,
3
1rjcr
2
+,
4
oont/ +,
5
1ac/ +c
where 1dnc = 1dnatio: (Years) 1rjcr = 1rjcric:cc (Years), and oont/ and 1ac/ are
regional and racial dummy variables.
(a) Estimate the model by OLS. Report estimates and standard errors.
(b) Now treat 1dncatio: as endogenous, and the remaining variables as exogenous. Estimate
the model by 2SLS, using the instrument :car4, a dummy indicating that the observation
lives near a 4year college. Report estimates and standard errors.
(c) Reestimate by 2SLS (report estimates and standard errors) adding three additional
instruments: near2 (a dummy indicating that the observation lives near a 2year college),
)at/cdnc (the education, in years, of the father) and :ot/cdnc (the education, in years,
of the mother).
(d) Reestimate the model by e¢cient GMM. I suggest that you use the 2SLS estimates as
the …rststep to get the weight matrix, and then calculate the GMM estimator from this
weight matrix without further iteration. Report the estimates and standard errors.
(e) Calculate and report the J statistic for overidenti…cation.
(f) Discuss your …ndings.
162
Chapter 12
Univariate Time Series
A time series j
t
is a process observed in sequence over time, t = 1, ..., T. To indicate the
dependence on time, we adopt new notation, and use the subscript t to denote the individual
observation, and T to denote the number of observations.
Because of the sequential nature of time series, we expect that j
t
and j
t÷1
are not independent,
so classical assumptions are not valid.
We can separate time series into two categories: univariate (j
t
¸ R is scalar); and multivariate
(j
t
¸ R
n
is vectorvalued). The primary model for univariate time series is autoregressions (ARs).
The primary model for multivariate time series is vector autoregressions (VARs).
12.1 Stationarity and Ergodicity
De…nition 12.1.1 ¦j
t
¦ is covariance (weakly) stationary if
E(j
t
) = j
is independent of t, and
cov (j
t
, j
t÷I
) = ¸(/)
is independent of t for all /.¸(/) is called the autocovariance function.
j(/) = ¸(/),¸(0) = corr(j
t
, j
t÷I
)
is the autocorrelation function.
De…nition 12.1.2 ¦j
t
¦ is strictly stationary if the joint distribution of
(j
t
, ..., j
t÷I
) is independent of t for all /.
De…nition 12.1.3 A stationary time series is ergodic if ¸(/) ÷ 0 as
/ ÷·.
163
The following two theorems are essential to the analysis of stationary time series. There proofs
are rather di¢cult, however.
Theorem 12.1.1 If j
t
is strictly stationary and ergodic and r
t
=
)(j
t
, j
t÷1
, ...) is a random variable, then r
t
is strictly stationary and er
godic.
Theorem 12.1.2 (Ergodic Theorem). If j
t
is strictly stationary and er
godic and E[j
t
[ < ·, then as T ÷·,
1
T
T
t=1
j
t
j
÷÷E(j
t
).
This allows us to consistently estimate parameters using timeseries moments:
The sample mean:
^ j =
1
T
T
t=1
j
t
The sample autocovariance
^ ¸(/) =
1
T
T
t=1
(j
t
÷ ^ j) (j
t÷I
÷ ^ j) .
The sample autocorrelation
^ j(/) =
^ ¸(/)
^ ¸(0)
.
Theorem 12.1.3 If j
t
is strictly stationary and ergodic and Ej
2
t
< ·,
then as T ÷·,
1. ^ j
j
÷÷E(j
t
);
2. ^ ¸(/)
j
÷÷¸(/);
3. ^ j(/)
j
÷÷j(/).
Proof of Theorem 12.1.3. Part (1) is a direct consequence of the Ergodic theorem. For Part
(2), note that
^ ¸(/) =
1
T
T
t=1
(j
t
÷ ^ j) (j
t÷I
÷ ^ j)
=
1
T
T
t=1
j
t
j
t÷I
÷
1
T
T
t=1
j
t
^ j ÷
1
T
T
t=1
j
t÷I
^ j + ^ j
2
.
164
By Theorem 12.1.1 above, the sequence j
t
j
t÷I
is strictly stationary and ergodic, and it has a …nite
mean by the assumption that Ej
2
t
< ·. Thus an application of the Ergodic Theorem yields
1
T
T
t=1
j
t
j
t÷I
j
÷÷E(j
t
j
t÷I
).
Thus
^ ¸(/)
j
÷÷E(j
t
j
t÷I
) ÷j
2
÷j
2
+j
2
= E(j
t
j
t÷I
) ÷j
2
= ¸(/).
Part (3) follows by the continuous mapping theorem: ^ j(/) = ^ ¸(/),^ ¸(0)
j
÷÷¸(/),¸(0) = j(/).
12.2 Autoregressions
In timeseries, the series ¦..., j
1
, j
2
, ..., j
T
, ...¦ are jointly random. We consider the conditional
expectation
E(j
t
[ T
t÷1
)
where T
t÷1
= ¦j
t÷1
, j
t÷2
, ...¦ is the past history of the series.
An autoregressive (AR) model speci…es that only a …nite number of past lags matter:
E(j
t
[ T
t÷1
) = E(j
t
[ j
t÷1
, ..., j
t÷I
) .
A linear AR model (the most common type used in practice) speci…es linearity:
E(j
t
[ T
t÷1
) = c +j
1
j
t÷1
+j
2
j
t÷1
+ +j
I
j
t÷I
.
Letting
c
t
= j
t
÷E(j
t
[ T
t÷1
) ,
then we have the autoregressive model
j
t
= c +j
1
j
t÷1
+j
2
j
t÷1
+ +j
I
j
t÷I
+c
t
E(c
t
[ T
t÷1
) = 0.
The last property de…nes a special timeseries process.
De…nition 12.2.1 c
t
is a martingale di¤erence sequence (MDS) if
E(c
t
[ T
t÷1
) = 0.
Regression errors are naturally a MDS. Some timeseries processes may be a MDS as a conse
quence of optimizing behavior. For example, some versions of the lifecycle hypothesis imply that
either changes in consumption, or consumption growth rates, should be a MDS. Most asset pricing
models imply that asset returns should be the sum of a constant plus a MDS.
The MDS property for the regression error plays the same role in a timeseries regression as
does the conditional meanzero property for the regression error in a crosssection regression. In
fact, it is even more important in the timeseries context, as it is di¢cult to derive distribution
theories without this property.
A useful property of a MDS is that c
t
is uncorrelated with any function of the lagged information
T
t÷1
. Thus for / 0, E(j
t÷I
c
t
) = 0.
165
12.3 Stationarity of AR(1) Process
A meanzero AR(1) is
j
t
= jj
t÷1
+c
t
.
Assume that c
t
is iid, E(c
t
) = 0 and Ec
2
t
= o
2
< ·.
By backsubstitution, we …nd
j
t
= c
t
+jc
t÷1
+j
2
c
t÷2
+...
=
o
I=0
j
I
c
t÷I
.
Loosely speaking, this series converges if the sequence j
I
c
t÷I
gets small as / ÷ ·. This occurs
when [j[ < 1.
Theorem 12.3.1 If [j[ < 1 then j
t
is strictly stationary and ergodic.
We can compute the moments of j
t
using the in…nite sum:
Ej
t
=
o
I=0
j
I
E(c
t÷I
) = 0
var(j
t
) =
o
I=0
j
2I
var (c
t÷I
) =
o
2
1 ÷j
2
.
If the equation for j
t
has an intercept, the above results are unchanged, except that the mean
of j
t
can be computed from the relationship
Ej
t
= c +jEj
t÷1
,
and solving for Ej
t
= Ej
t÷1
we …nd Ej
t
= c,(1 ÷j).
12.4 Lag Operator
An algebraic construct which is useful for the analysis of autoregressive models is the lag oper
ator.
De…nition 12.4.1 The lag operator L satis…es Lj
t
= j
t÷1
.
De…ning L
2
= LL, we see that L
2
j
t
= Lj
t÷1
= j
t÷2
. In general, L
I
j
t
= j
t÷I
.
The AR(1) model can be written in the format
j
t
÷jj
t÷1
+c
t
or
(1 ÷jL) j
t÷1
= c
t
.
The operator j(L) = (1 ÷ jL) is a polynomial in the operator L. We say that the root of the
polynomial is 1,j, since j(.) = 0 when . = 1,j. We call j(L) the autoregressive polynomial of j
t
.
From Theorem 12.3.1, an AR(1) is stationary i¤ [j[ < 1. Note that an equivalent way to say
this is that an AR(1) is stationary i¤ the root of the autoregressive polynomial is larger than one
(in absolute value).
166
12.5 Stationarity of AR(k)
The AR(k) model is
j
t
= j
1
j
t÷1
+j
2
j
t÷2
+ +j
I
j
t÷I
+c
t
.
Using the lag operator,
j
t
÷j
1
Lj
t
÷j
2
L
2
j
t
÷ ÷j
I
L
I
j
t
= c
t
,
or
j(L)j
t
= c
t
where
j(L) = 1 ÷j
1
L ÷j
2
L
2
÷ ÷j
I
L
I
.
We call j(L) the autoregressive polynomial of j
t
.
The Fundamental Theorem of Algebra says that any polynomial can be factored as
j(.) =
_
1 ÷`
÷1
1
.
_ _
1 ÷`
÷1
2
.
_
_
1 ÷`
÷1
I
.
_
where the `
1
, ..., `
I
are the complex roots of j(.), which satisfy j(`
)
) = 0.
We know that an AR(1) is stationary i¤ the absolute value of the root of its autoregressive
polynomial is larger than one. For an AR(k), the requirement is that all roots are larger than one.
Let [`[ denote the modulus of a complex number `.
Theorem 12.5.1 The AR(k) is strictly stationary and ergodic if and only
if [`
)
[ 1 for all ,.
One way of stating this is that “All roots lie outside the unit circle.”
If one of the roots equals 1, we say that j(L), and hence j
t
, “has a unit root”. This is a special
case of nonstationarity, and is of great interest in applied time series.
12.6 Estimation
Let
i
t
=
_
1 j
t÷1
j
t÷2
j
t÷I
_
t
d =
_
c j
1
j
2
j
I
_
t
.
Then the model can be written as
j
t
= i
t
t
d +c
t
.
The OLS estimator is
`
d =
_
A
t
A
_
÷1
A
t
¸.
To study
`
d, it is helpful to de…ne the process n
t
= i
t
c
t
. Note that n
t
is a MDS, since
E(n
t
[ T
t÷1
) = E(i
t
c
t
[ T
t÷1
) = i
t
E(c
t
[ T
t÷1
) = 0.
By Theorem 12.1.1, it is also strictly stationary and ergodic. Thus
1
T
T
t=1
i
t
c
t
=
1
T
T
t=1
n
t
j
÷÷E(n
t
) = 0. (12.1)
167
The vector i
t
is strictly stationary and ergodic, and by Theorem 12.1.1, so is i
t
i
t
t
. Thus by the
Ergodic Theorem,
1
T
T
t=1
i
t
i
t
t
j
÷÷E
_
i
t
i
t
t
_
= Q.
Combined with (12.1) and the continuous mapping theorem, we see that
`
d = d +
_
1
T
T
t=1
i
t
i
t
t
_
÷1
_
1
T
T
t=1
i
t
c
t
_
j
÷÷Q
÷1
0 = 0.
We have shown the following:
Theorem 12.6.1 If the AR(k) process j
t
is strictly stationary and ergodic
and Ej
2
t
< ·, then
`
d
j
÷÷d as T ÷·.
12.7 Asymptotic Distribution
Theorem 12.7.1 MDS CLT. If u
t
is a strictly stationary and ergodic
MDS and E(u
t
u
t
t
) = D < ·, then as T ÷·,
1
_
T
T
t=1
u
t
o
÷÷N(0, D) .
Since i
t
c
t
is a MDS, we can apply Theorem 12.7.1 to see that
1
_
T
T
t=1
i
t
c
t
o
÷÷N(0, D) ,
where
D = E(i
t
i
t
t
c
2
t
).
Theorem 12.7.2 If the AR(k) process j
t
is strictly stationary and ergodic
and Ej
4
t
< ·, then as T ÷·,
_
T
_
`
d ÷d
_
o
÷÷N
_
0, Q
÷1
DQ
÷1
_
.
This is identical in form to the asymptotic distribution of OLS in crosssection regression. The
implication is that asymptotic inference is the same. In particular, the asymptotic covariance
matrix is estimated just as in the crosssection case.
168
12.8 Bootstrap for Autoregressions
In the nonparametric bootstrap, we constructed the bootstrap sample by randomly resampling
from the data values ¦j
t
, i
t
¦. This creates an iid bootstrap sample. Clearly, this cannot work in a
timeseries application, as this imposes inappropriate independence.
Brie‡y, there are two popular methods to implement bootstrap resampling for timeseries data.
Method 1: ModelBased (Parametric) Bootstrap.
1. Estimate
`
d and residuals ^ c
t
.
2. Fix an initial condition (j
÷I+1
, j
÷I+2
, ..., j
0
).
3. Simulate iid draws c
+
i
from the empirical distribution of the residuals ¦^ c
1
, ..., ^ c
T
¦.
4. Create the bootstrap series j
+
t
by the recursive formula
j
+
t
= ^ c + ^ j
1
j
+
t÷1
+ ^ j
2
j
+
t÷2
+ + ^ j
I
j
+
t÷I
+c
+
t
.
This construction imposes homoskedasticity on the errors c
+
i
, which may be di¤erent than the
properties of the actual c
i
. It also presumes that the AR(k) structure is the truth.
Method 2: Block Resampling
1. Divide the sample into T,: blocks of length :.
2. Resample complete blocks. For each simulated sample, draw T,: blocks.
3. Paste the blocks together to create the bootstrap timeseries j
+
t
.
4. This allows for arbitrary stationary serial correlation, heteroskedasticity, and for model
misspeci…cation.
5. The results may be sensitive to the block length, and the way that the data are partitioned
into blocks.
6. May not work well in small samples.
12.9 Trend Stationarity
j
t
= j
0
+j
1
t +o
t
(12.2)
o
t
= j
1
o
t÷1
+j
2
o
t÷2
+ +j
I
o
t÷
+c
t
, (12.3)
or
j
t
= c
0
+c
1
t +j
1
j
t÷1
+j
2
j
t÷1
+ +j
I
j
t÷I
+c
t
. (12.4)
There are two essentially equivalent ways to estimate the autoregressive parameters (j
1
, ..., j
I
).
« You can estimate (12.4) by OLS.
« You can estimate (12.2)(12.3) sequentially by OLS. That is, …rst estimate (12.2), get the
residual
^
o
t
, and then perform regression (12.3) replacing o
t
with
^
o
t
. This procedure is some
times called Detrending.
169
The reason why these two procedures are (essentially) the same is the FrischWaughLovell
theorem.
Seasonal E¤ects
There are three popular methods to deal with seasonal data.
« Include dummy variables for each season. This presumes that “seasonality” does not change
over the sample.
« Use “seasonally adjusted” data. The seasonal factor is typically estimated by a twosided
weighted average of the data for that season in neighboring years. Thus the seasonally
adjusted data is a “…ltered” series. This is a ‡exible approach which can extract a wide range
of seasonal factors. The seasonal adjustment, however, also alters the timeseries correlations
of the data.
« First apply a seasonal di¤erencing operator. If : is the number of seasons (typically : = 4 or
: = 12),
c
j
t
= j
t
÷j
t÷c
,
or the seasontoseason change. The series
c
j
t
is clearly free of seasonality. But the longrun
trend is also eliminated, and perhaps this was of relevance.
12.10 Testing for Omitted Serial Correlation
For simplicity, let the null hypothesis be an AR(1):
j
t
= c +jj
t÷1
+n
t
. (12.5)
We are interested in the question if the error n
t
is serially correlated. We model this as an AR(1):
n
t
= 0n
t÷1
+c
t
(12.6)
with c
t
a MDS. The hypothesis of no omitted serial correlation is
H
0
: 0 = 0
H
1
: 0 ,= 0.
We want to test H
0
against H
1
.
To combine (12.5) and (12.6), we take (12.5) and lag the equation once:
j
t÷1
= c +jj
t÷2
+n
t÷1
.
We then multiply this by 0 and subtract from (12.5), to …nd
j
t
÷0j
t÷1
= c ÷0c +jj
t÷1
÷0jj
t÷1
+n
t
÷0n
t÷1
,
or
j
t
= c(1 ÷0) + (j +0) j
t÷1
÷0jj
t÷2
+c
t
= ¹1(2).
Thus under H
0
, j
t
is an AR(1), and under H
1
it is an AR(2). H
0
may be expressed as the restriction
that the coe¢cient on j
t÷2
is zero.
An appropriate test of H
0
against H
1
is therefore a Wald test that the coe¢cient on j
t÷2
is
zero. (A simple exclusion test).
In general, if the null hypothesis is that j
t
is an AR(k), and the alternative is that the error is an
AR(m), this is the same as saying that under the alternative j
t
is an AR(k+m), and this is equivalent
to the restriction that the coe¢cients on j
t÷I÷1
, ..., j
t÷I÷n
are jointly zero. An appropriate test is
the Wald test of this restriction.
170
12.11 Model Selection
What is the appropriate choice of / in practice? This is a problem of model selection.
One approach to model selection is to choose / based on a Wald tests.
Another is to minimize the AIC or BIC information criterion, e.g.
¹1C(/) = log ^ o
2
(/) +
2/
T
,
where ^ o
2
(/) is the estimated residual variance from an AR(k)
One ambiguity in de…ning the AIC criterion is that the sample available for estimation changes
as / changes. (If you increase /, you need more initial conditions.) This can induce strange
behavior in the AIC. The best remedy is to …x a upper value /, and then reserve the …rst / as
initial conditions, and then estimate the models AR(1), AR(2), ..., AR(/) on this (uni…ed) sample.
12.12 Autoregressive Unit Roots
The AR(k) model is
j(L)j
t
= j +c
t
j(L) = 1 ÷j
1
L ÷ ÷j
I
L
I
.
As we discussed before, j
t
has a unit root when j(1) = 0, or
j
1
+j
2
+ +j
I
= 1.
In this case, j
t
is nonstationary. The ergodic theorem and MDS CLT do not apply, and test
statistics are asymptotically nonnormal.
A helpful way to write the equation is the socalled DickeyFuller reparameterization:
j
t
= j +c
0
j
t÷1
+c
1
j
t÷1
+ +c
I÷1
j
t÷(I÷1)
+c
t
. (12.7)
These models are equivalent linear transformations of one another. The DF parameterization
is convenient because the parameter c
0
summarizes the information about the unit root, since
j(1) = ÷c
0
. To see this, observe that the lag polynomial for the j
t
computed from (12.7) is
(1 ÷L) ÷c
0
L ÷c
1
(L ÷L
2
) ÷ ÷c
I÷1
(L
I÷1
÷L
I
)
But this must equal j(L), as the models are equivalent. Thus
j(1) = (1 ÷1) ÷c
0
÷(1 ÷1) ÷ ÷(1 ÷1) = ÷c
0
.
Hence, the hypothesis of a unit root in j
t
can be stated as
H
0
: c
0
= 0.
Note that the model is stationary if c
0
< 0. So the natural alternative is
H
1
: c
0
< 0.
Under H
0
, the model for j
t
is
j
t
= j +c
1
j
t÷1
+ +c
I÷1
j
t÷(I÷1)
+c
t
,
which is an AR(k1) in the …rstdi¤erence j
t
. Thus if j
t
has a (single) unit root, then j
t
is a
stationary AR process. Because of this property, we say that if j
t
is nonstationary but
o
j
t
is
stationary, then j
t
is “integrated of order d”, or 1(d). Thus a time series with unit root is 1(1).
171
Since c
0
is the parameter of a linear regression, the natural test statistic is the tstatistic for
H
0
from OLS estimation of (12.7). Indeed, this is the most popular unit root test, and is called the
Augmented DickeyFuller (ADF) test for a unit root.
It would seem natural to assess the signi…cance of the ADF statistic using the normal table.
However, under H
0
, j
t
is nonstationary, so conventional normal asymptotics are invalid. An
alternative asymptotic framework has been developed to deal with nonstationary data. We do not
have the time to develop this theory in detail, but simply assert the main results.
Theorem 12.12.1 DickeyFuller Theorem.
Assume c
0
= 0. As T ÷·,
T ^ c
0
o
÷÷(1 ÷c
1
÷c
2
÷ ÷c
I÷1
) 11
c
¹11 =
^ c
0
:(^ c
0
)
÷11
t
.
The limit distributions 11
c
and 11
t
are nonnormal. They are skewed to the left, and have
negative means.
The …rst result states that ^ c
0
converges to its true value (of zero) at rate T, rather than the
conventional rate of T
1¸2
. This is called a “superconsistent” rate of convergence.
The second result states that the tstatistic for ^ c
0
converges to a limit distribution which is
nonnormal, but does not depend on the parameters c. This distribution has been extensively
tabulated, and may be used for testing the hypothesis H
0
. Note: The standard error :(^ c
0
) is the
conventional (“homoskedastic”) standard error. But the theorem does not require an assumption
of homoskedasticity. Thus the DickeyFuller test is robust to heteroskedasticity.
Since the alternative hypothesis is onesided, the ADF test rejects H
0
in favor of H
1
when
¹11 < c, where c is the critical value from the ADF table. If the test rejects H
0
, this means that
the evidence points to j
t
being stationary. If the test does not reject H
0
, a common conclusion is
that the data suggests that j
t
is nonstationary. This is not really a correct conclusion, however.
All we can say is that there is insu¢cient evidence to conclude whether the data are stationary or
not.
We have described the test for the setting of with an intercept. Another popular setting includes
as well a linear time trend. This model is
j
t
= j
1
+j
2
t +c
0
j
t÷1
+c
1
j
t÷1
+ +c
I÷1
j
t÷(I÷1)
+c
t
. (12.8)
This is natural when the alternative hypothesis is that the series is stationary about a linear time
trend. If the series has a linear trend (e.g. GDP, Stock Prices), then the series itself is non
stationary, but it may be stationary around the linear time trend. In this context, it is a silly waste
of time to …t an AR model to the level of the series without a time trend, as the AR model cannot
conceivably describe this data. The natural solution is to include a time trend in the …tted OLS
equation. When conducting the ADF test, this means that it is computed as the tratio for c
0
from
OLS estimation of (12.8).
If a time trend is included, the test procedure is the same, but di¤erent critical values are
required. The ADF test has a di¤erent distribution when the time trend has been included, and a
di¤erent table should be consulted.
Most texts include as well the critical values for the extreme polar case where the intercept has
been omitted from the model. These are included for completeness (from a pedagogical perspective)
but have no relevance for empirical practice where intercepts are always included.
172
Chapter 13
Multivariate Time Series
A multivariate time series ¸
t
is a vector process :1. Let T
t÷1
= (¸
t÷1
, ¸
t÷2
, ...) be all lagged
information at time t. The typical goal is to …nd the conditional expectation E(¸
t
[ T
t÷1
) . Note
that since ¸
t
is a vector, this conditional expectation is also a vector.
13.1 Vector Autoregressions (VARs)
A VAR model speci…es that the conditional mean is a function of only a …nite number of lags:
E(¸
t
[ T
t÷1
) = E
_
¸
t
[ ¸
t÷1
, ..., ¸
t÷I
_
.
A linear VAR speci…es that this conditional mean is linear in the arguments:
E
_
¸
t
[ ¸
t÷1
, ..., ¸
t÷I
_
= u
0
+A
1
¸
t÷1
+A
2
¸
t÷2
+ A
I
¸
t÷I
.
Observe that u
0
is :1,and each of A
1
through A
I
are :: matrices.
De…ning the :1 regression error
c
t
= ¸
t
÷E(¸
t
[ T
t÷1
) ,
we have the VAR model
¸
t
= u
0
+A
1
¸
t÷1
+A
2
¸
t÷2
+ A
I
¸
t÷I
+c
t
E(c
t
[ T
t÷1
) = 0.
Alternatively, de…ning the :/ + 1 vector
i
t
=
_
_
_
_
_
_
_
1
¸
t÷1
¸
t÷2
.
.
.
¸
t÷I
_
_
_
_
_
_
_
and the :(:/ + 1) matrix
A =
_
u
0
A
1
A
2
A
I
_
,
then
¸
t
= Ai
t
+c
t
.
The VAR model is a system of : equations. One way to write this is to let a
t
)
be the ,th row
of A. Then the VAR system can be written as the equations
1
)t
= a
t
)
i
t
+c
)t
.
Unrestricted VARs were introduced to econometrics by Sims (1980).
173
13.2 Estimation
Consider the moment conditions
E(i
t
c
)t
) = 0,
, = 1, ..., :. These are implied by the VAR model, either as a regression, or as a linear projection.
The GMM estimator corresponding to these moment conditions is equationbyequation OLS
` u
)
= (A
t
A)
÷1
A
t
¸
)
.
An alternative way to compute this is as follows. Note that
` u
t
)
= ¸
t
)
A(A
t
A)
÷1
.
And if we stack these to create the estimate
^
¹, we …nd
`
A =
_
_
_
_
_
¸
t
1
¸
t
2
.
.
.
¸
t
n+1
_
_
_
_
_
A(A
t
A)
÷1
= A
t
A(A
t
A)
÷1
,
where
A =
_
¸
1
¸
2
¸
n
_
the T : matrix of the stacked ¸
t
t
.
This (system) estimator is known as the SUR (Seemingly Unrelated Regressions) estimator,
and was originally derived by Zellner (1962)
13.3 Restricted VARs
The unrestricted VAR is a system of : equations, each with the same set of regressors. A
restricted VAR imposes restrictions on the system. For example, some regressors may be excluded
from some of the equations. Restrictions may be imposed on individual equations, or across equa
tions. The GMM framework gives a convenient method to impose such restrictions on estimation.
13.4 Single Equation from a VAR
Often, we are only interested in a single equation out of a VAR system. This takes the form
j
)t
= u
t
)
i
t
+c
t
,
and i
t
consists of lagged values of j
)t
and the other j
t
t
:. In this case, it is convenient to rede…ne
the variables. Let j
t
= j
)t
, and z
t
be the other variables. Let c
t
= c
)t
and , = a
)
. Then the single
equation takes the form
j
t
= i
t
t
d +c
t
, (13.1)
and
i
t
=
_
_
1 ¸
t÷1
¸
t÷I
z
t
t÷1
z
t
t÷I
_
t
_
.
This is just a conventional regression with time series data.
174
13.5 Testing for Omitted Serial Correlation
Consider the problem of testing for omitted serial correlation in equation (13.1). Suppose that
c
t
is an AR(1). Then
j
t
= i
t
t
d +c
t
c
t
= 0c
t÷1
+n
t
(13.2)
E(n
t
[ T
t÷1
) = 0.
Then the null and alternative are
H
0
: 0 = 0 H
1
: 0 ,= 0.
Take the equation j
t
= i
t
t
d +c
t
, and subtract o¤ the equation once lagged multiplied by 0, to get
j
t
÷0j
t÷1
=
_
i
t
t
d +c
t
_
÷0
_
i
t
t÷1
d +c
t÷1
_
= i
t
t
d ÷0i
t÷1
d +c
t
÷0c
t÷1
,
or
j
t
= 0j
t÷1
+i
t
t
d +i
t
t÷1
_ +n
t
, (13.3)
which is a valid regression model.
So testing H
0
versus H
1
is equivalent to testing for the signi…cance of adding (j
t÷1
, i
t÷1
) to
the regression. This can be done by a Wald test. We see that an appropriate, general, and simple
way to test for omitted serial correlation is to test the signi…cance of extra lagged values of the
dependent variable and regressors.
You may have heard of the DurbinWatson test for omitted serial correlation, which once was
very popular, and is still routinely reported by conventional regression packages. The DW test is
appropriate only when regression j
t
= i
t
t
d +c
t
is not dynamic (has no lagged values on the RHS),
and c
t
is iid N(0, o
2
). Otherwise it is invalid.
Another interesting fact is that (13.2) is a special case of (13.3), under the restriction ¸ = ÷d0.
This restriction, which is called a common factor restriction, may be tested if desired. If valid,
the model (13.2) may be estimated by iterated GLS. (A simple version of this estimator is called
CochraneOrcutt.) Since the common factor restriction appears arbitrary, and is typically rejected
empirically, direct estimation of (13.2) is uncommon in recent applications.
13.6 Selection of Lag Length in an VAR
If you want a datadependent rule to pick the lag length / in a VAR, you may either use a testing
based approach (using, for example, the Wald statistic), or an information criterion approach. The
formula for the AIC and BIC are
¹1C(/) = log det
_
`
D(/)
_
+ 2
j
T
11C(/) = log det
_
`
D(/)
_
+
j log(T)
T
`
D(/) =
1
T
T
t=1
` c
t
(/)` c
t
(/)
t
j = :(/:+ 1)
where j is the number of parameters in the model, and ` c
t
(/) is the OLS residual vector from the
model with / lags. The log determinant is the criterion from the multivariate normal likelihood.
175
13.7 Granger Causality
Partition the data vector into (¸
t
, z
t
). De…ne the two information sets
T
1t
=
_
¸
t
, ¸
t÷1
, ¸
t÷2
, ...
_
T
2t
=
_
¸
t
, z
t
, ¸
t÷1
, z
t÷1
, ¸
t÷2
, z
t÷2
, , ...
_
The information set T
1t
is generated only by the history of ¸
t
, and the information set T
2t
is
generated by both ¸
t
and z
t
. The latter has more information.
We say that z
t
does not Grangercause ¸
t
if
E(¸
t
[ T
1,t÷1
) = E(¸
t
[ T
2,t÷1
) .
That is, conditional on information in lagged ¸
t
, lagged z
t
does not help to forecast ¸
t
. If this
condition does not hold, then we say that z
t
Grangercauses ¸
t
.
The reason why we call this “Granger Causality” rather than “causality” is because this is not
a physical or structure de…nition of causality. If z
t
is some sort of forecast of the future, such as a
futures price, then z
t
may help to forecast ¸
t
even though it does not “cause” ¸
t
. This de…nition
of causality was developed by Granger (1969) and Sims (1972).
In a linear VAR, the equation for ¸
t
is
¸
t
= c +j
1
¸
t÷1
+ +j
I
¸
t÷I
+z
t
t÷1
_
1
+ +z
t
t÷I
_
I
+c
t
.
In this equation, z
t
does not Grangercause ¸
t
if and only if
H
0
: _
1
= _
2
= = _
I
= 0.
This may be tested using an exclusion (Wald) test.
This idea can be applied to blocks of variables. That is, ¸
t
and/or z
t
can be vectors. The
hypothesis can be tested by using the appropriate multivariate Wald test.
If it is found that z
t
does not Grangercause ¸
t
, then we deduce that our timeseries model of
E(¸
t
[ T
t÷1
) does not require the use of z
t
. Note, however, that z
t
may still be useful to explain
other features of ¸
t
, such as the conditional variance.
Clive W. J. Granger
Clive Granger (19342009) of England was one of the leading …gures in timeseries econo
metrics, and cowinner in 2003 of the Nobel Memorial Prize in Economic Sciences (along
with Robert Engle). In addition to formalizing the de…nition of causality known as Granger
causality, he invented the concept of cointegration, introduced spectral methods into econo
metrics, and formalized methods for the combination of forecasts.
13.8 Cointegration
The idea of cointegration is due to Granger (1981), and was articulated in detail by Engle and
Granger (1987).
De…nition 13.8.1 The : 1 series ¸
t
is cointegrated if ¸
t
is 1(1) yet
there exists d, :r, of rank r, such that z
t
= d
t
¸
t
is 1(0). The r vectors
in d are called the cointegrating vectors.
176
If the series ¸
t
is not cointegrated, then r = 0. If r = :, then ¸
t
is 1(0). For 0 < r < :, ¸
t
is
1(1) and cointegrated.
In some cases, it may be believed that d is known a priori. Often, d = (1 ÷1)
t
. For example,
if ¸
t
is a pair of interest rates, then d = (1 ÷ 1)
t
speci…es that the spread (the di¤erence in
returns) is stationary. If ¸ = (log(Co::n:jtio:) log(1:co:c))
t
, then d = (1 ÷ 1)
t
speci…es
that log(Co::n:jtio:,1:co:c) is stationary.
In other cases, d may not be known.
If ¸
t
is cointegrated with a single cointegrating vector (r = 1), then it turns out that d can
be consistently estimated by an OLS regression of one component of ¸
t
on the others. Thus ¸
t
=
(1
1t
, 1
2t
) and d = (,
1
,
2
) and normalize ,
1
= 1. Then
^
,
2
= (¸
t
2
¸
2
)
÷1
¸
t
2
¸
1
j
÷÷ ,
2
. Furthermore
this estimation is superconsistent: T(
^
,
2
÷ ,
2
)
o
÷÷ 1i:it, as …rst shown by Stock (1987). This
is not, in general, a good method to estimate d, but it is useful in the construction of alternative
estimators and tests.
We are often interested in testing the hypothesis of no cointegration:
H
0
: r = 0
H
1
: r 0.
Suppose that d is known, so z
t
= d
t
¸
t
is known. Then under H
0
z
t
is 1(1), yet under H
1
z
t
is
1(0). Thus H
0
can be tested using a univariate ADF test on z
t
.
When d is unknown, Engle and Granger (1987) suggested using an ADF test on the estimated
residual ^ .
t
=
`
d
t
¸
t
, from OLS of j
1t
on j
2t
. Their justi…cation was Stock’s result that
`
d is super
consistent under H
1
. Under H
0
, however,
`
d is not consistent, so the ADF critical values are not
appropriate. The asymptotic distribution was worked out by Phillips and Ouliaris (1990).
When the data have time trends, it may be necessary to include a time trend in the estimated
cointegrating regression. Whether or not the time trend is included, the asymptotic distribution of
the test is a¤ected by the presence of the time trend. The asymptotic distribution was worked out
in B. Hansen (1992).
13.9 Cointegrated VARs
We can write a VAR as
A(L)¸
t
= c
t
A(L) = 1 ÷A
1
L ÷A
2
L
2
÷ ÷A
I
L
I
or alternatively as
¸
t
= D¸
t÷1
+L(L)¸
t÷1
+c
t
where
D = ÷A(1)
= ÷1 +A
1
+A
2
+ +A
I
.
Theorem 13.9.1 Granger Representation Theorem
¸
t
is cointegrated with : r d if and only if rank(D) = r and D = od
t
where c is :r, rank (o) = r.
177
Thus cointegration imposes a restriction upon the parameters of a VAR. The restricted model
can be written as
¸
t
= od
t
¸
t÷1
+L(L)¸
t÷1
+c
t
¸
t
= oz
t÷1
+L(L)¸
t÷1
+c
t
.
If d is known, this can be estimated by OLS of ¸
t
on z
t÷1
and the lags of ¸
t
.
If d is unknown, then estimation is done by “reduced rank regression”, which is leastsquares
subject to the stated restriction. Equivalently, this is the MLE of the restricted parameters under
the assumption that c
t
is iid N(0, D).
One di¢culty is that d is not identi…ed without normalization. When r = 1, we typically just
normalize one element to equal unity. When r 1, this does not work, and di¤erent authors have
adopted di¤erent identi…cation schemes.
In the context of a cointegrated VAR estimated by reduced rank regression, it is simple to test
for cointegration by testing the rank of D. These tests are constructed as likelihood ratio (LR) tests.
As they were discovered by Johansen (1988, 1991, 1995), they are typically called the “Johansen
Max and Trace” tests. Their asymptotic distributions are nonstandard, and are similar to the
DickeyFuller distributions.
178
Chapter 14
Limited Dependent Variables
A “limited dependent variable” j is one which takes a “limited” set of values. The most common
cases are
« Binary: j ¸ ¦0, 1¦
« Multinomial: j ¸ ¦0, 1, 2, ..., /¦
« Integer: j ¸ ¦0, 1, 2, ...¦
« Censored: j ¸ R
+
The traditional approach to the estimation of limited dependent variable (LDV) models is
parametric maximum likelihood. A parametric model is constructed, allowing the construction of
the likelihood function. A more modern approach is semiparametric, eliminating the dependence
on a parametric distributional assumption. We will discuss only the …rst (parametric) approach,
due to time constraints. They still constitute the majority of LDV applications. If, however, you
were to write a thesis involving LDV estimation, you would be advised to consider employing a
semiparametric estimation approach.
For the parametric approach, estimation is by MLE. A major practical issue is construction of
the likelihood function.
14.1 Binary Choice
The dependent variable j
i
¸ ¦0, 1¦. This represents a Yes/No outcome. Given some regressors
i
i
, the goal is to describe P(j
i
= 1 [ i
i
) , as this is the full conditional distribution.
The linear probability model speci…es that
P(j
i
= 1 [ i
i
) = i
t
i
d.
As P(j
i
= 1 [ i
i
) = E(j
i
[ i
i
) , this yields the regression: j
i
= i
t
i
d +c
i
which can be estimated by
OLS. However, the linear probability model does not impose the restriction that 0 _ P(j
i
[ i
i
) _ 1.
Even so estimation of a linear probability model is a useful starting point for subsequent analysis.
The standard alternative is to use a function of the form
P(j
i
= 1 [ i
i
) = 1
_
i
t
i
d
_
where 1 () is a known CDF, typically assumed to be symmetric about zero, so that 1(n) =
1 ÷1(÷n). The two standard choices for 1 are
« Logistic: 1(n) = (1 +c
÷&
)
÷1
.
179
« Normal: 1(n) = (n).
If 1 is logistic, we call this the logit model, and if 1 is normal, we call this the probit model.
This model is identical to the latent variable model
j
+
i
= i
t
i
d +c
i
c
i
~ 1 ()
j
i
=
_
1 if j
+
i
0
0 otherwise
.
For then
P(j
i
= 1 [ i
i
) = P(j
+
i
0 [ i
i
)
= P
_
i
t
i
d +c
i
0 [ i
i
_
= P
_
c
i
÷i
t
i
d [ i
i
_
= 1 ÷1
_
÷i
t
i
d
_
= 1
_
i
t
i
d
_
.
Estimation is by maximum likelihood. To construct the likelihood, we need the conditional
distribution of an individual observation. Recall that if j is Bernoulli, such that P(j = 1) = j and
P(j = 0) = 1 ÷j, then we can write the density of j as
)(j) = j
j
(1 ÷j)
1÷j
, j = 0, 1.
In the Binary choice model, j
i
is conditionally Bernoulli with P(j
i
= 1 [ i
i
) = j
i
= 1 (i
t
i
d) . Thus
the conditional density is
) (j
i
[ i
i
) = j
j
i
i
(1 ÷j
i
)
1÷j
i
= 1
_
i
t
i
d
_
j
i
(1 ÷1
_
i
t
i
d
_
)
1÷j
i
.
Hence the loglikelihood function is
log 1(d) =
a
i=1
log )(j
i
[ i
i
)
=
a
i=1
log
_
1
_
i
t
i
d
_
j
i
(1 ÷1
_
i
t
i
d
_
)
1÷j
i
_
=
a
i=1
_
j
i
log 1
_
i
t
i
d
_
+ (1 ÷j
i
) log(1 ÷1
_
i
t
i
d
_
)
¸
=
j
i
=1
log 1
_
i
t
i
d
_
+
j
i
=0
log(1 ÷1
_
i
t
i
d
_
).
The MLE
`
d is the value of d which maximizes log 1(d). Standard errors and test statistics are
computed by asymptotic approximations. Details of such calculations are left to more advanced
courses.
14.2 Count Data
If j ¸ ¦0, 1, 2, ...¦, a typical approach is to employ Poisson regression. This model speci…es that
P(j
i
= / [ i
i
) =
exp(÷`
i
) `
I
i
/!
, / = 0, 1, 2, ...
`
i
= exp(i
t
i
d).
180
The conditional density is the Poisson with parameter `
i
. The functional form for `
i
has been
picked to ensure that `
i
0.
The loglikelihood function is
log 1(d) =
a
i=1
log )(j
i
[ i
i
) =
a
i=1
_
÷exp(i
t
i
d) +j
i
i
t
i
d ÷log(j
i
!)
_
.
The MLE is the value
`
d which maximizes log 1(d).
Since
E(j
i
[ i
i
) = `
i
= exp(i
t
i
d)
is the conditional mean, this motivates the label Poisson “regression.”
Also observe that the model implies that
var (j
i
[ i
i
) = `
i
= exp(i
t
i
d),
so the model imposes the restriction that the conditional mean and variance of j
i
are the same.
This may be considered restrictive. A generalization is the negative binomial.
14.3 Censored Data
The idea of “censoring” is that some data above or below a threshold are misreported at the
threshold. Thus the model is that there is some latent process j
+
i
with unbounded support, but we
observe only
j
i
=
_
j
+
i
if j
+
i
_ 0
0 if j
+
i
< 0
. (14.1)
(This is written for the case of the threshold being zero, any known value can substitute.) The
observed data j
i
therefore come from a mixed continuous/discrete distribution.
Censored models are typically applied when the data set has a meaningful proportion (say 5%
or higher) of data at the boundary of the sample support. The censoring process may be explicit
in data collection, or it may be a byproduct of economic constraints.
An example of a data collection censoring is topcoding of income. In surveys, incomes above
a threshold are typically reported at the threshold.
The …rst censored regression model was developed by Tobin (1958) to explain consumption of
durable goods. Tobin observed that for many households, the consumption level (purchases) in a
particular period was zero. He proposed the latent variable model
j
+
i
= i
t
i
d +c
i
c
i
~ iid N(0, o
2
)
with the observed variable j
i
generated by the censoring equation (14.1). This model (now called
the Tobit) speci…es that the latent (or ideal) value of consumption may be negative (the household
would prefer to sell than buy). All that is reported is that the household purchased zero units of
the good.
The naive approach to estimate d is to regress j
i
on i
i
. This does not work because regression
estimates E(j
i
[ i
i
) , not E(j
+
i
[ i
i
) = i
t
i
d, and the latter is of interest. Thus OLS will be biased
for the parameter of interest d.
[Note: it is still possible to estimate E(j
i
[ i
i
) by LS techniques. The Tobit framework postu
lates that this is not inherently interesting, that the parameter of d is de…ned by an alternative
statistical structure.]
181
Consistent estimation will be achieved by the MLE. To construct the likelihood, observe that
the probability of being censored is
P(j
i
= 0 [ i
i
) = P(j
+
i
< 0 [ i
i
)
= P
_
i
t
i
d +c
i
< 0 [ i
i
_
= P
_
c
i
o
< ÷
i
t
i
d
o
[ i
i
_
=
_
÷
i
t
i
d
o
_
.
The conditional distribution function above zero is Gaussian:
P(j
i
= j [ i
i
) =
_
j
0
o
÷1
c
_
. ÷i
t
i
d
o
_
d., j 0.
Therefore, the density function can be written as
) (j [ i
i
) =
_
÷
i
t
i
d
o
_
1(j=0)
_
o
÷1
c
_
. ÷i
t
i
d
o
__
1(j0)
,
where 1 () is the indicator function.
Hence the loglikelihood is a mixture of the probit and the normal:
log 1(d) =
a
i=1
log )(j
i
[ i
i
)
=
j
i
=0
log
_
÷
i
t
i
d
o
_
+
j
i
0
log
_
o
÷1
c
_
j
i
÷i
t
i
d
o
__
.
The MLE is the value
`
d which maximizes log 1(d).
14.4 Sample Selection
The problem of sample selection arises when the sample is a nonrandom selection of potential
observations. This occurs when the observed data is systematically di¤erent from the population
of interest. For example, if you ask for volunteers for an experiment, and they wish to extrapolate
the e¤ects of the experiment on a general population, you should worry that the people who
volunteer may be systematically di¤erent from the general population. This has great relevance for
the evaluation of antipoverty and jobtraining programs, where the goal is to assess the e¤ect of
“training” on the general population, not just on the volunteers.
A simple sample selection model can be written as the latent model
j
i
= i
t
i
d +c
1i
T
i
= 1
_
z
t
i
_ +c
0i
0
_
where 1 () is the indicator function. The dependent variable j
i
is observed if (and only if) T
i
= 1.
Else it is unobserved.
For example, j
i
could be a wage, which can be observed only if a person is employed. The
equation for T
i
is an equation specifying the probability that the person is employed.
The model is often completed by specifying that the errors are jointly normal
_
c
0i
c
1i
_
~ N
_
0,
_
1 j
j o
2
__
.
182
It is presumed that we observe ¦i
i
, z
i
, T
i
¦ for all observations.
Under the normality assumption,
c
1i
= jc
0i
+·
i
,
where ·
i
is independent of c
0i
~ N(0, 1). A useful fact about the standard normal distribution is
that
E(c
0i
[ c
0i
÷r) = `(r) =
c(r)
(r)
,
and the function `(r) is called the inverse Mills ratio.
The naive estimator of d is OLS regression of j
i
on i
i
for those observations for which j
i
is
available. The problem is that this is equivalent to conditioning on the event ¦T
i
= 1¦. However,
E(c
1i
[ T
i
= 1, z
i
) = E
_
c
1i
[ ¦c
0i
÷z
t
i
_¦, z
i
_
= jE
_
c
0i
[ ¦c
0i
÷z
t
i
_¦, z
i
_
+E
_
·
i
[ ¦c
0i
÷z
t
i
_¦, z
i
_
= j`
_
z
t
i
_
_
,
which is nonzero. Thus
c
1i
= j`
_
z
t
i
_
_
+n
i
,
where
E(n
i
[ T
i
= 1, z
i
) = 0.
Hence
j
i
= i
t
i
d +j`
_
z
t
i
_
_
+n
i
(14.2)
is a valid regression equation for the observations for which T
i
= 1.
Heckman (1979) observed that we could consistently estimate d and j from this equation, if _
were known. It is unknown, but also can be consistently estimated by a Probit model for selection.
The “Heckit” estimator is thus calculated as follows
« Estimate ` _ from a Probit, using regressors z
i
. The binary dependent variable is T
i
.
« Estimate
_
`
d, ^ j
_
from OLS of j
i
on i
i
and `(z
t
i
` _).
« The OLS standard errors will be incorrect, as this is a twostep estimator. They can be
corrected using a more complicated formula. Or, alternatively, by viewing the Probit/OLS
estimation equations as a large joint GMM problem.
The Heckit estimator is frequently used to deal with problems of sample selection. However,
the estimator is built on the assumption of normality, and the estimator can be quite sensitive
to this assumption. Some modern econometric research is exploring how to relax the normality
assumption.
The estimator can also work quite poorly if `(z
t
i
^ ¸) does not have much insample variation.
This can happen if the Probit equation does not “explain” much about the selection choice. Another
potential problem is that if z
i
= i
i
, then `(z
t
i
^ ¸) can be highly collinear with i
i
, so the second
step OLS estimator will not be able to precisely estimate d. Based this observation, it is typically
recommended to …nd a valid exclusion restriction: a variable should be in z
i
which is not in i
i
. If
this is valid, it will ensure that `(z
t
i
^ ¸) is not collinear with i
i
, and hence improve the second stage
estimator’s precision.
183
Chapter 15
Panel Data
A panel is a set of observations on individuals, collected over time. An observation is the pair
¦j
it
, i
it
¦, where the i subscript denotes the individual, and the t subscript denotes time. A panel
may be balanced:
¦j
it
, i
it
¦ : t = 1, ..., T; i = 1, ..., :,
or unbalanced:
¦j
it
, i
it
¦ : For i = 1, ..., :, t = t
i
, ..., t
i
.
15.1 IndividualE¤ects Model
The standard panel data speci…cation is that there is an individualspeci…c e¤ect which enters
linearly in the regression
j
it
= i
t
it
d +n
i
+c
it
.
The typical maintained assumptions are that the individuals i are mutually independent, that n
i
and c
it
are independent, that c
it
is iid across individuals and time, and that c
it
is uncorrelated with
i
it
.
OLS of j
it
on i
it
is called pooled estimation. It is consistent if
E(i
it
n
i
) = 0 (15.1)
If this condition fails, then OLS is inconsistent. (15.1) fails if the individualspeci…c unobserved
e¤ect n
i
is correlated with the observed explanatory variables i
it
. This is often believed to be
plausible if n
i
is an omitted variable.
If (15.1) is true, however, OLS can be improved upon via a GLS technique. In either event,
OLS appears a poor estimation choice.
Condition (15.1) is called the random e¤ects hypothesis. It is a strong assumption, and most
applied researchers try to avoid its use.
15.2 Fixed E¤ects
This is the most common technique for estimation of nondynamic linear panel regressions.
The motivation is to allow n
i
to be arbitrary, and have arbitrary correlated with i
i
. The goal
is to eliminate n
i
from the estimator, and thus achieve invariance.
There are several derivations of the estimator.
First, let
d
i)
=
_
_
_
1 if i = ,
0 else
,
184
and
u
i
=
_
_
_
d
i1
.
.
.
d
ia
_
_
_,
an : 1 dummy vector with a “1” in the i
t
t/ place. Let
u =
_
_
_
n
1
.
.
.
n
a
_
_
_.
Then note that
n
i
= u
t
i
u,
and
j
it
= i
t
it
d +u
t
i
u +c
it
. (15.2)
Observe that
E(c
it
[ i
it
, u
i
) = 0,
so (15.2) is a valid regression, with u
i
as a regressor along with i
i
.
OLS on (15.2) yields estimator
_
`
d, ` u
_
. Conventional inference applies.
Observe that
« This is generally consistent.
« If i
it
contains an intercept, it will be collinear with u
i
, so the intercept is typically omitted
from i
it
.
« Any regressor in i
it
which is constant over time for all individuals (e.g., their gender) will be
collinear with u
i
, so will have to be omitted.
« There are : +/ regression parameters, which is quite large as typically : is very large.
Computationally, you do not want to actually implement conventional OLS estimation, as the
parameter space is too large. OLS estimation of d proceeds by the FWL theorem. Stacking the
observations together:
¸ = Ad +Lu +c,
then by the FWL theorem,
`
d =
_
A
t
(1 ÷1
1
) A
_
÷1
_
A
t
(1 ÷1
1
) ¸
_
=
_
A
+t
A
+
_
÷1
_
A
+t
¸
+
_
,
where
¸
+
= ¸ ÷L(L
t
L)
÷1
L
t
¸
A
+
= A ÷L(L
t
L)
÷1
L
t
A.
Since the regression of j
it
on u
i
is a regression onto individualspeci…c dummies, the predicted value
from these regressions is the individual speci…c mean j
i
, and the residual is the demean value
j
+
it
= j
it
÷j
i
.
The …xed e¤ects estimator
`
d is OLS of j
+
it
on i
+
it
, the dependent variable and regressors in deviation
frommean form.
185
Another derivation of the estimator is to take the equation
j
it
= i
t
it
d +n
i
+c
it
,
and then take individualspeci…c means by taking the average for the i
t
t/ individual:
1
T
i
t
i
t=t
i
j
it
=
1
T
i
t
i
t=t
i
i
t
it
d +n
i
+
1
T
i
t
i
t=t
i
c
it
or
j
i
= i
t
i
d +n
i
+c
i
.
Subtracting, we …nd
j
+
it
= i
+t
it
d +c
+
it
,
which is free of the individuale¤ect n
i
.
15.3 Dynamic Panel Regression
A dynamic panel regression has a lagged dependent variable
j
it
= cj
it÷1
+i
t
it
d +n
i
+c
it
. (15.3)
This is a model suitable for studying dynamic behavior of individual agents.
Unfortunately, the …xed e¤ects estimator is inconsistent, at least if T is held …nite as : ÷ ·.
This is because the sample mean of j
it÷1
is correlated with that of c
it
.
The standard approach to estimate a dynamic panel is to combine …rstdi¤erencing with IV or
GMM. Taking …rstdi¤erences of (15.3) eliminates the individualspeci…c e¤ect:
j
it
= cj
it÷1
+ i
t
it
d + c
it
. (15.4)
However, if c
it
is iid, then it will be correlated with j
it÷1
:
E(j
it÷1
c
it
) = E((j
it÷1
÷j
it÷2
) (c
it
÷c
it÷1
)) = ÷E(j
it÷1
c
it÷1
) = ÷o
2
c
.
So OLS on (15.4) will be inconsistent.
But if there are valid instruments, then IV or GMM can be used to estimate the equation.
Typically, we use lags of the dependent variable, two periods back, as j
t÷2
is uncorrelated with
c
it
. Thus values of j
it÷I
, / _ 2, are valid instruments.
Hence a valid estimator of c and d is to estimate (15.4) by IV using j
t÷2
as an instrument for
j
t÷1
(which is just identi…ed). Alternatively, GMM using j
t÷2
and j
t÷3
as instruments (which is
overidenti…ed, but loses a timeseries observation).
A more sophisticated GMM estimator recognizes that for timeperiods later in the sample, there
are more instruments available, so the instrument list should be di¤erent for each equation. This is
conveniently organized by the GMM principle, as this enables the moments from the di¤erent time
periods to be stacked together to create a list of all the moment conditions. A simple application
of GMM yields the parameter estimates and standard errors.
186
Chapter 16
Nonparametrics
16.1 Kernel Density Estimation
Let A be a random variable with continuous distribution 1(r) and density )(r) =
o
oa
1(r).
The goal is to estimate )(r) from a random sample (A
1
, ..., A
a
¦ While 1(r) can be estimated by
the EDF
^
1(r) = :
÷1
a
i=1
1 (A
i
_ r) , we cannot de…ne
o
oa
^
1(r) since
^
1(r) is a step function. The
standard nonparametric method to estimate )(r) is based on smoothing using a kernel.
While we are typically interested in estimating the entire function )(r), we can simply focus
on the problem where r is a speci…c …xed number, and then see how the method generalizes to
estimating the entire function.
De…nition 16.1.1 1(n) is a secondorder kernel function if it is a
symmetric zeromean density function.
Three common choices for kernels include the Normal
1(n) =
1
_
2¬
exp
_
÷
n
2
2
_
the Epanechnikov
1(n) =
_
3
4
_
1 ÷n
2
_
, [n[ _ 1
0 [n[ 1
and the Biweight or Quartic
1(n) =
_
15
16
_
1 ÷n
2
_
2
, [n[ _ 1
0 [n[ 1
In practice, the choice between these three rarely makes a meaningful di¤erence in the estimates.
The kernel functions are used to smooth the data. The amount of smoothing is controlled by
the bandwidth / 0. Let
1
I
(n) =
1
/
1
_
n
/
_
.
be the kernel 1 rescaled by the bandwidth /. The kernel density estimator of )(r) is
^
)(r) =
1
:
a
i=1
1
I
(A
i
÷r) .
187
This estimator is the average of a set of weights. If a large number of the observations A
i
are near
r, then the weights are relatively large and
^
)(r) is larger. Conversely, if only a few A
i
are near r,
then the weights are small and
^
)(r) is small. The bandwidth / controls the meaning of “near”.
Interestingly,
^
)(r) is a valid density. That is,
^
)(r) _ 0 for all r, and
_
o
÷o
^
)(r)dr =
_
o
÷o
1
:
a
i=1
1
I
(A
i
÷r) dr =
1
:
a
i=1
_
o
÷o
1
I
(A
i
÷r) dr =
1
:
a
i=1
_
o
÷o
1 (n) dn = 1
where the secondtolast equality makes the changeofvariables n = (A
i
÷r),/.
We can also calculate the moments of the density
^
)(r). The mean is
_
o
÷o
r
^
)(r)dr =
1
:
a
i=1
_
o
÷o
r1
I
(A
i
÷r) dr
=
1
:
a
i=1
_
o
÷o
(A
i
+n/) 1 (n) dn
=
1
:
a
i=1
A
i
_
o
÷o
1 (n) dn +
1
:
a
i=1
/
_
o
÷o
n1 (n) dn
=
1
:
a
i=1
A
i
the sample mean of the A
i
, where the secondtolast equality used the changeofvariables n =
(A
i
÷r),/ which has Jacobian /.
The second moment of the estimated density is
_
o
÷o
r
2
^
)(r)dr =
1
:
a
i=1
_
o
÷o
r
2
1
I
(A
i
÷r) dr
=
1
:
a
i=1
_
o
÷o
(A
i
+n/)
2
1 (n) dn
=
1
:
a
i=1
A
2
i
+
2
:
a
i=1
A
i
/
_
o
÷o
1(n)dn +
1
:
a
i=1
/
2
_
o
÷o
n
2
1 (n) dn
=
1
:
a
i=1
A
2
i
+/
2
o
2
1
where
o
2
1
=
_
o
÷o
n
2
1 (n) dn
is the variance of the kernel. It follows that the variance of the density
^
)(r) is
_
o
÷o
r
2
^
)(r)dr ÷
__
o
÷o
r
^
)(r)dr
_
2
=
1
:
a
i=1
A
2
i
+/
2
o
2
1
÷
_
1
:
a
i=1
A
i
_
2
= ^ o
2
+/
2
o
2
1
Thus the variance of the estimated density is in‡ated by the factor /
2
o
2
1
relative to the sample
moment.
188
16.2 Asymptotic MSE for Kernel Estimates
For …xed r and bandwidth / observe that
E1
I
(A ÷r) =
_
o
÷o
1
I
(. ÷r) )(.)d. =
_
o
÷o
1
I
(n/) )(r +/n)/dn =
_
o
÷o
1 (n) )(r +/n)dn
The second equality uses the changeof variables n = (. ÷r),/. The last expression shows that the
expected value is an average of )(.) locally about r.
This integral (typically) is not analytically solvable, so we approximate it using a second order
Taylor expansion of )(r +/n) in the argument /n about /n = 0, which is valid as / ÷0. Thus
) (r +/n) · )(r) +)
t
(r)/n +
1
2
)
tt
(r)/
2
n
2
and therefore
E1
I
(A ÷r) ·
_
o
÷o
1 (n)
_
)(r) +)
t
(r)/n +
1
2
)
tt
(r)/
2
n
2
_
dn
= )(r)
_
o
÷o
1 (n) dn +)
t
(r)/
_
o
÷o
1 (n) ndn +
1
2
)
tt
(r)/
2
_
o
÷o
1 (n) n
2
dn
= )(r) +
1
2
)
tt
(r)/
2
o
2
1
.
The bias of
^
)(r) is then
1ia:(r) = E
^
)(r) ÷)(r) =
1
:
a
i=1
E1
I
(A
i
÷r) ÷)(r) =
1
2
)
tt
(r)/
2
o
2
1
.
We see that the bias of
^
)(r) at r depends on the second derivative )
tt
(r). The sharper the derivative,
the greater the bias. Intuitively, the estimator
^
)(r) smooths data local to A
i
= r, so is estimating
a smoothed version of )(r). The bias results from this smoothing, and is larger the greater the
curvature in )(r).
We now examine the variance of
^
)(r). Since it is an average of iid random variables, using
…rstorder Taylor approximations and the fact that :
÷1
is of smaller order than (:/)
÷1
var (r) =
1
:
var (1
I
(A
i
÷r))
=
1
:
E1
I
(A
i
÷r)
2
÷
1
:
(E1
I
(A
i
÷r))
2
·
1
:/
2
_
o
÷o
1
_
. ÷r
/
_
2
)(.)d. ÷
1
:
)(r)
2
=
1
:/
_
o
÷o
1 (n)
2
) (r +/n) dn
·
) (r)
:/
_
o
÷o
1 (n)
2
dn
=
) (r) 1(1)
:/
.
where 1(1) =
_
o
÷o
1 (n)
2
dn is called the roughness of 1.
Together, the asymptotic meansquared error (AMSE) for …xed r is the sum of the approximate
squared bias and approximate variance
¹'o1
I
(r) =
1
4
)
tt
(r)
2
/
4
o
4
1
+
) (r) 1(1)
:/
.
189
A global measure of precision is the asymptotic mean integrated squared error (AMISE)
¹'1o1
I
=
_
¹'o1
I
(r)dr =
/
4
o
4
1
1()
tt
)
4
+
1(1)
:/
. (16.1)
where 1()
tt
) =
_
()
tt
(r))
2
dr is the roughness of )
tt
. Notice that the …rst term (the squared bias)
is increasing in / and the second term (the variance) is decreasing in :/. Thus for the AMISE to
decline with :, we need / ÷ 0 but :/ ÷ ·. That is, / must tend to zero, but at a slower rate
than :
÷1
.
Equation (16.1) is an asymptotic approximation to the MSE. We de…ne the asymptotically
optimal bandwidth /
0
as the value which minimizes this approximate MSE. That is,
/
0
= argmin
I
¹'1o1
I
It can be found by solving the …rst order condition
d
d/
¹'1o1
I
= /
3
o
4
1
1()
tt
) ÷
1(1)
:/
2
= 0
yielding
/
0
=
_
1(1)
o
4
1
1()
tt
)
_
1¸5
:
÷1¸2
. (16.2)
This solution takes the form /
0
= c:
÷1¸5
where c is a function of 1 and ), but not of :. We
thus say that the optimal bandwidth is of order O(:
÷1¸5
). Note that this / declines to zero, but at
a very slow rate.
In practice, how should the bandwidth be selected? This is a di¢cult problem, and there is a
large and continuing literature on the subject. The asymptotically optimal choice given in (16.2)
depends on 1(1), o
2
1
, and 1()
tt
). The …rst two are determined by the kernel function. Their
values for the three functions introduced in the previous section are given here.
1 o
2
1
=
_
o
÷o
n
2
1 (n) dn 1(1) =
_
o
÷o
1 (n)
2
dn
Gaussian 1 1/(2
_
¬)
Epanechnikov 1,5 1,5
Biweight 1,7 5,7
An obvious di¢culty is that 1()
tt
) is unknown. A classic simple solution proposed by Silverman
(1986)has come to be known as the reference bandwidth or Silverman’s RuleofThumb. It
uses formula (16.2) but replaces 1()
tt
) with ^ o
÷5
1(c
tt
), where c is the N(0, 1) distribution and ^ o
2
is
an estimate of o
2
= var(A). This choice for / gives an optimal rule when )(r) is normal, and gives
a nearly optimal rule when )(r) is close to normal. The downside is that if the density is very far
from normal, the ruleofthumb / can be quite ine¢cient. We can calculate that 1(c
tt
) = 3, (8
_
¬) .
Together with the above table, we …nd the reference rules for the three kernel functions introduced
earlier.
Gaussian Kernel: /
v&c
= 1.06^ o:
÷1¸5
Epanechnikov Kernel: /
v&c
= 2.34^ o:
÷1¸5
Biweight (Quartic) Kernel: /
v&c
= 2.78^ o:
÷1¸5
Unless you delve more deeply into kernel estimation methods the ruleofthumb bandwidth is
a good practical bandwidth choice, perhaps adjusted by visual inspection of the resulting estimate
^
)(r). There are other approaches, but implementation can be delicate. I now discuss some of these
choices. The plugin approach is to estimate 1()
tt
) in a …rst step, and then plug this estimate into
the formula (16.2). This is more treacherous than may …rst appear, as the optimal / for estimation
of the roughness 1()
tt
) is quite di¤erent than the optimal / for estimation of )(r). However, there
190
are modern versions of this estimator work well, in particular the iterative method of Sheather
and Jones (1991). Another popular choice for selection of / is crossvalidation. This works by
constructing an estimate of the MISE using leaveoneout estimators. There are some desirable
properties of crossvalidation bandwidths, but they are also known to converge very slowly to the
optimal values. They are also quite illbehaved when the data has some discretization (as is common
in economics), in which case the crossvalidation rule can sometimes select very small bandwidths
leading to dramatically undersmoothed estimates. Fortunately there are remedies, which are known
as smoothed crossvalidation which is a close cousin of the bootstrap.
191
Appendix A
Matrix Algebra
A.1 Notation
A scalar a is a single number.
A vector u is a / 1 list of numbers, typically arranged in a column. We write this as
u =
_
_
_
_
_
a
1
a
2
.
.
.
a
I
_
_
_
_
_
Equivalently, a vector u is an element of Euclidean / space, written as u ¸ R
I
. If / = 1 then u is
a scalar.
A matrix A is a / r rectangular array of numbers, written as
A =
_
¸
¸
¸
_
a
11
a
12
a
1v
a
21
a
22
a
2v
.
.
.
.
.
.
.
.
.
a
I1
a
I2
a
Iv
_
¸
¸
¸
_
By convention a
i)
refers to the element in the i
t
t/ row and ,
t
t/ column of A. If r = 1 then A is a
column vector. If / = 1 then A is a row vector. If r = / = 1, then A is a scalar.
A standard convention (which we will follow in this text whenever possible) is to denote scalars
by lowercase italics (a), vectors by lowercase bold italics (u), and matrices by uppercase bold
italics (A). Sometimes a matrix A is denoted by the symbol (a
i)
).
A matrix can be written as a set of column vectors or as a set of row vectors. That is,
A =
_
u
1
u
2
u
v
¸
=
_
¸
¸
¸
_
o
1
o
2
.
.
.
o
I
_
¸
¸
¸
_
where
u
i
=
_
¸
¸
¸
_
a
1i
a
2i
.
.
.
a
Ii
_
¸
¸
¸
_
are column vectors and
o
)
=
_
a
)1
a
)2
a
)v
¸
192
are row vectors.
The transpose of a matrix, denoted A
t
, is obtained by ‡ipping the matrix on its diagonal.
Thus
A
t
=
_
¸
¸
¸
_
a
11
a
21
a
I1
a
12
a
22
a
I2
.
.
.
.
.
.
.
.
.
a
1v
a
2v
a
Iv
_
¸
¸
¸
_
Alternatively, letting H = A
t
, then /
i)
= a
)i
. Note that if A is / r, then A
t
is r /. If u is a
/ 1 vector, then u
t
is a 1 / row vector. An alternative notation for the transpose of A is A
¯
.
A matrix is square if / = r. A square matrix is symmetric if A = A
t
, which requires a
i)
= a
)i
.
A square matrix is diagonal if the o¤diagonal elements are all zero, so that a
i)
= 0 if i ,= ,. A
square matrix is upper (lower) diagonal if all elements below (above) the diagonal equal zero.
An important diagonal matrix is the identity matrix, which has ones on the diagonal. The
/ / identity matrix is denoted as
1
I
=
_
¸
¸
¸
_
1 0 0
0 1 0
.
.
.
.
.
.
.
.
.
0 0 1
_
¸
¸
¸
_
.
A partitioned matrix takes the form
A =
_
¸
¸
¸
_
A
11
A
12
A
1v
A
21
A
22
A
2v
.
.
.
.
.
.
.
.
.
A
I1
A
I2
A
Iv
_
¸
¸
¸
_
where the ¹
i)
denote matrices, vectors and/or scalars.
A.2 Matrix Addition
If the matrices A = (a
i)
) and H = (/
i)
) are of the same order, we de…ne the sum
A+H = (a
i)
+/
i)
) .
Matrix addition follows the communtative and associative laws:
A+H = H +A
A+ (H +C) = (A+H) +C.
A.3 Matrix Multiplication
If A is / r and c is real, we de…ne their product as
Ac = cA = (a
i)
c) .
If u and I are both / 1, then their inner product is
u
t
I = a
1
/
1
+a
2
/
2
+ +a
I
/
I
=
I
)=1
a
)
/
)
.
Note that u
t
I = I
t
u. We say that two vectors u and I are orthogonal if u
t
I = 0.
193
If A is / r and H is r :, so that the number of columns of A equals the number of rows
of H, we say that A and H are conformable. In this event the matrix product AH is de…ned.
Writing A as a set of row vectors and H as a set of column vectors (each of length r), then the
matrix product is de…ned as
AH =
_
¸
¸
¸
_
u
t
1
u
t
2
.
.
.
u
t
I
_
¸
¸
¸
_
_
I
1
I
2
I
c
¸
=
_
¸
¸
¸
_
u
t
1
I
1
u
t
1
I
2
u
t
1
I
c
u
t
2
I
1
u
t
2
I
2
u
t
2
I
c
.
.
.
.
.
.
.
.
.
u
t
I
I
1
u
t
I
I
2
u
t
I
I
c
_
¸
¸
¸
_
.
Matrix multiplication is not communicative: in general AH 6= HA. However, it is associative
and distributive:
A(HC) = (AH) C
A(H +C) = AH +AC
An alternative way to write the matrix product is to use matrix partitions. For example,
AH =
_
A
11
A
12
A
21
A
22
_ _
H
11
H
12
H
21
H
22
_
=
_
A
11
H
11
+A
12
H
21
A
11
H
12
+A
12
H
22
A
21
H
11
+A
22
H
21
A
21
H
12
+A
22
H
22
_
.
As another example,
AH =
_
A
1
A
2
A
v
¸
_
¸
¸
¸
_
H
1
H
2
.
.
.
H
v
_
¸
¸
¸
_
= A
1
H
1
+A
2
H
2
+ +A
v
H
v
=
v
)=1
A
)
H
)
An important property of the identity matrix is that if A is /r, then A1
v
= A and 1
I
A = A.
The / r matrix A, r _ /, is called orthogonal if A
t
A = 1
v
.
A.4 Trace
The trace of a / / square matrix A is the sum of its diagonal elements
tr (A) =
I
i=1
a
ii
.
Some straightforward properties for square matrices A and H and real c are
tr (cA) = c tr (A)
tr
_
A
t
_
= tr (A)
tr (A+H) = tr (A) + tr (H)
tr (1
I
) = /.
194
Also, for / r A and r / H we have
tr (AH) = tr (HA) .
Indeed,
tr (AH) = tr
_
¸
¸
¸
_
u
t
1
I
1
u
t
1
I
2
u
t
1
I
I
u
t
2
I
1
u
t
2
I
2
u
t
2
I
I
.
.
.
.
.
.
.
.
.
u
t
I
I
1
u
t
I
I
2
u
t
I
I
I
_
¸
¸
¸
_
=
I
i=1
u
t
i
I
i
=
I
i=1
I
t
i
u
i
= tr (HA) .
A.5 Rank and Inverse
The rank of the / r matrix (r _ /)
A =
_
u
1
u
2
u
v
¸
is the number of linearly independent columns u
)
, and is written as rank (A) . We say that A has
full rank if rank (A) = r.
A square / / matrix A is said to be nonsingular if it is has full rank, e.g. rank (A) = /.
This means that there is no / 1 c ,= 0 such that Ac = 0.
If a square / / matrix A is nonsingular then there exists a unique matrix / / matrix A
÷1
called the inverse of A which satis…es
AA
÷1
= A
÷1
A = 1
I
.
For nonsingular A and C, some important properties include
AA
÷1
= A
÷1
A = 1
I
_
A
÷1
_
t
=
_
A
t
_
÷1
(AC)
÷1
= C
÷1
A
÷1
(A+C)
÷1
= A
÷1
_
A
÷1
+C
÷1
_
÷1
C
÷1
A
÷1
÷(A+C)
÷1
= A
÷1
_
A
÷1
+C
÷1
_
A
÷1
Also, if A is an orthogonal matrix, then A
÷1
= A.
Another useful result for nonsingular A is known as the Woodbury matrix identity
(A+HCL)
÷1
= A
÷1
÷A
÷1
HC
_
C +CLA
÷1
HC
_
÷1
CLA
÷1
. (A.1)
In particular, for C = ÷1, H = I and L = I
t
for vector I we …nd what is known as the Sherman–
Morrison formula
_
A÷II
t
_
÷1
= A
÷1
+
_
1 ÷I
t
A
÷1
I
_
÷1
A
÷1
II
t
A
÷1
. (A.2)
195
The following fact about inverting partitioned matrices is quite useful. If A ÷ HL
÷1
C and
L÷CA
÷1
H are nonsingular, then
_
A H
C L
_
÷1
=
_
_
A÷HL
÷1
C
_
÷1
÷
_
A÷HL
÷1
C
_
÷1
HL
÷1
÷
_
L÷CA
÷1
H
_
÷1
CA
÷1
_
L÷CA
÷1
H
_
÷1
_
. (A.3)
Even if a matrix A does not possess an inverse, we can still de…ne the MoorePenrose gen
eralized inverse A
÷
as the matrix which satis…es
AA
÷
A = A
A
÷
AA
÷
= A
÷
AA
÷
is symmetric
A
÷
A is symmetric
For any matrix A, the MoorePenrose generalized inverse A
÷
exists and is unique.
For example, if
A =
_
A
11
0
0 0
_
then
A
÷
=
_
A
÷
11
0
0 0
_
.
A.6 Determinant
The determinant is a measure of the volume of a square matrix.
While the determinant is widely used, its precise de…nition is rarely needed. However, we present
the de…nition here for completeness. Let A = (a
i)
) be a general / / matrix . Let ¬ = (,
1
, ..., ,
I
)
denote a permutation of (1, ..., /) . There are /! such permutations. There is a unique count of the
number of inversions of the indices of such permutations (relative to the natural order (1, ..., /) ,
and let 
¬
= +1 if this count is even and 
¬
= ÷1 if the count is odd. Then the determinant of A
is de…ned as
det A =
¬

¬
a
1)
1
a
2)
2
a
I)
k
.
For example, if A is 2 2, then the two permutations of (1, 2) are (1, 2) and (2, 1) , for which

(1,2)
= 1 and 
(2,1)
= ÷1. Thus
det A = 
(1,2)
a
11
a
22
+
(2,1)
a
21
a
12
= a
11
a
22
÷a
12
a
21
.
Some properties include
« det (A) = det (A
t
)
« det (cA) = c
I
det A
« det (AH) = (det A) (det H)
« det
_
A
÷1
_
= (det A)
÷1
« det
_
A H
C L
_
= (det L) det
_
A÷HL
÷1
C
_
if det L ,= 0
« det A ,= 0 if and only if A is nonsingular.
« If A is triangular (upper or lower), then det A =
I
i=1
a
ii
« If A is orthogonal, then det A = ±1
196
A.7 Eigenvalues
The characteristic equation of a square matrix A is
det (A÷`1
I
) = 0.
The left side is a polynomial of degree / in ` so it has exactly / roots, which are not necessarily
distinct and may be real or complex. They are called the latent roots or characteristic roots or
eigenvalues of A. If `
i
is an eigenvalue of A, then A÷`
i
1
I
is singular so there exists a nonzero
vector l
i
such that
(A÷`
i
1
I
) l
i
= 0.
The vector l
i
is called a latent vector or characteristic vector or eigenvector of A corre
sponding to `
i
.
We now state some useful properties. Let `
i
and l
i
, i = 1, ..., / denote the / eigenvalues and
eigenvectors of a square matrix A. Let A be a diagonal matrix with the characteristic roots in the
diagonal, and let H = [l
1
l
I
].
« det(A) =
I
i=1
`
i
« tr(A) =
I
i=1
`
i
« A is nonsingular if and only if all its characteristic roots are nonzero.
« If A has distinct characteristic roots, there exists a nonsingular matrix 1 such that A =
1
÷1
A1 and 1A1
÷1
= A.
« If A is symmetric, then A = HAH
t
and H
t
AH = A, and the characteristic roots are all
real. A = HAH
t
is called the spectral decomposition of a matrix.
« The characteristic roots of A
÷1
are `
÷1
1
, `
÷1
2
, ..., `
÷1
I
.
« The matrix H has the orthonormal properties H
t
H = 1 and HH
t
= 1.
« H
÷1
= H
t
and (H
t
)
÷1
= H
A.8 Positive De…niteness
We say that a / / symmetric square matrix A is positive semide…nite if for all c ,= 0,
c
t
Ac _ 0. This is written as A _ 0. We say that A is positive de…nite if for all c ,= 0, c
t
Ac 0.
This is written as A 0.
Some properties include:
« If A = C
t
C for some matrix C, then A is positive semide…nite. (For any c ,= 0, c
t
Ac =
o
t
o _ 0 where o = Cc.) If C has full rank, then A is positive de…nite.
« If A is positive de…nite, then A is nonsingular and A
÷1
exists. Furthermore, A
÷1
0.
« A 0 if and only if it is symmetric and all its characteristic roots are positive.
« By the spectral decomposition, A = HAH
t
where H
t
H = 1 and A is diagonal with non
negative diagonal elements. All diagonal elements of A are strictly positive if (and only if)
A 0.
« If ¹ 0 then ¹
÷1
= HA
÷1
H
t
.
197
« If ¹ _ 0 and rank (A) = r < / then ¹
÷
= HA
÷
H
t
where ¹
÷
is the MoorePenrose
generalized inverse, and A
÷
= diag
_
`
÷1
1
, `
÷1
2
, ..., `
÷1
I
, 0, ..., 0
_
« If A 0 we can …nd a matrix H such that A = HH
t
. We call H a matrix square root
of A. The matrix H need not be unique. One way to construct H is to use the spectral
decomposition A = HAH
t
where A is diagonal, and then set H = HA
1¸2
.
A square matrix A is idempotent if AA = A. If A is idempotent and symmetric then all its
characteristic roots equal either zero or one and is thus positive semide…nite. To see this, note
that we can write A = HAH
t
where H is orthogonal and A contains the r (real) characteristic
roots. Then
A = AA = HAH
t
HAH
t
= HA
2
H
t
.
By the uniqueness of the characteristic roots, we deduce that A
2
= A and `
2
i
= `
i
for i = 1, ..., r.
Hence they must equal either 0 or 1. It follows that the spectral decomposition of idempotent A
takes the form
A = H
_
1
I÷v
0
0 0
_
H
t
(A.4)
with H
t
H = 1
I
. Additionally, tr(A) = rank(A).
A.9 Matrix Calculus
Let i = (r
1
, ..., r
I
) be / 1 and q(i) = q(r
1
, ..., r
I
) : R
I
÷R. The vector derivative is
0
0i
q (i) =
_
_
_
0
0a
1
q (i)
.
.
.
0
0a
k
q (i)
_
_
_
and
0
0i
t
q (i) =
_
0
0a
1
q (i)
0
0a
k
q (i)
_
.
Some properties are now summarized.
«
0
0æ
(u
t
i) =
0
0æ
(i
t
u) = u
«
0
0æ
0
(Ai) = A
«
0
0æ
(i
t
Ai) = (A+A
t
) i
«
0
2
0æ0æ
0
(i
t
Ai) = A+A
t
A.10 Kronecker Products and the Vec Operator
Let A = [u
1
u
2
u
a
] be ::. The vec of A, denoted by vec (A) , is the :: 1 vector
vec (A) =
_
_
_
_
_
u
1
u
2
.
.
.
u
a
_
_
_
_
_
.
198
Let A = (a
i)
) be an : : matrix and let H be any matrix. The Kronecker product of A
and H, denoted A¸H, is the matrix
A¸H =
_
¸
¸
¸
_
a
11
H a
12
H a
1a
H
a
21
H a
22
H a
2a
H
.
.
.
.
.
.
.
.
.
a
n1
H a
n2
H a
na
H
_
¸
¸
¸
_
.
Some important properties are now summarized. These results hold for matrices for which all
matrix multiplications are conformable.
« (A+H) ¸C = A¸C +H ¸C
« (A¸H) (C ¸L) = AC ¸HL
« A¸(H ¸C) = (A¸H) ¸C
« (A¸H)
t
= A
t
¸H
t
« tr (A¸H) = tr (A) tr (H)
« If A is :: and H is : :, det(A¸H) = (det (A))
a
(det (H))
n
« (A¸H)
÷1
= A
÷1
¸H
÷1
« If A 0 and H 0 then A¸H 0
« vec (AHC) = (C
t
¸A) vec (H)
« tr (AHCL) = vec (L
t
)
t
(C
t
¸A) vec (H)
A.11 Vector and Matrix Norms
The Euclidean norm of an :1 vector u is
u =
_
u
t
u
_
1¸2
=
_
n
i=1
a
2
i
_
1¸2
.
The Euclidean norm of an :: matrix A is
A = vec (A)
= tr
_
A
t
A
_
1¸2
=
_
_
n
i=1
a
)=1
a
2
i)
_
_
1¸2
.
A useful calculation is for any :1 vectors u and I,
_
_
uI
t
_
_
= u I
and in particular
_
_
uu
t
_
_
= u
2
(A.5)
199
Some useful inequalities are now given:
Schwarz Inequality: For any :1 vectors u and I,
¸
¸
u
t
I
¸
¸
_ u I . (A.6)
Schwarz Matrix Inequality: For any :: matrices A and H,
_
_
A
t
H
_
_
_ A H . (A.7)
Triangle Inequality: For any :: matrices A and H,
A+H _ A +H . (A.8)
Proof of Schwarz Inequality: First, suppose that I = 0. Then I = 0 and both [u
t
I[ = 0 and
u I = 0 so the inequality is true. Second, suppose that I 0 and de…ne c = u÷I
_
I
t
I
_
÷1
I
t
u.
Since c is a vector, c
t
c _ 0. Thus
0 _ c
t
c = u
t
u ÷
_
u
t
I
_
2
,
_
I
t
I
_
.
Rearranging, this implies that
_
u
t
I
_
2
_
_
u
t
u
_ _
I
t
I
_
.
Taking the square root of each side yields the result.
Proof of Schwarz Matrix Inequality: Partition A = [u
1
, ..., u
a
] and H = [I
1
, ..., I
a
]. Then
by partitioned matrix multiplication, the de…nition of the matrix Euclidean norm and the Schwarz
inequality
_
_
A
t
H
_
_
=
_
_
_
_
_
_
_
u
t
1
I
1
u
t
1
I
2
u
t
2
I
1
u
t
2
I
2
.
.
.
.
.
.
.
.
.
_
_
_
_
_
_
_
_
_
_
_
_
_
_
_
u
1
 I
1
 u
1
 I
2

u
2
 I
1
 u
2
 I
2

.
.
.
.
.
.
.
.
.
_
_
_
_
_
_
_
=
_
_
a
i=1
a
)=1
u
i

2
I
)

2
_
_
1¸2
=
_
a
i=1
u
i

2
_
1¸2
_
a
i=1
I
i

2
_
1¸2
=
_
_
a
i=1
n
)=1
u
2
)i
_
_
1¸2
_
_
a
i=1
n
)=1
I
)i

2
_
_
1¸2
= A H
Proof of Triangle Inequality: Let u = vec (A) and I = vec (H) . Then by the de…nition of the
matrix norm and the Schwarz Inequality
A+H
2
= u +I
2
= u
t
u + 2u
t
I +I
t
I
_ u
t
u + 2
¸
¸
u
t
I
¸
¸
+I
t
I
_ u
2
+ 2 u I +I
2
= (u +I)
2
= (A +H)
2
200
Appendix B
Probability
B.1 Foundations
The set o of all possible outcomes of an experiment is called the sample space for the exper
iment. Take the simple example of tossing a coin. There are two outcomes, heads and tails, so
we can write o = ¦H, T¦. If two coins are tossed in sequence, we can write the four outcomes as
o = ¦HH, HT, TH, TT¦.
An event ¹ is any collection of possible outcomes of an experiment. An event is a subset of o,
including o itself and the null set O. Continuing the two coin example, one event is ¹ = ¦HH, HT¦,
the event that the …rst coin is heads. We say that ¹ and 1 are disjoint or mutually exclusive
if ¹ ¨ 1 = O. For example, the sets ¦HH, HT¦ and ¦TH¦ are disjoint. Furthermore, if the sets
¹
1
, ¹
2
, ... are pairwise disjoint and '
o
i=1
¹
i
= o, then the collection ¹
1
, ¹
2
, ... is called a partition
of o.
The following are elementary set operations:
Union: ¹' 1 = ¦r : r ¸ ¹ or r ¸ 1¦.
Intersection: ¹¨ 1 = ¦r : r ¸ ¹ and r ¸ 1¦.
Complement: ¹
c
= ¦r : r , ¸ ¹¦.
The following are useful properties of set operations.
Communtatitivity: ¹' 1 = 1 ' ¹; ¹¨ 1 = 1 ¨ ¹.
Associativity: ¹' (1 ' C) = (¹' 1) ' C; ¹¨ (1 ¨ C) = (¹¨ 1) ¨ C.
Distributive Laws: ¹¨(1 ' C) = (¹¨ 1) '(¹¨ C) ; ¹'(1 ¨ C) = (¹' 1) ¨(¹' C) .
DeMorgan’s Laws: (¹' 1)
c
= ¹
c
¨ 1
c
; (¹¨ 1)
c
= ¹
c
' 1
c
.
A probability function assigns probabilities (numbers between 0 and 1) to events ¹ in o.
This is straightforward when o is countable; when o is uncountable we must be somewhat more
careful. A set E is called a sigma algebra (or Borel …eld) if O ¸ E , ¹ ¸ E implies ¹
c
¸ E, and
¹
1
, ¹
2
, ... ¸ E implies '
o
i=1
¹
i
¸ E. A simple example is ¦O, o¦ which is known as the trivial sigma
algebra. For any sample space o, let E be the smallest sigma algebra which contains all of the open
sets in o. When o is countable, E is simply the collection of all subsets of o, including O and o.
When o is the real line, then E is the collection of all open and closed intervals. We call E the
sigma algebra associated with o. We only de…ne probabilities for events contained in E.
We now can give the axiomatic de…nition of probability. Given o and E, a probability function
P satis…es P(o) = 1, P(¹) _ 0 for all ¹ ¸ E, and if ¹
1
, ¹
2
, ... ¸ E are pairwise disjoint, then
P('
o
i=1
¹
i
) =
o
i=1
P(¹
i
).
Some important properties of the probability function include the following
« P(O) = 0
« P(¹) _ 1
« P(¹
c
) = 1 ÷P(¹)
201
« P(1 ¨ ¹
c
) = P(1) ÷P(¹¨ 1)
« P(¹' 1) = P(¹) +P(1) ÷P(¹¨ 1)
« If ¹ ¸ 1 then P(¹) _ P(1)
« Bonferroni’s Inequality: P(¹¨ 1) _ P(¹) +P(1) ÷1
« Boole’s Inequality: P(¹' 1) _ P(¹) +P(1)
For some elementary probability models, it is useful to have simple rules to count the number
of objects in a set. These counting rules are facilitated by using the binomial coe¢cients which are
de…ned for nonnegative integers : and r, : _ r, as
_
:
r
_
=
:!
r! (: ÷r)!
.
When counting the number of objects in a set, there are two important distinctions. Counting
may be with replacement or without replacement. Counting may be ordered or unordered.
For example, consider a lottery where you pick six numbers from the set 1, 2, ..., 49. This selection is
without replacement if you are not allowed to select the same number twice, and is with replacement
if this is allowed. Counting is ordered or not depending on whether the sequential order of the
numbers is relevant to winning the lottery. Depending on these two distinctions, we have four
expressions for the number of objects (possible arrangements) of size r from : objects.
Without With
Replacement Replacement
Ordered
a!
(a÷v)!
:
v
Unordered
_
a
v
_ _
a+v÷1
v
_
In the lottery example, if counting is unordered and without replacement, the number of po
tential combinations is
_
49
6
_
= 13, 983, 816.
If P(1) 0 the conditional probability of the event ¹ given the event 1 is
P(¹ [ 1) =
P(¹¨ 1)
P(1)
.
For any 1, the conditional probability function is a valid probability function where o has been
replaced by 1. Rearranging the de…nition, we can write
P(¹¨ 1) = P(¹ [ 1) P(1)
which is often quite useful. We can say that the occurrence of 1 has no information about the
likelihood of event ¹ when P(¹ [ 1) = P(¹), in which case we …nd
P(¹¨ 1) = P(¹) P(1) (B.1)
We say that the events ¹ and 1 are statistically independent when (B.1) holds. Furthermore,
we say that the collection of events ¹
1
, ..., ¹
I
are mutually independent when for any subset
¦¹
i
: i ¸ 1¦,
P
_
i¸1
¹
i
_
=
i¸1
P(¹
i
) .
Theorem 1 (Bayes’ Rule). For any set 1 and any partition ¹
1
, ¹
2
, ... of the sample space, then
for each i = 1, 2, ...
P(¹
i
[ 1) =
P(1 [ ¹
i
) P(¹
i
)
o
)=1
P(1 [ ¹
)
) P(¹
)
)
202
B.2 Random Variables
A random variable A is a function from a sample space o into the real line. This induces a
new sample space – the real line – and a new probability function on the real line. Typically, we
denote random variables by uppercase letters such as A, and use lower case letters such as r for
potential values and realized values. (This is in contrast to the notation adopted for most of the
textbook.) For a random variable A we de…ne its cumulative distribution function (CDF) as
1(r) = P(A _ r) . (B.2)
Sometimes we write this as 1
A
(r) to denote that it is the CDF of A. A function 1(r) is a CDF if
and only if the following three properties hold:
1. lim
a÷÷o
1(r) = 0 and lim
a÷o
1(r) = 1
2. 1(r) is nondecreasing in r
3. 1(r) is rightcontinuous
We say that the random variable A is discrete if 1(r) is a step function. In the latter case,
the range of A consists of a countable set of real numbers t
1
, ..., t
v
. The probability function for
A takes the form
P(A = t
)
) = ¬
)
, , = 1, ..., r (B.3)
where 0 _ ¬
)
_ 1 and
v
)=1
¬
)
= 1.
We say that the random variable A is continuous if 1(r) is continuous in r. In this case P(A =
t) = 0 for all t ¸ 1 so the representation (B.3) is unavailable. Instead, we represent the relative
probabilities by the probability density function (PDF)
)(r) =
d
dr
1(r)
so that
1(r) =
_
a
÷o
)(n)dn
and
P(a _ A _ /) =
_
b
o
)(n)dn.
These expressions only make sense if 1(r) is di¤erentiable. While there are examples of continuous
random variables which do not possess a PDF, these cases are unusual and are typically ignored.
A function )(r) is a PDF if and only if )(r) _ 0 for all r ¸ 1 and
_
o
÷o
)(r)dr.
B.3 Expectation
For any measurable real function q, we de…ne the mean or expectation Eq(A) as follows. If
A is discrete,
Eq(A) =
v
)=1
q(t
)
)¬
)
,
and if A is continuous
Eq(A) =
_
o
÷o
q(r))(r)dr.
The latter is well de…ned and …nite if
_
o
÷o
[q(r)[ )(r)dr < ·. (B.4)
203
If (B.4) does not hold, evaluate
1
1
=
_
j(a)0
q(r))(r)dr
1
2
= ÷
_
j(a)<0
q(r))(r)dr
If 1
1
= · and 1
2
< · then we de…ne Eq(A) = ·. If 1
1
< · and 1
2
= · then we de…ne
Eq(A) = ÷·. If both 1
1
= · and 1
2
= · then Eq(A) is unde…ned.
Since E(a +/A) = a +/EA, we say that expectation is a linear operator.
For : 0, we de…ne the :
t
t/ moment of A as EA
n
and the :
t
t/ central moment as
E(A ÷EA)
n
.
Two special moments are the mean j = EA and variance o
2
= E(A ÷j)
2
= EA
2
÷j
2
. We
call o =
_
o
2
the standard deviation of A. We can also write o
2
= var(A). For example, this
allows the convenient expression var(a +/A) = /
2
var(A).
The moment generating function (MGF) of A is
'(`) = Eexp(`A) .
The MGF does not necessarily exist. However, when it does and E[A[
n
< · then
d
n
d`
n
'(`)
¸
¸
¸
¸
A=0
= E(A
n
)
which is why it is called the moment generating function.
More generally, the characteristic function (CF) of A is
C(`) = Eexp(i`A)
where i =
_
÷1 is the imaginary unit. The CF always exists, and when E[A[
n
< ·
d
n
d`
n
C(`)
¸
¸
¸
¸
A=0
= i
n
E(A
n
) .
The 1
j
norm, j _ 1, of the random variable A is
A
j
= (E[A[
j
)
1¸j
.
B.4 Gamma Function
The gamma function is de…ned for c 0 as
(c) =
_
o
0
r
c÷1
exp(÷r) .
It satis…es the property
(1 +c) = (c)c
so for positive integers :,
(:) = (: ÷1)!
Special values include
(1) = 1
and
_
1
2
_
= ¬
1¸2
.
Sterling’s formula is an expansion for the its logarithm
log (c) =
1
2
log(2¬) +
_
c ÷
1
2
_
log c ÷. +
1
12c
÷
1
360c
3
+
1
1260c
5
+
204
B.5 Common Distributions
For reference, we now list some important discrete distribution function.
Bernoulli
P(A = r) = j
a
(1 ÷j)
1÷a
, r = 0, 1; 0 _ j _ 1
EA = j
var(A) = j(1 ÷j)
Binomial
P(A = r) =
_
:
r
_
j
a
(1 ÷j)
a÷a
, r = 0, 1, ..., :; 0 _ j _ 1
EA = :j
var(A) = :j(1 ÷j)
Geometric
P(A = r) = j(1 ÷j)
a÷1
, r = 1, 2, ...; 0 _ j _ 1
EA =
1
j
var(A) =
1 ÷j
j
2
Multinomial
P(A
1
= r
1
, A
2
= r
2
, ..., A
n
= r
n
) =
:!
r
1
!r
2
! r
n
!
j
a
1
1
j
a
2
2
j
am
n
,
r
1
+ +r
n
= :;
j
1
+ +j
n
= 1
EA
i
= j
i
var(A
i
) = :j
i
(1 ÷j
i
)
cov (A
i
, A
)
) = ÷:j
i
j
)
Negative Binomial
P(A = r) =
(r +r)
r!(r)
j
v
(1 ÷j)
a÷1
, r = 0, 1, 2, ...; 0 _ j _ 1
EA =
r (1 ÷j)
j
var(A) =
r (1 ÷j)
j
2
Poisson
P(A = r) =
exp(÷`) `
a
r!
, r = 0, 1, 2, ..., ` 0
EA = `
var(A) = `
We now list some important continuous distributions.
205
Beta
)(r) =
(c +,)
(c)(,)
r
c÷1
(1 ÷r)
o÷1
, 0 _ r _ 1; c 0, , 0
j =
c
c +,
var(A) =
c,
(c +, + 1) (c +,)
2
Cauchy
)(r) =
1
¬ (1 +r
2
)
, ÷·< r < ·
EA = ·
var(A) = ·
Exponential
)(r) =
1
0
exp
_
r
0
_
, 0 _ r < ·; 0 0
EA = 0
var(A) = 0
2
Logistic
)(r) =
exp(÷r)
(1 + exp(÷r))
2
, ÷·< r < ·;
EA = 0
var(A) =
¬
2
3
Lognormal
)(r) =
1
_
2¬or
exp
_
÷
(log r ÷j)
2
2o
2
_
, 0 _ r < ·; o 0
EA = exp
_
j +o
2
,2
_
var(A) = exp
_
2j + 2o
2
_
÷exp
_
2j +o
2
_
Pareto
)(r) =
,c
o
r
o+1
, c _ r < ·, c 0, , 0
EA =
,c
, ÷1
, , 1
var(A) =
,c
2
(, ÷1)
2
(, ÷2)
, , 2
Uniform
)(r) =
1
/ ÷a
, a _ r _ /
EA =
a +/
2
var(A) =
(/ ÷a)
2
12
206
Weibull
)(r) =
¸
,
r
¸÷1
exp
_
÷
r
¸
,
_
, 0 _ r < ·; ¸ 0, , 0
EA = ,
1¸¸
_
1 +
1
¸
_
var(A) = ,
2¸¸
_
_
1 +
2
¸
_
÷
2
_
1 +
1
¸
__
Gamma
)(r) =
1
(c)0
c
r
c÷1
exp
_
÷
r
0
_
, 0 _ r < ·; c 0, 0 0
EA = c0
var(A) = c0
2
ChiSquare
)(r) =
1
(r,2)2
v¸2
r
v¸2÷1
exp
_
÷
r
2
_
, 0 _ r < ·; r 0
EA = r
var(A) = 2r
Normal
)(r) =
1
_
2¬o
exp
_
÷
(r ÷j)
2
2o
2
_
, ÷·< r < ·; ÷·< j < ·, o
2
0
EA = j
var(A) = o
2
Student t
)(r) =
_
v+1
2
_
_
r¬
_
v
2
_
_
1 +
r
2
r
_
÷(
r+1
2
)
, ÷·< r < ·; r 0
EA = 0 if r 1
var(A) =
r
r ÷2
if r 2
B.6 Multivariate Random Variables
A pair of bivariate random variables (A, 1 ) is a function from the sample space into R
2
. The
joint CDF of (A, 1 ) is
1(r, j) = P(A _ r, 1 _ j) .
If 1 is continuous, the joint probability density function is
)(r, j) =
0
2
0r0j
1(r, j).
For a Borel measurable set ¹ ¸ 1
2
,
P((A < 1 ) ¸ ¹) =
_ _
¹
)(r, j)drdj
207
For any measurable function q(r, j),
Eq(A, 1 ) =
_
o
÷o
_
o
÷o
q(r, j))(r, j)drdj.
The marginal distribution of A is
1
A
(r) = P(A _ r)
= lim
j÷o
1(r, j)
=
_
a
÷o
_
o
÷o
)(r, j)djdr
so the marginal density of A is
)
A
(r) =
d
dr
1
A
(r) =
_
o
÷o
)(r, j)dj.
Similarly, the marginal density of 1 is
)
Y
(j) =
_
o
÷o
)(r, j)dr.
The random variables A and 1 are de…ned to be independent if )(r, j) = )
A
(r))
Y
(j).
Furthermore, A and 1 are independent if and only if there exist functions q(r) and /(j) such that
)(r, j) = q(r)/(j).
If A and 1 are independent, then
E(q(A)/(1 )) =
_ _
q(r)/(j))(j, r)djdr
=
_ _
q(r)/(j))
Y
(j))
A
(r)djdr
=
_
q(r))
A
(r)dr
_
/(j))
Y
(j)dj
= Eq (A) E/(1 ) . (B.5)
if the expectations exist. For example, if A and 1 are independent then
E(A1 ) = EAE1.
Another implication of (B.5) is that if A and 1 are independent and 7 = A +1, then
'
Z
(`) = Eexp(`(A +1 ))
= E(exp(`A) exp(`1 ))
= Eexp
_
`
t
A
_
Eexp
_
`
t
1
_
= '
A
(`)'
Y
(`). (B.6)
The covariance between A and 1 is
cov(A, 1 ) = o
AY
= E((A ÷EA) (1 ÷E1 )) = EA1 ÷EAE1.
The correlation between A and 1 is
corr (A, 1 ) = j
AY
=
o
AY
o
a
o
Y
.
208
The CauchySchwarz Inequality implies that
[j
AY
[ _ 1. (B.7)
The correlation is a measure of linear dependence, free of units of measurement.
If A and 1 are independent, then o
AY
= 0 and j
AY
= 0. The reverse, however, is not true.
For example, if EA = 0 and EA
3
= 0, then cov(A, A
2
) = 0.
A useful fact is that
var (A +1 ) = var(A) + var(1 ) + 2 cov(A, 1 ).
An implication is that if A and 1 are independent, then
var (A +1 ) = var(A) + var(1 ),
the variance of the sum is the sum of the variances.
A /1 random vector A = (A
1
, ..., A
I
)
t
is a function from o to R
I
. Let i = (r
1
, ..., r
I
)
t
denote
a vector in R
I
. (In this Appendix, we use bold to denote vectors. Bold capitals A are random
vectors and bold lower case i are nonrandom vectors. Again, this is in distinction to the notation
used in the bulk of the text) The vector A has the distribution and density functions
1(i) = P(A _ i)
)(i) =
0
I
0r
1
0r
I
1(i).
For a measurable function j : R
I
÷R
c
, we de…ne the expectation
Ej(A) =
_
R
k
q(i))(i)di
where the symbol di denotes dr
1
dr
I
. In particular, we have the / 1 multivariate mean
µ = EA
and / / covariance matrix
X = E
_
(A ÷µ) (A ÷µ)
t
_
= EAA
t
÷µµ
t
If the elements of A are mutually independent, then X is a diagonal matrix and
var
_
I
i=1
A
i
_
=
I
i=1
var (A
i
)
B.7 Conditional Distributions and Expectation
The conditional density of 1 given A = i is de…ned as
)
Y [×
(j [ i) =
)(i, j)
)
×
(i)
209
if )
×
(i) 0. One way to derive this expression from the de…nition of conditional probability is
)
Y [A
(j [ i) =
0
0j
lim
.÷0
P(1 _ j [ i _ A _ i +)
=
0
0j
lim
.÷0
P(¦1 _ j¦ ¨ ¦i _ A _ i +¦)
P(i _ A _ i +)
=
0
0j
lim
.÷0
1(i +, j) ÷1(i, j)
1
×
(i +) ÷1
A
(i)
=
0
0j
lim
.÷0
0
0a
1(i +, j)
)
×
(i +)
=
0
2
0a0j
1(i, j)
)
×
(i)
=
)(i, j)
)
×
(i)
.
The conditional mean or conditional expectation is the function
:(i) = E(1 [ A = i) =
_
o
÷o
j)
Y [×
(j [ i) dj.
The conditional mean :(i) is a function, meaning that when A equals i, then the expected value
of 1 is :(i).
Similarly, we de…ne the conditional variance of 1 given A = i as
o
2
(i) = var (1 [ A = i)
= E
_
(1 ÷:(i))
2
[ A = i
_
= E
_
1
2
[ A = i
_
÷:(i)
2
.
Evaluated at i = A, the conditional mean :(A) and conditional variance o
2
(A) are random
variables, functions of A. We write this as E(1 [ A) = :(A) and var (1 [ A) = o
2
(A). For
example, if E(1 [ A = i) = c +,
t
i, then E(1 [ A) = c +,
t
A, a transformation of A.
The following are important facts about conditional expectations.
Simple Law of Iterated Expectations:
E(E(1 [ A)) = E(1 ) (B.8)
Proof :
E(E(1 [ A)) = E(:(A))
=
_
o
÷o
:(i))
×
(i)di
=
_
o
÷o
_
o
÷o
j)
Y [×
(j [ i) )
×
(i)djdi
=
_
o
÷o
_
o
÷o
j) (j, i) djdi
= E(1 ).
Law of Iterated Expectations:
E(E(1 [ A, Z) [ A) = E(1 [ A) (B.9)
210
Conditioning Theorem. For any function q(i),
E(q(A)1 [ A) = q (A) E(1 [ A) (B.10)
Proof : Let
/(i) = E(q(A)1 [ A = i)
=
_
o
÷o
q(i)j)
Y [×
(j [ i) dj
= q(i)
_
o
÷o
j)
Y [×
(j [ i) dj
= q(i):(i)
where :(i) = E(1 [ A = i) . Thus /(A) = q(A):(A), which is the same as E(q(A)1 [ A) =
q (A) E(1 [ A) .
B.8 Transformations
Suppose that A ¸ R
I
with continuous distribution function 1
×
(i) and density )
×
(i). Let
A = j(A) where j(i) : R
I
÷R
I
is onetoone, di¤erentiable, and invertible. Let l(¸) denote the
inverse of j(i). The Jacobian is
J(¸) = det
_
0
0¸
t
l(¸)
_
.
Consider the univariate case / = 1. If q(r) is an increasing function, then q(A) _ 1 if and only
if A _ /(1 ), so the distribution function of 1 is
1
Y
(j) = P(q(A) _ j)
= P(A _ /(1 ))
= 1
A
(/(1 )) .
Taking the derivative, the density of 1 is
)
Y
(j) =
d
dj
1
Y
(j) = )
A
(/(1 ))
d
dj
/(j).
If q(r) is a decreasing function, then q(A) _ 1 if and only if A _ /(1 ), so
1
Y
(j) = P(q(A) _ j)
= 1 ÷P(A _ /(1 ))
= 1 ÷1
A
(/(1 ))
and the density of 1 is
)
Y
(j) = ÷)
A
(/(1 ))
d
dj
/(j).
We can write these two cases jointly as
)
Y
(j) = )
A
(/(1 )) [J(j)[ . (B.11)
This is known as the changeofvariables formula. This same formula (B.11) holds for / 1, but
its justi…cation requires deeper results from analysis.
As one example, take the case A ~ l[0, 1] and 1 = ÷log(A). Here, q(r) = ÷log(r) and
/(j) = exp(÷j) so the Jacobian is J(j) = ÷exp(j). As the range of A is [0, 1], that for 1 is [0,·).
Since )
A
(r) = 1 for 0 _ r _ 1 (B.11) shows that
)
Y
(j) = exp(÷j), 0 _ j _ ·,
an exponential density.
211
B.9 Normal and Related Distributions
The standard normal density is
c(r) =
1
_
2¬
exp
_
÷
r
2
2
_
, ÷·< r < ·.
It is conventional to write A ~ N(0, 1) , and to denote the standard normal density function by
c(r) and its distribution function by (r). The latter has no closedform solution. The normal
density has all moments …nite. Since it is symmetric about zero all odd moments are zero. By
iterated integration by parts, we can also show that EA
2
= 1 and EA
4
= 3. In fact, for any positive
integer :, EA
2n
= (2:÷1)!! = (2:÷1) (2:÷3) 1. Thus EA
4
= 3, EA
6
= 15, EA
8
= 105,
and EA
10
= 945.
If 7 is standard normal and A = j + o7, then using the changeofvariables formula, A has
density
)(r) =
1
_
2¬o
exp
_
÷
(r ÷j)
2
2o
2
_
, ÷·< r < ·.
which is the univariate normal density. The mean and variance of the distribution are j and
o
2
, and it is conventional to write A ~ N
_
j, o
2
_
.
For i ¸ R
I
, the multivariate normal density is
)(i) =
1
(2¬)
I¸2
det (X)
1¸2
exp
_
÷
(i ÷µ)
t
X
÷1
(i ÷µ)
2
_
, i ¸ R
I
.
The mean and covariance matrix of the distribution are µ and X, and it is conventional to write
A ~ N(µ, X).
The MGF and CF of the multivariate normal are exp
_
X
t
µ +X
t
XX,2
_
and exp
_
iX
t
µ ÷X
t
XX,2
_
,
respectively.
If A ¸ R
I
is multivariate normal and the elements of A are mutually uncorrelated, then
X = diag¦o
2
)
¦ is a diagonal matrix. In this case the density function can be written as
)(i) =
1
(2¬)
I¸2
o
1
o
I
exp
_
÷
_
(r
1
÷j
1
)
2
,o
2
1
+ + (r
I
÷j
I
)
2
,o
2
I
2
__
=
I
)=1
1
(2¬)
1¸2
o
)
exp
_
÷
_
r
)
÷j
)
_
2
2o
2
)
_
which is the product of marginal univariate normal densities. This shows that if A is multivariate
normal with uncorrelated elements, then they are mutually independent.
Theorem B.9.1 If A ~ N(µ, X) and A = u + HA with H an invertible matrix, then A ~
N(u +Hµ, HXH
t
) .
Theorem B.9.2 Let A ~ N(0, 1
v
) . Then Q = A
t
A is distributed chisquare with r degrees of
freedom, written ¸
2
v
.
Theorem B.9.3 If Z ~ N(0, A) with A 0, ¡ ¡, then Z
t
A
÷1
Z ~ ¸
2
q
.
Theorem B.9.4 Let 7 ~ N(0, 1) and Q ~ ¸
2
v
be independent. Then T
v
= 7,
_
Q,r is distributed
as student’s t with r degrees of freedom.
212
Proof of Theorem B.9.1. By the changeofvariables formula, the density of A = u +HA is
)(¸) =
1
(2¬)
I¸2
det (X
Y
)
1¸2
exp
_
÷
(¸ ÷µ
Y
)
t
X
÷1
Y
(¸ ÷µ
Y
)
2
_
, ¸ ¸ R
I
.
where µ
Y
= u+Hµ and X
Y
= HXH
t
, where we used the fact that det (HXH
t
)
1¸2
= det (X)
1¸2
det (H) .
Proof of Theorem B.9.2. First, suppose a random variable Q is distributed chisquare with r
degrees of freedom. It has the MGF
Eexp(tQ) =
_
o
0
1
_
v
2
_
2
v¸2
r
v¸2÷1
exp(tr) exp(÷r,2) dj = (1 ÷2t)
÷v¸2
where the second equality uses the fact that
_
o
0
j
o÷1
exp(÷/j) dj = /
÷o
(a), which can be found
by applying changeofvariables to the gamma function. Our goal is to calculate the MGF of
Q = A
t
A and show that it equals (1 ÷2t)
÷v¸2
, which will establish that Q ~ ¸
2
v
.
Note that we can write Q = A
t
A =
v
)=1
7
2
)
where the 7
)
are independent N(0, 1) . The
distribution of each of the 7
2
)
is
P
_
7
2
)
_ j
_
= 2P(0 _ 7
)
_
_
j)
= 2
_
_
j
0
1
_
2¬
exp
_
÷
r
2
2
_
dr
=
_
j
0
1
_
1
2
_
2
1¸2
:
÷1¸2
exp
_
÷
:
2
_
d:
using the change–ofvariables : = r
2
and the fact
_
1
2
_
=
_
¬. Thus the density of 7
2
)
is
)
1
(r) =
1
_
1
2
_
2
1¸2
r
÷1¸2
exp
_
÷
r
2
_
which is the ¸
2
1
and by our above calculation has the MGF of Eexp
_
t7
2
)
_
= (1 ÷2t)
÷1¸2
.
Since the 7
2
)
are mutually independent, (B.6) implies that the MGF of Q =
v
)=1
7
2
)
is
_
(1 ÷2t)
÷1¸2
_
v
= (1 ÷2t)
÷v¸2
, which is the MGF of the ¸
2
v
density as desired.
Proof of Theorem B.9.3. The fact that A 0 means that we can write A = CC
t
where C is
nonsingular. Then A
÷1
= C
÷1t
C
÷1
and
C
÷1
Z ~ N
_
0, C
÷1
AC
÷1t
_
= N
_
0, C
÷1
CC
t
C
÷1t
_
= N(0, 1
q
) .
Thus
Z
t
A
÷1
Z = Z
t
C
÷1t
C
÷1
Z =
_
C
÷1
Z
_
t
_
C
÷1
Z
_
~ ¸
2
q
.
Proof of Theorem B.9.4. Using the simple law of iterated expectations, T
v
has distribution
213
function
1 (r) = P
_
7
_
Q,r
_ r
_
= E
_
7 _ r
_
Q
r
_
= E
_
P
_
7 _ r
_
Q
r
[ Q
__
= E
_
r
_
Q
r
_
Thus its density is
) (r) = E
d
dr
_
r
_
Q
r
_
= E
_
c
_
r
_
Q
r
_
_
Q
r
_
=
_
o
0
_
1
_
2¬
exp
_
÷
¡r
2
2r
___
¡
r
_
1
_
v
2
_
2
v¸2
¡
v¸2÷1
exp(÷¡,2)
_
d¡
=
_
v+1
2
_
_
r¬
_
v
2
_
_
1 +
r
2
r
_
÷(
r+1
2
)
which is that of the student t with r degrees of freedom.
214
Appendix C
Asymptotic Theory
C.1 Inequalities
The following inequalities are frequently used in asymptotic distribution theory.
Jensen’s Inequality. If q() : R ÷ R is convex, then for any random variable r for which
E[r[ < · and E[q (r)[ < ·,
q(E(r)) _ E(q (r)) . (C.1)
Expectation Inequality. For any random variable r for which E[r[ < ·,
[E(r)[ _ E[r[ . (C.2)
CauchySchwarz Inequality. For any random :: matrices A and A,
E
_
_
A
t
A
_
_
_
_
EA
2
_
1¸2
_
EA 
2
_
1¸2
. (C.3)
Holder’s Inequality. If j 1 and ¡ 1 and
1
j
+
1
q
= 1, then for any random :: matrices A
and A,
E
_
_
A
t
A
_
_
_ (EA
j
)
1¸j
(EA 
q
)
1¸q
. (C.4)
Minkowski’s Inequality. For any random :: matrices A and A,
(EA +A 
j
)
1¸j
_ (EA
j
)
1¸j
+ (EA 
j
)
1¸j
(C.5)
Markov’s Inequality. For any random vector i and nonnegative function q(i) _ 0,
P(q(i) c) _ c
÷1
Eq(i). (C.6)
Proof of Jensen’s Inequality. Let a + /n be the tangent line to q(n) at n = Er. Since q(n) is
convex, tangent lines lie below it. So for all n, q(n) _ a + /n yet q(Er) = a + /Er since the curve
is tangent at Er. Applying expectations, Eq(r) _ a +/Er = q(Er), as stated.
Proof of Expecation Inequality. Follows from an application of Jensen’s Inequality, noting that
the function q(n) = [n[ is convex.
Proof of Holder’s Inequality. Since
1
j
+
1
q
= 1 an application of Jensen’s Inequality shows that
for any real a and /
exp
_
1
j
a +
1
¡
/
_
_
1
j
exp(a) +
1
¡
exp(/) .
215
Setting n = exp(a) and · = exp(/) this implies
n
1¸j
·
1¸q
_
n
j
+
·
¡
and this inequality holds for any n 0 and · 0.
Set n = A
j
,EA
j
and · = A 
q
,EA 
q
. Note that En = E· = 1. By the matrix Schwarz
Inequality (A.7), A
t
A  _ A A . Thus
EA
t
A 
(EA
j
)
1¸j
(EA 
q
)
1¸q
_
E(A A )
(EA
j
)
1¸j
(EA 
q
)
1¸q
= E
_
n
1¸j
·
1¸q
_
_ E
_
n
j
+
·
¡
_
=
1
j
+
1
¡
= 1,
which is (C.4).
Proof of Minkowski’s Inequality. Note that by rewriting, using the triangle inequality (A.8),
and then Holder’s Inequality to the two expectations
EA +A 
j
= E
_
A +A  A +A 
j÷1
_
_ E
_
A A +A 
j÷1
_
+E
_
A  A +A 
j÷1
_
_ (EA
j
)
1¸j
E
_
A +A 
q(j÷1)
_
1¸q
+ (EA 
j
)
1¸j
E
_
A +A 
q(j÷1)
_
1¸q
=
_
(EA
j
)
1¸j
+ (EA 
j
)
1¸j
_
E(A +A 
j
)
(j÷1)¸j
where the second equality picks ¡ to satisfy 1,j+1,¡ = 1, and the …nal equality uses this fact to make
the substitution ¡ = j,(j÷1) and then collects terms. Dividing both sides by E(A +A 
j
)
(j÷1)¸j
,
we obtain (C.5).
Proof of Markov’s Inequality. Let ) denote the density function of i. Then
P(q(i) _ c) =
_
¡uj(u)¸c¦
)(u)du
_
_
¡uj(u)¸c¦
q(u)
c
)(u)du
_ c
÷1
_
o
÷o
q(u))(u)du
= c
÷1
E(q(i))
the …rst inequality using the region of integration ¦q(u) c¦.
C.2 Convergence in Distribution
Let z
a
be a random vector with distribution 1
a
(u) = P(z
a
_ u) . We say that z
a
converges
in distribution to z as : ÷·, denoted z
a
o
÷÷z, where z has distribution 1(u) = P(z _ u) , if
for all u at which 1(u) is continuous, 1
a
(u) ÷1(u) as : ÷·.
216
Theorem C.2.1 Central Limit Theorem (CLT). If i
i
¸ R
I
is iid and Er
2
)i
< · for , =
1, ..., /, then as : ÷·
_
:(i
a
÷µ) =
1
_
:
a
i=1
(i
i
÷µ)
o
÷÷N(0, D) .
where µ = Ei
i
and D = E(i
i
÷µ) (i
i
÷µ)
t
.
Proof: The moment bound Ei
2
)i
< · is su¢cient to guarantee that the elements of µ and X are
well de…ned and …nite. Without loss of generality, it is su¢cient to consider the case µ = 0 and
D = 1
I
.
For X ¸ R
I
, let C (X) = Eexp
_
iX
t
i
i
_
denote the characteristic function of i
i
and set c (X) =
log C(X). Then observe
0
0X
C(X) = iE
_
i
i
exp
_
iX
t
i
i
__
0
2
0X0X
t
C(X) = i
2
E
_
i
i
i
t
i
exp
_
iX
t
i
i
__
so when evaluated at X = 0
C(0) = 1
0
0X
C(0) = iE(i
i
) = 0
0
2
0X0X
t
C(0) = ÷E
_
i
i
i
t
i
_
= ÷1
I
.
Furthermore,
c
X
(X) =
0
0X
c(X) = C(X)
÷1
0
0X
C(X)
c
XX
(X) =
0
2
0X0X
t
c(X) = C(X)
÷1
0
2
0X0X
t
C(X) ÷C(X)
÷2
0
0X
C (X)
0
0X
t
C(X)
so when evaluated at X = 0
c(0) = 0
c
A
(0) = 0
c
AA
(0) = ÷1
I
.
By a secondorder Taylor series expansion of c(X) about X = 0,
c(X) = c(0) +c
A
(0)
t
X +
1
2
X
t
c
XX
(X
+
)X =
1
2
X
t
c
XX
(X
+
)X (C.7)
where X
+
lies on the line segment joining 0 and X.
We now compute C
a
(X) = 1 exp
_
iX
t
_
:i
a
_
the characteristic function of
_
:i
a
. By the prop
erties of the exponential function, the independence of the i
i
, the de…nition of c(X) and (C.7)
log C
a
(X) = log Eexp
_
i
1
_
:
a
i=1
X
t
i
i
_
= log E
a
i=1
exp
_
i
1
_
:
X
t
i
i
_
= log
a
i=1
Eexp
_
i
1
_
:
X
t
i
i
_
= :c
_
X
_
:
_
=
1
2
X
t
c
XX
(X
a
)X
217
where X
a
÷ 0 lies on the line segment joining 0 and X,
_
:. Since c
XX
(X
a
) ÷ c
XX
(0) = ÷1
I
, we
see that as : ÷·,
C
a
(X) ÷exp
_
÷
1
2
X
t
X
_
the characteristic function of the N(0, 1
I
) distribution. This is su¢cient to establish the theorem.
C.3 Asymptotic Transformations
Theorem C.3.1 Continuous Mapping Theorem 1 (CMT). If z
a
j
÷÷ c as : ÷ · and q ()
is continuous at c, then q(z
a
)
j
÷÷q(c) as : ÷·.
Proof: Since q is continuous at c, for all  0 we can …nd a c 0 such that if z
a
÷c < c
then [q (z
a
) ÷q (c)[ _ . Recall that ¹ ¸ 1 implies P(¹) _ P(1). Thus P([q (z
a
) ÷q (c)[ _ ) _
P(z
a
÷c < c) ÷1 as : ÷·by the assumption that z
a
j
÷÷c. Hence q(z
a
)
j
÷÷q(c) as : ÷·.
Theorem C.3.2 Continuous Mapping Theorem 2. If z
a
o
÷÷ z as : ÷ · and q () is
continuous, then q(z
a
)
o
÷÷q(z) as : ÷·.
Theorem C.3.3 Delta Method: If
_
:(0
a
÷0
0
)
o
÷÷N(0, X) , where 0 is :1 and X is ::,
and q(0) : R
n
÷R
I
, / _ :, then
_
:(q (0
a
) ÷q(0
0
))
o
÷÷N
_
0, q
0
Xq
t
0
_
where q
0
(0) =
0
00
0
q(0) and q
0
= q
0
(0
0
).
Proof : By a vector Taylor series expansion, for each element of q,
q
)
(0
a
) = q
)
(0
0
) +q
)0
(0
+
)a
) (0
a
÷0
0
)
where 0
+
a)
lies on the line segment between 0
a
and 0
0
and therefore converges in probability to 0
0
.
It follows that a
)a
= q
)0
(0
+
)a
) ÷q
)0
j
÷÷0. Stacking across elements of q, we …nd
_
:(q (0
a
) ÷q(0
0
)) = (q
0
+a
a
)
_
:(0
a
÷0
0
)
o
÷÷q
0 N(0, X) = N
_
0, q
0
Xq
t
0
_
.
218
Appendix D
Maximum Likelihood
If the distribution of ¸
i
is 1(¸, 0) where 1 is a known distribution function and 0 ¸ is an
unknown :1 vector, we say that the distribution is parametric and that 0 is the parameter
of the distribution 1. The space is the set of permissible value for 0. In this setting the method
of maximum likelihood is the appropriate technique for estimation and inference on 0.
If the distribution 1 is continuous then the density of ¸
i
can be written as )(¸, 0) and the joint
density of a random sample (¸
1
, ..., ¸
a
) is
)
a
(¸
1
, ..., ¸
a
, 0) =
a
i=1
) (¸
i
, 0) .
The likelihood of the sample is this joint density evaluated at the observed sample values, viewed
as a function of 0. The loglikelihood function is its natural log
log 1(0) =
a
i=1
log ) (¸
i
, 0) .
If the distribution 1 is discrete, the likelihood and loglikelihood are constructed by setting ) (¸, 0) =
P(¸
i
= ¸, 0) .
De…ne the Hessian
H= ÷E
0
2
0000
t
log ) (¸
i
, 0
0
) (D.1)
and the outer product matrix
D = E
_
0
00
log ) (¸
i
, 0
0
)
0
00
log ) (¸
i
, 0
0
)
t
_
. (D.2)
Two important features of the likelihood are
Theorem D.0.4
0
00
Elog ) (¸
i
, 0)
¸
¸
¸
¸
0=0
0
= 0 (D.3)
H= D = J
0
(D.4)
The matrix J
0
is called the information, and the equality (D.4) is often called the information
matrix equality.
Theorem D.0.5 CramerRao Lower Bound. If
~
0 is an unbiased estimator of 0 ¸ R, then
var(
~
0) _ (:J
0
)
÷1
.
219
The CramerRao Theorem gives a lower bound for estimation. However, the restriction to
unbiased estimators means that the theorem has little direct relevance for …nite sample e¢ciency.
The maximum likelihood estimator or MLE
`
0 is the parameter value which maximizes the
likelihood (equivalently, which maximizes the loglikelihood). We can write this as
`
0 = argmax
0¸
log 1(0).
In some simple cases, we can …nd an explicit expression for
`
0 as a function of the data, but these
cases are rare. More typically, the MLE
`
0 must be found by numerical methods.
Why do we believe that the MLE
`
0 is estimating the parameter 0? Observe that when stan
dardized, the loglikelihood is a sample average
1
:
log 1(0) =
1
:
a
i=1
log ) (¸
i
, 0)
j
÷÷Elog ) (¸
i
, 0) .
As the MLE
`
0 maximizes the lefthandside, we can see that it is an estimator of the maximizer of
the righthandside. The …rstorder condition for the latter problem is
0 =
0
00
Elog ) (¸
i
, 0)
which holds at 0 = 0
0
by (D.3). In fact, under conventional regularity conditions,
`
0 is consistent
for this value,
`
0
j
÷÷0
0
as : ÷·.
Theorem D.0.6 Under regularity conditions,
_
:
_
`
0 ÷0
0
_
o
÷÷N
_
0, J
÷1
0
_
.
Thus in large samples, the approximate variance of the MLE is (:1
0
)
÷1
which is the Cramer
Rao lower bound. Thus in large samples the MLE has approximately the best possible variance.
Therefore the MLE is called asymptotically e¢cient.
Typically, to estimate the asymptotic variance of the MLE we use an estimate based on the
Hessian formula (D.1)
´
H= ÷
1
:
a
i=1
0
2
0000
t
log )
_
¸
i
,
`
0
_
(D.5)
We then set
´
J
÷1
0
=
´
H
÷1
. Asymptotic standard errors for
`
0 are then the square roots of the diagonal
elements of :
÷1
´
J
÷1
0
.
Sometimes a parametric density function )(¸, 0) is used to approximate the true unknown
density )(¸), but it is not literally believed that the model )(¸, 0) is necessarily the true density.
In this case, we refer to log 1(0) as a quasilikelihood and the its maximizer
`
0 as a quasimle
or QMLE.
In this case there is not a “true” value of the parameter 0. Instead we de…ne the pseudotrue
value 0
0
as the maximizer of
Elog ) (¸
i
, 0) =
_
) (¸) log ) (¸, 0) d¸
which is the same as the minimizer of
111C =
_
) (¸) log
_
)(¸)
) (¸, 0)
_
d¸
the KullbackLeibler information distance between the true density )(¸) and the parametric density
)(¸, 0). Thus the QMLE 0
0
is the value which makes the parametric density “closest” to the true
value according to this measure of distance. The QMLE is consistent for the pseudotrue value, but
220
has a di¤erent covariance matrix than in the pure MLE case, since the information matrix equality
(D.4) does not hold. A minor adjustment to Theorem (D.0.6) yields the asymptotic distribution of
the QMLE:
_
:
_
`
0 ÷0
0
_
o
÷÷N(0, X ) , X = H
÷1
DH
÷1
The moment estimator for X is
`
X =
´
H
÷1
`
D
´
H
÷1
where
´
H is given in (D.5) and
`
D =
1
:
a
i=1
0
00
log )
_
¸
i
,
`
0
_
0
00
log )
_
¸
i
,
`
0
_
t
.
Asymptotic standard errors (sometimes called qmle standard errors) are then the square roots of
the diagonal elements of :
÷1
`
X .
Proof of Theorem D.0.4. To see (D.3),
0
00
Elog ) (¸
i
, 0)
¸
¸
¸
¸
0=0
0
=
0
00
_
log ) (¸, 0) ) (¸, 0
0
) d¸
¸
¸
¸
¸
0=0
0
=
_
0
00
) (¸, 0)
) (¸, 0
0
)
) (¸, 0)
d¸
¸
¸
¸
¸
0=0
0
=
0
00
_
) (¸, 0) d¸
¸
¸
¸
¸
0=0
0
=
0
00
1
¸
¸
¸
¸
0=0
0
= 0.
Similarly, we can show that
E
_
0
2
0000
0
) (¸
i
, 0
0
)
) (¸
i
, 0
0
)
_
= 0.
By direction computation,
0
2
0000
t
log ) (¸
i
, 0
0
) =
0
2
0000
0
) (¸
i
, 0
0
)
) (¸
i
, 0
0
)
÷
0
00
) (¸
i
, 0
0
)
0
00
) (¸
i
, 0
0
)
t
) (¸
i
, 0
0
)
2
=
0
2
0000
0
) (¸
i
, 0
0
)
) (¸
i
, 0
0
)
÷
0
00
log ) (¸
i
, 0
0
)
0
00
log ) (¸
i
, 0
0
)
t
.
Taking expectations yields (D.4).
Proof of Theorem D.0.5. Let A = (¸
1
, ..., ¸
a
) be the sample, and set
o =
0
00
log )
a
(A , 0
0
) =
a
i=1
0
00
log ) (¸
i
, 0
0
)
which by Theorem (D.0.4) has mean zero and variance :H. Write the estimator
~
0 =
~
0 (A ) as a
function of the data. Since
~
0 is unbiased for any 0,
0 = E
~
0 =
_
~
0 (A ) ) (A , 0) dA .
Di¤erentiating with respect to 0 and evaluating at 0
0
yields
1 =
_
~
0 (A )
0
00
) (A , 0) dA =
_
~
0 (A )
0
00
log ) (A , 0) ) (A , 0
0
) dA = E
_
~
0o
_
.
221
By the CauchySchwarz inequality
1 =
¸
¸
¸E
_
~
0o
_¸
¸
¸
2
_ var (o) var
_
~
0
_
so
var
_
~
0
_
_
1
var (o)
=
1
:H
.
Proof of Theorem D.0.6 Taking the …rstorder condition for maximization of log 1(0), and
making a …rstorder Taylor series expansion,
0 =
0
00
log 1(0)
¸
¸
¸
¸
0=
^
0
=
a
i=1
0
00
log )
_
¸
i
,
`
0
_
·
a
i=1
0
00
log ) (¸
i
, 0
0
) +
a
i=1
0
2
0000
t
log ) (¸
i
, 0
a
)
_
`
0 ÷0
0
_
,
where 0
a
lies on a line segment joining
`
0 and 0
0
. (Technically, the speci…c value of 0
a
varies by
row in this expansion.) Rewriting this equation, we …nd
_
`
0 ÷0
0
_
=
_
÷
a
i=1
0
2
0000
t
log ) (¸
i
, 0
a
)
_
÷1
_
a
i=1
0
00
log ) (¸
i
, 0
0
)
_
.
Since
0
00
log ) (¸
i
, 0
0
) is meanzero with covariance matrix D, an application of the CLT yields
1
_
:
a
i=1
0
00
log ) (¸
i
, 0
0
)
o
÷÷N(0, D) .
The analysis of the sample Hessian is somewhat more complicated due to the presence of 0
a
. Let
H(0) = ÷
0
2
0000
0
log ) (¸
i
, 0) . If it is continuous in 0, then since 0
a
j
÷÷ 0
0
we …nd H(0
a
)
j
÷÷ H
and so
÷
1
:
a
i=1
0
2
0000
t
log ) (¸
i
, 0
a
) =
1
:
a
i=1
_
÷
0
2
0000
t
log ) (¸
i
, 0
a
) ÷H(0
a
)
_
+H(0
a
)
j
÷÷H
by an application of a uniform WLLN. Together,
_
:
_
`
0 ÷0
0
_
o
÷÷H
÷1
N(0, D) = N
_
0, H
÷1
DH
÷1
_
= N
_
0, H
÷1
_
,
the …nal equality using Theorem D.0.4 .
222
Appendix E
Numerical Optimization
Many econometric estimators are de…ned by an optimization problem of the form
`
0 = argmin
0¸
Q(0) (E.1)
where the parameter is 0 ¸ O ¸ R
n
and the criterion function is Q(0) : O ÷ R. For example
NLLS, GLS, MLE and GMM estimators take this form. In most cases, Q(0) can be computed
for given 0, but
`
0 is not available in closed form. In this case, numerical methods are required to
obtain
`
0.
E.1 Grid Search
Many optimization problems are either one dimensional (: = 1) or involve onedimensional
optimization as a subproblem (for example, a line search). In this context grid search may be
employed.
Grid Search. Let = [a, /] be an interval. Pick some  0 and set G = (/ ÷ a), to be
the number of gridpoints. Construct an equally spaced grid on the region [a, /] with G gridpoints,
which is {0(,) = a + ,(/ ÷ a),G : , = 0, ..., G¦. At each point evaluate the criterion function
and …nd the gridpoint which yields the smallest value of the criterion, which is 0(^ ;) where ^ ; =
argmin
0¸)¸G
Q(0(,)). This value 0 (^ ;) is the gridpoint estimate of
`
0. If the grid is su¢ciently …ne to
capture small oscillations in Q(0), the approximation error is bounded by , that is,
¸
¸
¸0(^ ;) ÷
`
0
¸
¸
¸ _ .
Plots of Q(0(,)) against 0(,) can help diagnose errors in grid selection. This method is quite robust
but potentially costly.
TwoStep Grid Search. The gridsearch method can be re…ned by a twostep execution. For
an error bound of  pick G so that G
2
= (/ ÷ a), For the …rst step de…ne an equally spaced
grid on the region [a, /] with G gridpoints, which is {0(,) = a + ,(/ ÷ a),G : , = 0, ..., G¦.
At each point evaluate the criterion function and let ^ ; = argmin
0¸)¸G
Q(0(,)). For the second
step de…ne an equally spaced grid on [0(^ ; ÷1), 0(^ ; + 1)] with G gridpoints, which is {0
t
(/) =
0(^ ; ÷ 1) + 2/(/ ÷ a),G
2
: / = 0, ..., G¦. Let
^
/ = argmin
0¸I¸G
Q(0
t
(/)). The estimate of
`
0 is
0
_
^
/
_
. The advantage of the twostep method over a onestep grid search is that the number of
function evaluations has been reduced from (/÷a), to 2
_
(/ ÷a), which can be substantial. The
disadvantage is that if the function Q(0) is irregular, the …rststep grid may not bracket
`
0 which
thus would be missed.
E.2 Gradient Methods
Gradient Methods are iterative methods which produce a sequence 0
i
: i = 1, 2, ... which
are designed to converge to
`
0. All require the choice of a starting value 0
1
, and all require the
223
computation of the gradient of Q(0)
j(0) =
0
00
Q(0)
and some require the Hessian
H(0) =
0
2
0000
t
Q(0).
If the functions j(0) and H(0) are not analytically available, they can be calculated numerically.
Take the ,
t
t/ element of j(0). Let c
)
be the ,
t
t/ unit vector (zeros everywhere except for a one in
the ,
t
t/ row). Then for  small
q
)
(0) ·
Q(0 +c
)
) ÷Q(0)

.
Similarly,
q
)I
(0) ·
Q(0 +c
)
 +c
I
) ÷Q(0 +c
I
) ÷Q(0 +c
)
) +Q(0)

2
In many cases, numerical derivatives can work well but can be computationally costly relative to
analytic derivatives. In some cases, however, numerical derivatives can be quite unstable.
Most gradient methods are a variant of Newton’s method which is based on a quadratic
approximation. By a Taylor’s expansion for 0 close to
`
0
0 = j(
`
0) · j(0) +H(0)
_
`
0 ÷0
_
which implies
`
0 = 0 ÷H(0)
÷1
j(0).
This suggests the iteration rule
`
0
i+1
= 0
i
÷H(0
i
)
÷1
j(0
i
).
where
One problem with Newton’s method is that it will send the iterations in the wrong direction if
H(0
i
) is not positive de…nite. One modi…cation to prevent this possibility is quadratic hillclimbing
which sets
`
0
i+1
= 0
i
÷(H(0
i
) +c
i
1
n
)
÷1
j(0
i
).
where c
i
is set just above the smallest eigenvalue of H(0
i
) if H(0) is not positive de…nite.
Another productive modi…cation is to add a scalar steplength `
i
. In this case the iteration
rule takes the form
0
i+1
= 0
i
÷L
i
j
i
`
i
(E.2)
where j
i
= j(0
i
) and L
i
= H(0
i
)
÷1
for Newton’s method and 1
i
= (H(0
i
) +c
i
1
n
)
÷1
for
quadratic hillclimbing.
Allowing the steplength to be a free parameter allows for a line search, a onedimensional
optimization. To pick `
i
write the criterion function as a function of `
Q(`) = Q(0
i
+L
i
j
i
`)
a onedimensional optimization problem. There are two common methods to perform a line search.
A quadratic approximation evaluates the …rst and second derivatives of Q(`) with respect to
`, and picks `
i
as the value minimizing this approximation. The halfstep method considers the
sequence ` = 1, 1/2, 1/4, 1/8, ... . Each value in the sequence is considered and the criterion
Q(0
i
+L
i
j
i
`) evaluated. If the criterion has improved over Q(0
i
), use this value, otherwise move
to the next element in the sequence.
224
Newton’s method does not perform well if Q(0) is irregular, and it can be quite computationally
costly if H(0) is not analytically available. These problems have motivated alternative choices for
the weight matrix 1
i
. These methods are called QuasiNewton methods. Two popular methods
are do to DavidsonFletcherPowell (DFP) and BroydenFletcherGoldfarbShanno (BFGS).
Let
j
i
= j
i
÷j
i÷1
0
i
= 0
i
÷0
i÷1
and . The DFP method sets
L
i
= L
i÷1
+
0
i
0
t
i
0
t
i
j
i
+
L
i÷1
j
i
j
t
i
L
i÷1
j
t
i
L
i÷1
j
i
.
The BFGS methods sets
L
i
= L
i÷1
+
0
i
0
t
i
0
t
i
j
i
÷
0
i
0
t
i
_
0
t
i
j
i
_
2
q
t
i
L
i÷1
j
i
+
0
i
j
t
i
L
i÷1
0
t
i
j
i
+
L
i÷1
j
i
0
t
i
0
t
i
j
i
.
For any of the gradient methods, the iterations continue until the sequence has converged in
some sense. This can be de…ned by examining whether [0
i
÷0
i÷1
[ , [Q(0
i
) ÷Q(0
i÷1
)[ or [q(0
i
)[
has become small.
E.3 DerivativeFree Methods
All gradient methods can be quite poor in locating the global minimum when Q(0) has several
local minima. Furthermore, the methods are not well de…ned when Q(0) is nondi¤erentiable. In
these cases, alternative optimization methods are required. One example is the simplex method
of NelderMead (1965).
A more recent innovation is the method of simulated annealing (SA). For a review see Go¤e,
Ferrier, and Rodgers (1994). The SA method is a sophisticated random search. Like the gradient
methods, it relies on an iterative sequence. At each iteration, a random variable is drawn and
added to the current value of the parameter. If the resulting criterion is decreased, this new value
is accepted. If the criterion is increased, it may still be accepted depending on the extent of the
increase and another randomization. The latter property is needed to keep the algorithm from
selecting a local minimum. As the iterations continue, the variance of the random innovations is
shrunk. The SA algorithm stops when a large number of iterations is unable to improve the criterion.
The SA method has been found to be successful at locating global minima. The downside is that
it can take considerable computer time to execute.
225
Bibliography
[1] Abadir, Karim M. and Jan R. Magnus (2005): Matrix Algebra, Cambridge University Press.
[2] Aitken, A.C. (1935): “On least squares and linear combinations of observations,” Proceedings
of the Royal Statistical Society, 55, 4248.
[3] Akaike, H. (1973): “Information theory and an extension of the maximum likelihood prin
ciple.” In B. Petroc and F. Csake, eds., Second International Symposium on Information
Theory.
[4] Anderson, T.W. and H. Rubin (1949): “Estimation of the parameters of a single equation in
a complete system of stochastic equations,” The Annals of Mathematical Statistics, 20, 4663.
[5] Andrews, Donald W. K. (1988): “Laws of large numbers for dependent nonidentically dis
tributed random variables,’ Econometric Theory, 4, 458467.
[6] Andrews, Donald W. K. (1991), “Asymptotic normality of series estimators for nonparameric
and semiparametric regression models,” Econometrica, 59, 307345.
[7] Andrews, Donald W. K. (1993), “Tests for parameter instability and structural change with
unknown change point,” Econometrica, 61, 8218516.
[8] Andrews, Donald W. K. and Moshe Buchinsky: (2000): “A threestep method for choosing
the number of bootstrap replications,” Econometrica, 68, 2351.
[9] Andrews, Donald W. K. and Werner Ploberger (1994): “Optimal tests when a nuisance
parameter is present only under the alternative,” Econometrica, 62, 13831414.
[10] Ash, Robert B. (1972): Real Analysis and Probability, Academic Press.
[11] Basmann, R. L. (1957): “A generalized classical method of linear estimation of coe¢cients
in a structural equation,” Econometrica, 25, 7783.
[12] Bekker, P.A. (1994): “Alternative approximations to the distributions of instrumental vari
able estimators, Econometrica, 62, 657681.
[13] Billingsley, Patrick (1968): Convergence of Probability Measures. New York: Wiley.
[14] Billingsley, Patrick (1995): Probability and Measure, 3rd Edition, New York: Wiley.
[15] Bose, A. (1988): “Edgeworth correction by bootstrap in autoregressions,” Annals of Statistics,
16, 17091722.
[16] Breusch, T.S. and A.R. Pagan (1979): “The Lagrange multiplier test and its application to
model speci…cation in econometrics,” Review of Economic Studies, 47, 239253.
[17] Brown, B. W. and Whitney K. Newey (2002): “GMM, e¢cient bootstrapping, and improved
inference ,” Journal of Business and Economic Statistics.
226
[18] Carlstein, E. (1986): “The use of subseries methods for estimating the variance of a general
statistic from a stationary time series,” Annals of Statistics, 14, 11711179.
[19] Casella, George and Roger L. Berger (2002): Statistical Inference, 2nd Edition, Duxbury
Press.
[20] Chamberlain, G. (1987): “Asymptotic e¢ciency in estimation with conditional moment re
strictions,” Journal of Econometrics, 34, 305334.
[21] Choi, I. and P.C.B. Phillips (1992): “Asymptotic and …nite sample distribution theory for IV
estimators and tests in partially identi…ed structural equations,” Journal of Econometrics,
51, 113150.
[22] Chow, G.C. (1960): “Tests of equality between sets of coe¢cients in two linear regressions,”
Econometrica, 28, 591603.
[23] Cragg, John (1992): “QuasiAitken Estimation for Heterskedasticity of Unknown Form"
Journal of Econometrics, 54, 179201.
[24] Davidson, James (1994): Stochastic Limit Theory: An Introduction for Econometricians.
Oxford: Oxford University Press.
[25] Davison, A.C. and D.V. Hinkley (1997): Bootstrap Methods and their Application. Cambridge
University Press.
[26] Dickey, D.A. and W.A. Fuller (1979): “Distribution of the estimators for autoregressive time
series with a unit root,” Journal of the American Statistical Association, 74, 427431.
[27] Donald Stephen G. and Whitney K. Newey (2001): “Choosing the number of instruments,”
Econometrica, 69, 11611191.
[28] Dufour, J.M. (1997): “Some impossibility theorems in econometrics with applications to
structural and dynamic models,” Econometrica, 65, 13651387.
[29] Efron, Bradley (1979): “Bootstrap methods: Another look at the jackknife,” Annals of Sta
tistics, 7, 126.
[30] Efron, Bradley (1982): The Jackknife, the Bootstrap, and Other Resampling Plans. Society
for Industrial and Applied Mathematics.
[31] Efron, Bradley and R.J. Tibshirani (1993): An Introduction to the Bootstrap, New York:
ChapmanHall.
[32] Eicker, F. (1963): “Asymptotic normality and consistency of the least squares estimators for
families of linear regressions,” Annals of Mathematical Statistics, 34, 447456.
[33] Engle, Robert F. and Clive W. J. Granger (1987): “Cointegration and error correction:
Representation, estimation and testing,” Econometrica, 55, 251276.
[34] Frisch, Ragnar (1933): “Editorial,” Econometrica, 1, 14.
[35] Frisch, R. and F. Waugh (1933): “Partial time regressions as compared with individual
trends,” Econometrica, 1, 387401.
[36] Gallant, A. Ronald and D.W. Nychka (1987): “Seminonparametric maximum likelihood es
timation,” Econometrica, 55, 363390.
[37] Gallant, A. Ronald and Halbert White (1988): A Uni…ed Theory of Estimation and Inference
for Nonlinear Dynamic Models. New York: Basil Blackwell.
227
[38] Galton, Francis (1886): “Regression Towards Mediocrity in Hereditary Stature,” The Journal
of the Anthropological Institute of Great Britain and Ireland, 15, 246263.
[39] Goldberger, Arthur S. (1991): A Course in Econometrics. Cambridge: Harvard University
Press.
[40] Go¤e, W.L., G.D. Ferrier and J. Rogers (1994): “Global optimization of statistical functions
with simulated annealing,” Journal of Econometrics, 60, 6599.
[41] Gauss, K.F. (1809): “Theoria motus corporum coelestium,” in Werke, Vol. VII, 240254.
[42] Granger, Clive W. J. (1969): “Investigating causal relations by econometric models and
crossspectral methods,” Econometrica, 37, 424438.
[43] Granger, Clive W. J. (1981): “Some properties of time series data and their use in econometric
speci…cation,” Journal of Econometrics, 16, 121130.
[44] Granger, Clive W. J. and Timo Teräsvirta (1993): Modelling Nonlinear Economic Relation
ships, Oxford University Press, Oxford.
[45] Gregory, A. and M. Veall (1985): “On formulating Wald tests of nonlinear restrictions,”
Econometrica, 53, 14651468,
[46] Haavelmo, T. (1944): “The probability approach in econometrics,” Econometrica, supple
ment, 12.
[47] Hall, A. R. (2000): “Covariance matrix estimation and the power of the overidentifying
restrictions test,” Econometrica, 68, 15171527,
[48] Hall, P. (1992): The Bootstrap and Edgeworth Expansion, New York: SpringerVerlag.
[49] Hall, P. (1994): “Methodology and theory for the bootstrap,” Handbook of Econometrics,
Vol. IV, eds. R.F. Engle and D.L. McFadden. New York: Elsevier Science.
[50] Hall, P. and J.L. Horowitz (1996): “Bootstrap critical values for tests based on Generalized
MethodofMoments estimation,” Econometrica, 64, 891916.
[51] Hahn, J. (1996): “A note on bootstrapping generalized method of moments estimators,”
Econometric Theory, 12, 187197.
[52] Hamilton, James D. (1994) Time Series Analysis.
[53] Hansen, Bruce E. (1992): “E¢cient estimation and testing of cointegrating vectors in the
presence of deterministic trends,” Journal of Econometrics, 53, 87121.
[54] Hansen, Bruce E. (1996): “Inference when a nuisance parameter is not identi…ed under the
null hypothesis,” Econometrica, 64, 413430.
[55] Hansen, Bruce E. (2006): “Edgeworth expansions for the Wald and GMM statistics for non
linear restrictions,” Econometric Theory and Practice: Frontiers of Analysis and Applied
Research, edited by Dean Corbae, Steven N. Durlauf and Bruce E. Hansen. Cambridge Uni
versity Press.
[56] Hansen, Lars Peter (1982): “Large sample properties of generalized method of moments
estimators, Econometrica, 50, 10291054.
[57] Hansen, Lars Peter, John Heaton, and A. Yaron (1996): “Finite sample properties of some
alternative GMM estimators,” Journal of Business and Economic Statistics, 14, 262280.
228
[58] Hausman, J.A. (1978): “Speci…cation tests in econometrics,” Econometrica, 46, 12511271.
[59] Heckman, J. (1979): “Sample selection bias as a speci…cation error,” Econometrica, 47, 153
161.
[60] Horowitz, Joel (2001): “The Bootstrap,” Handbook of Econometrics, Vol. 5, J.J. Heckman
and E.E. Leamer, eds., Elsevier Science, 31593228.
[61] Imbens, G.W. (1997): “One step estimators for overidenti…ed generalized method of moments
models,” Review of Economic Studies, 64, 359383.
[62] Imbens, G.W., R.H. Spady and P. Johnson (1998): “Information theoretic approaches to
inference in moment condition models,” Econometrica, 66, 333357.
[63] Jarque, C.M. and A.K. Bera (1980): “E¢cient tests for normality, homoskedasticity and
serial independence of regression residuals, Economic Letters, 6, 255259.
[64] Johansen, S. (1988): “Statistical analysis of cointegrating vectors,” Journal of Economic
Dynamics and Control, 12, 231254.
[65] Johansen, S. (1991): “Estimation and hypothesis testing of cointegration vectors in the pres
ence of linear trend,” Econometrica, 59, 15511580.
[66] Johansen, S. (1995): LikelihoodBased Inference in Cointegrated Vector AutoRegressive Mod
els, Oxford University Press.
[67] Johansen, S. and K. Juselius (1992): “Testing structural hypotheses in a multivariate cointe
gration analysis of the PPP and the UIP for the UK,” Journal of Econometrics, 53, 211244.
[68] Kitamura, Y. (2001): “Asymptotic optimality and empirical likelihood for testing moment
restrictions,” Econometrica, 69, 16611672.
[69] Kitamura, Y. and M. Stutzer (1997): “An informationtheoretic alternative to generalized
method of moments,” Econometrica, 65, 861874..
[70] Koenker, Roger (2005): Quantile Regression. Cambridge University Press.
[71] Kunsch, H.R. (1989): “The jackknife and the bootstrap for general stationary observations,”
Annals of Statistics, 17, 12171241.
[72] Kwiatkowski, D., P.C.B. Phillips, P. Schmidt, and Y. Shin (1992): “Testing the null hypoth
esis of stationarity against the alternative of a unit root: How sure are we that economic time
series have a unit root?” Journal of Econometrics, 54, 159178.
[73] Lafontaine, F. and K.J. White (1986): “Obtaining any Wald statistic you want,” Economics
Letters, 21, 3540.
[74] Lehmann, E.L. and George Casella (1998): Theory of Point Estimation, 2nd Edition,
Springer.
[75] Lehmann, E.L. and Joseph P. Romano (2005): Testing Statistical Hypotheses, 3rd Edition,
Springer.
[76] Li, Qi and Je¤rey Racine (2007) Nonparametric Econometrics.
[77] Lovell, M.C. (1963): “Seasonal adjustment of economic time series,” Journal of the American
Statistical Association, 58, 9931010.
229
[78] MacKinnon, James G. (1990): “Critical values for cointegration,” in Engle, R.F. and C.W.
Granger (eds.) LongRun Economic Relationships: Readings in Cointegration, Oxford, Oxford
University Press.
[79] MacKinnon, James G. and Halbert White (1985): “Some heteroskedasticityconsistent covari
ance matrix estimators with improved …nite sample properties,” Journal of Econometrics, 29,
305325.
[80] Magnus, J. R., and H. Neudecker (1988): Matrix Di¤erential Calculus with Applications in
Statistics and Econometrics, New York: John Wiley and Sons.
[81] Muirhead, R.J. (1982): Aspects of Multivariate Statistical Theory. New York: Wiley.
[82] Nelder, J. and R. Mead (1965): “A simplex method for function minimization,” Computer
Journal, 7, 308313.
[83] Newey, Whitney K. (1990): “Semiparametric e¢ciency bounds,” Journal of Applied Econo
metrics, 5, 99135.
[84] Newey, Whitney K. and Daniel L. McFadden (1994): “Large Sample Estimation and Hy
pothesis Testing,” in Robert Engle and Daniel McFadden, (eds.) Handbook of Econometrics,
vol. IV, 21112245, North Holland: Amsterdam.
[85] Newey, Whitney K. and Kenneth D. West (1987): “Hypothesis testing with e¢cient method
of moments estimation,” International Economic Review, 28, 777787.
[86] Owen, Art B. (1988): “Empirical likelihood ratio con…dence intervals for a single functional,”
Biometrika, 75, 237249.
[87] Owen, Art B. (2001): Empirical Likelihood. New York: Chapman & Hall.
[88] Park, Joon Y. and Peter C. B. Phillips (1988): “On the formulation of Wald tests of nonlinear
restrictions,” Econometrica, 56, 10651083,
[89] Phillips, Peter C.B. (1989): “Partially identi…ed econometric models,” Econometric Theory,
5, 181240.
[90] Phillips, Peter C.B. and Sam Ouliaris (1990): “Asymptotic properties of residual based tests
for cointegration,” Econometrica, 58, 165193.
[91] Politis, D.N. and J.P. Romano (1996): “The stationary bootstrap,” Journal of the American
Statistical Association, 89, 13031313.
[92] Potscher, B.M. (1991): “E¤ects of model selection on inference,” Econometric Theory, 7,
163185.
[93] Qin, J. and J. Lawless (1994): “Empirical likelihood and general estimating equations,” The
Annals of Statistics, 22, 300325.
[94] Ramsey, J. B. (1969): “Tests for speci…cation errors in classical linear leastsquares regression
analysis,” Journal of the Royal Statistical Society, Series B, 31, 350371.
[95] Rudin, W. (1987): Real and Complex Analysis, 3rd edition. New York: McGrawHill.
[96] Said, S.E. and D.A. Dickey (1984): “Testing for unit roots in autoregressivemoving average
models of unknown order,” Biometrika, 71, 599608.
[97] Shao, J. and D. Tu (1995): The Jackknife and Bootstrap. NY: Springer.
230
[98] Sargan, J.D. (1958): “The estimation of economic relationships using instrumental variables,”
Econometrica, 26, 393415.
[99] Shao, Jun (2003): Mathematical Statistics, 2nd edition, Springer.
[100] Sheather, S.J. and M.C. Jones (1991): “A reliable databased bandwidth selection method
for kernel density estimation, Journal of the Royal Statistical Society, Series B, 53, 683690.
[101] Shin, Y. (1994): “A residualbased test of the null of cointegration against the alternative of
no cointegration,” Econometric Theory, 10, 91115.
[102] Silverman, B.W. (1986): Density Estimation for Statistics and Data Analysis. London: Chap
man and Hall.
[103] Sims, C.A. (1972): “Money, income and causality,” American Economic Review, 62, 540552.
[104] Sims, C.A. (1980): “Macroeconomics and reality,” Econometrica, 48, 148.
[105] Staiger, D. and James H. Stock (1997): “Instrumental variables regression with weak instru
ments,” Econometrica, 65, 557586.
[106] Stock, James H. (1987): “Asymptotic properties of least squares estimators of cointegrating
vectors,” Econometrica, 55, 10351056.
[107] Stock, James H. (1991): “Con…dence intervals for the largest autoregressive root in U.S.
macroeconomic time series,” Journal of Monetary Economics, 28, 435460.
[108] Stock, James H. and Jonathan H. Wright (2000): “GMM with weak identi…cation,” Econo
metrica, 68, 10551096.
[109] Theil, H. (1953): “Repeated least squares applied to complete equation systems,” The Hague,
Central Planning Bureau, mimeo.
[110] Theil, H. (1971): Principles of Econometrics, New York: Wiley.
[111] Tobin, James (1958): “Estimation of relationships for limited dependent variables,” Econo
metrica, 26, 2436.
[112] van der Vaart, A.W. (1998): Asymptotic Statistics, Cambridge University Press.
[113] Wald, A. (1943): “Tests of statistical hypotheses concerning several parameters when the
number of observations is large,” Transactions of the American Mathematical Society, 54,
426482.
[114] Wang, J. and E. Zivot (1998): “Inference on structural parameters in instrumental variables
regression with weak instruments,” Econometrica, 66, 13891404.
[115] White, Halbert (1980): “A heteroskedasticityconsistent covariance matrix estimator and a
direct test for heteroskedasticity,” Econometrica, 48, 817838.
[116] White, Halbert (1984): Asymptotic Theory for Econometricians, Academic Press.
[117] Wooldridge, Je¤rey M. (2002) Econometric Analysis of Cross Section and Panel Data, MIT
Press.
[118] Zellner, Arnold. (1962): “An e¢cient method of estimating seemingly unrelated regressions,
and tests for aggregation bias,” Journal of the American Statistical Association, 57, 348368.
231
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Introduction 1.1 What is Econometrics? . . . . . . . . . . . . 1.2 The Probability Approach to Econometrics 1.3 Econometric Terms and Notation . . . . . . 1.4 Observational Data . . . . . . . . . . . . . . 1.5 Standard Data Structures . . . . . . . . . . 1.6 Sources for Economic Data . . . . . . . . . 1.7 Econometric Software . . . . . . . . . . . . 1.8 Reading the Manuscript . . . . . . . . . . . 2 Regression and Projection 2.1 Introduction . . . . . . . . . . . . . . . . 2.2 Notation . . . . . . . . . . . . . . . . . . 2.3 Conditional Mean . . . . . . . . . . . . . 2.4 Regression Error . . . . . . . . . . . . . 2.5 Best Predictor . . . . . . . . . . . . . . 2.6 Conditional Variance . . . . . . . . . . . 2.7 Homoskedasticity and Heteroskedasticity 2.8 Linear Regression . . . . . . . . . . . . . 2.9 Best Linear Predictor . . . . . . . . . . 2.10 Regression Coe¢ cients . . . . . . . . . . 2.11 Best Linear Approximation . . . . . . . 2.12 Normal Regression . . . . . . . . . . . . 2.13 Regression to the Mean . . . . . . . . . 2.14 Reverse Regression . . . . . . . . . . . . 2.15 Limitations of the Best Linear Predictor 2.16 Identi…cation of the Conditional Mean . Exercises . . . . . . . . . . . . . . . . . . . . 3 The 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 Algebra of Least Squares Introduction . . . . . . . . . . Least Squares Estimator . . . Solving for Least Squares . . Least Squares Residuals . . . Model in Matrix Notation . . Projection Matrices . . . . . . Residual Regression . . . . . Prediction Errors . . . . . . . In‡ uential Observations . . . Measures of Fit . . . . . . . . vi 1 1 1 2 3 4 5 6 7 8 8 8 9 11 12 13 14 15 16 19 20 21 21 23 23 25 26 28 28 28 29 32 32 33 35 37 39 39
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . . i
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
3.11 Normal Regression Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 4 Least Squares Regression 4.1 Introduction . . . . . . . . . . . . . . 4.2 Sampling Distribution . . . . . . . . 4.3 Mean of LeastSquares Estimator . . 4.4 Variance of Least Squares Estimator 4.5 GaussMarkov Theorem . . . . . . . 4.6 Residuals . . . . . . . . . . . . . . . 4.7 Estimation of Error Variance . . . . 4.8 Covariance Matrix Estimation Under 4.9 Covariance Matrix Estimation Under 4.10 Standard Errors . . . . . . . . . . . . 4.11 Multicollinearity . . . . . . . . . . . 4.12 Omitted Variable Bias . . . . . . . . 4.13 Normal Regression Model . . . . . . Exercises . . . . . . . . . . . . . . . . . . 46 46 47 47 49 50 52 53 54 55 57 58 61 61 64 65 65 65 68 70 73 74 77 79 80 81 82 85 87 89 89 90 91 92 93 94 97 99 102 104 104 107 107 108 110 113
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Homoskedasticity Heteroskedasticity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
5 Asymptotic Theory 5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 Weak Law of Large Numbers . . . . . . . . . . . . . . . . . . . . . 5.3 Consistency of LeastSquares Estimation . . . . . . . . . . . . . . . 5.4 Asymptotic Normality . . . . . . . . . . . . . . . . . . . . . . . . . 5.5 Consistency of Sample Variance Estimators . . . . . . . . . . . . . 5.6 Consistent Covariance Matrix Estimation . . . . . . . . . . . . . . 5.7 Functions of Parameters . . . . . . . . . . . . . . . . . . . . . . . . 5.8 t statistic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.9 Con…dence Intervals . . . . . . . . . . . . . . . . . . . . . . . . . . 5.10 Semiparametric E¢ ciency . . . . . . . . . . . . . . . . . . . . . . . 5.11 Semiparametric E¢ ciency in the Projection Model . . . . . . . . . 5.12 Semiparametric E¢ ciency in the Homoskedastic Regression Model Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Testing 6.1 t tests . . . . . . . . . . . . . . . . . . . . . . . 6.2 tratios . . . . . . . . . . . . . . . . . . . . . . . 6.3 Wald Tests . . . . . . . . . . . . . . . . . . . . 6.4 F Tests . . . . . . . . . . . . . . . . . . . . . . 6.5 Normal Regression Model . . . . . . . . . . . . 6.6 Problems with Tests of NonLinear Hypotheses 6.7 Monte Carlo Simulation . . . . . . . . . . . . . 6.8 Estimating a Wage Equation . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . . . 7 Additional Regression Topics 7.1 Generalized Least Squares . . 7.2 Testing for Heteroskedasticity 7.3 Forecast Intervals . . . . . . . 7.4 NonLinear Least Squares . . 7.5 Least Absolute Deviations . . 7.6 Quantile Regression . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . . ii
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
7.7 Testing for Omitted NonLinearity . 7.8 Irrelevant Variables . . . . . . . . . 7.9 Model Selection . . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
114 115 116 119
8 The Bootstrap 8.1 De…nition of the Bootstrap . . . . . . . . . 8.2 The Empirical Distribution Function . . . . 8.3 Nonparametric Bootstrap . . . . . . . . . . 8.4 Bootstrap Estimation of Bias and Variance 8.5 Percentile Intervals . . . . . . . . . . . . . . 8.6 Percentilet EqualTailed Interval . . . . . . 8.7 Symmetric Percentilet Intervals . . . . . . 8.8 Asymptotic Expansions . . . . . . . . . . . 8.9 OneSided Tests . . . . . . . . . . . . . . . 8.10 Symmetric TwoSided Tests . . . . . . . . . 8.11 Percentile Con…dence Intervals . . . . . . . 8.12 Bootstrap Methods for Regression Models . Exercises . . . . . . . . . . . . . . . . . . . . . . 9 Generalized Method of Moments 9.1 Overidenti…ed Linear Model . . . . . . . . . 9.2 GMM Estimator . . . . . . . . . . . . . . . 9.3 Distribution of GMM Estimator . . . . . . 9.4 Estimation of the E¢ cient Weight Matrix . 9.5 GMM: The General Case . . . . . . . . . . 9.6 OverIdenti…cation Test . . . . . . . . . . . 9.7 Hypothesis Testing: The Distance Statistic 9.8 Conditional Moment Restrictions . . . . . . 9.9 Bootstrap GMM Inference . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . 10 Empirical Likelihood 10.1 NonParametric Likelihood . . . . . . . . 10.2 Asymptotic Distribution of EL Estimator 10.3 Overidentifying Restrictions . . . . . . . . 10.4 Testing . . . . . . . . . . . . . . . . . . . . 10.5 Numerical Computation . . . . . . . . . . 11 Endogeneity 11.1 Instrumental Variables . . . 11.2 Reduced Form . . . . . . . 11.3 Identi…cation . . . . . . . . 11.4 Estimation . . . . . . . . . 11.5 Special Cases: IV and 2SLS 11.6 Bekker Asymptotics . . . . 11.7 Identi…cation Failure . . . . Exercises . . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
121 . 121 . 121 . 123 . 123 . 124 . 126 . 126 . 127 . 129 . 130 . 131 . 132 . 133 134 . 134 . 135 . 136 . 137 . 138 . 138 . 139 . 140 . 141 . 143 146 . 146 . 148 . 149 . 150 . 151 153 154 155 156 156 156 158 159 161
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
iii
. . . . . . . . . . . . . . . . . . . . . . 12. . . . . 199 . . . . . . . . . . . . . A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Stationarity of AR(1) Process . . . . . . . . . . . 197 . . . . . . . . . . . . . .5 Testing for Omitted Serial Correlation 13. . . . . . 12. . . . . . . . . .12 Univariate Time Series 12. .1 Vector Autoregressions (VARs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 . . . . . . . 13.9 Matrix Calculus . . . . . . 12. . .2 Fixed E¤ects . . . . . . . . .2 Asymptotic MSE for Kernel Estimates . . . . . . . . . . . . . . . . . . . . . . . . . . 13. . . .3 Censored Data . . . .4 Lag Operator . . . . . . . . . . . . 13. . . 179 . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Matrix Multiplication . . . . . 12. .2 Autoregressions . . . . . . 196 . . . . . . . . . . . . . 194 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 Eigenvalues . . . . . . . . . . . . . . . 13. . . A. . . . . . . . . . . . . . . . . . .8 Positive De…niteness . 198 . . .9 Cointegrated VARs .1 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 Cointegration . . . . . . . . . . . . . . . . 197 . . . . . . . . . .5 Stationarity of AR(k) . . . . . .11Model Selection . . . . A. . . .1 Stationarity and Ergodicity . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 Binary Choice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Dynamic Panel Regression . . . . . . . . . . 179 .6 Selection of Lag Length in an VAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Limited Dependent Variables 14. . . . . . . . . . . . . . . . . . . . . . . . . . 181 . . . . . . . . . 14. A. . . 13. . . . . . . . . . . . . . . . . . . . . . . . . . . 12. . . . . . . . . . . . . . . .2 Matrix Addition . . . . . . . . . . A. . .10Testing for Omitted Serial Correlation 12. . . . . . . . . . Vec Operator . . . . .2 Estimation . . . . . .12Autoregressive Unit Roots . . . . . . .9 Trend Stationarity . . . . . . 187 16. . . . . . . . . . .10 Kronecker Products and the A. . . . . . . . . . . . 192 . . . . . . . . . . . . . . . . . . . . . . A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Multivariate Time Series 13. . . . . . . . . . . . .5 Rank and Inverse . . . . .4 Single Equation from a VAR . . iv . . . . . . . . . . . . . . .4 Sample Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 . . . . . . . . . . . . . . . . 184 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 163 165 166 166 167 167 168 169 169 170 171 171 173 173 174 174 174 175 175 176 176 177 . . . . . . . . . . . . 14. . . . . . . . . . . . . . . . . . . . . . . . 12. . . . . . . . . . .8 Bootstrap for Autoregressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 Vector and Matrix Norms . . . . . . . . . . . . 12. . . . . . . . . . . . . . . . . . . . .4 Trace . . . . . 13. . . . . . . . . . . . . . . . . 12. . . . . . . . . . . .1 IndividualE¤ects Model .3 Restricted VARs . A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 Kernel Density Estimation . . . 180 . . . . . . A. . . . . . . . . . . 12. . . . . . . . . . . . . . . 195 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13. A. . . . . . . . . . . . . . . . 189 A Matrix Algebra A. . . . .7 Asymptotic Distribution . . . . . . . . . . . . . . .6 Determinant . . . . . . . . . . . . . . . . . . . . . . .7 Granger Causality . . . . . . . 186 16 Nonparametrics 187 16. . . . . . . . . . . . . . . . . . .2 Count Data . 198 . . . . . . . . 192 . . . . . . . . . . . 12. . . . . . . . . . . . . 184 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14. . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 Estimation . . . . . . 182 15 Panel Data 184 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Common Distributions . . . .3 Asymptotic Transformations . . . . B. . . .2 Convergence in Distribution . . . . . . . . . . . .2 Gradient Methods . . . . . .1 Inequalities . . . . . . . . . . . . . . . .1 Foundations . . . . . . . . . . . . . . . . . . . 223 . . . C. . . . . . . D Maximum Likelihood E Numerical Optimization E. . . . . . . . . . . . . .3 DerivativeFree Methods . . . . . . . .6 Multivariate Random Variables . . . . . . . . B. . . .3 Expectation . . . . . . . . . . . . . 223 . . C. . . . . . . . . . . .8 Transformations . B. . . . . . . . . . . 225 v . . . . . . . . . . . . . . . . . . .9 Normal and Related Distributions . . . . . . . 215 . . . . . . . .4 Gamma Function . . . . . . . . . . . . 216 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 Grid Search . . . . . . E. . . . . . . . . . . . . B. . . . . . . . . . . . . . . . . . 218 219 223 . . . . . . . . .2 Random Variables . . . . . . . . . . . . . 201 201 203 203 204 205 207 209 211 212 C Asymptotic Theory C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215 . . . . . . . . . B. . . . . . . .7 Conditional Distributions and Expectation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B. . . . . . . . . . . . . . B. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B Probability B. . . . . . . . . . . . . . . .
and Li and Racine (2007) for nonparametrics and semiparametric econometrics. I recommend Lehmann and Casella (1998). some of the basic tools of matrix algebra. I recommend Ash (1972) or Billingsley (1995). I recommend Davidson (1994) for asymptotic theory. Students are assumed to have an understanding of multivariate calculus. probability. For more advanced statistical theory. I recommend Matrix Algebra by Abadir and Magnus (2005). It can be used as a standalone text. As this is a manuscript in progress. in particular the later sections of the manuscript. van der Vaart (1998).Preface This book is intended to serve as the textbook for a …rstyear graduate course in econometrics. probability theory. For those wanting a deeper foundation in probability. For further study in econometrics beyond this text. A prior course in undergraduate econometrics would be helpful. and mathematical statistics. and statistics are reviewed in the Appendix. Beyond these texts. vi . For students wishing to deepen their knowledge of matrix algebra in relation to their study of econometrics. some parts are quite incomplete. but not required. the Handbook of Econometrics series provides advanced summaries of contemporary econometric methods and theory. Wooldridge (2002) for panel data and discrete response models. For reference. An excellent introduction to probability and statistics is Statistical Inference by Casella and Berger (2002). Shao (2003). and Lehmann and Romano (2005). Hopefully one day these sections will be ‡ eshed out and completed in more detail. linear algebra. Hamilton (1994) for timeseries methods. or be used as a supplement to another text.
and no single one of these aspects.. Its de…nition is implied in the statement of the scope of the [Econometric] Society. one of the three principle founders of the Econometric Society. A word of explanation regarding the term econometrics may be in order. and economic data.. econometrics is by no means the same as economic statistics. although some terms have evolved somewhat in their usage. Applied econometrics is a term describing the development of quantitative economic models and the application of econometric methods to these models using economic data.. and cowinner of the …rst Nobel Memorial Prize in Economic Sciences in 1969.Chapter 1 Introduction 1. Its main object shall be to promote studies that aim at a uni…cation of the theoreticalquantitative and the empiricalquantitative approach to economic problems. 1. should be confounded with econometrics.2 The Probability Approach to Econometrics The unifying methodology of modern econometrics was articulated by Trygve Haavelmo (19111999) of Norway. And it is this uni…cation that constitutes econometrics. Thus. mathematical statistics.1 What is Econometrics? The term “econometrics” is believed to have been crafted by Ragnar Frisch (18951973) of Norway. pp. Nor should econometrics be taken as synonomous with the application of mathematics to economics. Today. This de…nition remains valid today. in Section I of the Constitution.. Econometric theory concerns the development of tools and methods.. …rst editor of the journal Econometrica. winner of the 1989 Nobel Memorial Prize in Economic Sciences. economic theory. which reads: “The Econometric Society is an international society for the advancement of economic theory in its relation to statistics and mathematics. It is the uni…cation of all three that is powerful. It is therefore …tting that we turn to Frisch’ own words in the introduction to the …rst issue of s Econometrica for an explanation of the discipline. Within the …eld of econometrics there are subdivisions and specializations.. Experience has shown that each of these three viewpoints. that of statistics. (1933). 1. Econometrica. condition for a real understanding of the quantitative relations in modern economic life.” But there are several aspects of the quantitative approach to economics. but not by itself a su¢ cient. Nor is it identical with what we call general economic theory. although a considerable portion of this theory has a de…ninitely quantitative character. taken by itself. 12. we would say that econometrics is the uni…ed study of economic models. and mathematics. and the study of the properties of econometric methods. is a necessary. in his seminal 1 . Ragnar Frisch.
1. Similar to the quasistructural approach. An individual observation could also be a measurement at a point in time. The di¤erence is that the calibrationist literature rejects mathematical statistics as inappropriate for approximate models. and other descriptive characteristics. and the quantitative analysis performed under the assumption that the economic model is correctly speci…ed. x. In this case. and instead selects parameters by matching model and data moments using nonstatistical ad hoc 1 methods. and it is incohorent to apply deterministic models to nondeterministic data. Deterministic models are blatently inconsistent with observed economic quantities. estimate. Rather. dataset. A probabilistic economic model is partially speci…ed but some features are left unspeci…ed. Today no s quantitative work in economics shuns its fundamental vision. corporation. While all economists embrace the probability approach. The appropriate method for a quantitative economic analysis follows from the probabilistic construction of the economic model. and conduct inferences about the economy is through the powerful theory of mathematical statistics. Haavelmo argued that . stochastic errors should not be simply added to deterministic models to make them random. city or other geographical region. educational attainment. there has been some evolution in its implementation. Researchers often describe this as “taking their model seriously. We use the term observations to refer to the distinct repeated measurements on the variables. such as a person. A probabilistic economic s model is speci…ed.” The structural approach typically leads to likelihoodbased analysis. state. and is the main focus of this textbook.paper “The probability approach in econometrics” Econometrica (1944). and/or z: The convention in econometrics is to use the character y to denote the variable to be explained. This approach typically leads to estimation methods such as leastsquares and the Generalized Method of Moments. …rm. and quasilikelihood inference. or sample. Economists typically denote variables by the italized roman characters y. 2 .3 Econometric Terms and Notation In a typical application. We call this information the data. A criticism of the structural approach is that it is misleading to treat an economic model as correctly speci…ed. an econometrician has a set of repeated measurements on a set of variables. including maximum likelihood and Bayesian estimation. such as quarterly GDP or a daily interest rate. in an labor application the variables could include weekly earnings. An individual observation often corresponds to a speci…c economic unit. The semiparametric approach dominates contemporary econometrics. The structural approach is the closest to Haavelmo’ original idea. Another branch of quantitative structural economics is the calibration approach. it follows naturally that the best way to quantify. organization. This theory has led to the concepts of the pseudotrue value (the parameter value de…ned by the estimation problem). household. while 1 Ad hoc means “for this purpose” – a method designed for a speci…c problem – and not based on a generalizable principle. quasiMLE. the calibration approach interprets structural models as approximations and hence inherently false. it is more accurate to view a model as a useful abstraction or approximation. For example. Haavelmo’ probability approach was quickly embraced by the economics profession. how should we interpret structural econometric analysis? The quasistructural approach to inference views a structural economic model as an approximation rather than the truth. quantitative economic models must necessarily be probability models (by which today we would mean stochastic). age. Closely related is the semiparametric approach. Economic models should be explicitly designed to incorporate randomness. country. the quasilikelihood function. Once we acknowledge that an economic model is a probability model.
1. z i ): th It is proper mathematical practice to use upper case X for random variables and lower case x for realizations or speci…c values. xi and z i . To measure the returns to schooling. e. and in other places a speci…c realization. and then follow the children’ wage path after they mature and s enter the labor force.the characters x and z are used to denote the conditioning (explaining) variables. an experiment might randomly divide children into groups. 3 . e. The i’ observation is the set (yi . and 2 to denote unknown parameters of an econometric model. xi . The di¤erences between the groups would be direct measurements of the effects of di¤erent levels of education. Thus the notation yi will in some places refer to a random variable.g. V ^ = var n as the p ^ covariance matrix for n : Hopefully without causing confusion. V is an estimate of V . We typically use Greek letters such as .g. such as in timeseries applications where the index t is common. and will use boldface. and vectors (elements of Rk ) by lower case bold italics such as x. As we mentioned before.4 Observational Data A common econometric question is to quantify the impact of one set of variables on another variable. ^ . real numbers (elements of the real line R) are written using lower case italics such as y. Estimates are typically denoted by putting a hat “^” tilde “~” or bar “” over the corresponding letter.g. e. For example. In practice it is common to …nd that some variables are not measured for some observations. we would use experimental data to answer these questions. e. Following mathematical convention. holding other variables constant. and subscript the variables by the index i to denote the individual observation. when these are vectorvalued. often with a subscript to denote the estimator. xk Upper case bold italics such as X will be used for matrices. This practice is not commonly followed in econometrics because instead we use upper case to denote matrices. A . we see few nonlaboratory experimental data sets in economics. and ~ are estimates of : The covariance matrix of an econometric estimator will typically be written using the capital p ^ boldface V . 1 0 x1 B x2 C C B x = B . We typically denote the number of observations by the natural number n. However. Ideally. a concern in labor economics is the returns to schooling – the change in earnings induced by increasing a worker’ education. In some contexts we use indices other than i. yi . or . e.g. mandate di¤erent levels of education to the di¤erent groups. ideally each observation consists of a set of measurements on the list of variables. and in these cases we describe these variables or observations as unobserved or missing. e. experiments such as this would be widely condemned as immoral! Consequently. Another s issue of interest is the earnings gap between men and women.g. Estimates will be denoted by appending hats or tildes.g. and in panel studies we typically use the double index it to refer to individual i at a time period t. we will use the notation p V to denote the asymptotic covariance matrix of n ^ (the variance of the asymptotic b distribution). C: @ . Hopefully there will be no confusion as the use should be evident from the context.
and assess the joint dependence. Surveys are a typical source for crosssectional data. Knowledge of the joint distibution alone may not be able to distinguish between these explanations. Timeseries data are indexed by time. most economic data is observational. or corporations) surveyed repeatedly over time. households. data. as we are not able to manipulate one variable to see the direct e¤ect on the other. These data sets consist of a set of individuals (typically persons. This is an alternative explanation for an observed positive correlation between educational levels and wages. This discussion means that it is di¢ cult to infer causality from observational data alone. 1. the individuals surveyed are persons. They are distinguished by the dependence structure across observations. But from observational data it is di¢ cult to infer causality. In many contemporary econometric crosssection studies the sample size n is quite large. which suggests a high relative wage. To continue the above example. Most economic data sets are observational. and this is based on strong assumptions. Most aggregate economic data is only available at a low frequency (annual. This means that all variables must be treated as random and possibly jointly determined. These factors are likely to s be a¤ected by their personal abilities and attitudes towards work.5 Standard Data Structures There are three major types of economic data sets: crosssectional. through data collection we can record the level of a person’ education and their wage. For example. and therefore choose to attain higher levels of education. High ability individuals do better in school. quarterly or perhaps monthly) so the sample size can be much smaller than in typical crosssection studies. Causal inference requires identi…cation.Instead. not experimental. hourly. Typical examples include macroeconomic aggregates. Most of this text is devoted to the study of crosssection data. timeseries. This type of data is characterized by serial dependence so the random sampling assumption is inappropriate. The point is that multiple explanations are consistent with a positive correlation between schooling levels and education. prices and interest rates. and their high ability is the fundamental reason for their high wages. and panel. The fact that a person is highly educated suggests a high level of ability. It is conventional to assume that crosssectional observations are mutually independent. Data Structures Crosssection Timeseries Panel 4 . Panel data combines elements of crosssection and timeseries. The common modeling assumption is that the individuals are mutually independent of one another. but a given individual’ observations are mutually dependent. The exception is …nancial data where data are available at a high frequency (weekly. a person’ level of education is (at least partially) s determined by that person’ choices as well as their educational level. This is a modi…ed random sampling s environment. …rms or other economic agents. Crosssectional data sets have one observation per individual. households. We will return to a discussion of some of these issues in Chapter 11. or tickbytick) so sample sizes can be quite large. With such data we s can measure the joint distribution of these variables. In typical applications.
methods from mathematical statistics had not been applied to economic data as they were viewed as inappropraite. In this case we say that the data are independent and identically distributed or iid. z j ) for i 6= j. This abstraction can be a source of confusion as it does not correspond to a physical population in the real world. xi . z i ) is independent of the j’ observation (yj . timeseries.5.1 The observations (yi . most of this text will be devoted to crosssectional data under the assumption of mutually independent observations. available at rfe. if the data is randomly gathered. and the goal of statistical inference is to learn about features of F from the sample. For most of this text we will assume that our observations come from a random sample. (Sometimes the th label “independent”is misconstrued. allowing the application of mathematical statistics to the social sciences. These include models of spatial correlation and clustering. Some speci…c data sources of interest include Bureau of Labor Statistics US Census Current Population Survey Survey of Income and Program Participation Panel Study of Income Dynamics Federal Reserve System (Board of Governors and regional banks) National Bureau of Economic Research 5 . The distribution F is unknown. xi . By mutual independence we mean that the i’ th observation (yi . It is a statement about the relationship between observations i and j. x. xj . The random sampling framework was a major intellectural breakthrough of the late 19th century. the the internet provides a convenient forum for dissemination of economic data.org. n: In the random sampling framework. we think of an individual observation (yi . it is reasonable to model each observation as a random draw from the same probability distribution. 1. Before this conceptual development. :::. a necessary precondition for the application of statistical methods. z i ) are a random sample if they are mutually independent and identically distributed (iid) across i = 1. This “population” is in…nitely large. not a statement about the relationship between yi and xi and/or z i :) Furthermore. An excellent starting point is the Resources for Economists Data Links. The assumption of random sampling provides the mathematical foundation for treating economic statistics with the tools of mathematical statistics. z) which can call the population.6 Sources for Economic Data Fortunately for economists. We call this a random sample.Some contemporary econometric applications combine elements of crosssection. z i ) as a realization from a joint probability distribution F (y. From this site you can …nd almost every publically available economic data set. xi . De…nition 1. The random sampling framework enabled economic samples to be viewed as homogenous and random. Many largescale economic datasets are available without charge from governmental agencies. As we mentioned above. and panel data modeling.
S. The Journal of Political Economy states: It is the policy of the Journal of Political Economy to publish papers only if the data used in the analysis are clearly and precisely documented and are readily available to any researcher for purposes of replication.mathworks. public openness provides a healthy incentive for transparency and integrity in empirical analysis. It is quite popular among economists. If these investigations fail.net) are highlevel matrix programming languages with a wide variety of builtin statistical functions. The American Economic Review states: All data used in analysis must be made available to any researcher for purposes of replication. Unfortunately. The advantage of these packages is that you are in complete control of your analysis. Therefore.U. and typically for poor reasons. check the website(s) of the paper’ author(s). It is an excellent package for most econometric analysis.7 Econometric Software Economists use a variety of econometric. The greatest form of ‡ attery is to learn that another scholar has read your paper. STATA (www. In addition. or wants to use your empirical methods. and is continuously being updated with new methods. You may need to be persistent. If you are interested in using the data from a published paper. but is limited when you want to use new or lesscommon econometric methods which have not yet been programed. all authors absolutely have the obligation to make their data and programs available. The irony of the situation is that it is typically in the best interests of a scholar to make as much of their work (including all data and programs) freely available. and Ox (www. Most journals in economics require authors of published papers to make their datasets generally available. programs. Remember that as part of your end product. statistical. you will need (and want) to provide all data and programs to the community of scholars. and some make available s replication …les complete with data and programs.com). and programming software. and information on empirical analysis. Econometrica states: Econometrica has the policy that all empirical. many fail to do so.com). For example. experiments and simulations that are needed for replication and some limited sensitivity analysis. …rst check the journal’ website. GAUSS (www. As a matter of professional etiquette. Most academic economists maintain webpages. authors of accepted papers must submit data sets. Bureau of Economic Analysis CompuStat International Financial Statistics Another good source of data is from authors of published empirical studies. MATLAB (www. politely requesting the data. 1.aptech. email the author(s). Many econometric methods have been programed in these languages and are available on the web. Second. experimental and simulation results must be replicable. as this only increases the likelihood of their work being cited and having an impact. in its instructions for submission.com) is a powerful statistical program with a broad set of preprogrammed econometric and statistical tools. s as many journals archive data and replication programs online. and it is 6 .oxmetrics. wants to extend your work. Keep this in mind as you start your own empirical project.stata.
Some disadvantages are that you have to do much of the programming yourself. at the cost of increased time in programming and debugging. and numerical optimization can be found in the appendix. 15 and 16 cover limited dependent variables. Reviews of matrix algebra.org) is an integrated suite of statistical and graphical software that is ‡ exible. As a student of econometrics. Chapter 8 introduces the bootstrap. and probably more than one.rproject. maximum likelihood. and programming errors are hard to prevent and di¢ cult to detect and eliminate. some economists write their programs in a standard programming language such as Fortran or C. many empirical economists end up using more than one package. probability theory. 7 . and Chapters 14. empirical likelihood and endogeneity. Chapters 12 and 13 cover time series. open source. programming complicated procedures takes signi…cant time. and best of all.8 Reading the Manuscript Chapters 2 through 7 deal with the core linear regression and projection models. you will learn at least one of these packages. 1. panel data.easier to program new methods than in STATA. free! For highlyintensive computational tasks. and nonparametrics. asymptotic theory. R (www. Chapters 9 through 11 deal with the Generalized Method of Moments. As these di¤erent packages have distinct advantages. This can lead to major gains in computational speed.
8 The …nite second moment conditions imposed in Assumption 2. As an example of a discrete variable. A . Ex2 < 1 for j = 1. C: @ . leastsquares is a tool to estimate an approximate conditional mean of one variable (the dependent variable) given another set of variables (the regressors.2.2. x2 . conditioning variables.1. Throughout this section we maintain the assumption that the variables are stochastic. Ey 2 < 1: 2. or covariates). 2.2 imply that the variables have …nite means and variances. also known as regression. As we will see. :::. :::.1 and 2. In this chapter we abstract from estimation.1 Introduction The most commonly applied econometric tool is leastsquares estimation. many regressors in econometric applications are binary.Chapter 2 Regression and Projection 2.1. It is convenient to write the set of regressors as a vector in Rk : 0 1 x1 B x2 C B C (2. For some purposes. and are called dummy variables. But when the dependent variable is discrete we typically use speci…c models and techniques built for this purpose (see Chapter 14). the same is true about the dependent variable – it could be continuous or discrete. :::. taking on only the values 0 and 1.2 Notation We let y denote the dependent variable and let (x1 . x1 . xk ) is a random vector with a joint probability distribution such that 1. xk ) denote the k regressors.2.1) x = B . Assumption 2. x2 . xk . and focus on the probabilistic foundation of the regression model and its projection approximation.1 (y. k: j For most of our analysis it is unimportant whether the regressors x come from continuous or discrete distributions.
2 The conditional mean exists if E jyj < 1: For a rigorous de…nition see Section 2.2. When x has a continuous distribution with density fx (x) then m (x) is de…ned for those values of x for which fx (x) > 0: In the example presented in Figure 2. See Chapter 16.S. m (x) can have arbitrary shape.73. The two density curves show the e¤ect of gender on the distribution of wages. Take a closer look at the density functions displayed in Figure 2. Figure 2. holding the other variables constant. with a college degree and 1015 years of potential work experience. we start with f (y j x) .1. from the population of white nonmilitary wage earners in the U. In general. 3 The support of a random vector x is the closed set of points for which its distribution F (x) is increasing in all elements of x: 1 9 . These values are the conditional means of U. education and experience. gender.S. it is useful to have numerical measures of the di¤erence. These are indicated in Figure 2. An important summary measure is the conditional mean2 Z 1 m (x) = E (y j x) = yf (y j x) dy: (2.1: Wage Densities for White College Grads with 1015 Years Work Experience To illustrate. The regression function m (x) is de…ned for values of x in the support3 of x: Thus when x has a discrete distribution then m (x) is de…ned for those values of x with positive probability. and conditional for white nonmilitary wages earners with a college degree and 1015 years of work experience). While it is easy to observe that the two densities are unequal. These are nonparametric density estimates using a normal kernel with the bandwidth selected by crossvalidation. These are conditional density functions – the density of hourly wages conditional on race. although in some cases an economic model may dictate a speci…c shape restriction (such as monotonicity) or a speci…c functional form (such as linearity). These are asymmetric (skewed) densities. wages in 2004 (conditional on gender.1 displays the density1 of hourly wages for men and women. You can see that the right tail of the density is much thicker than the left tail.16.22. the conditional density of y given x: Figure 2.1.3 Conditional Mean To study how the distribution of y varies with the variables x in the population. the mean wage for men is $27.2) 1 The function m (x) varies with the vector x and is thus a function from Rk to R: The conditional mean m (x) is sometimes called the regression function.1 by the arrows drawn to the xaxis. and that for women is $20. The data are from the 2004 Current Population Survey.
the dashed line is a linear projection approximation which will be discussed in Section 2. Assuming for simplicity that this is the true joint distribution. When the distribution of the control variable takes on multiple values or is continuous. Mathematically. the mean is not necessarily a good summary of the central tendency.2: Log Wage Densities for White College Grads with 1015 Years Work Experience The comparisons in Figures 2.4 is that conditional expectations can be quite nonlinear. this is equivalent to measuring the central tendency by the conditional geometric mean exp (E (log y j x)). Figure 2.36. The di¤erence in the mean log wage is a more robust measure of the typical wage gap than the di¤erence in the untransformed wage means.3 displays a scatter plot5 of log wages against education levels. To illustrate.2 are facilitated by the fact that the control variable (gender) is binary.A. the solid line displays the conditional expectation of log wages varying with education. 6 In the population of white nonmilitary male wage earners with 12 years of education.91. degree in mean log hourly wages is 0. wage regressions typically use log wages as a dependent variable rather than the level of wages. which implies a 30% average wage di¤erence for this population. 4 10 . For example.78 and $18.21 and 2. respectively) drawn in with the arrows. The main lesson to be learned at this point from Figure 2.2 shows the density of log hourly wages for the same population.30.9. As another example. then comparisons become more complicated.4 displays the conditional mean6 of log hourly wages as a function of labor market experience. The conditional expectation function is close to linear.1 are $24.which is a common feature of many economic variables. the conditional geometric means for the densities in Figure 2. For this reason.36. Figure 2. 5 White nonmilitary male wage earners with 1015 years of potential work experience. We see that the conditional mean is strongly nonlinear and nonmonotonic. The solid line is the conditional mean.D. respectively. implying an average 36% di¤erence in wage levels. and a Ph. The main point to be learned from Figure 2. Of particular interest to graduate students may be the observation that di¤erence between a B.1 and 2.3 is that the conditional expectation is a useful summary of the central tendency of the conditional distribution when the control variable takes multiple values. The di¤erence between the mean log wage of men and women is 0. When a distribution is skewed. with mean log hourly wages (3. Figure 2. Figure 2. In this context it is often convenient to transform the data by taking the (natural) logarithm4 .
4.1 Properties of the regression error e: Under Assumption 2.1 are left to Exercise 2.4. and so its properties are derived from this construction.3: Scatter Plot and Conditional Mean of Log Wages Given Education 2.1.4 Regression Error The regression error e is de…ned as the di¤erence between y and its conditional mean (2. E (e j x) = E ((y m(x)) j x) = E (y j x) = m(x) m(x) = 0: E (m(x) j x) Proofs of the remaining parts of Theorem 2.1: By the de…nition of e and the linearity of conditional expectations.1.1.2) evaluated at the random vector x: e = y m(x): By construction. E(xe) = 0: Proof of Theorem 2. this yields the formula y = m(x) + e: (2.1.2. E(e) = 0: 3. We now discuss some of these properties.Figure 2. 1. E (e j x) = 0: 2. 11 . Theorem 2. x).3) It is useful to understand that the regression error is derived from the joint distribution of (y.4. E (h(x)e) = 0 for any function h ( ) such that Eh(x)2 < 1 4.
12 . since the conditional mean is restricted to equal zero.4) The parameter 2 is also known as the variance of the regression error. Typically and generally. As a simple example. e and x are jointly dependent. not a model. but it is not generic feature of regression. The prediction error is e = y m(x). even though the conditional mean of e is zero. These equations hold true by de…nition. This holds regardless of the joint distribution of (y. It is quite important to understand. for the conditional mean of e is 0 and thus independent of x.5 Best Predictor Given a realized value of x. x): We state this formally in the following result.Figure 2. This equation is sometimes called a conditional mean restriction. even though E (e j x) = 0: 2. we can view m(x) as a predictor or forecast of y. because no restrictions have been placed on the joint distribution of the data. A nonstochastic measure of the magnitude of the prediction error is the expectation of the squared error. It turns out that the the conditional mean is a good predictor of y in the sense that it has the lowest mean squared error among all predictors. It is important to understand that this is a framework. that it does not imply that the distribution of e is independent of x: Sometimes the assumption “e is independent of x” is added as a convenient simpli…cation. or mean squared error E (y m (x))2 = Ee2 2 : (2. A regression model imposes further restrictions on the permissible class of regression functions m (x) : The condition E (e j x) = 0 is the key implication of the conditional mean model.4: Log Hourly Wage as a Function of Experience The equations y = m(x) + e E (e j x) = 0: are often stated jointly as the regression framework. however. suppose that y = xu where x and u are independent and Eu = 1: Then E (y j x) = x so the regression equation is y = x + e where e = x(u 1): Yet e is not independent of x. which is random. The property is also sometimes called mean independence.
1: Since y = m(x) + e.1 and that for women is 10.2.5. and price dispersion. the mean squared error using g (x) is E (y g (x))2 = E (e + m (x) = Ee2 + E (m (x) Ee2 = E (y g (x))2 g (x))) + E (m (x) g (x))2 g (x))2 = Ee2 + 2E (e (m (x) m (x))2 where the third equality uses Theorem 2.Theorem 2. Indeed. The righthandside after the third equality is minimized by setting g (x) = m (x).5. but is also a di¤erence in spread.1 The conditional variance of y given x is 2 (x) = var (y j x) = E y2 j x = E (y = E e2 j x E (y j x))2 j x (E (y j x))2 Generally. including income and wealth distribution. or treat it as a nuisance parameter (a parameter not of primary interest).1. One way to think about As an example of how the conditional variance depends on observables. they are also somewhat more dispersed.6.4. E (y g (x))2 E (y m (x))2 : Proof of Theorem 2. Speci…cally. The perverse consequences of a narrowminded focus on the mean has been parodied in a classic joke: 13 . it does not provide information about the spread of the distribution.1.5.1 Conditional Mean as Best Predictor Let m (x) = E (y j x) be the conditional mean and let g (x) be any other predictor of y given x: Under Assumption 2. This may be unfortunate as dispersion is relevant to many economic topics. we can see that the density for men’ wages is somewhat more spread out than that for women. the conditional standard deviation for men’ wages is s 12. The conditional standard deviation is its square root (x) = 2 (x) is that it is the conditional mean of e2 given x. compare the conditional wage densities for men and women displayed in Figure 2. De…nition 2. A common measure of the dispersion is the conditional variance. economic inequality. 2.6 Conditional Variance While the conditional mean is a good measure of the location of a conditional distribution. So while men have higher average wages. treat it as a constant 2 (x) = 2 .3. yielding the …nal inequality. while the density for women’ s s wages is somewhat more peaked. 2 (x) is a nontrivial function of x and can take any form subject to the restriction p 2 (x): that it is nonnegative. The di¤erence between the densities is not just a location shift.1. Many econometric studies focus on the conditional mean m(x) and either ignore the conditional variance 2 (x).
but it is unfortunately backwards. It may be helpful to notice that by using iterated expectations the unconditional variance can be written as the expected conditional error variance 2 = E e2 = E E e2 j x =E 2 (x) : Thus 2 is wellde…ned whether or not the error is homoskedastic or heteroskedastic. 2 In the general case where 2 (x) depends on x we say that the error e is heteroskedastic. we will still frequently impose the homoskedasticity assumption when making theoretical investigations into the properties of regression techniques.An economist was standing with one foot in a bucket of boiling water and the other foot in a bucket of ice. and describe heteroskedasticity as an exception or deviance. not the converse. the economist in question ignored variance! 2. recall Figure 2.” Clearly. he replied. This description has in‡ uenced many generations of economists. and it is therefore quite advantageous for teaching and learning. The correct view is that heteroskedasticity is generic and “standard” while homoskedasticity is unusual and excep. that homoskedasticity is never imposed because it is believed to be a correct feature of an empirical regression.) Older textbooks also tend to describe homoskedasticity as a component of a correct regression speci…cation.1 The error is homoskedastic if E e2 j x = does not depend on x. Some older or introductory textbooks describe heteroskedasticity as the case where “the variance of e varies across observations” This is a poor and confusing de…nition. When asked how he felt. De…nition 2. 14 . It should always be remembered. tional. 2 (x) Even when the error is heteroskedastic we still de…ne the unconditional variance 2 of the error e as in (2. “On average I feel just …ne. De…nition 2.2 The error is heteroskedastic if E e2 j x = depends on x.7 Homoskedasticity and Heteroskedasticity 2 (x) An important special case obtains when the conditional variance of the regression error is a constant and independent of x.7. The reason is that in many cases homoskedasticity greatly simpli…es the theoretical calculations. This is called homoskedasticity.4). The default in empirical work should be to assume that the errors are heteroskedastic.1 and how the variance of wages varies between men and women. In apparent contraction to the above statement. however. but rather because of its simplicity.7. to understand that heteroskedasticity is the case where the conditional variance 2 (x) depends on the variables x: (Once again. It is more constructive .
A @ . we call this the homoskedastic linear regression model.8 Linear Regression An important special case of (2.6) 0 1 is a k 1 coe¢ cient vector.1) has been rede…ned as the k 1 vector 0 1 1 B x2 C B C x = B . xk With this rede…nition. k 1 (2. C =@ . assuming that . A . the …rst element7 of the vector x is the intercept. This is called the linear regression model. then the mean equation is m(x) = x1 = x where 0 1 + x2 2 + + xk k (2.3) is when the conditional mean function m (x) is linear in x (or linear in functions of x): In this case we can write the mean equation as m(x) = 0 + x1 1 + x2 2 + + xk k: Notationally it is convenient to write this as a simple function of the vector x. We call this the “constant”and the corresponding coe¢ cient is called the “intercept” Equivalently.5) . C: (2.2. Thus (2. t 15 . Homoskedastic Linear Regression y = x0 + e E e2 j x E (e j x) = 0 = 2 7 The order doesn’ matter. B . An easy way to do so is to augment the regressor vector x by listing the number “1” as an element. then x1 = 1. It could be any element.7) Linear Regression y = x0 + e E (e j x) = 0 If in addition the error is homoskedastic.
1 Q = E (xx0 ) is invertible. 16 . In particular. Theorem 2. the linear equation of the previous section is empirically unlikely to be accurate.5. In this section we derive a speci…c approximation with a simple interpretation.9.9) is 0= @ S( ) = @ 2E (xy) + 2E xx0 : (2.9) as 2E (xy) = 2E xx0 dividing by 2. The matrix Q is sometimes called the design matrix. In practice it is more realistic to view the linear speci…cation (2.9) This has a unique solution under the following condition. Assumption 2. a linear predictor for y given x is x0 for some 2 Rk . its functional form is typically unknown.9.8) is called the Linear Projection Coe¢ cient.1 showed that the conditional mean m (x) is the best predictor in the sense that it has the lowest mean squared error among all predictors. as in experimental settings the researcher is able to control Q by manipulating the distribution of the regressors x: Rewriting (2. To be precise. By extension. we can de…ne a linear approximation to the conditional mean function as the linear function with the lowest mean squared error among all linear predictors.6) as an approximation. we obtain the solution for . and then inverting the k k matrix E (xx0 ) . The mean squared error of this predictor is 2 S( ) = E y x0 : The best linear predictor of y given x is de…ned by …nding the vector which minimizes S( ): De…nition 2. The quadratic structure of S( ) means that we can solve explicitly for prediction error can be written out as a quadratic function of : S( ) = Ey 2 2 0 E (xy) + 0 : The mean squared E xx0 The …rstorder condition for minimization (from Appendix A.2. where minimizes the mean squared error S( ) = E y The minimizer = argmin S( ) 2Rk x0 2 : (2.1 The Best Linear Predictor of y given x is x0 .9 Best Linear Predictor While the conditional mean m(x) = E (y j x) is the best predictor of y among all functions of x.
x) we can de…ne a linear equation (2. or the linear projection of y onto x: In general we call equation (2.1 is presented below.10).1 and 2.2.10) It is worth taking the time to understand the notation involved in the expression (2.1.9.9. alternative expressions such as E(xy) 1 0 are incoherent and incorrect. it is important not to misinterpret the generality of this statement. We call x0 the best linear predictor of y given x. Rewriting. x0 is the best linear predictor for y: The projection error is e=y x0 : (2.10).12) is de…ned as the best linear predictor. No additional assumptions are required.9.13) and (2. Linear Projection Model y = x0 + e: E (xe) = 0 = E xx0 1 E (xy) 17 .1 Linear Projection Coe¢ cient Under Assumptions 2.12) exist and are unique. and are discussed in Chapter 11. However.9.14) A complete proof of Theorem 2. Therefore. The following are important properties of the model.9.9. E (xe) = 0: (2.1. Theorem 2.1. These structural models require alternative estimation methods.11) and (2. We have shown that under mild regularity conditions.2 Properties of Linear Projection Model Under Assumptions 2. In contrast.1 may be false.9. the linear projection coe¢ cient equals = E xx0 1 E (xy) : (2. 2 = E e2 < 1. for any pair (y. otherwise they are distinct.11) The error e from the linear prediction equation is equal to the error from the regression equation when (and only when) the conditional mean is linear in x. In this case (2. E (xx0 ) is a k k matrix and E (xy) is a k 1 column vector. E(xx0 ) or E (xy) (E (xx )) Given the de…nition of in (2.12) the linear projection model.1 and 2.Theorem 2. we obtain a decomposition of y into linear predictor and error y = x0 + e: (2.10) may not hold and the implications of Theorem 2. The linear equation (2. in many economic models the parameter may be de…ned within the model.12) with the properties listed in Theorem 2.12) This completes the derivation of the model.2. Thus the linear model (2. then (2.12) exists quite generally.
First. Even so.15) for j = 1 is the same as E (e) = 0: (2.1 and 2.1 E jxj yj Ex2 j 1=2 Ey 2 1=2 < 1: 18 . there is no unique solution to the equation E xx0 = E (xy) : (2.9. E ( 0 x)2 > 0: Equivalently. the best linear predictor x0 still identi…ed. One solution is to set = E xx0 E (xy) where A denotes the generalized inverse of A (see Appendix A. (2.2. this situation must be excluded. The key is invertibility of Q. 0 k matrix Q = E (xx0 ) is 0 Q =E 0 xx0 =E 0 x 2 so Q by construction is positive semide…nite. this is a good reason to always include a constant in any regression.9. there cannot exist a nonzero vector such that 0 x = 0 identically.Equation (2.9.2.) It is also useful to observe that since cov(xj . it is useful to note that Assumption 2.16) Thus the projection error has a mean of zero when the regression contains a constant. Invertibility and Identi…cation The vector (2. the regressor vector x typically contains a constant. Theorem 2. (When x does not have a constant.10) exists and is unique as long as the k invertible.16) together imply that the variables xj and e are uncorrelated.2.1. :::. e) = E (xj e) E (xj ) E (e) .17). It is invertible if and only if it is positive de…nite.5). then (2. e. In this case (2. As it is desireable for e to have a zero mean. x1 = 1. Otherwise. which requires that for all nonzero .15) for j = 1. k. all of which yield an equivalent best linear predictor x0 . :::. Proof of Theorem 2. Observe that for any nonzero 2 Rk .1 shows that the linear projection coe¢ cient is identi…ed (uniquely determined) under Assumptions 2. this is not guarenteed.17) When Q is not invertible there are multiple solutions to (2.g. In this case the coe¢ cient is not identi…ed as it does not have a unique value.18) Note that for j = 1. one for each regressor.1 We …rst show that the moments E (xy) and E (xx0 ) are …nite and well de…ned.15)(2.14) is equivalent to E (xj e) = 0 (2. by the CauchySchwarz Inequality (C.5).14) is a set of k equations.1 implies that E kxk2 = E x0 x = k X j=1 Ex2 < 1: j (2. This occurs when redundant variables are included in x: In order for to be uniquely de…ned. k: As in (2.3) and Assumption 2. In other words.
Assumption 2. since E (e) = 0 from (2. (2.20) we …nd y y = (x 19 0 x) + e. x0 E xx0 E xx0 1 = I and Ia = a. and (2.Thus the elements in the vector E (xy) are well de…ned and …nite. It follows that e = y x0 as de…ned in (2. we …nd = y 0 x : Subtracting this equation from (2. note that the jl’ element th of E (xx0 ) is E (xj xl ) : Observe that E jxj xl j Ex2 j 1=2 Ex2 l 1=2 < 1: Thus all elements of the matrix E (xx0 ) are …nite.9.18) we see that 2 E x0 E kxk2 k k2 < 1: (2. Taking expectations of this equation.1.5). An application of the CauchySchwarz Inequality (C.2. Using the de…nitions (2. Note the Schwarz Inequality (A.19) Using Minkowski’ Inequality (C. Equation (2.1.10).11) and (2. Next.19) we …nd s E e2 1=2 2 1=2 2 1=2 = E y Ey 2 x0 1=2 + E x0 < 1 establishing (2.21) . E (xy) = 0 2. we …nd Ey = E + Ex0 + Ee or y = + 0 x where y = Ey and x = Ex. and the matrix properties that AA E (xe) = E x y = E (xy) completing the proof. Rearranging.20) where is the intercept and x does not contain a constant.13).11) is also well de…ned. and write the regression equation in the format y = + x0 + e (2.10 Regression Coe¢ cients Sometimes it is useful to separate the intercept from the other regressors.6) implies (x0 )2 kxk2 k k2 and therefore combined with (2.10) states that = (E (xx0 )) 1 E (xy) which is well de…ned since (E (xx0 )) 1 exists under Assumption 2.3) shows that for any j E jxj ej Ex2 j 1=2 Ee2 1=2 <1 1 and therefore the elements in the vector E (xe) are well de…ned and …nite.16).
it turns out that the best linear predictor and the best linear approximation are identical. z) = E (x covariance matrix of x: 8 Ex) (z Ez)0 : We call cov (x. or equivalently are meanzero random variables.8).9) plus an application of conditional expectations we can …nd that = = E xx0 E xx0 1 1 E (xm(x)) E (xy) (2.8) selects to minimize the expected squared prediction error. = E (x x ) (x 1 x) 0 1 E (x x) y y = cov (x.26) (2. (2.22) (2.1 In the linear projection model y= then = and = cov (x. while the best linear approximation (2. thus by the formula for the linear projection model.11 Best Linear Approximation There are alternative ways we could construct a linear approximation x0 to the conditional mean m(x): In this section we show that one natural approach turns out to yield the same answer as the best linear predictor. Thus (2. We conclude that the de…nition (2. x) the 20 . (2.25) selects to minimize the expected squared approximation error. otherwise d( ) > 0: We can also view the meansquare di¤erence d( ) as a densityweighted average of the function (m(x) x0 )2 : We can then de…ne the best linear approximation to the conditional m(x) as the function x0 obtained by selecting to minimize d( ) : = argmin d( ): 2Rk (2.27) (see Exercise 2.24) The function d( ) is a measure of the deviation of x0 from m(x): If the two functions are identical then d( ) = 0. x) 1 y 0 x + x0 + e. y) a function only of the covariances8 of x and y: Theorem 2. (They are centered at their means. We start by de…ning the meansquare approximation error of x0 to m(x) as the expected squared di¤erence between x0 and the conditional mean m(x) d( ) = E m(x) x0 2 : (2. The covariance matrix between vectors x and z is cov (x. x) cov (x.23) cov (x. The di¤erence is that the best linear predictor (2.21) is also a linear projection.25) can be viewed as an alternative motivation for the linear projection coe¢ cient.10.) Because x x is uncorrelated with e. By the same steps as in (2. Despite the di¤erent de…nitions.25) equals (2.14).a linear equation between the centered variables y y and x x . y) : 2.25) Similar to the best linear predictor we are measuring accuracy by expected squared error.
This implies that on average a child’ height is more mediocre than his or her parent’ height. This motivation has limited merit in econometric applications since economic data is typically nonnormal. it follows that (e. the heights of children and parents in a stable environment) then the regression slope in a linear projection is always less than one.28) where y equals the height of the child and x equals the height of the parent.28) as E (y j x) = (1 ) +x : ) This shows that the expected height of the child is a weighted average of the population average height and the parents height x. he was estimating the conditional mean of children’ height given their parents height. where he examined the joint distribution of the stature (height) of parents and children. This is an alternative (and traditional) motivation for the linear regression model. and since they are jointly normal and uncorrelated (since E (xe) = 0) they are also independent (see Appendix B. x) are jointly normally.2. We have shown that when (y.22) = (1 so we can write the conditional mean of (2. and the label regression has stuck to this day to describe most conditional relationships. Galton called s s this phenomenon regression to the mean. Independence implies that E (e j x) = E (e) = 0 and E e2 j x = E e2 = 2 which are properties of a homoskedastic linear conditional regression.12 Normal Regression Suppose the variables (y. To be more precise. x) are jointly normally distributed. they satisfy a normal linear regression y = x0 + e where e N (0. 2 ) is independent of x. Assume that y and x have the same mean. One of Galton’ fundamental insights was to recognize that if the marginal distributions of y s and x are the same (e. Galton s discovered that this conditional mean was approximately linear with a slope of 2/3. x) is jointly normal. so that y = x = : Then from (2. Consider the best linear predictor of y on x y = x0 + e: = E xx0 1 E (xy) : Since the error e is a linear transformation of the normal vector (y. E¤ectively. with the weight equal to the regression slope : When the height 21 .13 Regression to the Mean The term regression originated in an in‡ uential paper by Francis Galton published in 1886. 2.g. x).9). take the simple regression y= +x +e (2.
it follows that var(y) = Then var(y) < var(x) if and only if 2 2 var(x) + var(e): var(e) var(x) <1 which is not implied by the simple condition j j < 1: The regression fallacy arises in related empirical situations. Suppose you sort families into groups by the heights of the parents. is strictly less than 1. the standard deviation. with corr(x. so that var(y) = var(x). y) = corr(x. In addition to inventing the concept of regression. stable. 22 . he found clear and persuasive evidence for convergence “toward mediocrity” Of course. y): var(x) By the properties of correlation (e. the slope coe¢ cient must be less than one. A common error –known as the regression fallacy –is to infer from < 1 that the population is converging9 . y) 1. The message is that such plots are misleading for inferences about convergence. published in 1933. The regression fallacy is subtle. when he divided the stores into groups based on 19201921 pro…ts. y) = 1 only in the degenerate case y = x: Thus if we exclude degeneracy. Secrist carefully and with great detail documented that in a sample of department stores over 19201930. It cannot be anything else. and then plot the average heights of each subsequent generation over time. This means that on average a child’ height is more mediocre (closer to the population average) s than the parent’ s.g. then this slope is the simple correlation of y and x: Using (2. The regression fallacy is to incorrectly s conclude that the population is converging. His work on heredity made a signi…cant intellectual advance by examing the joint distributions of observables. If the population is stable. Sir Francis Galton Sir Francis Galton (18221911) of England was one of the leading …gures in late 19th century statistics. allowing the application of the tools of mathematical statistics to the social sciences. 9 A population is converging if its variance is declining towards zero. the regression property implies that the plots lines will converge –children’ height will be more average than their parents. he is credited with introducing the concepts of correlation. 1 corr(x. This is a fallacy because we have shown that under the assumption of constant (e. there was no discovery – regression to . nonconverging) means and variances. the mean is a necessary feature of stable distributions. It is easy for intelligent economists to succumb to its temptation.distribution is stable across generations.23) = cov (x.g. Since x and e are uncorrelated.28). equation (B.7) in the Appendix). and the bivariate normal distribution. and plotted the average pro…ts of these groups for the subsequent 10 years. In this book. A slope less than one does not imply that the variance of y is less than than the variance of x: Another way of seeing this is to examine the conditions for convergence in the context of equation (2. A famous example is The Triumph of Mediocrity in Business by Horace Secrist.
1) and set y = x2 : Note that y is a deterministic function of x! Now consider the linear projection of y on x and an intercept. In any event. the coe¢ cients error e are de…ned by linear projection. s From Theorem 2.) This regression takes the form x= +y +e : (2.29) is a valid regression. a common yet mistaken guess for the form of the reverse regression is to take the regression (2. and both equations exhibit regression to the mean. because it is a simple manipulation of the valid equation (2. (2. 2. Instead. It is not a causal relation. In a stable population we …nd that = corr(x. divide through by and rewrite to …nd the equation x= +y 1 1 e (2. suppose we take a normally distributed random variable x N (0. Instead. the slope in both s regressions (y on x.29) This is sometimes called the reverse regression.4 we know that the regression error has the property E (xe) = 0: Thus a linear regression is a linear projection. and intercept of . The trouble is that (2. In this equation.15 Limitations of the Best Linear Predictor Let’ compare the linear projection and linear regression models. However. Galton’ …nding was that when the variables are standardized.14 Reverse Regression Galton noticed another interesting feature of the bivariate distribution. and which are exactly the same as in the regression of y on x! The intercept and slope have exactly the same values in the forward and reverse regression! While this algebraic discovery is quite simple. and x and y) equals the correlation.30) suggesting that the regression of x on y should have a slope coe¢ cient of 1= instead of . the converse is not true as the projection error does not necessarily satisfy E (e j x) = 0: To see this in a simple example.28). not (2. it is counterintuitive.28). but a natural feature of all joint distributions. y) = = (1 ) = .4.1. There is nothing special about a regression of y on x: We can also regress x on y: (In his heredity example this is the best linear predictor of the height of parents given the height of their children.= rather than : What went wrong? Equation (2.30).30) is not a regression equation. Inverting a regression does not yield a regression.30) is perfectly valid.2. The intercept and slope may be calculated as = = = 1 E (x) E (x) E x2 1 E (x) E (x) E x2 1 0 1 E (y) E (xy) E x2 E x3 1 Thus the linear projection equation takes the form y= +x +e 23 .
5 for a constructed10 joint distribution of y and x. and Group 1 has a lower mean value of x than Group 2. and underpredicts for the rest. the solid lines are the conditional means and the straight dashed lines are the linear projections. In this example the linear predictor is a close approximation to the conditional mean. Figure 2. A defect with linear projection is that it leads to the incorrect conclusion that the e¤ect of x on y is di¤erent for individuals in the two Groups. we can augment the regressor vector x to include both experience and experience2 : The best linear predictor of log wages given these two variables can be called a quadratic projection.4 we display as well the quadratic projection. These two projections are distinct approximations to the conditional mean. The apparant di¤erence is a byproduct of a linear approximation The x in Group 1 are N(2. Most importantly. there are no changes in our methods or analysis. for those over 53 in age). 1).4. 1) where m(x) = 2x x2 =6: 10 24 . = 0 and e = x2 1: Observe that E (e) = E x2 1 = 0 and E (xe) = E x3 E (e) = 0. The separate linear projections of y on x for these two groups are displayed in the Figure by the dashed lines. In this example it is a much better approximation to the conditional mean than the linear projection. In Figure 2. it misses the strong downturn in expected wages for those above 35 years work experience (equivalently. yet e and x are uncorrelated! The point is that a projection error need not be a regression error. yet E (e j x) = x2 1 6= 0: In this simple example e is a deterministic function of x. The solid line is the nonlinear conditional mean of y given x: The data are divided in two – Group 1 and Group 2 – which have di¤erent marginal distributions for the regressor x. In the example of Figure 2.where = 1. since the resulting function is quadratic in experience: Other than the rede…nition of the regressor vector. and the conditional distriubtion of y given x is N(m(x).5: Conditional Mean and Two Linear Projections Another defect of linear projection is that it is sensitive to the marginal distribution of the regressors when the conditional mean is nonlinear. In Figure 2.3 and 2. so the linear projection is a poor approximation. It overpredicts wages for young and old workers. 1) and those in Group 2 are N(4.4 (the conditional mean of log hourly wages as a function of labor market experience) the conditional mean is quite nonlinear. Return for a moment to the joint distributions displayed in Figures 2. in Figure 2. In these …gures. However. We illustrate the issue in Figure 2.3 (the conditional mean of log hourly wages as a function of education) the conditional mean and linear projection are quite close to one another.4. This defect in the best linear predictor can be partially corrected through a careful selection of regressors. This conclusion is incorrect because in fact there is no di¤erence in the conditional mean function.
Theorem 6. Ash (1972).2 Identi…cation of the Conditional Mean If E jyj < 1. consider the unconditional mean = Ey. It is well de…ned and unique for all distributions for which E jyj < 1: Thus the mean is identi…ed from the distribution of y under the restriction E jyj < 1: Unless E jyj < 1.31) specializes to (2. y2 ) under the restrictions E jy1 j < 1.16. which establishes the existence of the conditional mean. E jy2 j < 1. and Ey2 6= 0: Unless these conditions hold. Thus is identi…ed from the distribution of (y1 . Theorem 2. Typically. then there is a set S such that P(S ) = 1 and m(x) = h(x) for x 2 S : The function m(x) is called the conditional mean and is written m(x) = E (y j x) : See. The function m(x) de…ned by (2. consider the ratio of means = 1 = 2 where 1 = Ey1 and 2 = Ey2 . It is well de…ned when 1 and 2 are both …nite and 2 6= 0. in the sense that if h(x) satis…es (2. x) have a joint density. identi…cation only holds under a set of restrictions.to a nonlinear mean. Theorem 2. Identi…cation is a necessary precondition for estimation.16 Identi…cation of the Conditional Mean When a parameter is uniquely determined by the distribution of the observable variables.1 Existence of the Conditional Mean If E jyj < 1 then there exists a function m(x) such that for all measurable sets X E (1 (x 2 X ) y) = E (1 (x 2 X ) m(x)) : (2. Theorem 2.3. and an identi…cation theorem carefully describes a set of such conditions which are su¢ cient for identi…cation. 2. For example.2) when (y. and is thus is identi…ed.31). we say that the parameter is identi…ed. Under which conditions is m(x) de…ned and unique? The answer is provided in the following deep result from probability theory. combined with di¤erent marginal distributions for the conditioning variables.31) The function m(x) is almost everywhere unique.1 shows that the conditional mean function m(x) exists and is almost everywhere unique.3. it is meaningless to attempt to estimate Ey: As another example. for example. but if 2 = 0 then is unde…ned. the conditional mean m(x) = E (y j x) is identi…ed for x 2 S where P(S ) = 1: 25 . it is meaningless to estimate : Now consider the conditional mean m(x) = E (y j x).16.16.
1. y) = 3 x2 + y 2 on 0 x 1. then Ey = and var(y) = : Exercise 2. and the conditional distribution of y given x is Poisson: exp ( x0 ) (x0 )j .1 Prove parts 2. x 2 R. then E (e j x) = 0: Exercise 2.Exercises Exercise 2. 0 y 1: 2 Compute the coe¢ cients of the best linear predictor y = + x + e: Compute the conditional mean m(x) = E (y j x) : Are the best linear predictor and conditional mean di¤erent? Exercise 2. 2.2 . and E (e j x) = 0. and E e2 j x = e is independent of x: Exercise 2.11 True or False.10 True or False. If y = x0 + e and E(xe) = 0. E (e j x) = 0. ::: Compute E (y j x) and var (y j x) : Does this justify a linear regression model of the form y = x0 + e? j Hint: If P (y = j) = exp( j! ) .4 x=1 .1 .3 Find E (y j x) . then e is independent of x: Exercise 2.5 Suppose that y is discretevalued. If y = x0 + e. then E x2 e = 0: Exercise 2. Exercise 2.9 True or False. then E x2 e = 0: Exercise 2. If y = x0 + e and E (e j x) = 0.7 True or False. If y = x + e.3 Show that 2 (x) is the best predictor of e2 given x: (a) Write down the meansquared error of a predictor h(x) for e2 : (b) What does it mean to be predicting e2 ? (c) Show that 2 (x) minimizes the meansquared error and is thus the best predictor. 3 and 4 of Theorem 2. P (y = j j x) = j! j = 0.1.8 True or False. and E (xe) = 0. If y = x + e. and have the following joint probability distribution y=0 y=1 x=0 . E y 2 j x and var (y j x) for x = 0 and x = 1: Exercise 2.12 Let x be a random variable with g xj . taking values only on the nonnegative integers. s) = 0 if and only if m = and s = 26 . Exercise 2. 2 2.4.6 Let x and y have the joint density f (x. x 2 R.2 Suppose that the random variables y and x only take the values 0 and 1. a constant.4 Use y = m(x) + e to show that var (y) = var (m(x)) + 2 Exercise 2. then = Ex and x (x )2 2: 2 2 = var(x): De…ne : = Show that Eg (x j m.
do not just use the generalized inverse formula.13 Suppose that and x3 = 1 + 2 x2 is a linear function of x2 : 1 1 x = @ x2 A x3 0 (a) Show that Q = E (xx0 ) is not invertible. namely that for d( ) = E m(x) then = argmin d( ) 2Rk x0 2 = = E xx0 E xx0 1 1 E (xm(x)) E (xy) : Hint: To show E (xm(x)) = E (xy) use the law of iterated expectations. 27 .27). (b) Use a linear transformation of x to …nd an expression for the best linear predictor of y given x. (Be explicit.Exercise 2.) Exercise 2.26)(2.14 Show (2.
(3. Most of the discussion will be algebraic. :::.5): ^ = argmin Sn ( ): 2Rk 28 . An estimator for is the minimizer of (3. The empirical analog of the expected squared error (3.2 Least Squares Estimator In Section 2. and de…ne the estimator of the parameter as the minimizer of the empirical function.9 we derived and discussed the best linear predictor of y given x for a pair of random variables (y.1) (3.4) E (xy) : When a parameter is de…ned as the minimizer of a function as in (3. with questions of distribution and inference defered to later chapters. x) 2 R Rk . n) this model takes the form yi = x0 + ei i where is de…ned as = argmin S( ). 3.5) 1 SSEn ( ) n n X i=1 yi x0 i 2 is called the sumofsquarederrors function. 2Rk (3.2). xi : i = 1.1 Introduction In this chapter we introduce the popular leastsquares estimator.3) is the sample average squared error Sn ( ) = = where SSEn ( ) = 1X yi n i=1 n x0 i 2 (3.3) (3.Chapter 3 The Algebra of Least Squares 3. Applied to observations from a random sample with observations (yi .2) 2 S( ) = E yi and = E xx0 x0 i 1 . a standard approach to estimation is to construct an empirical analog of the function. and called this the linear projection model.
we may equivalently de…ne ^ as the minimizer of SSEn ( ): Hence ^ is commonly called the leastsquares estimator of .1 displays an example sumofsquared errors function SSEn ( ) for the case k = 2: The leastsquares estimator ^ is the the pair ( ^ 1 . Figure 3.6) i @ i=1 i=1 P By inverting the k k matrix n xi x0 we …nd an explicit formula for the leastsquares estimator i i=1 ^= n X i=1 xi x0 i ! 1 n X i=1 xi yi ! : (3. ^ 2 ) minimizing this function.7) de…ned in (3. as Sn ( ) is a scale multiple of SSEn ( ). 3.2).3 Solving for Least Squares n X i=1 n X i=1 n X i=1 To solve for ^ .1: SumofSquared Errors Function Alternatively.Figure 3. To visualize the quadratic function Sn ( ). expand the SSE function to …nd SSEn ( ) = 2 yi 2 0 xi yi + 0 xi x0 i which is quadratic in the vector argument . and can This is the natural estimator of the best linear prediction coe¢ cient also be called the linear projection estimator. The …rstordercondition for minimization of SSEn ( ) is n n X X @ 0= Sn ( ^ ) = 2 xi yi + 2 xi x0 ^ : (3. 29 .
Least Squares Estimation De…nition 3. excluding 30 . consider the data used to generate Figure 2.4) writes the projection coe¢ cient as an explicit function of the population moments E (xi yi ) and E (xi x0 ) : Their moment estimators are the sample moments i b E (xi yi ) = 1X xi yi n i=1 i=1 n The moment estimator of replaces the population moments in (3. equation (3. Alternatively.3.Early Use of Matrices The earliest known treatment of the use of matrix methods to solve simultaneous systems is found in Chapter 8 of the Chinese text The Nine Chapters on the Mathematical Art.4) with the sample moments: ^ = = b E xi x0 i b E (xi yi ) ! 1 ! n n 1X 1X 0 xi xi x i yi n n i=1 i=1 ! 1 n ! n X X 0 xi xi xi yi i=1 i=1 1 b E xi x0 i = n 1X xi x0 : i n = which is identical with (3.7). These are white male wage earners from the March 2004 Current Population Survey.3. written by several generations of scholars from the 10th to 2nd century BCE.1 The leastsquares estimator ^ is ^ = argmin Sn ( ) 2Rk where and has the solution ^= 1X yi Sn ( ) = n i=1 n X i=1 n x0 i 2 xi x0 i ! 1 n X i=1 xi yi ! : To illustrate leastsquares estimation in practice.
This was a vexing and common problem in astronomical measurement.9) is called a bivariate regression as there are only two variables. As the equations cannot be solved exactly. which can be solved by “ordinary”methods. He proposed the sum of squared error criterion. Let yi be log wages and xi be an intercept and years of education. Let’ redo the s example. (3. This sample has 988 observations. we obtain the estimates \ log(W age) = 0:959 + 0:100 education + 0:053 experience 0:095 experience2 =100: (3. Legendre proposed leastsquares as a solution to the algebraic problem of solving a system of equations when the number of equations exceeded the number of unknowns. but now including all levels of experience. with 1015 years of potential work experience.6) is a system of k equations with k unknowns. the …rstorder conditions (3. and allows a more detailed investigation. Equation (3. Legendre’ goal was to select s to make the set of errors as small as possible. Including as regressors years of experience and its square (experience 2 =100) (we divide by 100 to simplify reporting). As he noted.9) An interpretation of the estimated equation is that each year of education is associated with an 11% increase in mean wages. Hence the method became known as Ordinary Least Squares and to this day we still use the abbreviation OLS to refer to Legendre’ estimation method. This expanded sample includes 6578 observations.10) These estimates suggest a 10% increase in mean wages per year of education.1) is a set of n equations with k unknowns. As viewed by Legendre. s 31 . and derived the algebraic solution presented above. A multivariate regression has two or more regressors. AdrienMarie Legendre The method of leastsquares was …rst published in 1805 by the French mathematician AdrienMarie Legendre (17521833).military. Then 1X x i yi = n i=1 n 2:951 42:405 and Thus 1X xi x0 = i n i=1 n 1 14:136 14:136 205:826 : ^ = = 1 14:136 14:136 205:826 1: 33 0:115 : 1 2:951 42:405 (3.8) We often write the estimated equation using the format \ log(W age) = 1:33 + 0:115 education: (3.
3. We can stack these n equations together as y1 = x0 + e1 1 y2 = x0 + e2 2 .6) implies that n 1X xi ei = 0: ^ (3.5 Model in Matrix Notation For many purposes. yn = x0 + en : n 32 .7). . .11) and (3.13): ^2 = 1X 2 ei : ^ n i=1 n (3. using (3. including computation. which can cause confusion. we de…ne the …tted or predicted value and the residual ei = yi ^ yi = yi ^ x0 ^ : i (3. one for each observation. 1X xi ei = ^ n i=1 n 1X xi yi n i=1 n 1X xi yi n i=1 n x0 ^ i 1X xi x0 ^ i n i=1 n n = = = 1 n = 0: n 1X xi yi n i=1 n X i=1 xi yi n X i=1 1X xi x0 i n i=1 n X i=1 xi x0 i ! 1 n X i=1 xi yi ! xi yi When xi contains a constant.4 Least Squares Residuals yi = x 0 ^ ^ i As a byproduct of estimation. Equation (3. These two variables are ^ frequently mislabeled.11) Note that yi = yi + ei : We make a distinction between the error ei and the residual ei : The ^ ^ ^ error ei is unobservable while the residual ei is a byproduct of estimation. we can construct an estimator for 2 as de…ned in (2. it is convenient to write the model and statistics in matrix notation. an implication of (3.12) is a system of n equations. and hold true for all linear regression estimates.13) 3. Given the residuals.12) n i=1 To see this by a direct calculation.12) is 1X ei = 0: ^ n i=1 n Thus the residuals have a sample mean of zero and the sample correlation between the regressors and the residual is zero. These are algebraic results. The linear equation (2.
Now de…ne
Observe that y and e are n 1 vectors, and X is an n can be compactly written in the single equation
B B y=B @
0
y1 y2 . . . yn
1
C C C; A
B B X=B @
0
x0 1 x0 2 . . . x0 n
1
C C C; A
k matrix. Then the system of n equations
B B e=B @
0
e1 e2 . . . en
1
C C C: A
y = X + e: Sample sums can also be written in matrix notation. For example
n X
xi x0 = X 0 X i xi yi = X 0 y:
i=1 n X i=1
Therefore ^ = X 0X
1
X 0y :
(3.14)
Using matrix notation we have simple expressions for most estimators. This is particularly convenient for computer programming, as most languages allow matrix notation and manipulation.
Important Matrix Expressions y = X +e ^ = X 0X e = y X^ ^ ^2 = n
1 0 1
X 0y
e e: ^^
3.6
Projection Matrices
P = X X 0X
1
De…ne the matrices and M = In = In
X0
X X 0X P
1
X0
where I n is the n n identity matrix. P and M are called projection matrices due to the property that for any matrix Z which can be written as Z = X for some matrix (we say that Z lies in the range space of X); then PZ = PX and M Z = (I n P)Z = Z 33 PZ = Z Z = 0: = X X 0X
1
X 0X
=X
=Z
As an important example of this property, partition the matrix X into two matrices X 1 and X 2 so that X = [X 1 X 2 ] : Then P X 1 = X 1 and M X 1 = 0: It follows that M X = 0 and M P = 0; so M and P are orthogonal. The matrices P and M are symmetric and idempotent1 . To see that P is symmetric, P0 = = X X 0X X0
0 1
X0
0
X 0X
0 0 1
1 0
(X)0
= X
X 0X
X0
1
= X (X)0 X 0 = P: To establish that it is idempotent, X X 0X
1 1 1
X0
PP
=
X0
X X 0X
1
1
X0
= X X 0X = X X 0X = P: Similarly, M 0 = (I n and MM
X 0X X 0X X0
X0
P )0 = I n
P =M
= M (I n = M = M;
P)
MP
since M P = 0: Another useful property is that tr P tr M = k = n k (3.15) (3.16)
(See Appendix A.4 for de…nition and properties of the trace operator.) To show (3.15) and (3.16), tr P = tr X X 0 X = tr = k; and tr M = tr (I n
1
1
X0
X 0X
1
X 0X
= tr (I k )
P ) = tr (I n )
tr (P ) = n
k:
A matrix P is symmetric if P 0 = P : A matrix P is idempotent if P P = P: See Appendix A.8.
34
Given the de…nitions of P and M ; observe that y = X ^ = X X 0X ^ and e=y ^ X^ = y P y = M y: (3.17) Furthermore, since y = X + e and M X = 0; then e = M (X + e) = M e: ^ Another way of writing (3.17) is y = (P + M ) y = P y + M y = y + e: ^ ^ This decomposition is orthogonal, that is y 0 e = (P y)0 (M y) = y 0 P M y = 0: ^^ The projection matrix P is also known as the hat matrix due to the equation y = P y. The ^ 1 i’ diagonal element of P = X (X 0 X) X 0 is th hii = x0 X 0 X i
1 1
X 0y = P y
(3.18)
xi
(3.19)
which is called the leverage of the i’ observation. The hii take values in [0; 1] and sum to k th
n X i=1
hii = k
(3.20)
(See Exercise 3.6).
3.7
Residual Regression
X = [X 1 X 2]
1 2
Partition and = Then the regression model can be rewritten as y = X1 Observe that the OLS estimator of = ( X 2 ]: OLS estimation can be written as
0 1; 1
:
+ X2
2
+ e:
(3.21)
0 0 2)
can be obtained by regression of y on X = [X 1 (3.22)
y = X 1 ^1 + X 2 ^2 + e ^
Suppose that we are primarily interested in 2 ; not in 1 ; and we want to obtain the OLS subcomponent ^ 2 : In this section we derive an alternative expression for ^ 2 which does not involve estimation of the full model. De…ne 1 M 1 = In X1 X0 X1 X0 : 1 1 Recalling the de…nition M = I n X (X 0 X)
1
X 0 ; observe that X 0 M 1 = 0 and thus 1
1
M 1M = M
X1 X0 X1 1 35
X0 M = M : 1
It follows that M 1 e = M 1 M y = M y = e: ^ ^ Using this result, if we premultiply (3.22) by M 1 we obtain ^ M 1y = M 1X 1 ^ 1 + M 1X 2 ^ 2 + M 1e ^2 + e ^ = M 1X 2
(3.23)
the second equality since M 1 X 1 = 0. Premultiplying by X 0 and recalling that X 0 e = 0; we 2 2^ obtain 0 X 0 M 1 y = X2 M 1 X 2 ^ 2 + X 0 e = X 0 M 1 X 2 ^ 2 : 2^ 2 2 Solving, ^2 = X 0 M 1X 2 2 an alternative expression for ^ 2 : Now, de…ne ~ X 2 = M 1X 2 y = M 1 y; ~ (3.24) (3.25)
1
X 0 M 1y 2
the leastsquares residuals from the regression of X 2 and y; respectively, on the matrix X 1 only. Since the matrix M 1 is idempotent, M 1 = M 1 M 1 and thus ^2 = = = X 0 M 1X 2 2 ~0 ~ X 2X 2
1 1
X 0 M 1y 2
1
X 0 M 1M 1X 2 2
X 0 M 1M 1y 2
~0 ~ X 2y :
~ This shows that ^ 2 can be calculated by the OLS regression of y on X 2 : This technique is called ~ residual regression. Furthermore, using the de…nitions (3.24) and (3.25), expression (3.23) can be equivalently written as ~ ^ y = X 2 ^ 2 + e: ~ ~ Since ^ 2 is precisely the OLS coe¢ cient from a regression of y on X 2 ; this shows that the residual ~ vector from this regression is e, numerically the same residual vector as from the joint regression ^ (3.22). We have proven the following theorem.
Theorem 3.7.1 FrischWaughLovell In the model (3.21), the OLS estimator of 2 and the OLS residuals e ^ may be equivalently computed by either the OLS regression (3.22) or via the following algorithm: 1. Regress y on X 1 ; obtain residuals y ; ~ ~ 2. Regress X 2 on X 1 ; obtain residuals X 2 ; ~ 3. Regress y on X 2 ; obtain OLS estimates ^ 2 and residuals e: ~ ^
In some contexts, the FWL theorem can be used to speed computation, but in most cases there is little computational advantage to using the twostep algorithm. Rather, the primary use is theoretical. 36
as they are constructed based on ^ the full sample including yi . In this case. We can do this by de…ning the leaveoneout OLS estimator of as that obtained from the sample excluding the i’ observation: th 1 10 1 0 X X 1 ^ ( i) = @ 1 xj x0 A @ xj yj A j n 1 n 1 j6=i j6=i = X0 ( 1 i) X ( i) X( i) y ( i) (3.26) where X ( i) and y ( value for yi is i) are the data matrices omitting the i’ row. and X 2 is the vector of observed regressors. Ragnar Frisch Ragnar Frisch (18951973) was cowinner with Jan Tinbergen of the …rst Nobel Memorial Prize in Economic Sciences in 1969 for their work in developing and applying dynamic models for the analysis of economic problems. and business cycle theory. 3. The leaveoneout predicted th yi = x0 ^ ( ~ i 37 i) . yi y on x2i x2 : ! 1 n ! n X X ^2 = (x2i x2 ) (x2i x2 )0 (x2i x2 ) (yi y) : i=1 i=1 Thus the OLS estimator for the slope coe¢ cients is a regression with demeaned data. 0 1 0 0 1 0 0 1 0 : X2 X2 y which are “demeaned” The FWL theorem says that ^ 2 is the OLS estimate from a regression of . Partition X = [X 1 X 2 ] where X 1 = is a vector of ones.8 Prediction Errors The leastsquares residual ei are not true prediction errors. Frisch made a number of foundational contributions to modern economics beyond the FrischWaughLovell Theorem. including formalizing consumer theory. is the demeaning formula for regression. M1 = I Observe that ~ X 2 = M 1X 2 = X2 = X2 and y = M 1y ~ = y = y y.A common application of the FWL theorem. production theory. . which you may have seen in an introductory econometrics course. A proper prediction for yi should be based on estimates constructed only using the other observations.
One use of the prediction errors is to estimate the outofsample mean squared error ~2 = = 1X 2 ei ~ n i=1 i=1 n n 1X (1 n hii ) 2 2 ei : ^ This is also known as the mean squared prediction error. p ~ 2 is the Proof of Equation (3.5 states that for nonsingular A and vector b A This implies X 0X and thus ^( i) bb0 1 =A 1 + 1 b0 A 1 b 1 A 1 bb0 A 1 : xi x0 i 1 = X 0X 1 + (1 hi ) 1 X 0X 1 xi x0 X 0 X i 1 = = X 0X X 0X + (1 xi x0 i 1 1 X 0y X 0X 1 xi yi 1 X 0y 1 1 1 1 xi yi 1 hi ) X 0X (1 (1 X 0X xi x0 X 0 X i hi ) 1 1 1 X 0y 1 xi yi hi yi = ^ = ^ = ^ xi yi + (1 X 0X X 0X X 0X hi ) yi xi x0 ^ i x0 ^ + hi yi i hi ) hi ) xi (1 xi ei ^ 1 the third equality making the substitutions ^ = (X 0 X) remainder collecting terms.27) we can simplify the expression for the prediction error: e i = yi ~ = yi = (1 x0 ^ ( i i) x0 ^ + (1 i hii ) 1 1 hii ) hii ei ^ 1 x0 X 0 X i 1 xi ei ^ (3. X 0 y and hi = x0 (X 0 X) i 1 xi . and does not really require n separate estimations.27) where hii are the leverage values as de…ned in (3. Using (3.27). and the 38 . Its square root ~ = prediction standard error.19).2) from Appendix A.and the leaveoneout residual or prediction error is ei = yi ~ A convenient alternative expression for ^ ( ^( i) i) yi : ~ (derived below) is 1 =^ (1 hii ) X 0X 1 xi ei ^ (3. The Sherman– Morrison formula (A.28) = ei + (1 ^ hii ) ei : ^ A convenient feature of this expression is that it shows that computation of ei is based on a simple ~ linear operation.
From (3. A large hii means that observation i is unusual in the sense that the regressor xi is far from its sample mean. it is common to see a reported summary measure of …t. it may be useful to examine the corresponding observation or observations. This is especially useful when revising empirical work at a later date. and a record describing the revision process. ~ To determine if any individual observations are in‡ uential in this sense. you should scrutinize all observations more carefully.27)(3. we can focus on the predicted values. we can directly discover if a speci…c observation i is in‡ uential for a coe¢ cient estimate of interest. the recorded values for the observations should be examined.3. as it would seem unlikely that data error would be con…ned to a single observation. In this case it is unclear how to proceed.) If an observation is determined to be in‡ uential. sometimes called outliers. We call this observation with large hii a leverage point.) It is also possible that an observation is correctly measured. If there is an error. x0 ^ ( i 1 i) = x0 X 0 X i xi ei ~ 3. We say that observation i is in‡ uential if its omission from the sample induces a substantial change in a parameter of interest.28) we know that ^ ^( i) = (1 = hii ) 1 1 X 0X 1 xi ei ^ X 0X xi ei : ~ By direct calculation of this quantity for each observation i. but unusual and in‡ uential. If In‡uence is large. If it is determined that an observation is incorrectly recorded. ~ e One way to think about this is that a large leverage value hii gives the potential for observation i to be in‡ uential. and this is a common cause of in‡ uential observations. The di¤erence between the fullsample and leaveoneout predicted values is yi ^ yi = x0 ^ ~ i = hii ei ~ which is a simple function of the leverage values hii and prediction errors ei : Observation i is ~ in‡ uential for the predicted value if jhii ei j is large. then the observation is typically deleted from the sample. a useful summary statistic is hii j~i j e j^i yi j y ~ = max In‡uence = max 1 i n 1 i n ~ ~ which scales the maximum change in predicted values by the prediction standard error. Other researchers will delete the observation from the sample. which requires that both hii and j~i j are large. It is quite possible that there is a data error. 39 .10 Measures of Fit When a leastsquares regression is reported in applied economics. measuring how well the regressors explain the observed variation in the dependent variable. who believe it reduces the integrity of reported empirical results.9 In‡ uential Observations Another use of the leaveoneout estimator is to investigate the impact of in‡ uential observations. so judgement must be employed. (It is useful to keep the source data in its original form. a revised data …le after cleaning. (As this is an informal comparison there is no magic threshold. what should be done? Certainly. A leverage point is not necessarily in‡ uential as this also requires that the prediction error ei is large. The motivation for this choice is to prevent the results from being skewed or determined by individual observations. but this practice is viewed skeptically by many researchers. For a more general assessment. Some researchers will try to alter the speci…cation to properly model the in‡ uential observation. When this is done it is proper empirical practice to document such choices.
their usefulness should not be exaggerated. both of which are routinely seen in applied econometrics. One mistaken belief is that R2 is a measure of “…t” This belief is . the frequent reporting of R2 and R seems to have led to exaggerated beliefs regarding their usefulness. i i as the true relationship is deterministic! You can also calculate that the population 2 = =(2 + ) which can be arbitrarily close to 1 if is large. as an incorrectly speci…ed model can still have a reasonably high R suppose the truth is that xi N (0. 1) and yi = xi + x2 : If we regress yi on xi (incorrectly omitting i x2 ). accurate estimates of regression coe¢ cients is quite possible when sample sizes are large. then R2 ' 2 = :8. even if the R2 is quite small. 2 The bottom line is that while R2 and R have appropriate uses. incorrect. In contrast. and the mean prediction error ~ 2 = n n e2 . i=1 ~i A related and commonly reported statistic is the coe¢ cient of determination or Rsquared: Pn y)2 y ^2 2 i=1 (^i R = Pn =1 ^2 y)2 y i=1 (yi where ^2 = y is the sample variance of yi : R2 1X (yi n i=1 n y)2 can be viewed as an estimator of the population parameter 2 = var (x0 ) i =1 var(yi ) 2 2 y Theil’ estimator R is better estimator of 2 than the unadjusted estimator R2 because it can be s expressed as a ratio of biascorrected variance estimates. For example. He also wrote an early and in‡ uential advanced textbook on econometrics (Theil. or the validity of statistical inferences based on the estimated regression.Some common summary measures are based on scaled or transformed estimates of the meanP squared error 2 : These include the sum of squared errors n e2 . the mean squared error i=1 ^iq P Pn 2 of sample variance n 1 i=1 ei = ^ 2 . 2 Unfortunately. Another mistaken belief is that a high R2 is important in order to justify interpretation of the regression coe¢ cients. and the root mean squared error n 1 n e2 (sometimes ^ i=1 ^i 1 P called the standard error of the regression). if = 8. the best linear predictor is yi = 1 + xi + ei where ei = x2 1: This is a misspeci…ed regression. 1971). This is mistaken as there is no known association between the level of R2 and the “correctness” of a regression. the accuracy of the coe¢ cient estimates. or if = 18 then R2 ' 2 = :9. An alternative estimator of 2 proposed by Theil called Rbarsquared or adjusted R2 is P (n 1) n e2 ^ 2 R =1 Pn i=1 i 2 : (n k) i=1 (yi y) 2 Henri Theil Henri Theil (19242000) of Holland invented R and twostage least squares. where 2 = var(yi ): A high 2 or R2 means that forecasts of y using x0 or x0 b will be quite y accurate relative to the unconditional mean. 2 40 . 2 . In this sense R2 can be a useful summary measure for an outofsample forecast or policy experiment. For example. This example shows that a regression with a high R2 can actually have poor …t.
) = log 2 2 (2 2 )1=2 i=1 = n log 2 2 2 1 2 2 SSEn ( ): The maximum likelihood estimator (MLE) ( ^ . It is not completely accidental. In this sense it is not surprising that the leastsquares estimator can be motivated as either the minimizer of a sample loss function or as the maximizer of a likelihood function. It may seem surprising that the MLE ^ is numerically equal to the OLS estimator. and distribution theory. We can also …nd the MLE for 2 : Plugging ^ into the loglikelihood we obtain log L ^ . maximizing the likelihood is identical to minimizing SSEn ( ). 2 ): Since the latter is a function of only through the sum of squared errors SSEn ( ). i 2 N 0. Maximization with respect to 2 2 = n log 2 2 2 2 n 1 X 2 i=1 e2 : ^i yields the …rstorder condition n 1 2 + 2^ 2 ^2 n n X i=1 @ log L ^ . ^ 2 = @ 2 Solving for ^ 2 yields the MLE for 2 2 e2 = 0: ^i 1X 2 ei ^ ^ = n 2 i=1 which is the same as the moment estimator (3.11 Normal Regression Model The normal regression model is the linear regression model under the restriction that the error ei is independent of xi and has the distribution N 0. in this case the normal regression model.13). 41 . The loglikelihood function for the normal regression model is ! n X 1 1 2 0 2 exp yi xi log L( . the least squares estimator ^ is also known as the MLE.3. the MLE for equals the OLS estimator: Due to this equivalence. Hence ^ mle = ^ ols . The leastsquares estimator minimizes a particular sample loss function – the sum of squared error criterion – and most loss functions are equivalent to the likelihood of a speci…c parametric distribution. 2 : : Normal regression is a parametric model. 2 : We can write this as ei j xi This assumption implies yi j xi N x0 . ^ 2 ) maximize log L( . where likelihood methods can be used for estimation. despite emerging from quite di¤erent motivations. testing.
He claimed to have discovered the method in 1795 at the age of eighteen. Interest in Gauss’ approach was reinforced by Laplace’ simultaneous s s discovery of the central limit theorem. but did not publish the result until 1809. and derived the least squares estimator as the maximum likelihood estimator for this model. 42 .Carl Friedrich Gauss The mathematician Carl Friedrich Gauss (17771855) proposed the normal regression model. which provided a justi…cation for viewing random disturbances as approximately normal.
Find X 0 e: ^ 2^ Exercise 3. (3. .30).31) y = d1 + d2 +e + d1 + e Can all three regressions (3. Is one more general than the other? Explain the relationship between the parameters in (3. It is used for categorical data. s) = n ^ and ^ 2 are the sample mean and variance. Let d1 and d2 be vectors of 1’ and 0’ with the i0 th element of d1 s s s.20). that hii in (3. (a) In the OLS regression y = d1 ^ 1 + d2 ^ 2 + u. ^ 2 ) be the values such that g n (^ . (c) Letting = ( 1 2 )0 .) Exercise 3. Consider an alternative set of regressors Z = XC. equaling 1 and that of d2 equaling 0 if the person is a man. s) : Show that Exercise 3. Suppose that there are n1 men and n2 women in the sample. ^ show that ^ 1 is sample mean of the dependent variable among the men of the sample (y 1 ).5 Let y = X(X 0 X) ^ 1 X 0 y: Find the OLS coe¢ cient from a regression of y on X: ^ Exercise 3.1 Let y be a random variable with g y. and (3.31).Exercises Exercise 3.19) sum to k: (Hint: Use (3. and that ^ 2 is the sample mean among the women (y 2 ).30) as y = X + e: Consider the assumption E(xi ei ) = 0.29) (3. (b) Describe in words the transformations y X = y = X 43 d1 y 1 d1 X 1 d2 y 2 d2 X 2 : . Pn i=1 g (yi . Is there any content to this assumption in this setting? Exercise 3. (b) Compute 0d 1 and 0d . such as an individual’ gender. where C is a k k nonsingular matrix.30) and (3. 2 = Ey and y (y )2 2 = var(y): De…ne : 1 = 2 Let (^ .31) be estimated by OLS? Explain if not. write equation (3.4 Let e be the OLS residual from a regression of y on X: Find the OLS coe¢ cient ^ from a regression of e on X: ^ Exercise 3.30) and (3. and the reverse if the person is a woman.6 Show ()3.2 Consider the OLS regression of the n 1 vector y on the n k matrix X. Consider the three regressions y = y = + d1 1 1 + d2 2 2 +e (3. Thus.7 A dummy variable takes on only the values 0 and 1.15). each column of Z is a mixture of some of the columns of X: Compare the OLS estimates and residuals from the regression of y on X to the OLS estimates from the regression of y on Z: Exercise 3.30) (3. m.29). (a) Compare regressions (3.3 Let e be the OLS residual from a regression of y on X = [X 1 X 2 ]. ^ 2 ) = 0 where g n (m.31). 2 where is an n 1 is a vector of ones.8 Let d1 and d2 be de…ned as in the previous exercise.
Prove that the OLS estimate computed using this additional observation is ^ n+1 = ^ n + 1 1+ 1 x0 (X 0 X n ) xn+1 n n+1 X0 Xn n 1 xn+1 yn+1 x0 ^ n : n+1 Exercise 3.dat contains a random sample of 528 individuals from the 1985 Current Population Survey by the U. Census Bureau. 0 otherwise) (coded 1 if Hispanic.S. experience x2i . and experiencedsquared x3i = x2 2i (and a constant).11 The data …le cps85. 0 otherwise) potential labor market experience (in years) union status (coded 1 if in union job. The …le contains observations on nine variables. Let ei be the OLS residual and yi the predicted value from the regression. 0 otherwise) marital status (coded 1 if married. A new observation (yn+1 . Report the OLS estimates. 0 otherwise) (coded 1 if nonwhite and nonHispanic. 0 otherwise) hourly wage (in dollars) Estimate a regression of wage yi on education x1i . 0 otherwise) gender (coded 1 if female. Numerically calculate ^ ^ the following: (a) (b) (c) (d) (e) (f) (g) Pn Pn ^ i=1 ei ^ i=1 x1i ei ^ i=1 x2i ei 2 ^ i=1 x1i ei 2 ^ i=1 x2i ei Pn Pn Pn Pn Pn ^^ i=1 yi ei ^2 i=1 ei (h) R2 Are these calculations consistent with the theoretical properties of OLS? Explain. listed in the …le cps85.9 Let ^ n = (X 0 X n ) X 0 y n denote the OLS estimate when y n is n 1 and X n is n n n k. V1 V2 V3 V4 V5 V6 V7 V8 V9 = = = = = = = = = education (in years) region of residence (coded 1 if South.10 Prove that R2 is the square of the simple correlation between y and y : ^ Exercise 3.(c) Compare ~ from the OLS regresion y =X ~+e ~ with ^ from the OLS regression y = d1 ^ 1 + d2 ^ 2 + X ^ + e: ^ 1 Exercise 3. 44 .pdf. xn+1 ) becomes available.
(the regression of the residuals on the residuals). regress x1i on (1.Exercise 3.12 Using the data from the previous problem. x2 ). Regress yi on (1. calculate the equation R2 and sum of squared errors. restimate the slope on education using the residual regression approach. Report the estimate from this regression. 45 . x2i . In the secondstage residual regression. x2i . and regress 2i 2i the residuals on the residuals. Do they equal the values from the initial OLS regression? Explain. x2 ). Does it equal the value from the …rst OLS regression? Explain.
and the specialized case of homoskedastic regression. Assumption 4. where the conditional variance E e2 j xi = 2 (xi ) = 2 i i is unrestricted. and an invertible design matrix Q = E xi x0 > 0: i We will consider both the general case of heteroskedastic regression.1. where the conditional variance is constant. E e2 j xi = i is independent of xi : 2 (xi ) = 2 (4.1. Assumption 4.1) (4.Chapter 4 Least Squares Regression 4.1. :::.2) and Ex2 < 1 ji for j = 1. xi ) come from a random sample and satisfy the linear regression equation yi = x0 + ei i E (ei j xi ) = 0: The variables have …nite second moments 2 Eyi < 1 (4.1 Linear Regression Model The observations (yi . k. Throughout this chapter we maintain the following.1.2 Homoskedastic Linear Regression Model In addition to Assumption 4.3) 46 .1 Introduction In this chapter we investigate some …nitesample properties of leastsquares applied to a random sample in the the linear regression model. In the latter case we add the following assumption.
3 Mean of LeastSquares Estimator In this section we show that the OLS estimator is unbiased in the linear regression model. . n = 100 and n = 800: The vertical line marks the true value of the projection coe¢ cient. we need to have a way to characterize the sampling distribution of ^ . . . y) = 1 exp 2 xy 1 (log y 2 log x)2 exp 1 (log x)2 2 and let ^ be the slope coe¢ cient estimate from a bivariate regression on observations from this joint density.Figure 4. the density function of ^ was computed and plotted in Figure 4. 47 . .4) @ A @ A @ i A .2) note that 0 1 0 1 0 1 . .1 for sample sizes of n = 25. In general. its distribution is a complicated function of the joint distribution of (yi . xi ) and the sample size n: To illustrate the possibilities in one example. .1: Sampling Density of ^ 4. C E (y j X) = B E (yi j X) C = B E (yi j xi ) C = B x0 C = X : (4. To learn about the true value of from the sample estimate ^ . . Using simulation methods. let yi and xi be drawn from the joint density f (x. . . . We start in the next sections by deriving the mean and variance of ^: 4. and therefore has a sampling distribution. . . As the sample size increases the density becomes more concentrated about the population coe¢ cient.2 Sampling Distribution The leastsquares estimator is random. From the …gure we can see that the density functions are dispersed and highly nonnormal. since it is a function of random data.1)(4. B C B C B . Under (4. . . .
0 . we have shown the following theorem.1 Mean of LeastSquares Estimator In the linear regression model (Assumption 4. conditioning on X. Theorem 4. It says that ^ is unbiased for any realization of the regressor matrix X. (4. conditioning on X. . we …nd that E ^ =E E ^jX = : + e into the formula Another way to calculate the same result is as follows. . meaning that the distribution of ^ is centered at . .4). and the properties of the matrix inverse.14). E ^jX = E = = = X 0X 1 1 1 C C B B E (e j X) = B E (ei j X) C = B E (ei j xi ) C = 0: A A @ @ .6). .7) says that the estimator is conditionally unbiased.5). which is a stronger result. 1 0 . . 1 (4.3. the linearity of expectations. .1. .1) E ^jX = and E( ^ ) = : (4. and (4.Similarly By (3.5) X 0y j X X 0X X 0X : X 0 E (y j X) X 0X Applying the law of iterated expectations to E ^ j X = . .8) (4. 48 .14) for ^ to obtain ^ = = = X 0X X 0X 1 1 X 0 (X + e) X 0X + X 0X 1 1 X 0e (4. .7) Equation (4. Equation (4. Insert y = X (3. E ^ jX = E = = 0: X 0X 1 1 X 0e j X X 0X X 0 E (e j X) Using either derivation.8) says that the estimator is unbiased.6) and the + X 0X X 0 e: This is a useful linear decomponsition of the estimator ^ into the true parameter 1 stochastic component (X 0 X) X 0 e: Using (4.
@ . For any r 1 random vector Z de…ne the r r covariance matrix var(Z) = E (Z = EZZ 0 EZ) (Z EZ)0 (EZ) (EZ)0 and for any pair (Z. 49 . . then E e2 j xi = i and we have the simpli…cation D = In 2 2 i = 2 : In general.1) and the second is (4. 0 0 1 (4. . .9) . we can write ^ = A0 y where A = X (X 0 X) var ^ j X = A0 DA = It is useful to note that X DX = a weighted version of X X. . A . X) de…ne the conditional covariance matrix var(Z j X) = E (Z E (Z j X)) (Z E (Z j X))0 j X : n matrix The conditional covariance matrix of the n 1 regression error e is the n D = E ee0 j X : The i’ diagonal element of D is th E e2 j X = E e2 j xi = i i while the ij 0 th o¤diagonal element of D is E (ei ej j X) = E (ei j xi ) E (ej j xj ) = 0: where the …rst equality uses independence of the observations (Assumption 1. however. C: 1 n . . var(A0 y j X) = var(A0 e j X) = A0 DA: In particular. .4 Variance of Least Squares Estimator In this section we calculate the conditional variance of the OLS estimator.5.10) and thus X 0X n X i=1 1 X 0 DX X 0 X 1 : xi x0 i 2 i.2). For any matrix n r matrix A = A(X). 0 0 2 n 2 i In the special case of the linear homoskedastic regression model (4.3).4.. 2 = B . :::. (4. D need not necessarily take this simpli…ed form. Thus D is a diagonal matrix with i’ diagonal element 2 : th i 0 2 1 0 0 1 2 B 0 0 C 2 B C D = diag 2 .
In the homoskedastic linear regression model (Assumption 4. yet V ^ converges to a constant matrix. the covariance matrix simpli…es to V^= 1 0 XX n 1 2 : 4. and thus ~ = A0 y Now consider the class of estimators of can be written as where A is an n k function of X. but it will help provide continuity between the …nitesample treatment of this chapter and the asymptotic treatment of later chapters. it will be useful to work p with the conditional variance of the scaled estimator n ^ V^ = var p n ^ jX X 0 DX 1 = n var ^ j X = n X 0X = 1 0 XX n 1 X 0X 1 1 0 X DX n 1 0 XX n 1 : This rescaling might seem rather odd. 50 . so X 0 DX = : Theorem 4. and the variance matrix simpli…es to V^= 1 0 XX n 1 2 2. then for any linear estimator ~ = A0 y we have E ~ j X = A0 E (y j X) = A0 X .5 GaussMarkov Theorem which are linear functions of the vector y.1.2). since E (y j X) = X . To see this. D = I n 0 X X 2 .4.1).9). says that the leastsquares estimator is the best choice when the errors are homoskedastic.Rather than working with the variance of the unscaled estimator ^ . As we will see in the next chapter. as the leastsquares estimator has the smallest variance among all unbiased linear estimators. var ^ j X vanishes as n tends to in…nity.1. which we now present. V^ = var = p n ^ 1 jX 1 0 X DX n 1 0 XX n 1 1 0 XX n where D is de…ned in (4. In the special case of the linear homoskedastic regression model. The leastsquares estimator is the special case obtained by setting A = X(X 0 X) 1 : What is the best choice of A? The GaussMarkov theorem.1 Variance of LeastSquares Estimator In the linear regression model (Assumption 4.
5. We return to the issue of feasible implementation of GLS in Section 7.1. we saw in (4.1.2 is left for Exercise 4.10) that var ~ j X = var A0 y j X = A0 DA = A0 A 2 : the last equality using the homoskedasticity assumption D = I n 2 .1. The “best” unbiased linear estimator is obtained by …nding the matrix A such that A0 A is minimized in the positive de…nite sense. Let A be any n k function of X such that A0 X = I k : The variance 1 2 of the leastsquares estimator is (X 0 X) and that of A0 y is A0 A 2 : It is su¢ cient to show 1 1 0 0 that the di¤erence A A (X X) is positive semide…nite.2). In the linear regression model (Assumption 4. the leastsquares estimator is ine¢ cient. 51 .11) and is called the Generalized Least Squares (GLS) estimator. The justi…cation is limited because the class of models is restricted to homoskedastic linear regression and the class of potential estimators is restricted to linear unbiased estimators. the best (minimumvariance) unbiased linear estimator is the leastsquares estimator ^ = X 0X 1 X 0y 2.so ~ is unbiased if (and only if) A0 X = I k : Furthermore.1). The second part of the theorem shows that in the (heteroskedastic) linear regression model.5. The proof of Theorem 4.1.3. Set C = A X (X 0 X) : Note that X 0 C = 0: Then we calculate that A0 A X 0X 1 = C + X X 0X 1 1 0 C + X X 0X 1 1 X 0X 1 = C 0C + C 0X X 0X + X 0X = C 0C + X 0X 1 1 X 0C 1 X 0X X 0X X 0X The matrix C 0 C is positive semide…nite (see Appendix A.7) as required. Within the class of linear unbiased estimators the best estimator is (4.1. Theorem 4. This latter restriction is particularly unsatisfactory as the theorem leaves open the possibility that a nonlinear or biased estimator could have lower mean squared error than the leastsquares estimator.5. Proof of Theorem 4.1. This result does not suggest a practical alternative to leastsquares. the best unbiased linear estimator is ~ = X 0D 1 X 1 X 0D 1 y (4. This estimator is infeasible as the matrix D is unknown.11) The …rst part of the GaussMarkov theorem is a limited e¢ ciency justi…cation for the leastsquares estimator.1 GaussMarkov 1. In the homoskedastic linear regression model (Assumption 4.
::.4. for a single observation i. we obtain var (^i j X) = E e2 j X = (1 e ^i hii ) 2 2 2 (4.19).17) and (3.18) that we can write the residuals in vector notation as e=y ^ 1 X^ = My = Me where M = I n X (X 0 X) X 0 is the matrix which projects on the the space orthogonal to the columns of X: Using the properties of conditional expectation E (^ j X) = E (M e j X) = M E (e j X) = 0 e and var (^ j X) = var (M e j X) = M var (e j X) M = M DM e where D is de…ned in (4.12) simplies to var (^ j X) = M e In particular. What are some properties of the residuals ei = yi x0 ^ and prediction errors ei = yi ^ ~ i at least in the context of the linear regression model? Recall from (3. Thus the residuals are heteroskedastic even if the errors are homoskedastic. Set ~ ^ M = diagf(1 Then we can write the prediction errors as e = M My ~ = M M e: We can calculate that E (~ j X) = M M E (e j X) = 0 e and var (~ j X) = M M var (e j X) M M = M M DM M e which simpli…es under homoskedasticity to var (~ j X) = M M M M e = M MM The variance of the i’ prediction error is then th var (~i j X) = E e2 j X e ~i = (1 hii ) = (1 hii ) 2 h11 ) 1 .9). we can write the prediction errors ei = (1 hii ) 1 ei in vector notation. (1 hnn ) 1 g 2 : 1 1 (1 2 hii ) (1 : hii ) 1 2 52 . We can simplify this expression under the assumption of conditional homoskedasticity E e2 j xi = i In this case (4.13) since the diagonal elements of M are 1 hii as de…ned in (3.6 Residuals x0 ^ ( i i) .12) : : (4. Similarly.
n then E ^2 j X = = the …nal equality by (3. Its method of moments estimator (MME) is the sample average of the squared residuals: ^2 = 1X 2 ei ^ n i=1 n and equals the MLE in the normal regression model (3.7 Estimation of Error Variance The error variance 2 = Ee2 can be a parameter of interest. 4. even in a heteroskedastic regression i or a projection model.13). the ratio of the number of estimated coe¢ cients to the sample size. en )0 = M From our above calculations.18).14) MM 1=2 2 (4. The order of the bias depends on k=n. In the linear regression model we can calculate the mean of ^ 2 : From (3. The studentized residuals are ei = (1 and in vector notation e = (e1 . ^ M e: (4.15) and thus these rescaled residuals have the same bias and variance as the original errors when the latter are homoskedastic. This calculation shows that ^ 2 is biased towards zero. 1 1 1 1 1 0 e e = e0 M M e = e0 M e = tr e0 M e = tr M ee0 : ^^ n n n n n (4. the properties of projection matrices and the trace operator.16). under homoskedasticity. :::. var (e j X) = M and var (ei j X) = E e2 j X = i 2 1=2 1=2 hi ) 1=2 ei . Adding the assumption of conditional homoskedasticity E e2 j xi = i (4. 2 measures the variation in the “unexplained” part of the regression.16) simpli…es to 1 tr M 2 n k 2 n . 53 .16) so that D = I n 2.A residual with proper variance can be obtained by rescaling. observe that ^2 = Then E ^2 j X = = = 1 tr E M ee0 j X n 1 tr M E ee0 j X n 1 tr (M D) : n 2.
In this section we consider estimation of V ^ in the homoskedastic regression model (4.18) and the estimator s2 is unbiased for 2 : Consequently.490. Under homoskedasticity. the covariance matrix takes the relatively simple form V^= 1 0 XX n 1 2 : which is known up to the unknown scale 2 . so using (3. a classic method to obtain an unbiased estimator is by rescaling the estimator. For example.6) that E 2 jX = 2 (4. In the previous section we discussed three estimators of 2 : The most commonly used choice is s2 . this is not the only method to construct an unbiased estimator for 2 .19) and thus 2 is unbiased for 2 (in the homoskedastic linear regression model). we need an estimate of the covariance matrix V ^ of the leastsquares estimator.14).1)(4.20). The estimators are more likely to di¤er when n is small and k is large. De…ne n 1 X 2 s2 = ei : ^ (4. Note that E ^2 j X = = = 1X E e2 j X ^i n 1X (1 n i=1 i=1 n n hii ) 2 2 n k n By the above calculation.8 Covariance Matrix Estimation Under Homoskedasticity For inference. ^ . s.13).10). An alternative unbiased estimator can be using the studentized residuals ei from (4. leading to the classic covariance matrix estimator b0 V^= 1 0 XX n 1 s2 : (4.17) n k i=1 E s2 j X = E s2 = 2 2 (4. and all equal 0.20) 54 . the estimators ^ 2 . yielding the estimator n n 1X 1X 2 2 ei = (1 hii ) 1 e2 : ^i = n n i=1 i=1 You can show (see Exercise 4. Since the bias takes a scale form.3).2)(4.Another way to see this is to use (4. When the sample sizes are large and the number of regressors small. s2 and 2 are likely to be close. in the regression (3. 4. s2 is known as the “biascorrected estimator” for 2 and in empirical practice s2 is the most widely used estimator for 2 : Interestingly.
it is simple to calculate that V ^ is conditionally unbiased for V ^ under the assumption of homoskedasticity: b0 E V^ jX = 1 0 XX n 1 E s2 j X 1 2 1 0 XX = n = V ^: This estimator was the dominant covariance matrix estimator in applied econometrics in previous generations. b0 If the estimator (4. Recall that the general form for the covariance matrix is V^= 1 0 XX n 1 1 0 X DX n 1 0 XX n 1 : This depends on the unknown matrix D which we can write as D = diag 2 1 . but the regression error is heteroskedastic. and is still the default in most regression packages.20) may be quite biased when the homoskedasticity assumption fails.b0 Since s2 is conditionally unbiased for 2 . :::.9 Covariance Matrix Estimation Under Heteroskedasticity In the previous section we showed that that the classic covariance matrix estimator can be highly biased if homoskedasticity fails. The ratio of the true i i variance of the leastsquares estimator to the expectation of the variance estimator is V^ b0 E V^ jX 1 Pn x4 4 4 n i=1 i ' Exi = Exi : = 2 2 Ex2 1 Pn 2 Ex2 2 i i i=1 xi n (Notice that we use the fact that 2 = x2 implies 2 = E 2 = Ex2 :) This is the kurtosis of i i i i the regressor xi : As the kurtosis can be any number greater than one. 4. it is possible for V ^ 1 1 1 0 1 0 1 0 XX X DX XX : to be quite biased for the correct covariance matrix V ^ = n n n For example.20) is used. :::. suppose k = 1 and 2 = x2 (extreme heteroskedasticity). we could construct the unbiased estimator i V ideal = ^ = 1 0 XX n 1 0 XX n 1 1 1 0 X diag e2 . we conclude that the bias b0 of V ^ can be arbitrarily large. e2 j X : 1 n Thus D is the conditional mean of diag e2 . :::. 2 n = E ee0 j X = E diag e2 . e2 X 1 n n ! n 1X 1 0 xi x0 e2 XX i i n n i=1 1 0 XX n 1 1 : 55 . While this is an extreme and constructed example. e2 . the point is that the classic covariance matrix estimator (4. so the latter is an unbiased estimator for D: n 1 Therefore. :::. if the squared errors e2 were observable. In this section we show how to contruct covariance matrix estimators which do not require homoskedasticity.
^1 ^n e D = diag e2 . ~1 ~n D = diag e2 . and is sometimes called the EickerWhite or White 56 . e2 . b D = diag e2 . the prediction errors ei or ^ ~ the unbiased residuals ei . e2 . and V ^ are often called robust. e2 : 1 n Substituting these matrices into the formula for V ^ we obtain the estimators b V^ = = 1 0 XX n 1 0 XX n 1 1 1 1 0b 1 0 X DX XX n n ! n 1X 1 0 xi x0 e2 XX i ^i n n i=1 1 1 .Indeed. V ^ . e V^ = = = 1 0 XX n 1 0 XX n 1 0 XX n 1 1 1 1 0e 1 0 X DX XX n n ! n 1X 1 0 XX xi x0 e2 i ~i n n i=1 ! n 1X (1 hii ) 2 xi x0 e2 i ^i n i=1 1 1 0 XX n 1 . and introduced to econometrics by White (1980). e. :::. V ideal is not a feasible estimator. heteroskedasticityconsistent. and V^ = = = 1 0 XX n 1 0 XX n 1 0 XX n 1 1 1 0 1 0 X DX XX n n ! n 1X 1 0 xi x0 e2 XX i i n n i=1 ! n 1X 1 0 2 (1 hii ) xi xi ei ^ n i=1 1 1 1 1 0 XX n 1 : b e The estimators V ^ . The estimator V ^ was …rst developed by Eicker (1963). :::. E V ideal ^ jX = = = 1 0 XX n 1 0 XX n 1 0 XX n 1 1 1 1 0 X DX n ! n 1 0 1X 0 2 xi xi E ei j X XX n n i=1 ! n 1 X 1 1 0 0 2 XX xi xi i n n i=1 1 1 0 XX n 1 = V^ verifying that V ideal is unbiased for V ^ ^ Since the errors e2 are unobserved. :::.g. or heteroskedasticityb robust covariance matrix estimators. To construct a feasible ^ i estimator we can replace the errors with the leastsquares residuals ei .
and V ^ : Which should b0 you use? The classic estimator V ^ is typically a poor choice.7 It might seem rather odd to compare the bias of heteroskedasticityrobust estimators under the assumption of homoskedasticity. but it does give us a baseline for comparison. ! n 1 1 1 0 1 0 1X 0 2 b^ jX E V = XX xi xi E ei j X ^ XX n n n i=1 ! n 1 1 1 0 1 0 1X XX xi x0 (1 hii ) 2 XX = i n n n i=1 ! n 1 1 1 1 0 1 0 1X 1 0 2 2 XX XX xi x0 hii XX = i n n n n i=1 1 0 XX n = V ^: < 1 2 The inequality A < B when applied to matrices means that the matrix B A is positive de…nite. is quite complicated. this should not be a barrier. and in particular V ^ . using (4. this estimator is rescaled by multiplying by the ad hoc bias adjustment n corrected error variance estimator. For example. but they greatly simplify under the assumption of homoskedasticity (4. V ^ . V ^ . This calculation shows that V ^ is biased i i=1 downwards. e Similarly. are perferred based on their 4.13). in STATA. V ^ and V ^ . V ^ is the most commonly used. Unfortunately. as it is the most e straightforward and familiar. as it is only valid under the unlikely homoskedasticity restriction.10 Standard Errors b A variance estimator such as V ^ is an estimate of the variance of the distribution of ^ . Horn and Duncan (1975) as a reducedbias covariance matrix estimator.21) E V^ jX > n while the estimator V ^ is unbiased E V^ jX = 1 0 XX n 1 2 : (4. speci…cally 1 1 0 2 e XX (4.e covariance matrix estimator1 . the bias of the estimators V ^ . The estimator V ^ was introduced by Andrews (1991) based on the principle of leaveoneout crossvalidation. For example. and the estimator V ^ was introduced by Horn. b0 b e We have introduced four covariance matrix estimators. For this reason it is not typically used in contemporary econometb ric research. P b which holds here since n xi x0 hii is positive de…nite. b e In general. This is 1 Often. n k in analogy to the bias 57 . (again under homoskedasticity) we can calculate that V ^ is biased upwards. V ^ is implemented by selecting “Robust”standard errors and selecting the bias correction option “1=(1 h)” or using the vce(hc2) option. (See Exercise 4. V ^ .3). V ^ . Of the three robust estimators. standard regression packages set the classic estimator V ^ as the e default. . As V ^ and V ^ are simple to implement.22) b0 improved bias. A more easily interpretable measure of spread is its square root – the standard deviation. However.
standard errors ^: That is. It is also important to understand that a particular standard error may be relevant under one set of model assumptions. this arises when sets of regressors are included which are identically related. and 1 0 XX= n var ^ j X = 2 1 1 1 2 In this case 2 1 1 n = 1 2) n (1 1 : See Appendix A. This happens when the columns of X are linearly dependent. then ^ is not de…ned2 . A more relevant implication of near multicollinearity is that individual coe¢ cient estimates will be imprecise. but not under another set of assumptions.1 A standard error s( ^ ) for an realvalued estimator ^ is an estimate of the standard deviation of the distribution of ^ : When is a vector with estimate ^ and covariance matrix estimate n r rh for individual elements are the square roots of the diagonal elements of n s( ^ j ) = n 1V b ^ j =n 1=2 As we discussed in the previous section.10. there is some 6= 0 such that X = 0: Most commonly. this is rarely a problem for applied econometric practice. multicollinearity. b V^ i jj : 1V b 1V b ^. The more relevant situation is near multicollinearity. This is called strict multicollinearity. It is therefore important to understand what formula and method is used by an author when studying their work. We can see this most simply in a homoskedastic linear regression model with two regressors yi = x1i 1 + x2i 2 + ei . 4. For example. One implication of near singularity of matrices is that the numerical reliability of the calculations is reduced.e. De…nition 4. which is often called “multicollinearity” for brevity. there are multiple possible covariance matrix estimators. if X includes both the logs of two prices and the log of the relative prices. log(p1 ).5 for the de…ntion of the rank of a matrix.. we have a special name for estimates of their standard deviation. In extreme cases it is possible that the reported calculations will be in error. so standard errors are not unique. log(p2 ) and log(p1 =p2 ): When this happens. This de…nition is not precise. i. because we have not said what it means for a matrix to be “near singular” This is one di¢ culty with the de…nition and interpretation of . when the columns of X are close to linearly dependent. This is the situation when the X 0 X matrix is near singular. 58 .so important when discussing the distribution of parameter estimates.11 Multicollinearity If rank(X 0 X) < k. the applied researcher quickly discovers the error as the statistical software will be unable to construct (X 0 X) 1 : Since the error is discovered quickly.
since as approaches 1 the matrix becomes singular. the worse the precision of the individual coe¢ cient estimates. To understand his basic point. so there is no distortion in inference. The imprecision. What is happening is that when the regressors are highly dependent. Arthur S. you should notice how the estimation 1 2 variance 2 n 1 depends equally and symmetrically on the the correlation and the sample size n. Some earlier textbooks overemphasized a concern about multicollinearity. and A Course in Econometrics (1991).The correlation indexes collinearity. s which is reprinted below. 59 . We can see the e¤ect of collinearity on precision by observing that the variance of a coe¢ cient esti1 2 mate 2 n 1 approaches in…nity as approaches 1. Topics in Regression Analysis (1968). Goldberger wrote a series of highly regarded and in‡ uential graduate econometric textbooks. however. including including Econometric Theory (1964). His PhD thesis developed an early macroeconometric forecasting model (known as the KleinGoldberger model) but most of his career focused on microeconometric issues. He was the leading pioneer of what has been called the Wisconsin Tradition of empirical work – a combination of formal econometric theory with a careful critical analysis of empirical work. Thus the more “collinear” are the regressors. will be re‡ ected by large standard errors. the precision of individual estimates are reduced.3 of Goldberger’ A Course in Econometrics (1991). Goldberger Art Goldberger (19302009) was one of the most distinguished members of the Department of Economics at the University of Wisconsin. it is statistically di¢ cult to disentangle the impact of 1 from that of 2 : As a consequence. A very amusing parody of these texts appeared in Chapter 23.
Judging from what is now written about multicollinearity. we can remove that impediment by introducing the term micronumerosity. and the addition of a few more observations can sometimes produce drastic shifts in the sample mean. of larger samples from the same population. there is a violation of the rank condition n > 0 : the matrix 0 is singular. if possible. 3. Consequences of micronumerosity The consequences of micronumerosity are serious. 4. such that micronumerosity is a problem only if n is smaller than n : But those procedures are questionable. (Technically. in which case the sample estimate of is not unique. “exact micronumerosity. Goldberger A Course in Econometrics (1991).” If so. But if the true is small (although nonzero) the hypothesis = 0 may mistakenly be accepted. Chapter 23. It arises when the rank condition n > 0 is barely satis…ed. Several test procedures develop critical values n . A generally reliable guide may be obtained by counting the number of observations. even though the true situation may be not that = 0 but simply that the sample data have not enabled us to pick up. others use their toes. Testing for micronumerosity Tests for the presence of micronumerosity require the judicious use of various …ngers. The remedy lies essentially in the acquisition. “Near micronumerosity” is more subtle.” So obtaining lots of small samples from the same population will not help. but they say little about the closely analogous problem of small sample size in estimation a univariate mean. the chapter might look like this: 1. Suppose an econometrician set out to write a chapter about small sample size in sampling from a univariate population. The true may be su¢ ciently large for the null hypothesis = 0 to be rejected. Near micronumerosity is very prevalent in empirical economics. 60 . Micronumerosity The extreme case. and not only that. Precision of estimation is reduced.) The extreme case is easy enough to recognize. still others let their thumbs rule. and yet very serious. 2. But more data are no remedy for micronumerosity if the additional data are simply “more of the same. but Vy will be large. Most of the time in econometric analysis. Some researchers prefer a single …nger. Remedies for micronumerosity If micronumerosity proves serious in the sense that the estimate of has an unsatisfactorily low degree of precision.” arises when n = 0. The estimate of will be very sensitive to sample data. Perhaps that imbalance is attributable to the lack of an exotic polysyllabic name for “small sample size.Micronumerosity Arthur S. when n is close to zero.3 Econometrics texts devote many pages to the problem of multicollinearity in multiple regression. There are two aspects of this reduction: estimates of may have large errors. we are in the statistical position of not being able to make bricks without straw. even though Vy = 2 =n is large because of micronumerosity. it is also far from in…nity. Investigators will sometimes be led to accept the hypothesis = 0 because y=^ y is small.
2 then we have the multivariate implication e j X N 0. except in special cases.23) is zero. To avoid omitted variables bias the standard advice is to include potentially relevant variables in the estimated model. In particular. 1 6= 1 . we calculate 1 1 1 x1i x2i : + x0 2i 2 + ei (4. In this case.4. 4. in order to reduce the number of estimated parameters. the coe¢ cient on x2i in (4. By construction. It is the consequence of omission of a relevant 2 correlated variable.12 Omitted Variable Bias Let the regressors be partitioned as xi = We can write the regression of yi on xi as yi = x0 1i E (xi ei ) = 0: Now suppose that instead of estimating equation (4. Typically there are limits. and variance estimator. Typically. the possibility of omitted variables bias should be acknowledged and discussed in the course of an empirical investigation. Goldberger (1991) introduced the labels (4. the regression of x2i on x1i yields a set of zero coe¢ cients (they are uncorrelated). To see this. First.23). as many desired variables are not available in a given dataset. E¤ectively.23) the long regression and (4. I n 2 : 61 .24) = = = = E x1i x0 1i E 1 1 1 E (x1i yi ) E x1i x0 1i 1 x1i x0 1i + E x1i x0 1i 2 E 1+ x1i x0 2i x0 2i 2 2 + ei 1+ where = E x1i x0 1i 1 E x1i x0 2i is the coe¢ cient from a regression of x2i on x1i : Observe that 1 6= 1 unless = 0 or 2 = 0: Thus the short and long regressions have the same coe¢ cient on x1i only under one of two conditions.11.23) + ui (4.24) the short regression to emphasize the distinction. under the normality assumption ei j xi N 0.23) by leastsquares. residuals. leastsquares estimation of (4. Perhaps this is done because the variables x2i are not in the data set.24) is an estimate of 1 = 1 + 2 rather than 1 : The di¤erence is known as omitted variable bias. we regress yi on x1i only. or second. we can derive exact sampling distributions for the leastsquares estimator.13 Normal Regression Model In the special case of the normal linear regression model introduced in Section 3. In general. the general model will be free of the omitted variables problem. we are estimating the equation yi = x0 1i E (x1i ui ) = 0 Notice that we have written the coe¢ cient on x1i as 1 rather than 1 and the error as ui rather than ei : This is because the model being estimated is di¤erent than (4.
this implies that conditional on X ^ e ^ = 1 (X 0 X) X 0 M 1 e N 0. 2 (X 0 X) 1 0 2M 0 where M = I n X (X 0 X) X 0 : Since uncorrelated normal variables are independent. and are the basis for traditional inference in linear regression. the error vector e is independent of X and is normally distributed.That is. H 0 H) N (0.1. 1) = q 2 n k tn k n k k degrees of freedom.1 Normal Regression In the linear regression model (Assumption 4.1) if ei is independent of xi and distributed N 0. if standard errors are calculated using the homoskedastic formula (4. Since linear functions of normals are also normal. 62 . 2 then ^ n^ 2 2 N 0.20) ^ ^ N 0. it follows that ^ is independent of any function of the OLS residuals including the estimated error variance s2 or ^ 2 or prediction errors e: ~ The spectral decomposition of M yields M =H In 0 k 0 0 H0 N (0. Furthermore. Theorem 4. I n ) : Then (see equation (A. = j 2 (X 0 X) 1 2 n k (n k)s2 2 ^ j s( ^ j ) tn k These are the exact …nitesample distributions of the leastsquares estimator and variance estimators.4)) where H 0 H = I n : Let u = n^ 2 2 1H 0e = = = = (n 1 2 k) s2 2 e0 e ^^ e0 M e e0 H In 0 k 1 2 1 2 In 0 0 0 k 0 0 u H 0e = u0 2 n k.13. q 2 2 = rh s( ^ j ) s (X 0 X) a t distribution with n j j j j 1 i jj n k 2 n i 1 (X 0 X) jj rh i 1 (X 0 X) k h jj N (0. a chisquare distribution with n k degrees of freedom.
63 . the di¢ culty in applying Theorem 4.13.1 is that the normality assumption is too restrictive to be empirical plausible.While elegant. and therefore inference based on Theorem 4. We develop a more broadlyapplicable inference theory based on large sample (asymptotic) approximations in the following chapter.1 has no guarantee of accuracy.13.
:::. 64 .2. then n x2 ei = 0: ^ i=1 i Exercise 4. xi 2 R.5.21) and (4.22) in the homoskedastic regression model. wn ) and wi = xji2 .19) in the homoskedastic regression model. where xji is one of the xi : (a) In which contexts would ~ be a good estimator? (b) Using your intuition. and ei is the OLS residual x ^ from the regression of yi on xi .2 True or False. and an estimate of s2 = 1 n 2? is k e0 ^ 1 e: ^ (a) Why is this a reasonable estimator for (b) Prove that e = M 1 e. Exercise 4. var (e j X) = 2 X 1 X0 2 1 y : X ~ . with known. If yi =Pi + ei . the GLS estimator is ~ = X0 the residual vector is e = y ^ 1 Pn 0 i=1 xi xi and E (xi x0 ) : i E(e j X) = 0.4 In a linear model y = X + e. Exercise 4. where M 1 = I ^ (c) Prove that M 0 1 1 X X0 X X0 1 1 X 1 1 X0 1 1 : M1 = 1 1 X X0 : Exercise 4.5 Let (yi .Exercises Exercise 4.3 Prove Theorem 4. E(ei j xi ) = 0. in which situations would you expect that ~ would perform better than OLS? Exercise 4.7 Show (4.1 Explain the di¤erence between 1 n Exercise 4.1.6 Show (4. xi ) be a random sample with E(y j X) = X : Consider the Weighted Least Squares (WLS) estimator of ~ = X 0W X 1 X 0W y where W = diag (w1 .
5.1 and 2. :::. It turns out that most of this theory equally applies to the projection model and the linear conditional mean model. and an invertible design matrix Q = E xi x0 > 0: i From Theorems 2. we showed in Figure 4.1 Linear Projection Model The observations (yi . the OLS estimator ^ is has an unknown statistical distribution. The primary tools of asymptotic theory are the weak law of large numbers (WLLN). Throughout this chapter we maintain the following.2.2 Weak Law of Large Numbers At the beginning of Chapter 4. xi ) come from a random sample with …nite second moments 2 Eyi < 1 and Ex2 < 1 ji for j = 1. under Assumtpion 5. central limit theorem (CLT).9. and therefore the results in this Chapter will be stated for the broader projection model unless otherwise stated.1 the variables satisfy the linear projection equation yi = x0 + ei i E (xi ei ) = 0 = E xx0 1 E (xy) : A review of the most important tools in asymptotic theory is contained in Appendix C. and continuous mapping theorem (CMT).1 how the sampling density of the leastsquare estimator varies with the sample size n: It is possible to see in the …gure that the sampling 65 . With these tools we can approximate the sampling distributions of most econometric estimators. which approximates sampling distributions by taking the limit of the …nite sample distribution as the sample size n tends to in…nity.1 Introduction As discussed in Section 4.9.Chapter 5 Asymptotic Theory 5.1. k. Assumption 5. The most widely used and versatile method is asymptotic theory.2. Inference (con…dence intervals and hypothesis testing) requires useful approximations to the sampling distribution.1.
there is a sample size n su¢ ciently large such that the estimator ^ will be arbitrarily close to the true value with high probability. an application of Chebyshev’ inequality yields s P (j^ j> ) var(^ ) 2 = 2 =n 2 !0 as n ! 1: This says that the probability that ^ di¤ers from by more than declines to zero as n ! 1: Equivalently. and the weak law of large numbers (convergence in probability of the sample mean). As this holds for any (even an extremely small value) it is reasonable to say that the distribution of ^ concentrates about as n increases. It follows that var(^ ) = 2 =n ! 0 as n ! 1: This means that the distribution of ^ is increasingly concentrated about its mean as n increases. This is the property of estimator consistency –convergence in probability to the true parameter value. To be more precise.2. for any > 0. we showed that the sample mean ^ converges in probability to the population mean as n ! 1. At its heart. estimator consistency is the e¤ect of sample size on the variance of the sample mean. and is thus consistent for : This result is known as the weak law of large numbers. Above.density concentrates about the true parameter value as the sample size increases. consistency (convergence in probability of an estimator to the parameter value).2 An estimator ^ of a parameter as n ! 1 p is consistent if ^ ! Consistency is a good property for an estimator to possess. It means that for any given data distribution. In this section we review the core theory explaining this phenomenon. We see that var(^ ) = 2 =n which is decreasing in n (as long as 2 < 1). + ] as n diverges. We now state these concepts formally. 66 . We have described three distinct but intertwined concepts: convergence in probability (concentration of a sampling distribution). the distribution of ^ becomes concentrated within the region [ . and consider the sample mean ^ = n n ui : The mean and variance of ^ are i=1 1X 1X E^ = E ui = Eui = n n i=1 i=1 n n and var(^ ) = E (^ )2 = E 1X (ui n i=1 n ) !2 = n n 1 XX E (ui n2 i=1 j=1 ) (uj )= n 1 X n2 i=1 2 2 = n where the secondtolast inequality is because E (ui ) (uj ) = 2 for i = j yet E (ui ) (uj )= 0 for i 6= j due to independence. n!1 lim P (jzn zj > ) = 0: De…nition 5. suppose ui is an iid random variable with …nite mean Eui = and variance 1 P E (ui )2 = 2 . To review. if for all > 0.2. De…nition 5.1 We say that a random variable zn 2 R converges in p probability to z as n ! 1. denoted zn ! z.
and (5.1) (where 1 ( ) is the indicator function) which is possible since E jui j < 1: De…ne the random variables wi = ui 1 (jui j C) zi = ui 1 (jui j > C) E (ui 1 (jui j > C)) : E (ui 1 (jui j C)) By the Triangle Inequality (A. Theorem 5. We need to show that for all > 0 and > 0 there is some N < 1 so that for all n N. E jz n j = E 1X zi n i=1 n = E jzi j n 1X E jzi j n i=1 2": 2E jui j 1 (jui j > C) E jui j 1 (jui j > C) + jE (ui 1 (jui j > C))j (5.2 WLLN for Random Matrices If U i 2 Rk r is iid and E jujli j < 1 for 1 j k and 1 Un = as n ! 1: 1X p U i ! E(U i ) n i=1 n l r then In our derivation.2.1 Weak Law of Large Numbers (WLLN) If ui 2 R is iid and E jui j < 1. Theorem 5. P (jun j > ) : Fix and : Set " = =3: Pick C < 1 large enough so that E (jui j 1 (jui j > C)) " (5.1 states that the WLLN holds under the weaker assumption of a …nite mean. we can assume E(ui ) = 0 by recentering ui on its expectation. the Expectation Inequality (C. Proof of Theorem 5.2. we proved the WLLN under the assumption that ui has a …nite variance.2).1: Without loss of generality.2.Theorem 5.2) 67 .8). then 1X p un = ui ! E(ui ) n i=1 n as n ! 1 . We provide a proof of this more general result for the technicallyinclinded readers.2.1).
3).2. Theorem C. > 0 and > 0 then for all Proof of Theorem 5. Speci…cally. Theorem 5. E jun j E jwn j + E jz n j 3" P (jun j > ) = . One of Jacob Bernoulli’ important contributions was the …rst proof of s the weak law of large numbers.1) shows that sample moments converge in probability to population moments. the equality by the de…nition of ": We have shown that for any n 36C 2 = 2 2 . Pn Pn 1X p xi x0 ! E xi x0 = Q i i n i=1 n (5.2: A random vector or matrix converges in probability to its limit if (and only if) all elements in the vector or matrix converge in probability. the continuous mapping theorem (CMT.3 Consistency of LeastSquares Estimation In this section we use the WLLN and continuous mapping theorem (CMT.3) the …nal inequality holding for n 4C 2 ="2 = 36C 2 = 2 2 . the OLS estimator can be written as a continuous function of a set of sample moments. Finally. observe that the OLS estimator ! 1 ! n n 1X 1X ^= xi x0 xi yi i n n i=1 i=1 1 1 is a function of the sample moments n i=1 xi x0 and n i=1 xi yi : i Second.By Jensen’ Inequality (C.1) states that continuous functions preserve convergence in probability. Jacob Bernoulli Jacob Bernoulli (1654 1705) of Switzerland was one of many famous mathematicians in the Bernoulli family.6). We now explain each step in brief and then in greater detail. the fact that un = wn + z n . as n ! 1. Since each element of U i has a …nite mean by assumption.1). the triangle inequality. P (jun j > ) . as needed.4) 68 . First. the weak law of large numbers (WLLN. as needed. Second. Theorem C.2) s and (5. and the bound jwi j s (E jwn j)2 Ew2 n 2 Ewi = n 4C 2 n 2 " 2C.2. 5. by an application of the WLLN these sample moments converge in probability to the population moments. (5.2. (5. And third. by Markov’ Inequality (C. Theorem 5. the fact that the wi are iid and mean zero.1 applies to each element and therefore converges in probability.1) to show that the leastsquares estimator ^ is consistent for the projection coe¢ cient : This derivation is based on three key components. published in his posthumous masterpiece Ars Conjectandi.3.3. First.
1. recall that (4.3. as n ! 1: In words. the OLS estimator converges in probability to the projection coe¢ cient vector as the sample size n gets large. including xi x0 and xi yi : Second.1 Consistency of LeastSquares p Under Assumption 5. and thus ^ is consistent for . !Q 1X xi x0 i n i=1 1 n ! 1 0 1X xi ei n i=1 n ! Theorem 5. Thus to apply the WLLN to (5. as n ! 1. ^ ! as n ! 1: Theorem 5.8) = p =0 p which is the same as ^ ! . the CMT to allows us to combine these equations to show that ^ converges in probability to : Speci…cally. ^= p 1X p xi yi ! E (xi yi ) : n i=1 n (5. xi ) are mutually independent and identically distributed (Assumption 1.1.1.2) says that when when random variables are iid and have …nite mean.5. these random variables are iid i because the observations (yi .7) Therefore ^ 1X p xi ei ! E (xi ei ) = 0: n i=1 (5.4) and (5.and Third.1).5) = : ! E 1X xi x0 i n i=1 n ! 1 xi x0 i 1 (E (xi yi )) 1X xi yi n i=1 n ! (5.14) imply = 1X xi x0 i n i=1 n n ! 1 1X xi ei n i=1 n ! : (5.2.4) and (5.6) p We have shown that ^ ! . Assumption i 69 . The weak law of large numbers (Theorem 5. and so are any functions of the observations.6) implies that ^ The WLLN and (2.6) in greater detail. For a slightly di¤erent demonstration of this result.5) it is su¢ cient to verify that the elements of the random matrices xi x0 and xi yi are iid and have …nite mean. Section 5. We now explain the application of the WLLN in (5. then sample averages converge in probability to their population mean.3.5) and the CMT in (5.1 states that the OLS estimator ^ converges in probability to as n diverges to positive in…nity. First.
but in itself does not provide a useful approximation to the distribution of the estimator. the latter has i mean zero so the central limit theorem (CLT) applies. In this Section we derive an approximation typically called the asymptotic distribution.1. The derivation starts by writing the estimator as a function of sample moments. ! g (Q. b) is continuous at A = Q: Hence by the continuous mapping theorem (Theorem C. b) = A 1 b is a function of A and b: The function g (A. Assumption 5.1 E jxji xli j and E jxji yi j 2 Ex2 Eyi ji Ex2 Ex2 ji li 1=2 <1 1=2 < 1: We have veri…ed the conditions for the WLLN. 70 .5). by an application of the CauchySchwarz inequality and Assumption 5.3 we showed that ^ converges in probability to . E (xi yi )) 1 E (xi yi ) 5.1).7) and multiply it by n: This yields the expression p n ^ = 1X xi x0 i n i=1 n ! 1 1 X p xi ei n i=1 n ! : (5.1. p Take equation (5.4 Asymptotic Normality We started this Chapter discussing the need for an approximation to the distribution of the OLS estimator ^ : In Section 5.1. The steps are as follows. and thus (5. xi yi n n i=1 n ! 1 n ! where g (A.1.1 is su¢ cient for 1 j k and 1 l k.3. ! n n 1X 1X ^=g xi x0 . Consistency is a useful …rst step.1 implies that Q 1 exists and thus g (A. E jxji xli j < 1 and E jxji yi j < 1: Indeed. To fully understand its application we walk through it in detail.4) and (5.5.9) p This shows that the normalized and centered estimator n ^ is a function of the sample Pn Pn 1 1 average n i=1 xi x0 and the normalized sample average pn i=1 xi ei : Furthermore.3. xi yi i n n i=1 i=1 p = E xi x0 i = : This completes the proof of Theorem 5. One of the moments must be written as a sum of zeromean random vectors and normalized so that the central limit theorem can be applied. The …nal step of the proof is the application of the continuous mapping theorem to obtain (5.6). b) is a continuous function of A and b at all values of the arguments such that A 1 exists. We can write 1X xi x0 i n i=1 ^ = = g 1X x i yi n i=1 i=1 ! n n X 1X 0 1 xi xi . as n ! 1.
:::. note that E jxji ei j2 = E x2 e2 ji i Ex4 ji 1=2 Ee4 i 1=2 (5. Eui = 0 and Eu2 < 1 for j = 1.4.2.9.12) which is …nite if xji and ei have …nite fourth moments. Eyi < 1 and for 4 < 1: j = 1.1. Indeed. Theorem 5. using (5. :::. where the …nal equality follows from the property that linear combinations of normal vectors are also normal (Theorem B.1. ) 1 = N 0. if this is not true then (5.11) is not well de…ned and (5. ) n i=1 n (5. Exji We have derived the asymptotic normal approximation to the distribution of the leastsquares estimator. it is su¢ cient that the observables have …nite fourth moments.1. A su¢ cient condition can be found as follows. :::.1 Asymptotic Normality of LeastSquares Estimator Under Assumption 5.Central Limit Theorem (Theorem C.4). Formally. and (5.11) Putting these steps together. As ei is a linear combination of yi and xi . k. (5.1 In addition to Assumption 5. (5.10) requires that the elements of ui = xi ei have …nite variances.1) If ui 2 Rk is iid. 4 Assumption 5. k. then as n ! 1 ji 1 X d p ui ! N 0. E ui u0 i n i=1 n : For our application. For any j = 1. by the CauchySchwarz Inequality (C. where = E xi x0 e2 : i i p (5.4.10) as n ! 1. k.9).3). n ^ d !Q 1 N (0.4.10) does not make sense. Q Q 1 as n ! 1. as n ! 1 p where V =Q 1 n ^ d ! N (0.10).1). ui = xi ei which is iid (since the observations are iid) and mean zero (since E (xi ei ) = 0): We calculate that E (ui u0 ) = E xi x0 e2 . V ) Q 1 : 71 . By the CLT we conclude i i i 1 X d p xi ei ! N (0.
In this context the normalized leastsquares slope estimator n 2 ^ has the 2 2 N(0.1 states that the sampling distribution of the leastsquares estimator. 1) . e2 ) = 0: (5.13) is true or false. after rescaling.13) is true then V = V 0 . We say that ei is a Homoskedastic Projection Error when cov(xi x0 . jej 1: If > 2 the error ei has zero mean and variance =( 2): As approaches 2.13) holds in the homoskedastic linear regression model. Under (5. concentrating most of the probability mass around zero.16) 72 . 1) density.1. otherwise V 6= V 0 : We call V 0 the homoskedastic covariance matrix.14) V 0 Q 1 =Q 1 2 (5.15) we de…ne V 0 = Q 1 2 whether (5. Theorem 5. When (5. In Figure 5. Another example is shown in Figure 5. Here the model is yi = ei = uk i E u2k i E uk i E uk i 2 1=2 + ei where (5.4. the normal approximation is arbitrarily poor for some data distribution satisfying the assumptions. and 1 ei is independent of xi with the Double Pareto density f (e) = 2 jej . The asymptotic distribution of Theorem 5. but is somewhat broader. is approximately normal when the sample size n is su¢ ciently large. In Figure 4. 2 . however.16) (5.13) i i As V Condition (5.1 we have already seen a simple example where the leastsquares estimate is quite asymmetric and nonnormal even for reasonably large sample sizes. its variance diverges q to in…nity. introducing the economic concept of Pareto e¢ ciency. As diminishes the density changes signi…cantly.p .4. for any …xed n the sampling distribution of ^ can be arbitrarily far from the normal distribution.15) In (5. We illustrate this problem using a simulation.1 is commonly used to approximate the …nite p sample distribution of n ^ : The approximation may be poor when n is small. Let yi = 0 + 1 xi + ei where xi is N (0. The trouble is that no matter how large is the sample size. xi ) which satisfy the conditions of Assumption 5. How large should n be in order for the approximation to be useful? Unfortunately. This holds true for all joint distributions of (yi .2. 1) asymptotic distibution for any > 2. There is a special case where and V simplify. His major econometric contribution was the Pareto (or power law) distribution which is commonly used to model the empirical distribution of wealth. setting n = 100 and varying the parameter For = 3:0 the density is very close to the N(0.4. there is no simple answer to this reasonable question. Vilfredo Pareto Vilfredo Pareto (18481923) of Italy was a major economic theorist.13) the asymptotic variance formulas simplify as = E xi x0 E e2 = Q i i V = Q 1 2 (5. However. V is often referred to as is the variance of the asymptotic distribution of n ^ the asymptotic covariance matrix of ^ : The expression V = Q 1 Q 1 is called a sandwich form.1 we display the …nite sample densities q of the normalized estimator n 2 ^ 2 .
1 Under Assumption 5.1. The lesson from Figures 5. they are close in value when n is very large.5 2: Consistency of Sample Variance Estimators Using the methods of Section 5. 1): We show the sampling distribution of n ^ setting n = 100. 5.1: Density of Normalized OLS estimator with Double Pareto Error p and ui N(0.17) 73 . for k = 1. While ^ 2 and s2 are unequal in any given application.1. Note that ei = yi ^ = ei Thus e2 = e2 ^i i 2ei x0 ^ i + ^ x0 ^ i x0 ^ i : 0 = ei + x0 i x0 ^ i xi x0 ^ i (5.3 we can show that the estimators ^ 2 and s2 are consistent for Theorem 5. 4.2 is that the N(0.Figure 5. As k increases. the sampling distribution becomes highly skewed and nonnormal. 1) asymptotic approximation is never guaranteed to be accurate.5. 6 and 8. ^ 2 n ! 1: p ! 2 and s2 p ! 2 as One implication of this theorem is that multiple estimators can be consistent for the sample population parameter.1 and 5.5. Proof of Theorem 5.1.
b0 First.Figure 5. consider V ^ .4).9 we introduced estimators of the …nitesample covariance matrix of the leastsquares estimator in the regression model.8) and Theorem 5. when normalized. we can write the covariance matrix estimator as b0 V^= 1 0 XX n 74 1 ^ s2 = Q 1 2 s : . Thus ^ 2 is consistent for 2: Finally.1. the last line using the WLLN.16) and 1X 2 ei ^ ^ = n 2 n 1 = n p ! i=1 n X i=1 2 e2 i 2 1X ei x0 i n i=1 n ! ^ + ^ 0 1X xi x0 i n i=1 n ! ^ as n ! 1. In this section we show that these estimators. (5.2: Density of Normalized OLS estimator with error process (5. since n=(n k) ! 1 as n ! 1. the covariance matrix estimate constructed under the assumption of homoskedasticity. Writing n X 1 ^= 1 Q xi x0 = X 0 X i n n i=1 as the moment estimator of Q. s2 = n n k ^2 ! p 2 : 5. (5.3. it follows that as n ! 1.6 Consistent Covariance Matrix Estimation In Sections 4. are consistent for the asymptotic covariance matrix.8 and 4.
we can show that ^ is consisent for : Combined with the consistency of Q for 1 1 b Q and the invertibility of Q we …nd that V ^ converges in probability to Q Q =V : Theorem 5. then i i 1 0 XX n 1 1 b V^ = ^ = Q ^Q ^ 1 1X xi x0 e2 i ^i n i=1 n ! 1 0 XX n 1 : ^ With some work.^ Since Q ! Q and s2 ! 5.6.1).1 Under Assumption 5. it follows that p p 2 (see (5.1. b0 p Theorem 5.18) as the moment estimator for = E xi x0 e2 . we return to the log wage regression (3.4) and Theorem 5.2 Under Assumption 5.4.1.9) of Section 3. ^ n ! 1: p ! b and V ^ p !V as To illustrate. V ^ ! V 0 as n ! 1: b0 Now consider V ^ . the White covariance matrix estimator.5.3.1. and the invertibility of Q (Assumption b0 ^ V^ =Q 1 2 s p !Q 1 2 =V0 b0 so that V ^ is consistent for V 0 . the homoskedastic covariance matrix. Writing X ^ = 1 xi x0 e2 i ^i n i=1 n (5. The (White) standard errors for ^ 0 are 7:2=988 = p :085 and that for ^ 1 is :035=988 = :006: We can write the estimated equation with standard errors using the format \ log(W age) = 1:33 + 0:115 Education: (:08) (:006) 75 .1.6.1). We calculate that s2 = 0:20 and ^ = 0:199 2:80 : 2:80 40:6 Therefore the two covariance matrix estimates are b0 V^= = 1 14:14 14:14 205:83 1 14:14 14:14 205:83 1 0:20 = 6:98 0:480 0:480 :039 and ^ V 1 :199 2:80 2:80 40:6 1 14:14 14:14 205:83 1 = 7:20 0:493 0:493 0:035 : p In this case the two estimates are quite similar.
8) to the matrix Euclidean norm.19) in turn.19).19) We now examine each k k sum on the righthandside of (5.1) to …nd that 1X p xi x0 e2 ! E xi x0 e2 = i i i i n i=1 n : Now take the second term on the righthandside of (5.5) and the Schwarz Inequality 1X xi x0 i n i=1 n p 1X p kxi k3 jei j ! E kxi k3 jei j < 1: n i=1 ^ 0 2 xi 1X xi x0 i n i=1 i=1 n ^ 0 2 xi p !0 n 1X kxi k4 ^ n 76 .7). Again by the Triangle Inequality. the Matrix Schwarz Inequality (A. Applying the Triangle Inequality (A.4. th i i i Using the CauchySchwarz Inequality (C.5) and the Schwarz Inequality (A. (A.19).17) xi x0 e2 i i 2X xi x0 ^ i n i=1 n 0 xi ei + 1X xi x0 i n i=1 n ^ 0 2 xi : (5.20) kxi k jei j ^ Using Holder’ inequality (C. the Matrix Schwarz Inequality. We now take the third term in (5.4.19).Proof of Theorem 5. We …rst show ^ ^ = = 1X xi x0 e2 i ^i n 1 n i=1 n X i=1 n p ! : Using (5.4) and Assumption 5. s E kxi k3 jei j By the WLLN n E kxi k4 3=4 E e4 i 1=4 < 1: Since ^ ! 0 it follows that (5. E xji xli e2 i Ex2 x2 ji li Ex4 ji 1=2 Ee4 i 1=2 1=4 Ex4 li 1=4 Ee4 i 1=2 : Since this expectation is …nite.1. Take the …rst term on the righthandside of (5.2. equation (A.2.6.19) converges in probability to zero.3) twice and Assumption 5.1. This shows that the second term on the righthandside of (5.6) 2X xi x0 ^ i n i=1 n 0 xi ei 2X xi x0 ^ i n 2 n i=1 n X n 0 xi ei 0 xi x0 i 3 ^ ! 2 n i=1 n X i=1 xi jei j : (5. we can apply the WLLN (Theorem 5.20) converges in probability to zero. The jl’ element of xi x0 e2 is xji xli e2 .
the function h( ) is linear: h( ) = R0 for some k q matrix R: In this case. Finally. !V as n ! 1: 5. We p conclude that ^ ! as claimed.p p 1 P the …nal convergence since ^ ! 0 and n n kxi k4 ! E kxi k4 < 1 under Assumption i=1 5.4.22) The asymptotic approximation (5. The estimate of is ^ = h( ^ ): What is the asymptotic distribution of ^? Assume that h( ) is di¤erentiable at the true value of : By a …rstorder Taylor series approximation: h( ^ ) ' h( ) + H 0 where H = Thus p n ^ n h( ^ ) p ' H0 n ^ = d ^ : @ h( ) @ p k q: h( ) = N (0.19). V ) : where V ! H 0 N (0.21) = H0 V H : (5. ^ V ^ from which it follows that V ^ =Q p 1 ^Q ^ 1 p !Q 1 Q 1 =V . This shows that the third term on the righthandside of (5.7 Functions of Parameters Sometimes we are interested in some lowerdimensional function of the parameter vector = ( 1 . we may be interested in a single coe¢ cient j or a ratio j = l : In these cases we can write the parameter of interest as a function of : Let h : Rk ! Rq denote this function and let = h( ) denote the parameter of interest. combined with (5. nonlinear functions of asymptotically normal estimators are themselves asymptotically normally distributed. :::.4) and the invertibilility of Q. H = R. and the second and third converge in probability to zero. 77 . In many cases.1. It shows that (at least approximately). as most parameters of interest can be written in this form. Considering the three terms on the righthandside of (5.21) is often called the delta method because it approximates the distribution of ^ by a …rstorder expansion. we have shown that the …rst term converges in probability to .19) converges in probability to zero. It is a very powerful result. k ): For example. V ) (5.
that is. q q ^) = n 1=2 V ^ = n 1=2 H 0 V ^ H b c b c s( Theorem 5. When h( ) is linear h( ) = R0 then H = R and When R takes the form of a selector matrix as in (5. (5. p d n ^ ! N (0.21)(5.21).22) in this case is p where V 11 = [V ]11 How do we estimate the covariance matrix for ^? From (5.23) then h i b b b V ^ = V 11 = V .22) we see we need an estimate of ^ H and V . if R is a “selector matrix” R= so that if =( 1. the standard error for ^ is the square root of V ^ .1. V ) where V and as n ! 1: = H0 V H p b V^ !V 78 . I 0 (5. 2 ).1 Asymptotic Distribution of Functions of Parameters Under Assumption 5. V ^ is often called an asymptotic covariance matrix estimator.7. V 11 ) Putting the parts together we obtain b as the covariance matrix estimator for ^: As the primary justi…cation for V ^ is the asymptotic b approximation (5. We already have an estimate of the latter.23) then = R0 V = = 1 and V I 0 = V 11 . I 0 the upperleft block of V : In other words.4. 11 b b V ^ = R0 V ^ R: : b the upperleft block of the covariance matrix estimate V : b When q = 1 (so h( ) is realvalued). V ^ : To estimate H we use @ c H = h( ^ ): @ b c0 b c V ^ = H V ^H n ^1 d 1 ! N (0.In particular.
To circumvent this barrier. First. Gosset published under the pseudonym “Student” Consequently. which prohibited its employees from publishing in order to prevent the possible loss of trade secrets. we say that tn is exactly pivotal. @ @ p c H = h( ^ ) ! h( ) = H : @ @ b c0 b c V ^ = H nV ^ H p ! H0 V H = V . could be a single element of ).Proof. In this case. published in the paper “The probable error of a mean”in 1908. a zstatistic or a studentized statistic. from Theorem 5. Since this distribution does not depend on the parameters. We won’ be making such distinctions and will typically refer to tn ( ) as a tstatistic. Theorem 5. Consider the statistic ^ tn ( ) = s(^) (5. William Gosset William S. we say that tn ( ) is asymptotically pivotal. Gosset worked at Guiness brewery. We also t often suppress the parameter dependence. and is therefore exactly free of unknowns. In special cases (such as the normal regression model. ^ its estimate and s(^) its asymptotic standard error. In general.6. by the continuous mapping theorem. Gosset (18761937) of England is most famous for his derivation of the student’ s t distribution. we need only to show consistency of the covariance matrix estimator. and the parameter. p b V^ !V : p Second. student’ t rather than Gosset’ t! s s 79 . since ^ ! ^ and h( ) is continuously di¤erentiable. see Section 3. pivotal statistics are unavailable and we must rely on asymptotically pivotal statistics.8. At the time. 1) d Thus the asymptotic distribution of the tratio tn ( ) is the standard normal. however.24) which di¤erent writers alternatively call a tstatistic. its standard error. Putting these together completing the proof . We showed (5.2.21). the statistic tn has an exact t distribution. this famous distribution is known as the .8 t statistic Let = h( ) : Rk ! R be any parameter of interest (for example. writing it as tn : The tstatistic is a simple function of the estimate.1 tn ( ) ! N (0. 5.11).
V ) p V = N (0. 1): In this case. typically 90% or 95%. P( 2 Cn ) = 1 .25) where c > 0 is a prespeci…ed constant.8. ^ + c s(^) (5. When we have an asymptotically normal parameter estimate ^ with standard error s(^). or more generally written as (1 )% for some 2 (0. that is ( ) ^ Cn = f : jtn ( )j cg = : c c : s(^) The coverage probability of this con…dence interval is P ( 2 Cn ) = P (jtn ( )j 80 c) . By Theorem 5. by reporting a (1 )% con…dence interval Cn . if ^ has a continuous distribution. so this con…dence interval has perfect coverage.1.7.9 Con…dence Intervals A con…dence interval Cn is an interval estimate of 2 R: It is a function of the data and hence is random. we are stating that with (1 )% probability (in repeated samples) the true lies in Cn : There is not a unique method to construct con…dence intervals. The convention is to design con…dence intervals to have coverage probability approximately equal to a prespeci…ed target.Proof of Theorem 5. For example. Cn is the set of parameter values for such that the tstatistic tn ( ) is smaller (in absolute value) than c. 5. 1) ! The last equality is by the property that linear scales of normal distributions are normal. Either 2 Cn or 2 Cn : The = coverage probability is P( 2 Cn ). V ) Thus p b V^ !V ^ tn ( ) = s(^) p ^ n q = b V^ d N (0. a simple (yet silly) interval is R with probability 1 Cn = ^ with probability By construction. p n ^ and d ! N (0. and its length is proportional to the standard error s(^): Equivalently. it turns out that a generally reasonable con…dence interval for takes the form h i Cn = ^ c s(^). but Cn is uninformative about : This is not a useful con…dence interval.1. This con…dence interval is symmetric about the point estimate ^. It is designed to cover with high probability.
96 to 2. ^ + 2s(^) : 5. If the rage of values in the con…dence interval are too wide to learn about . For a parameter of interest.4% interval.10) can be rewritten as 0 1 10 1 r r X X =@ pj j 0 A @ pj j j A (5. the de…nition of linear the projection coe¢ cient (2. 1) and (u) = P (Z u) is the standard normal distribution function. this yields the most commonly implied con…dence interval in applied econometric practice h i Cn = ^ 2s(^).which is generally unknown.27) j j=1 j=1 Thus is a function of ( 1 . for …nite r.) t In this discrete setting. compute the con…dence interval Cn and consider the meaning of the spread of the suggested values. it is a 95. :::. but the pj are unknown.0 for 1.8. and can be backed out of a normal distribution table. look at the estimated coe¢ cient estimates and the standard errors.) Con…dence intervals are a simple yet e¤ective tool to assess estimation uncertainty.96. due to the substitution of 2.26) for some constants pj . (Technically. For example. but this distinction is meaningless. typically 90% or 95%. E¤ectively. who established that in the projection model the OLS estimator has the smallest asymptotic meansquared error among feasible estimators. (We know the values yi and xi can take.5 we presented the GaussMarkov theorem as a limited e¢ ciency justi…cation for the leastsquares estimator. :::. This property is called semiparametric e¢ ciency. but we can approximate the coverage probability by taking the asymptotic limit as n ! 1: Since tn ( ) is asymptotically standard normal (Theorem 5. When reading a set of empirical results. r ) : As the data are multinomial. Suppose that the joint distribution of (yi . This means selecting the constant c so that (c) ( c) = 1 : This is a useful ruleof thumb. j = 1. but we don’ know the probabilities. r (5. and is a strong justi…cation for the leastsquares estimator. then do not jump to a conclusion about based on the point estimate alone. P yi = j. This asymptotic 95% con…dence interval Cn is simple to compute and can be roughly calculated from tables of coe¢ cient estimates and standard errors. and j : Assume that the j and j are known. the maximum likelihood estimator (MLE) is 1X pj = ^ 1 (yi = n i=1 n j) 1 xi = j 81 . j . = 0:05 (a 95% interval) implies c = 1:96 and = 0:1 (a 90% interval) implies c = 1:645: Rounding 1. xi = j = pj . A broader justi…cation is provided in Chamberlain (1987). xi ) is discrete. it follows that as n ! 1 that P ( 2 Cn ) ! P (jZj c) = (c) ( c) where Z N (0. Thus the asymptotic coverage probability is a function only of c: The convention is to design the con…dence interval to have a prespeci…ed coverage probability 1 .10 Semiparametric E¢ ciency In Section 4.1). That is. this makes c a function of . We discuss the intuition behind his result in this section.
^ r X j=1 @ r X j=1 pj ^ A: j j 1 pj ^ 0 j j = n r X1X 1 (yi = n j=1 j) 1 xi = xi = j 0 j j = 1 n = and r X j=1 n 1X xi x0 i n i=1 i=1 n X X r i=1 j=1 1 (yi = j) 1 j xi x0 i pj ^ j j = r n X1X 1 (yi = n j=1 j) 1 xi = xi = j j j = 1 n = Thus ^ mle = n 1X xi yi : n i=1 n i=1 n X X r i=1 j=1 1 (yi = j) 1 j xi yi In other words. That is. Chamberlain proved that the OLS estimator is asymptotically semiparametrically e¢ cient for the projection coe¢ cient for the class of models satisfying Assumption 5.27) with the parameters pj replaced by the estimates pj : ^ ^ mle = @ 0 r X j=1 0A j j pj ^ 1 10 Substituting in the expressions for pj . In this section we provide an alternative demonstration based on the rich but technically challenging theory of semiparametric e¢ ciency bounds.for j = 1.1. 82 . but we s do not present it here) is the extension to the case of continuouslydistributed data:The intuition is that all continuous distributions can be arbitrarily well approximated by some multinomial distribution. An excellent accessible review has been provided by Newey (1990). Formalizing this intuition using a rigorous mathematical argument. It follows that the OLS estimator is asymptotically e¢ cient. where 1 ( ) is the indicator function.11 Semiparametric E¢ ciency in the Projection Model In this section we continue the investigation of semiparametric e¢ ciency as raised in Section 5. 1X xi x0 i n i=1 ! 1 1X xi yi n i=1 n ! = ^ ols : 5. :::. Since this is a regular parametric model the MLE is asymptotically e¢ cient (see Appendix D).10. if the data have a discrete distribution. r. The hard part of the argument (which was rigorously developed in Chamberlain’ paper. The MLE ^ mle for is then the analog of (5. the maximum likelihood estimator is identical to the OLS estimator. and for any multinomial distribution the moment estimator is asymptotically e¢ cient. There we presented the intuition behind Chamberlain’ demonstration of the asymptotic s e¢ ciency of the leastsquares estimator.1. pj is the percentage of the observations ^ which fall in each category.
The parameter of interest is = g ( ) where g ( ) is a continuously di¤erentiable function. I0 ) where I0 = ES 2 and S = @@ log f (z j ) = p p d 2 sgn (z ) is the score. We can calculate that ES 2 = 2 and thus conclude that n (~ ) ! N (0. z n be an iid sample from this distribution. :::. The semiparametric asymptotic variance bound (which is sometimes called 83 . Formally. and let z 1 . We call this setting semiparametric as the parameter of interest (the mean) is …nite dimensional while the remaining features of the distribution are unspeci…ed. which includes the projection model as a special case. The standard moment P estimator for is the sample mean ^ = n 1 n z i and that for is ^ = g (^ ) : This setting i=1 0 + e by letting z be the vector includes the leastsquares estimator for the projection model y = x with elements xj e and xj xl for all j k and l k: p d ) ! N (0. suppose that the true density of z is the unknown function f (z) with mean = R Ez = zf (z)dz and the parameter of interest is = g ( ) : A parametric submodel for f (z) is a density f (z j ) which is a smooth function of a parameter . Suppose that z 2 R has the density f (z j ) = p p d 2 1=2 exp jz j 2 : Since var (z) = 1 we see that the sample mean satis…es n (^ ) ! N (0. In this model the maximum likelihood estimator (MLE) ~ for is di¤erent than the sample mean (and happens to be the sample median). But the question at hand is whether or not the sample mean is e¢ cient when the form of the distribution is unknown. V ) where V is the smallest possible covariance matrix among regular estimators. variance bound for the semiparametric model (the union of the submodels) is then de…ned as the supremum of the individual variance bounds. it might be helpful to review a setting where the sample mean is ine¢ cient.3. V ) where V = @ 0 g ( ) @ g ( )0 : We want to know if ^ is the best n @ @ ! N (0. Is there another estimator with a smaller asymptotic variance? While it seems intuitively unlikely that another estimator could have a smaller asymptotic variance than ^ . Let 2 @ be the class of all submodels for f: Since each submodel is parametric we can calculate its CramerRao bound for estimation of .3). ) : Applying the Delta The sample mean has the asymptotic distribution n (^ Method (Theorem C. so the asymptotic variance of any semiparametric estimator cannot be smaller than the CramerRao bound for any parametric submodel. so the submodel is a true model. and the parameter of interest is ( ) = g ( ) which varies with the parameter . Recall from the theory of maximum likelhood p d 1 that the MLE satis…es n (~ ) ! N (0. This comparison is true for all submodels . given the density f (z j ) we can construct the MLE ^ for . 1=2) : The asymptotic variance of the MLE is onehalf that of the sample mean. we see that the moment estimator ^ has the asymptotic distribution p ^ d ! N (0. In the semiparametric context an estimator is called semiparametrically e¢ cient if it has the smallest asymptotic variance among all semiparametric estimators. Let z 2 Rm be a random vector with …nite mean = Ez and …nite variance matrix = var (z) . The .feasible estimator. the R mean is ( ) = zf (z j ) dz. The class of submodels and parameter 0 depend on the true density f: In the submodel f (z j ) . The mathematical trick is to reduce the semiparametric model to a set of parametric “submodels” The classic CramerRao variance bound can be found for each parametric submodel. The equality f (z j 0 ) = f (z) means that the submodel class passes through the true density. By the CramerRao theorem no estimator (and in particular no semiparametric estimator) has an asymptotic variance smaller than V . Speci…cally. In this setting the sample mean is ine¢ cient. the MLE R ^ = zf z j ^ dz for . how do we know that this is not the case? To show that the answer is not immediately obvious. 1). and there is some 0 such that f (z j 0 ) = f (z): The index indicates the submodels. and the MLE ^ = g(^ ) for : The MLE satis…es p n ^ ( ) d Our treatment covers what is known as the smooth function model.
As ^ has asymptotic variance V . and the second holds since no semiparametric estimator can be more e¢ cient than the MLE in any parametric submodel. it follows that if the asymptotic variance of a feasible semiparametric estimator equals the CramerRao bound for at least one submodel. Formally. then it is necessary that V V V : The …rst inequality holds by the de…nition of V . then it must be the case that V = V and ^ is semiparametrically e¢ cient. our goal is to …nd a parametric submodel whose CramerRao bound for estimation of is V : The solution involves creating a tilted version of the true density. Thus if we …nd a submodel and semiparametric estimator ^ such that V = V .29) 84 . for any submodel with CramerRao variance V and any semiparametric estimator ^ with asymptotic variance V . Consider the parametric submodel f (z j ) = f (z) 1 + 0 1 (z ) (5. then this is the semiparametric asymptotic variance bound. and the aforementioned feasible semiparametric estimator must be semiparametrically e¢ cient. For many statistical problems it is quite challenging to calculate the semiparametric variance bound. It is a parametric submodel since f (z j 0 ) = f (z) when 0 = 0: This parametric submodel has the mean Z ( ) = zf (z j ) dz Z Z 1 = zf (z)dz + f (z)z (z )0 dz = + and parameter of interest ( ) = g ( + ) both which are smooth functions of : Since 1 @ @ (z ) log f (z j ) = log 1 + 0 1 (z ) = 0 1 @ @ 1+ (z ) it follows that the score function for s= is 0) @ log f (z j @ = 1 (z ): (5. V = sup V : 2@ It is a lower bound for the asymptotic variance of any semiparametric estimator. As the semiparametric variance bound cannot be smaller than the CramerRao bound for any submodel. the asymptotic variance of the MLE) equals that of a known semiparametric estimator. In these cases. However the solution is straightforward in the smooth function model. We now show this for the moment estimator ^ = g (^ ) discussed above. it is su¢ cient to construct a parametric submodel for which the CramerRao bound (equivalently. If the asymptotic variance of a speci…c semiparametric estimator equals the bound V we say that the estimator is semiparametrically e¢ cient.28) where f (z) is the true density and = Ez: Note that Z Z Z 0 1 f (z) (z f (z j ) dz = f (z)dz + ) dz = 1 and for all close to zero f (z j ) 0: Thus f (z j ) is a valid density function.the semiparametric e¢ ciency bound) is the supremum of the CramerRao bounds from all conceivable submodels. and cannot be larger than the asymptotic variance of any feasible semiparametric estimator.
the product of the conditional density of y given x.12 Semiparametric E¢ ciency in the Homoskedastic Regression Model In Section 4. As we noted in that section. and the conditional density of y given x is f1 (y j x) 1 + (y x0 ) (x0 ) = 2 : To see that the latter is a valid conditional R density. as described in the previous section. the marginal density of x is f2 (x) .30) You can check that in this submodel.11. x) = f1 (y j x) f2 (x) . 5. but this does not address the question of whether or not OLS is e¢ cient in the homoskedastic regression model. observe that the regression assumption implies that yf1 (y j x) dy = x0 and therefore Z Z Z 0 0 2 f1 (y j x) 1 + y x x = dy = f1 (y j x) dy + f1 (y j x) y x0 dy x0 = 2 = 1: 85 .1.11 we showed that the OLS estimator is ef…cient in the projection model. which is identical to the asymptotic Theorem 5. x j ) = f1 (y j x) 1 + y x0 x0 = 2 f2 (x) : (5. in the class of linear unbiased estimators the one with the smallest variance is leastsquares.10 and 5. and the marginal density of x. @ @ 0g( ) @ @ g ( )0 . and this includes the OLS estimator in the projection model. the semiparametric variance bound for estimation of is V = Q 1 Q 1 . Now consider the parametric submodel f (y.1 Under Assumption 5. and the OLS estimator is semiparametrically e¢ cient. the restriction to linear unbiased estimators is unsatisfactory as it leaves open the possibility that an alternative (nonlinear) estimator could have a smaller asymptotic variance.5 we presented the GaussMarkov theorem. it is su¢ cient to …nd a parametric submodel whose CramerRao bound for estimation of is V 0 : This would establish that V 0 is the semiparametric variance bound and the OLS estimator ^ is semiparametrically e¢ cient for : Let the joint density of y and x be written as f (y.By classic theory the asymptotic variance of the MLE ^ for is the CramerRao bound (E (ss0 )) 1 = 1 1 1 E (z ) (z )0 = . The MLE for is (^) = g + ^ which by the delta method has asymptotic variance V = variance of the moment estimator ^ : This shows that moment estimators are semiparametrically e¢ cient.1. Recall that in the homoskedastic regression model the asymptotic variance of the OLS estimator ^ for is V 0 = Q 1 2 : Therefore. We have established the following theorem. In this section we return to the question of e¢ cient estimation in this model using the theory of semiparametric variance bounds as presented in the previous section. which stated that in the homoskedastic regression model. In Sections 5.
Theorem 5. while Theorem 5.In this parametric submodel the conditional mean of y given x is Z E (y j x) = yf1 (y j x) 1 + y x0 x0 = 2 dy Z Z = yf1 (y j x) dy + yf1 (y j x) y x0 x0 Z Z 2 y x0 = yf1 (y j x) dy + f1 (y j x) x0 Z + y x0 f1 (y j x) dy x0 x0 = 2 = x0 ( + ) .12. The di¤erence is that the GaussMarkov theorem states that OLS has the smallest variance among the set of unbiased linear estimators. 86 . the semiparametric variance bound for estimation of is V 0 = 2 Q 1 and the OLS estimator is semiparametrically e¢ cient. This result is similar to the GaussMarkov theorem. in that it asserts the e¢ ciency of the leastsquares estimator in the context of the homoskedastic regression model. x j ) = log 1 + y @ @ the score is x0 x0 = 2 = x (y x0 ) = 2 1 + (y x0 ) (x0 ) = 2 @ log f (y.1 In the homoskedastic regression model. which therefore is the semiparametric variance bound.1 states that OLS has the smallest asymptotic variance among regular estimators. x j 0 ) = xe= 2 : @ The CramerRao bound for estimation of (and therefore ( ) as well) is s= E ss0 1 = 4 E (xe) (xe)0 1 = 2 Q 1 = V 0: We have shown that there is a parametric submodel (5.12. = = 2 dy 2 dy R using the homoskedasticity assumption that (y x0 )2 f1 (y j x) dy = 2 : This means that in this parametric submodel.30) whose CramerRao bound for estimation of is identical to the asymptotic variance of the leastsquares estimator. the conditional mean is linear in x and the regression coe¢ cient is ( )= + : We now calculate the score for estimation of : Since @ @ log f (y. This is a much more powerful statement.
Find the probability limit of this estimator.Exercises Exercise 5. Find the probability limit of ^ as n ! 1: Is ^ consistent for n X i=1 xi yi ! ? Exercise 5. X be n ^= where k (rank k): y = X + e with E(xi ei ) = 0: De…ne the ridge xi x0 + I k i ! 1 n X i=1 > 0 is a …xed constant. X 2 ) which satisfy y 1 = X 1 1 + e1 and y 2 = X 2 2 + e2 . xi ) only the pair (yi .3 Take the model yi = x0 1 +x0 2 +ei with Exi ei = 0: Suppose that 1 is estimated 1i 2i by regressing yi on x1i only. we say that yi is a latent variable. xi ) are observed. where E (x1i e1i ) = 0 and E (x2i e2i ) = 0. For simplicity. yi . you may assume that both samples have the same number of observations n: (a) Find the asymptotic distribution of p n ^2 2 ^1 = 1: ( 2 1) as n ! 1: (b) Find an appropriate test statistic for H0 : (c) Find the asymptotic distribution of this statistic under H0 : Exercise 5.4 Let y be n regression estimator 1. ) : e¢ cient estimators of ( . is it consistent for 1 ? If not. Suppose yi = x0 + ei i E (xi ei ) = 0 yi = yi + ui where ui is a measurement error satisfying E (xi ui ) = 0 E (yi ui ) = 0 Let ^ denote the OLS coe¢ cient from the regression of yi on xi : (a) Is the coe¢ cient from the linear projection of yi on xi ? as n ! 1? 87 (b) Is ^ consistent for . are ^ .5 Of the variables (yi . In general.2 The model is yi = x 0 + e i i E (xi ei ) = 0 = E xi x0 e2 : i i Find the method of moments estimators ^ . ^ (a) In this model. )? (b) If so.1 You have two independent samples (y 1 . X 1 ) and (y 2 . In this case. in what sense are they e¢ cient? Exercise 5. under what conditions is this estimator consistent for 1 ? Exercise 5. Let ^ 1 and ^ 2 be the OLS estimates of 1 and 2 . and both X 1 and X 2 have k columns. ^ for ( .
are both estimators consistent for ? (b) Are there conditions under which either estimator is e¢ cient? 88 .(c) Find the asymptotic distribution of Exercise 5.6 The model is p n ^ as n ! 1: yi = xi + ei E (ei j xi ) = 0 where xi 2 R: Consider the two estimators ^ = ~ = Pn i=1 x y Pn i 2 i i=1 xi n 1 X yi : n xi i=1 (a) Under the stated assumptions.
Chapter 6 Testing 6. We then …nd z =2 . the upper =2 quantile of the standard normal distribution which has the property that if Z N(0. 89 . This implies a critical value of z:025 = 1:96 2. The asymptotic pvalue of the statistic tn is pn = p(tn ) where p(t) is the tail probability function p(t) = P (jZj > jtj) = 2 (1 (jtj)) : If the pvalue pn is small (close to zero) then the evidence against H0 is strong. Formally. the common practice is to set = :05 or 5%. we …rst pick an asymptotic signi…cance level . A ttest rejects H0 in favor of H1 when jtn ( 0 )j is large. and if jtn j < 2 it is common to say that the tstatistic is statistically insigni…cant. or “accepts” H0 : The asymptotic signi…cance level is because Theorem 5. 1) then P jZj > z =2 = : rejects H0 if For example. which can be interpreted as a measure of the evidence against the null hypothesis.1 t tests The ttest is routinely used to test hypotheses on . When jtn j > 2 it is common to say that the tstatistic is statistically signi…cant. the hypothesis that = 0 can [cannot] be rejected at the asymptotic 5% level. A simple null and composite hypothesis takes the form H0 : H1 : = 6= 0 0 where 0 is some prespeci…ed value. By “large” we mean that the observed value of the tstatistic would be unlikely if H0 were true. It is helpful to remember that this is simply a way of saying “Using a ttest. z:025 = 1:96 and z:05 = 1:645: A test of asymptotic signi…cance jtn j > z =2 : Otherwise the test does not reject.8.” A related statistic is the asymptotic pvalue.1 implies that P (reject H0 j H0 true) = P jtn j > z =2 =2 ! P jZj > z j = = : 0 The rejection/acceptance dichotomy is associated with the NeymanPearson approach to hypothesis testing. While there is no objective scienti…c basis for choice of signi…cance level .
in that the reader is allowed to pick the level of signi…cance . note that the asymptotic distribution of jtn j is F (x) = 1 p(x): Thus P (1 pn u) = = = P (1 P jtn j p(tn ) u) F 1 1 u) (u) P (F (tn ) ! F F establishing that 1 d (u) = u. and the focus should be on the value and interpretation of this estimate. and equal the tstatistic for the test of the hypothesis H0 : = 0: Such papers often discuss the “signi…cance” of certain variables or coe¢ cients. 1]: 6. 1]. from which it follows that pn ! U[0. Another helpful observation is that the pvalue function is a unitfree transformation of the d t statistic.An equivalent statement of a NeymanPearson test is to reject at the % level if and only if pn < : Signi…cance tests can be deduced directly from the pvalue since for any . however. d pn ! U[0. then the data have produced an accurate estimate. 1]. In contrast. pn < if and only if jtn j > z =2 : The pvalue is more general. pn ! U[0. This is critical for good applied econometric practice. s(^) the ratio of the coe¢ cient estimate to its standard error. Instead. not just signs. when a coe¢ cient is of interest. the widelyseen statement “the tratio is highly signi…cant” has little interpretive value. It is a receipe for banishment of your work to lower tier economics journals. or describe “which regressors have a signi…cant e¤ect on y” by noting which tratios exceed 2 in absolute value. Fundamentally. The above discussion requires that the researcher knows what the coe¢ cient means (in terms of the economic problem) and can interpret values and magnitudes. and should be studiously avoided. 90 . But if this is not the case. This should be reported and discussed when this is an interesting economic hypothesis of interest. The point estimate gives our “best guess” for the value. it is distracting. its standard error. For a coe¢ cient these are ^ tn = tn (0) = . it is constructive to focus on the point estimate. so the “unusualness” of the test statistic can be compared to the easytounderstand uniform distribution. and its con…dence interval. That is. The con…dence interval gives us the range of values consistent with the data. If the standard error is large then the point estimate is not a good summary about : The endpoints of the con…dence interval describe the bounds on the likely possibilities. under H0 . This is very poor econometric practice. in contrast to NeymanPearson rejection/acceptance reporting where the researcher picks the signi…cance level. If the con…dence interval embraces too broad a set of values for . then the dataset is not su¢ ciently informative to render inferences about : On the other hand if the con…dence interval is tight. To see this fact. the common tratio is a test for the hypothesis that a coe¢ cient equals zero. The standard error is a measure of precision.2 tratios Some applied papers (especially older ones) report “tratios”for each estimated coe¢ cient. regardless of the complication of the distribution of the original test statistic.
The Wald test rejects at the % level if and only if pn < .4. We have the null and alternative H0 : H1 : The natural estimate of = 6= 0 0: is ^ = h( ^ ) and has asymptotic covariance matrix estimate ^ ^0 ^ ^ V =H V H where @ ^ H = h( ^ ): @ The Wald statistic for H0 against H1 is Wn = n ^ = n h( ^ ) When h is a linear function of 0 0 ^ V 0 0 1 ^ 0 1 ^0 ^ ^ H V H h( ^ ) 0 : (6.3.6.6. Notice that the asymptotic distribution in Theorem 6.1 Under H0 and Assumption 5. where p(x) = P 2 x is the tail probability q function of the 2 distribution.21) showed that p ^ R0 V R 1 R0 ^ 0 : p n ^ d ^ showed that V ! V : Furthermore. 1] under H0 : In applied work it is good practice to report the pvalue of a Wald statistic. 2 (:05) = 3:84 = z:025 : The Wald test fails to reject if Wn is q 1 less than 2 ( ): As with ttests. The asymptotic pvalue for Wn is pn = p(Wn ). and q pn is asymptotically U[0.1.quantile q 2 of the 2 distribution. then the Wald statistic takes the form 0 0 Wn = n R 0 ^ The delta method (5. q a chisquare random variable with q degrees of freedom.3 Wald Tests Sometimes = h( ) is a q 1 vector. then Wn ! d 2. h( ) = R0 . V ) . so by the continuous p p ^ ^0 ^ ^ mapping theorem.3: We have established: ! Z N (0. 91 . and Theorem 5. 0 V 0 q by Theorem B. In this case the tstatistic approach does not work. it is conventional to describe a Wald test as “signi…cant” if Wn q exceeds the 5% critical value.9.1 depends solely on q –the number of restrictions being tested.1) . For example. H ( ) is a continuous function of . if rank(H ) = q. as it helps readers intrepret the magnitude of the statistic. H ( ^ ) ! H : Thus V = H V H ! H 0 V H = V > 0 if H has full rank q: Hence 0 d ^ 1 ^ Wn = n ^ ! Z 0V 1Z = 2.2 Theorem 6.3. It does not depend on k –the number of parameters estimated. An asymptotic Wald test rejects H0 in favor of H1 if Wn exceeds 2 ( ). the upper. and it is desired to test the joint restrictions simultaneously.
still this formula often …nds good use in reading applied papers. Also h( ) = R0 a selector matrix.2) e0 e ^^ where e=y ~ are from OLS of y on X 1 .2). and the null hypothesis is H0 : 2 = 0: is linear with R = 0 I In this case. and e=y ^ X ^. X 2 is n k2 . (We can also call Wn a homoskedastic form of the Wald statistic. k = k1 + k2 . We know that the Wald statistic takes the form ^ Wn = n ^ V 0 0 1 ^ 1 ^ = n ^ 2 R0 V R ^ 2: Now suppose that covariance matrix is computed under the assumption of homoskedasticity. X 2 ): The elegant feature about (6.6.) We now derive expression (6.2) is that it is directly computable from the standard output from two simple OLS regressions.4 F Tests y = X1 1 Take the linear model + X2 2 +e where X 1 is n k1 . This statistic is typically reported as an “Fstatistic” which is de…ned as Fn = 0 e0 e e0 e =k2 ~~ ^^ Wn = : k2 e0 e=(n k) ^^ 1 ^ While it should be emphasized that equality (6. note that by partitioned matrix inversion (A. Because of this connection we call (6.2) the 0 F form of the Wald statistic. = 2. ^ = X 0X 1 X 1 ~ 1. as the sum of squared errors is a typical output from statistical packages.3) R0 X 0 X where M 1 = I 1 R = R0 1X 0 : 1 2 X0 X1 X0 X2 1 1 X0 X1 X0 X2 2 2 1 R = X 0 M 1X 2 2 1 X 1 (X 0 X 1 ) 1 ^ R0 V 0 R 1 Thus 1 =s n R0 X 0 X 92 1 1 R =s 2 n 1 X 0 M 1X 2 2 . First. so 1 ^ ^ that V is replaced with V 0 = s2 n 1 X 0 X : We de…ne the “homoskedastic” Wald statistic 0 Wn = n ^ 0 0 ^0 V 1 ^ 1 ^ = n ^ 2 R0 V 0 R ^ 2: What we show in this section is that this Wald statistic can be written very simply using the formula e0 e e0 e ~~ ^^ 0 Wn = (n k) (6.2) only holds if V 0 = s2 n 1 X 0 X . ~1 = X 0 X 1 1 1 X0 y 1 X 0y are from OLS of y on X = (X 1 . and there are q = k2 restrictions.
^ 2 ) = = n 1 0 log 2 ^ 2 ee ^^ 2 2^ 2 n n log ^ 2 log (2 ) 2 2 n : 2 The MLE under the null hypothesis is the restricted estimates ( ~ 1 . so H0 is an interceptonly model. The Gaussian loglikelihood at these estimates is log L( ^ 1 . ~ 2 ) where ~ 1 is the OLS estimate from a regression of yi on x1i only. 2) Now let us partition and consider tests of the linear restriction H0 : H1 : 2 2 =0 6= 0 in the normal regression model. This special F statistic is testing the hypothesis that all slope coe¢ cients (all coe¢ cients other than the intercept) are zero. ^ 2 ) discussed above. 0. As a general rule. ~ 2 ) = log ~ 2 log (2 ) : 2 2 2 93 . since ^ 0 X 0 M 1 X 2 ^ 2 = e0 e ~~ 2 2 s2 = (n k) 1 e0 e: ^^ e0 e ^^ we conclude that 0 Wn = (n k) e0 e e0 e ~~ ^^ e0 e ^^ as claimed. 6. The estimator under the alternative is the unrestricted estimator ( ^ 1 . ^ 2 . This is rarely an issue today. ^^ = 2 2 or alternatively. with residual variance ~ 2 : The loglikelihood of this model is n n n log L( ~ 1 . This was a popular statistic in the early days of econometric reporting. This is Fn when X 1 is a vector is ones. the residual is ~ e = M 1 y: Now consider the residual regression of e on X 2 = M 1 X 2 : By the FWL theorem. ^ 2 . In many statistical packages. While there are special cases where this F statistic is useful. In parametric models. a good test statistic is the likelihood ratio. note that if we regress y on X 1 alone. ~ ~ 0 ~ ^ ~ ^ e = X 2 ^ 2 + e and X 2 e = 0: Thus ~ e0 e = ~~ ~ ^ X 2 ^2 + e 0 ~ ^ X 2 ^2 + e 0 ~0 ~ ^^ = ^ 2 X 2 X 2 ^ 2 + e0 e ^ 0 X 0 M 1 X 2 ^ 2 + e0 e.5 Normal Regression Model =( 1.and 0 ^ Wn = n ^ 2 R 0 V 0 R 0 1 ^2 : = ^ 0 (X 0 M 1 X 2 ) ^ 2 2 2 s2 To simplify this expression further. there is no reason to report this F statistic. when an OLS regression is estimated. as sample sizes are typically su¢ ciently large that this F statistic is nearly always highly signi…cant. Also. these cases are atypical. when sample sizes were very small and researchers wanted to know if there was “any explanatory power” to their regression. an “Fstatistic”is reported. which is twice the di¤erence in the loglikelihood function evaluated under the null and alternative hypotheses. 0.
This can be seen by a simple example introduced by Lafontaine and White (1986).The LR statistic for H0 against H1 is LRn = 2 log L( ^ 1 . and noting H = r ^r 1 2 . the statistic Wn (r) varies with r: This is an unfortunate feature of the Wald statistic. we have plotted in Figure 6. ^ 2 . 6. we …nd that the standard Wn (r) = n ^ 2 r2 ^ 2r 2 : While the hypothesis r = 1 is una¤ected by the choice of r. This shows that the two statistics (LRn and Wn ) can be numerically close. To demonstrate this e¤ect. they can work quite poorly when the restrictions are nonlinear. 0. while there are other values of r for which the test statistic is insigni…cant. as Wn (r) ! 2 under H0 for any 1 r: This is a context where Monte Carlo simulation can be quite useful as a tool to study and 94 . This is distressing since the choice of r is arbitrary and irrelevant to the actual hypothesis. Take the model yi = ei and consider the hypothesis H0 : = 1: Let ^ and ^ 2 be the sample mean and variance of yi : The standard Wald test for H0 is ^ Wn = n 1 ^2 2 + ei N(0.6 Problems with Tests of NonLinear Hypotheses While the t and Wald tests work well when the hypothesis is a linear restriction on . It also shows that the homoskedastic Wald statistic for linear hypotheses can also be interpreted as an appropriate likelihood ratio statistic under normality. ^ 2 ) = n log ~ 2 = n log ~2 ^2 : log ^ 2 log L( ~ 1 . setting n= 2 = 10: The increasing solid line is for the case ^ = 0:8: The decreasing dashed line is for the case ^ = 1:6: It is easy to see that in each case there are values of r for which the test statistic is signi…cant relative to asymptotic critical values. ~ 2 ) By a …rstorder Taylor series approximation LRn = n log 1 + ~2 ^2 1 'n ~2 ^2 1 0 = Wn : 0 the homoskedastic Wald statistic. d Our …rstorder asymptotic theory is not useful to help pick r.1 the Wald statistic Wn (r) as a function of r. 2 ) : Now notice that H0 is equivalent to the hypothesis H0 (r) : for any positive integer r: Letting h( ) = Wald test for H0 (r) is r r =1 r 1 .
These probabilities are calculated as the percentage of the 50. however. The second through seventh columns contain the Type I error probabilities for di¤erent combinations of n and . This produces random draws from the statistic’ sampling distribution. When comparing statistical procedures. n is varied among 20. P (Wn (r) > 3:84 j = 1) : Given the simplicity of the model. so these probabilities are Type I error. looking for tests for which rejection rates are close to 5% and rarely fall outside of the 3%8% range. Through repetition. For this particular example the only test which meets this criterion is the conventional Wn = Wn (1) test. n. this probability depends only on r. and 2 : In Table 2. remember that the ideal Type I error probability is 5% (. In each case. Rates above 20% are unacceptable. The null hypothesis r = 1 is true.84 – the probability of a false rejection. to which we apply the statistical tools of interest. features of s this distribution can be calculated. we compare the rates row by row.1. one feature of importance is the Type I error of the test using the asymptotic 5% critical value 3.000 simulated Wald statistics Wn (r) which are larger than 3. and is varied among 1 and 3.84. Table 4. Error rates above 10% are considered excessive. 100 and 500. In Table 4. Test performance deteriorates as r increases. which is not surprising given the dependence of Wn (r) on r as shown in Figure 6. Any other choice of r leads to a test with unacceptable Type I error probabilities.000 random samples. Each row of the table corresponds to a di¤erent value of r –and thus corresponds to a particular choice of test statistic. Type I error rates between 3% and 8% are considered reasonable.05) with deviations indicating distortion. The method uses random simulation to create arti…cial datasets. no magic choice of n for which all tests perform uniformly well.1 reports the simulation estimate of the Type I error probability from 50. In the present context of the Wald statistic.1 Type I error Probability of Asymptotic 5% Wn (r) Test 95 .1: Wald Statistic as a function of s compare the exact distributions of statistical procedures in …nite samples. the Type I error probability improves towards 5% as the sample size n increases.1 we report the results of a Monte Carlo simulation where we vary these three parameters. To interpret the table.Figure 6.1 you can also see the impact of variation in sample size. There is. The value of r is varied from 1 to 10. Table 4.
06 .05 . De…ne 0 1 0 B C B C B 1 C B C B C ^ H 1 = B ^2 C B C B C B ^ C @ 1 A ^2 2 so that the standard error for ^ is s(^) = n 1H 0 V H ^1^ ^1 ^ 1 ^ 1=2 : In this case a tstatistic for H0 is r : t1n = 2 s(^) An alternative statistic can be constructed through reformulating the null hypothesis as H0 : 1 r 2 = 0: A tstatistic based on this formulation of the hypothesis is ^ t2n = n 1 r ^2 1=2 : 1H 0 V H ^ 2 ^ 2 96 .25 .20 .21 .12 .07 .19 .33 .07 4 .16 Note: Rejection frequencies from 50.30 .05 .05 .000 simulated random samples In this example it is not surprising that the choice r = 1 yields the best test statistic.06 .18 . ^ 2 ) be the leastsquares estimates of (6. Take the model yi = E (xi ei ) = 0 and the hypothesis H0 : 1 2 0 + x1i 1 + x2i 2 + ei (6.08 .07 .3) =r where r is a known constant.24 .15 .26 .05 .22 .11 7 .06 .09 .13 . Equivalently.07 .31 .3).06 . This point can be illustrated through another example which is similar to one developed in Gregory and Veall (1985).13 8 .10 .23 .15 10 .06 . so the hypothesis can be stated as H0 : = r: ^ Let ^ = ( ^ 0 . While this is clear in this particular example.17 . de…ne = 1 = 2 .15 .12 .25 .22 .08 .13 .10 . ^ 1 . let V ^ be an estimate of the asymptotic covariance matrix for ^ and set ^ = ^ 1 = ^ 2 .=1 =3 r n = 20 n = 100 n = 500 n = 20 n = 100 n = 500 1 .06 . in other examples natural choices are not always obvious and the best choices may in fact appear counterintuitive at …rst.06 3 . Other choices are arbitrary and would not be used in practice.07 .08 .20 .08 5 .14 .05 2 .34 .28 .10 6 .14 9 .06 .05 .08 .35 .15 .
and are close to the ideal 5% rate for both sample sizes.05 .00 . the rejection rates for the t1n statistic diverge greatly from this value. In this section we describe the method in more detail.25 . the exact (…nite sample) distribution Gn is generally unknown.00 The onesided Type I error probabilities P (tn < 1:645) and P (tn > 1:645) are calculated from 50.where To compare t1n and t2n we perform another simple Monte Carlo simulation. We let x1i and x2i be mutually independent N(0.00 . and normalize 0 = 0 and 1 = 1: This leaves 2 as a free parameter.05 . It is also prudent to consider alternative tests to the Wald statistic.06 .06 .00 .26 . :::. ) be a statistic of interest.05 .15 . The basic idea is that for any given F. x1 ) . .09 .06 . 1) variables.7 Monte Carlo Simulation In the previous section we introduced the method of Monte Carlo simulation to illustrate the small sample problems with tests of nonlinear hypotheses.2 Type I error Probability of Asymptotic 5% ttests n = 100 n = 500 P (tn < 1:645) P (tn > 1:645) P (tn < 1:645) P (tn > 1:645) t1n t2n t1n t2n t1n t2n t1n t2n .00 .00 .00 . for example an estimator ^ or a tstatistic (^ )=s(^): The exact distribution of Tn is Gn (u.02 .12 . (yn . The results are presented in Table 4.75 1. .75.05 .05 . F ) can be calculated 97 . xi ) which are random draws from a population distribution F: Let be a parameter and let Tn = Tn ((y1 . our data consist of observations (yi .28 . F ) for selected choices of F: This is useful to investigate the performance of the statistic Tn in reasonable situations and sample sizes.05 . The implication of Table 4. especially for small values of 2 : The left tail probabilities P (t1n < 1:645) greatly exceed 5%. then the “most linear”formulation should be selected (as suggested by the theory of Park and Phillips (1988)). the rejection rates for the linear t2n statistic are invariant to the value of 2 . 6.05 1 0 H2 = @ 1 A : r 0 2 .2.47 . In all cases.06 . and alternatives to asymptotic critical values should be considered.05 . If no linear formulation is feasible.00 .10 .06 . such as the GMM distance statistic which will be presented in Section 9.50 . Recall. Monte Carlo simulation uses numerical simulation to compute Gn (u. xn ) . However.05 . Ideally. In contrast. if the hypothesis can be expressed as a linear restriction on the model parameters.0 and n among 100 and 500: Table 4.000 simulated samples.10 . this formulation should be used.50. 2 ) draw with = 3. while the right tail probabilities P (t1n > 1:645) are close to zero in most cases.00 .25. along with sample size n: We vary 2 among :1.05 .00 . The common message from both examples is that Wald statistics are sensitive to the algebraic formulation of the null hypothesis.7 (as advocated by Hansen (2006)).05.06 .15 . . F ) = P (Tn u j F): While the asymptotic distribution of Tn might be known. the distribution function Gn (u. the entries in the table should be 0.06 .06 .06 . and 1.07 .10 .2 is that the two tratios have dramatically di¤erent sampling behavior.06 . ei be an independent N(0.
The method of Monte Carlo is quite simple to describe.) For step 2. A “true” value of is implied by this choice. B: These results are stored. and calculate \ Bias(^) = \ M SE(^) = B B 1 X 1 X^ Tnb = b B B 1 B b=1 B X b=1 b=1 B 1 X ^ (Tnb ) = b B 2 b=1 2 \ \ var(^) = M SE(^) \ Bias(^) 2 Suppose we are interested in the Type I error associated with an asymptotic 5% twosided ttest. Then the following experiment is conducted n independent random pairs (yi . where N = (B + 1) : It th is therefore convenient to pick B so that N is an integer. s The statistic Tn = Tn ((y1 . So the researcher repeats the experiment B times. F ) = P (Tnb u) = P (Tn u j F ) : From a random sample. Notationally. :::.4) the percentage of the simulated tratios which exceed the asymptotic 5% critical value. For example: Suppose we are interested in the bias. F ): This is one observation from an unknown distribution. meansquared error (MSE). if we set B = 999. the performance will depend on n and 98 . They constitute a random sample of size B from the distribution of Gn (u. we set B = 1000 or B = 5000: We will discuss this choice later. Clearly. from one observation very little can be said. :::. x1 ) . or equivalently the value is selected directly by the researcher which implies restrictions on F . a chisquare can be generated by sums of squares of normals. we can estimate any feature of interest using (typically) a method of moments estimator. let the b0 th experiment result in the draw Tnb . or variance of the distribution ^ of : We then set Tn = ^ . =s(^) and calculate We would then set Tn = ^ B 1 X ^ 1 (Tnb P= B b=1 1:96) . then the 5% sample quantile is 50’ sorted value and the 95% sample quantile is the 950’ sorted value. it is important that the statistic be evaluated at the “true”value of corresponding to the choice of F: The above experiment creates one random draw from the distribution Gn (u. (6. and from these most random variables can be constructed. b = 1. The name Monte Carlo derives from the famous Mediterranean gambling resort where games of chance are played. (For example. i = 1. where B is a large number. For example. run the above experiment. 1] and N(0. ) is calculated on this pseudo data. Typically. xi ) .numerically through simulation. Generally. n. 1) random numbers. Suppose we are interested in the 5% and 95% quantile of Tn = ^: We then compute the 5% and 95% sample quantiles of the sample fTnb g: The % sample quantile is a number q such that % of the sample are less than q : A simple way to compute sample quantiles is to sort the sample fTnb g from low to high. The researcher chooses F (the distribution of the data) and the sample size n. xn ) . most computer packages have builtin procedures for generating U[0. (yn . :::. For step 1. th th The typical purpose of a Monte Carlo simulation is to investigate the performance of a statistical procedure (estimator or test) in realistic settings. are drawn from the distribution F using the computer’ random number generator. Then q is the N ’ number in this ordered sequence.
and the regressors are clearly labeled. Furthermore.1 OLS Estimates of Linear Equation for Log(Wage) ^ Intercept Education Experience Experience2 Married Female Union Member Immigrant Hispanic NonWhite ^ Sample Size 99 1. Table 4.033 :00057 .032 . respectively. therefore. B: Often this is called the number of replications.4877 18.002 .102 :232 .001 .027 . the dependent variable (log(Wage)). :007. it is straightforward to calculate standard errors for any quantity of interest. the researcher must select the number of experiments. but requires more computational time. excluding military.808 s( ^ ) .003.097 :121 :102 :070 .101 . then we can set s (^) = (:05) (:95) =B ' :22= B: Hence. Since the results of a Monte Carlo experiment are estimates computed from a random sample of size B.8 Estimating a Wage Equation We again return to our wage equation. this may be p approximated by replacing p with p or with an hypothesized value. and nonwhite. For regressors we include years of education. if we are assessing p an asymptotic 5% test. the table also reports the estimated error standard deviation. and the sample size: These are useful summary measures of …t which aid readers. female. standard errors p for B = 100. experience squared. It is therefore useful to conduct a variety of experiments. and dummy variable indicators for the following: married. The available sample is 18. Parameter estimates are both reported for the coe¢ cients of interest (the coe¢ cients on the state dummy variables are omitted) and standard errors are reported for all reported coe¢ cient estimates.010 . In practice. and poorly for others. In addition to the coe¢ cient estimates. the choice of B is often guided by the computational demands of the statistical procedure. Forp ^ example. s (^) = :022. hispanic. immigrant. and 5000.4). Table 4. potential work experience. union member. it is simple to make inferences about rejection probabilities from statistical tests. If the standard error is too large to make a reliable inference.1 displays the parameter estimates in a standard format. an estimator or test may perform wonderfully for some values.00002 . then B will have to be increased.1.010 .013 . this adds 50 regressors).014 .808 so the parameter estimates are quite precise and reported in Table 4. The Table clearly states the estimation method (OLS). excluding the coe¢ cients on the state dummy variables. The random variable 1 (Tnb 1:96) is iid Bernoulli. p 6.007 .4) is therefore an p unbiased estimator of p with standard error s (^) = p (1 p) =B.008 . For the dependent variable we use the natural log of wages so that coe¢ cients may be interpreted as semielasticities. Quite simply.F: In many cases. We use the sample of wage earners from the March 2004 Current Population Survey. equalling 1 with probability p = E1 (Tnb 1:96) : The average (6. and . such as the percentage estimate reported in (6. for a selection of choices of n and F: As discussed above. are. In particular. we included a dummy variable for state of residence (including the District of Columbia. a larger B results in more precise estimates of the features of interest of Gn . 1000. As p is unknown.
but not equal. ranging in magnitude from 9. In this example. Using either statistic the hypothesis is easily rejected.007. For example. An example is reported in Table 4.101 . 50 100 . we …nd Wn = 550: Alternatively. Again consider the malefemale wage di¤erence. consequently the reporting of tratios is a waste of space. implying a mean wage di¤erence of 23%. But how precise is the reported estimate of a wage gap of 23%? It is hard to assess from a quick reading of Table 4. Table 4.097 :121 :102 :070 t 32 50 33 28 12.2 reports that the tratio is 33.1). and form con…dence intervals and ttests on individual coe¢ cients if desired. the restricted standard deviation estimate is ~ = :4945: The F form of the Wald statistic (6.1) that the state coe¢ cients are jointly zero. This means that we have estimated the di¤erence in mean wages between men and women to lie between 22% and 25%. if you are interested in the di¤erence in mean wages between men and women. I interpret this as a precise estimate because there is not an important di¤erence between the lower and upper bound.Note: Equation also includes state dummy variables. some empirical researchers report tratios for each parameter estimate. In a sample of this size this …nding is rather uninteresting. enabling us to reject the hypothesis that the coe¢ cient is zero. 808 :49452 :48772 1 = 528: Notice that the two statistics are close. for they enable for quick and easy assessment of the degree of estimation uncertainty. “tratios” are tstatistics which test the hypothesis that the coe¢ cient equals zero. you can see that the standard error for this coe¢ cient estimate is 0. This implies a 95% asymptotic con…dence interval for the coe¢ cient estimate of [ :246. Instead of reporting standard errors. all the tratios are highly signi…cant.2. as the 1% critical value for the 2 distribution is 76.8 33 9. Table 4. To assess the precision.2 Standard errors are much more useful. but not much more.027 . :218].2) is Wn = n ~2 ^2 1 = 18.3 to 50. it is best to always report standard errors along with parameter estimates (as done in Table 4. This allows readers to assess the precision of the parameter estimates.102 :232 . reestimating the model with the 50 state dummies excluded.033 :00057 . What we learn from these statistics is that these coe¢ cients are nonzero. one might question whether or not the state dummy variables are relevant.7 9:3 7:3 7 Returning to the estimated wage equation. As a general rule. Computing the Wald statistic (6.2 OLS Estimates of Linear Equation for Log(Wage) Improper Reporting: tratios replacing standard errors ^ Intercept Education Experience Experience2 Married Female Union Member Immigrant Hispanic NonWhite 1. you can read from the table that the estimated coe¢ cient on the Female dummy variable is 0:232.
6 we discovered that such ttests have very poor Type I error rates. there is not a simple expression for this set. we can write this e¤ect as log(W age) = 2 Experience + 3 Experience 2 + Our question is: At which level of experience do workers achieve the highest wage? In this quadratic model. Ignoring the other coe¢ cients. this is a poor choice. These tstatistics take the form tn ( ) = ^ + 2^ 2 3 ^ h0 V h where h = 1 2 1=2 ^ and V is the covariance matrix for ( ^ 2 ^ 3 ): In the present context we are interested in forming a con…dence interval. 101 . Instead. implying a 95% con…dence interval of [27:9. so we have to go one step further. as the coverage probability of this con…dence interval is one minus the Type I error of the hypothesis test based on the ttest. This set is [27:0. This is the set of such that jtn ( )j 1:96: Since tn ( ) is a nonlinear function of . Our desired con…dence interval will be the set of parameter values which are not rejected by the hypothesis test.1 we …nd the point estimate ^= ^ 2 2 2 : 3 2^3 = 28:69: Using the Delta Method. 29:5]: Notice that the upper end of the con…dence interval is the same as that from the delta method. 29:5]: However. but it can be found numerically quite easily. In Section 6. we found better Type I error rates by reformulating the hypothesis as a linear restriction. not testing a hypothesis. we can calculate a standard error of s(^) = :40. if 2 > 0 and 3 < 0 the solution is = From Table 4. but the lower end is substantially lower.Another interesting question which can be addressed from these estimates is the maximal impact of experience on mean wages.
show that the leastsquares estimate of = ( 1 . (b) Verify that R0 ~ = r: (c) Show that if R0 ~ = r is true. subject to the constraint that 1 = c (where c is some given vector) is simply the OLS regression of y X 1 c on X 2 : Exercise 6. show that the leastsquares estimate of ( 1 . the following de…nition is used. …nd the least Exercise 6. ) = Sn ( ) + 2 where is s 1: 0 R0 r (a) Show that the solution is ~ = ^ X 0X h ^ = R0 X 0 X h i 1 R R0 X 0 X R i 1 1 R R0 ^ r 1 1 R0 ^ r where ^ = X 0X is the unconstrained OLS estimator. ~ minimizes the sum of squared errors Sn ( ) over all Exercise 6. r is a known s 1 vector. the leastsquares estimate of subject to the restriction h( ) = 0 is ~ = argmin Sn ( ) h( )=0 Sn ( ) = (y X )0 (y X ): such that the restriction holds. then = Ik X 0X 1 1 X 0y h R R0 X 0 X 1 R i 1 R0 X 0X 1 X 0 e: p n ~ (d) Under the standard assumptions plus R0 as n ! 1: = r.Exercises For exercises 14. 2 ).3 In the model y = X 1 1 + X 2 2 + e. …nd the asymptotic distribution of (e) Find an appropriate formula to calculate standard errors for the elements of ~ : 102 . 2 ) subject to the constraint that 2 = 0 is the OLS regression of y on X 1 : Exercise 6.1 In the model y = X 1 1 + X 2 2 + e. In the model y = X + e. subject to the constraint that 1 = 2: k. and rank(R) = s: Explain why ~ solves the minimization of the Lagrangian 1 L( . = That is. with X 1 and X 2 each n squares estimate of = ( 1 . 2 ).4 Take the model y = X + e with the restriction R0 = r where R is a known k s matrix.2 In the model y = X 1 1 + X 2 2 + e. 0 < s < k.
Test the hypothesis that the coe¢ cient on Qi is zero. Calculate appropriate standard errors. The data …le nerlov. Theil’ adjusted R s ^ ^ ^ increases if and only if jtk+1 j > 1. Long Term Debt to Asset Ratio. which suggests that investment s should be predicted solely by Qi : Thus the coe¢ cient on Qi should be positive and the others should be zero. Di .dat contains his data.7. i Qi Di .7 In a paper in 1963. Total Market Value to Asset Ratio (Tobin’ Q). Nerlov was interested in estimating a cost function: T C = f (Q. Do you obtain the same estimates as in part (c)? 103 . Ci Di : Test the joint hypothesis that the six interaction and quadratic coe¢ cients are zero.S. Regress Ii on Qi . Ci . Test the joint hypothesis that the coe¢ cients on Ci and Di are zero. test the hypothesis H0 : 3 + 4 + 5 = 1: (c) Estimate (6. …rms extracted from Compustat for the year 1987. Are the results consistent with the predictions of the theory? 2 (d) Now try a nonlinear (quadratic) speci…cation. Qi Ci . Report your parameter estimates and standard errors.dat contains data on 565 U. The stock variables are beginning of year. 1 2 ]k+1. Q2 .7 of Hayashi. s (b) Using a Wald statistic.k+1 1=2 Exercise 6.5 Prove that if an additional regressor X k+1 is added to X. (The problem is discussed in Example 8. section 1. but your standard errors may di¤er. The variables are described on page 77 of Hayashi.5) Report parameter estimates and standard errors. The ‡ variables are annual sums for 1987. Di . P K): (a) First estimate an unrestricted CobbDouglass speci…cation log T Ci = 1 + 2 log Qi + 3 log P Li + 4 log P Ki + 5 log P Fi + ei : (6. where tk+1 = k+1 =s( k+1 ) is the tratio for k+1 and s( ^ k+1 ) = s2 [(X 0 X) is the homoskedasticityformula standard error. ow (a) Estimate a linear regression of Ii on the other variables. s Cash Flow to Asset Ratio. You should obtain the same OLS estimates as in Hayashi’ equation (1.5) by leastsquares imposing this restriction by substitution. The variables. P F. Ci2 . (d) Estimate (6. and the empirical exercise in Chapter 1 of Hayashi). are Ii Qi Ci Di Investment to Capital Ratio (multiplied by 100).3 of Greene.6 The data set invest. in order. P L. Marc Nerlove analyzed a cost function for 145 American electric companies. (b) Calculate asymptotic con…dence intervals for the coe¢ cients.7). (c) This regression is related to Tobin’ q theory of investment. Exercise 6.Exercise 6.5) subject to 3 + 4 + 5 = 1 using the restricted leastsquares estimator from problem 4.
The GLS estimator is sometimes called the Aitken estimator. :::. we know that the leastsquares estimator is semiparametrically e¢ cient for the projection coe¢ cient. z 1i are squares (and perhaps levels) of some (or all) elements of xi : Often the functional form is kept simple for parsimony. the leastsquares estimator is ine¢ cient.1 Generalized Least Squares In the projection model. The theory of Chamberlain (1987) can be used to show that in this model the semiparametric e¢ ciency bound is obtained by the Generalized Least Squares (GLS) estimator (4. The GLS estimator (7.Chapter 7 Additional Regression Topics 7. ^ 2 g: 1 n We now discuss this estimation problem.1.1) is infeasible since the matrix D is unknown. Then we could estimate ^ = Z 0Z 1 Z0 p ! 104 . However.11) introduced in Section 4. in the linear regression model yi = x0 + ei i E (ei j xi ) = 0. ^ A feasible GLS (FGLS) estimator replaces the unknown D with an estimate D = diagf^ 2 .1) E( This regression error i i j xi ) = 0: is generally heteroskedastic and has the conditional variance var ( i j xi ) = var e2 j xi i = E e2 i = E e4 j xi i E e2 j xi i 2 j xi 2 E e2 j xi i : by OLS: Suppose ei (and thus i) were observed. where z 1i is some q 1 function of xi : Typically. Let i = e2 : Then i E ( i j xi ) = 0 + z 0 1 1i and we have the regression equation i = 0 + z0 1i 1 + i (7.5. Suppose that we model the conditional variance using the parametric form 2 i = = 0 0 + z0 1i 1 zi.
and where V p n (^ 1 ) ! N (0. V ) E ziz0 i 2 i d = E ziz0 i E ziz0 i 1 : x0 ( ^ i ): Thus (7. 105 . xi ). As the proof is tricky. We call (7. :::. A trimming rule takes the form 2 i = max[~ 2 . this introduces a degree of arbitrariness.2) While ei is not observed. there is no guarantee that ~ 2 > 0 for all i: If ~ 2 < 0 for some i. estimator of : Since there is not a unique speci…cation for the conditional variance the FGLS estimator is not unique. which is undesirable. we have the OLS residual ei = yi ^ i x0 ^ = ei i ^ = e2 ^i = i e2 i + (^ )0 xi x0 ( ^ i 1X zi( ^ n i=1 n 2ei x0 ^ i n ): And then 1 X p zi n i=1 n i = p !0 p 2X z i ei x0 n ^ i n i=1 + )0 xi x0 ( ^ i p ) n Let ~ = Z 0Z be from OLS regression of ^i on z i : Then p p n (~ ) = n (^ d 1 Z0^ 1 (7. and will depend on the model (and estimation method) for the skedastic regression. we just state the result without proof.3) the skedastic regression. if ~ 2 0 for some i then the FGLS estimator will force the i regression equation through the point (yi . If the estimates turn out to be sensitive to its choice. c^ 2 ] i for some c > 0: For example. V ) Thus the fact that i is replaced with ^i is asymptotically irrelevant. and hence we can estimate 2 = z 0 by i i ~2 = ~ 0zi: i Suppose that ~ 2 > 0 for all i: Then set i ~ D = diagf~ 2 . setting c = 1=4 means that the conditional variance function is constrained to exceed onefourth of the unconditional variance. then the FGLS estimator i i is not well de…ned. In this context it is useful to reestimate the model with several choices for the trimming parameter.4) ! N (0. It is possible to show that if the skedastic regression is correctly speci…ed. as it is estimating the conditional variance of the regression of yi on xi : We have shown that is consistently estimated by a simple procedure. Furthermore.1). This suggests that there is a need to bound the estimated variances away from zero. As there is no clear method to select c. then FGLS is asymptotically equivalent to GLS. One typical problem with implementation of FGLS estimation is that in the linear speci…cation (7. ~ 2 g 1 n and ~ = X 0D ~ 1 1 (7. the estimation method should probably be reconsidered.3) 1 )+ n Z 0Z n 1=2 Z0 (7.5) X ~ X 0D 1 y: This is the feasible GLS. or FGLS.
individual estimated conditional variances may be negative. then the OLS 106 .1) is correctly speci…ed.1. FGLS can do worse than OLS in practice. OLS is a robust estimator of the parameter vector. It may be the case that 0 z i is only an approximation to the true conditional variance 2 = i 2 j x ). In this case we interpret 0 z as a linear projection of e2 on z : ~ should perhaps be E(ei i i i i called a quasiFGLS estimator of : Its asymptotic variance is not that given in Theorem 7. Second. In this case.1. 1 xi x0 i : Examining the asymptotic distribution of Theorem 7. p n ~ F GLS ! N (0. i ~0 V is inconsistent for V .1. V ) .1. It is consistent not only in the regression model. ~0 An appropriate solution is to use a Whitetype estimator in place of V : This may be written as ! 1 ! ! 1 n n n 1X 2 1X 4 2 1X 2 ~ ~ i xi x0 ~ i ei xi x0 ^ ~ i xi x0 V = i i i n n n i=1 i=1 i=1 = 1 0~ XD n 1 1 X 1 0~ XD n 1 ^~ DD 1 X 1 0~ XD n 1 1 X ^ where D = diagf^2 . the estimated conditional variances may contain more noise than information about the true conditional variances.1. :::. p and thus where V = E 2 i n ~ GLS ~ F GLS d p ! 0. but also under the assumptions of linear projection. In the linear regression model. Unless 2 = 0 z i . Instead. on the other hand. There are three reasons.1 If the skedastic regression is correctly speci…ed.Theorem 7. Why then do we not exclusively estimate regression models by FGLS? This is a good question. the natural estimator of the asymptotic variance of ~ is ! 1 n 1 1X 2 1 0~ 1 0 ~ V = XD X ~ i xi x0 : = i n n i=1 ~0 which is consistent for V as n ! 1: This estimator V is appropriate when the skedastic regression (7. If the equation of interest is a linear projection and not a conditional mean. require the assumption of a correct conditional mean. This introduces an element of arbitrariness which is unsettling to empirical researchers. and it may be estimated with considerable error. First. Third. V = E 0 zi 1 xi x0 i 1 E 0 zi 2 2 0 i xi xi E 0 zi 1 xi x0 i 1 : V takes a sandwich form similar to the covariance matrix of the OLS estimator. Since the form of the skedastic regression is unknown. and this requires trimming to solve. The GLS and FGLS estimators. and was proposed by Cragg (1992). e2 g: This is estimator is robust to misspeci…cation of the conditional varie1 ^n ance. FGLS estimation depends on speci…cation and estimation of the skedastic regression. and probably most importantly. FGLS is asymptotically superior to OLS.
The FGLS probability limit will depend on the particular function selected for the skedastic regression. The hypothesis of homoskedasticity is that E e2 j xi = i H0 : 1 or equivalently that =0 in the regression (7.2. The asymptotic distribution (7. nor to determine whether classic or White standard errors should be reported. tests for heteroskedasticity should be used to answer the scienti…c question of whether or not the conditional variance is a function of the regressors. White (1980) proposed that the test for heteroskedasticity be based on setting z i to equal all nonredundant elements of xi .3) and constructing a Wald statistic. so ^ q ^ s(^) = n 1 x0 V x: Thus an asymptotic 95% con…dence interval for m(x) is x0 ^ 2 q n 1 x0 V ^ x : It is interesting to observe that if this is viewed as a function of x. 2 : If i this simpli…cation is replaced by the standard formula (under independence of the error).2 Testing for Heteroskedasticity 2. It is important not to misuse tests for heteroskedasticity. Rather. in which case i is independent of xi and the asymptotic variance (7. The main di¤erences between popular tests are which transformations of xi enter z i : Motivated by the form of the asymptotic variance of the OLS estimator ^ .6) under independence show that this test has an asymptotic chisquare distribution.6) i i Hence the standard test of H0 is a classic F (or Wald) test for exclusion of all regressors from the skedastic regression (7.3 Forecast Intervals m(x) = E (yi j xi = x) = x0 : In the linear regression model the conditional mean of yi given xi = x is In some cases. and all crossproducts. and replaced E 2 with 2 4 which holds when ei is N 0. the width of the con…dence set is dependent on x: 107 . but the only di¤erence is that they allowed for general choice of z i .and FGLS estimators will converge in probability to di¤erent limits as they will be estimating two di¤erent projections. 7. we want to estimate m(x) at a particular point x: Notice that this is a (linear) function of : Letting h( ) = x0 and = h( ). The point is that the e¢ ciency gains from FGLS are built on the stronger assumption of a correct conditional mean.2) for ~ simpli…es to 1 V = E ziz0 E 2 : (7. It should not be used to determine whether to estimate a regression equation by OLS or FGLS.1). the two tests coincide. We may therefore test this hypothesis by the estimation (7. 7. If this question is not of economic interest.4) and the asymptotic variance (7. and the cost is a loss of robustness to misspeci…cation. its squares. then there is no value in conducting a test for heteorskedasticity.1 Under H0 and ei independent of xi . Hypothesis tests are not designed for these purposes. we see that m(x) = ^ = x0 ^ and H = x. the Wald test of H0 is asymptotically 2: q Most tests for heteroskedasticity take this basic form. Theorem 7. In the classic literature it is typical to impose the stronger assumption that ei is independent of xi . BreuschPagan (1979) proposed what might appear to be a distinct test.3).
For a given value of xi = x; we may want to forecast (guess) yi outofsample. A reasonable rule is the conditional mean m(x) as it is the meansquareminimizing forecast. A point forecast is the estimated conditional mean m(x) = x0 ^ . We would also like a measure of uncertainty for the ^ forecast. The forecast error is ei = yi m(x) = ei x0 ^ ^ ^ : As the outofsample error ei is independent of the insample estimate ^ ; this has variance E^2 = E e2 j xi = x + x0 E ^ ei i = Assuming E e2 j xi = i
2; 2
^
0
x
(x) + n
1 0
x V x:
^ the natural estimate of this variance is ^ 2 + n 1 x0 V x; so a standard q ^ error for the forecast is s(x) = ^ 2 + n 1 x0 V x: Notice that this is di¤erent from the standard ^ error for the conditional mean. If we have an estimate of the conditional variance function, e.g. q ^ ~ 2 (x) = ~ 0 z from (7.5), then the forecast standard error is s(x) = ~ 2 (x) + n 1 x0 V x ^ It would appear natural to conclude that an asymptotic 95% forecast interval for yi is h i x0 ^ 2^(x) ; s
but this turns out to be incorrect. In general, the validity of an asymptotic con…dence interval is based on the asymptotic normality of the studentized ratio. In the present case, this would require the asymptotic normality of the ratio ei x0 ^ s(x) ^ :
But no such asymptotic approximation can be made. The only special exception is the case where ei has the exact distribution N(0; 2 ); which is generally invalid. To get an accurate forecast interval, we need to estimate the conditional distribution of ei given xi = x; which is a much more di¢ cult task. Perhaps due to this di¢ culty, many applied forecasters h i use the simple approximate interval x0 ^ 2^(x) despite the lack of a convincing justi…cation. s
7.4
NonLinear Least Squares
In some cases we might use a parametric regression function m (x; ) = E (yi j xi = x) which is a nonlinear function of the parameters : We describe this setting as nonlinear regression. Examples of nonlinear regression functions include x m (x; ) = 1 + 2 1 + 3x m (x; ) = 1 + 2 x 3 m (x; ) =
1
+
0
2 exp( 3 x)
m (x; ) = G(x ); G known m (x; ) = m (x; ) = m (x; ) =
0 1 x1 1
+
2x
0 2 x1
x2
4
3
+
0 1 x1
+
3 (x
1 (x2 <
4 ) 1 (x > 4 ) 0 3) + 2 x1 1 (x2
>
3)
In the …rst …ve examples, m (x; ) is (generically) di¤erentiable in the parameters : In the …nal two examples, m is not di¤erentiable with respect to 4 and 3 which alters some of the analysis. When it exists, let @ m (x; ) = m (x; ) : @ 108
Nonlinear regression is sometimes adopted because the functional form m (x; ) is suggested by an economic model. In other cases, it is adopted as a ‡ exible approximation to an unknown regression function. The least squares estimator ^ minimizes the normalized sumofsquarederrors Sn ( ) = 1X (yi n
i=1 n
m (xi ; ))2 :
When the regression function is nonlinear, we call this the nonlinear least squares (NLLS) estimator. The NLLS residuals are ei = yi m xi ; ^ : ^ One motivation for the choice of NLLS as the estimation method is that the parameter is the solution to the population problem min E (yi m (xi ; ))2 Since sumofsquarederrors function Sn ( ) is not quadratic, ^ must be found by numerical methods. See Appendix E. When m(x; ) is di¤erentiable, then the FOC for minimization are 0=
n X i=1
m
xi ; ^ ei : ^
(7.7)
Theorem 7.4.1 Asymptotic Distribution of NLLS Estimator If the model is identi…ed and m (x; ) is di¤ erentiable with respect to , p V where m
i
n ^
1
d
! N (0; V ) E m i m0 i
1
= E m i m0 i = m (xi ;
0 ):
E m i m0 i e2 i
Based on Theorem 7.4.1, an estimate of the asymptotic variance V ^ V = 1X m i m0 i ^ ^ n
i=1 n
is !
1
!
1
1X m i m0 i e2 ^ ^ ^i n
i=1
n
!
1X m i m0 i ^ ^ n
i=1
n
where m i = m (xi ; ^) and ei = yi m(xi ; ^): ^ ^ Identi…cation is often tricky in nonlinear regression models. Suppose that m(xi ; ) =
0 1zi
+
0 2 xi (
)
where xi ( ) is a function of xi and the unknown parameter : Examples include xi ( ) = xi ; xi ( ) = exp ( xi ) ; and xi ( ) = xi 1 (g (xi ) > ). The model is linear when 2 = 0; and this is often a useful hypothesis (submodel) to consider. Thus we want to test H0 : However, under H0 , the model is yi =
2
= 0:
0 1zi
+ ei
and both 2 and have dropped out. This means that under H0 ; is not identi…ed. This renders the distribution theory presented in the previous section invalid. Thus when the truth is that 109
2 = 0; the parameter estimates are not asymptotically normally distributed. Furthermore, tests of H0 do not have asymptotic normal or chisquare distributions. The asymptotic theory of such tests have been worked out by Andrews and Ploberger (1994) and B. Hansen (1996). In particular, Hansen shows how to use simulation (similar to the bootstrap) to construct the asymptotic critical values (or pvalues) in a given application.
Proof of Theorem 7.4.1 (Sketch). NLLS estimation falls in the class of optimization estimators. For this theory, it is useful to denote the true value of the parameter as 0 : p The …rst step is to show that ^ ! 0 : Proving that nonlinear estimators are consistent is more challenging than for linear estimators. We sketch the main argument. The idea is that ^ minimizes the sample criterion function Sn ( ); which (for any ) converges in probability to the meansquared error function E (yi m (xi ; ))2 : Thus it seems reasonable that the minimizer ^ will converge in probability to 0 ; the minimizer of E (yi m (xi ; ))2 . It turns out that to show this rigorously, we need to show that Sn ( ) converges uniformly to its expectation E (yi m (xi ; ))2 ; which means that the maximum discrepancy must converge in probability to zero, to exclude the possibility that Sn ( ) is excessively wiggly in . Proving uniform convergence is technically challenging, but it can be shown to hold broadly for relevant nonlinear regression models, especially if the regression function m (xi ; ) is di¤erentiabel in : For a complete treatment of the theory of optimization estimators see Newey and McFadden (1994). p Since ^ ! 0 ; ^ is close to 0 for n large, so the minimization of Sn ( ) only needs to be examined for close to 0 : Let 0 yi = ei + m0 i 0 : For close to the true value
0;
by a …rstorder Taylor series approximation,
0)
m (xi ; ) ' m (xi ; Thus yi m (xi ; ) ' (ei + m (xi ; = ei = m i( m
0 i 0 0 yi
+ m0 i (
0) :
0 )) 0)
m (xi ;
0)
+ m0 i (
0)
:
Hence the sum of squared errors function is Sn ( ) =
n X i=1
(yi
m (xi ; )) '
2
n X i=1
0 yi
m0 i
2
0 and the righthandside is the SSE function for a linear regression of yi on m i : Thus the NLLS 0 estimator ^ has the same asymptotic distribution as the (infeasible) OLS regression of yi on m i ; which is that stated in the theorem.
7.5
Least Absolute Deviations
We stated that a conventional goal in econometrics is estimation of impact of variation in xi on the central tendency of yi : We have discussed projections and conditional means, but these are not the only measures of central tendency. An alternative good measure is the conditional median. To recall the de…nition and properties of the median, let y be a continuous random variable. The median = med(y) is the value such that P(y ) = P (y 0 ) = :5: Two useful facts about the median are that = argmin E jy j (7.8) 110
and E sgn (y where sgn (u) = 1 1 if u 0 if u < 0 )=0
is the sign function. These facts and de…nitions motivate three estimators of : The …rst de…nition is the 50th 1 P empirical quantile. The second is the value which minimizes n n jyi j ; and the third de…nition i=1 1 Pn is the solution to the moment equation n i=1 sgn (yi ) : These distinctions are illusory, however, as these estimators are indeed identical. Now let’ consider the conditional median of y given a random vector x: Let m(x) = med (y j x) s denote the conditional median of y given x: The linear median regression model takes the form yi = x 0 + e i i med (ei j xi ) = 0 In this model, the linear function med (yi j xi = x) = x0 is the conditional median function, and the substantive assumption is that the median function is linear in x: Conditional analogs of the facts about the median are P(yi x0
0
j xi = x) = P(yi > x0
j xi = x) = :5
E (sgn (ei ) j xi ) = 0 E (xi sgn (ei )) = 0 = min E jyi x0 j i 1X LADn ( ) = yi n
i=1 n
These facts motivate the following estimator. Let x0 i
be the average of absolute deviations. The least absolute deviations (LAD) estimator of minimizes this function ^ = argmin LADn ( ) Equivalently, it is a solution to the moment condition 1X xi sgn yi n
i=1 n
x0 ^ = 0: i
(7.9)
The LAD estimator has an asymptotic normal distribution. Theorem 7.5.1 Asymptotic Distribution of LAD Estimator When the conditional median is linear in x p d n ^ ! N (0; V ) where V = 1 E xi x0 f (0 j xi ) i 4
1
Exi x0 i
E xi x0 f (0 j xi ) i
1
and f (e j x) is the conditional density of ei given xi = x: 111
Proof of Theorem 7. i P Since sgn (a) = 1 2 1 (a 0) . by the WLLN. by a Taylor series expansion and the fact g( ) = 0 g( ^ ) ' @ g( ) ^ @ 0 : 112 . and this improves estimation of the median. See Chapter 16. the minimizer of E jyi x0 j. First. We need three preliminary results.9) is equivalent to g n ( ^ ) = 0.1 is advanced. converges in probability to 0 . the minimizer of LADn ( ).The variance of the asymptotic distribution inversely depends on f (0 j x) . The main di¢ culty is the estimation of f (0). the conditional density of the error at its median.) It follows that ^ . the height of the error density at its median. While a complete proof of Theorem 7.1: Similar to NLLS.1) p n (g n ( since Eg i ( 0 )g i ( di¤erentiation. we provide a sketch here for completeness. In the special case where the error is independent of xi . When f (0 j x) is large. 0 0) 0) g( 0 )) = n 1=2 n X i=1 gi( 0) d ! N 0. and is sketched here. (7. where g n ( ) = n 1 n g i ( ) i=1 and g i ( ) = xi (1 2 1 (yi x0 )) : Let g( ) = Eg i ( ). LADn ( ) ! E jyi x0 j : i Furthermore.5. For any …xed . i by the central limit theorem (Theorem C. it can be shown that this convergence is uniform in : (Proving uniform convergence is more challenging than for the NLLS criterion since the LAD criterion is not di¤erentiable in . Computation of standard error for LAD estimates typically is based on equation (7. Exi x0 i = Exi x0 : Second using the law of iterated expectations and the chain rule of i @ g( ) = @ 0 = = = @ Exi 1 2 1 yi x0 i @ 0 @ 2 0 E xi E 1 ei x0 x0 0 j xi i i @ " Z 0 # xi x0 0 i @ 2 0 E xi f (e j xi ) de @ 1 2E xi x0 f x0 i i x0 i 0 j xi so @ g( ) = @ 0 2E xi x0 f (0 j xi ) : i Third. then there are many innovations near to the median.2.10). This can be done with kernel estimation techniques.10) This simpli…cation is similar to the simpli…cation of the asymptotic covariance of the OLS estimator under homoskedasticity.5. Let 0 denote the true value of 0 : p The …rst step is to show that ^ ! 0 : The general nature of the proof is similar to that for the p NLLS estimator. then f (0 j x) = f (0) and the asymptotic variance simpli…es V = (Exi x0 ) i 4f (0)2 1 (7. LAD is an optimization estimator.
Exi xi p The third line follows from an asymptotic empirical process argument and the fact that ^ ! 0. V ) : 2E xi x0 f (0 j xi ) i n g( ^ ) 0) gn( ^ ) g( 0 )) n (g n ( 0 N 0. when F (y j x) is continuous and strictly monotonic in y. then F (Q (x) j x) = : For …xed . the quantile regression function q (x) describes how the ’ quantile of the conditional th distribution varies with the regressors. This linear speci…cation assumes that Q (x) = 0 x where the coe¢ cients vary across the quantiles : We then have the linear quantile regression model yi = x0 i + ei where ei is the error de…ned to be the di¤erence between yi and its ’ conditional quantile x0 : th i By construction. so you can think of the quantile as the inverse of the distribution function.Together p n ^ 0 ' = ' @ g( @ 0 1 0) p ng( ^ ) 1p 1p 1 1 E xi x0 f (0 j xi ) i 2 d 1 ! E xi x0 f (0 j xi ) i 2 = N (0. As functions of x. 113 . the ’ conditional quantile of ei is zero.11) Q = argmin E (U where (q) is the piecewise linear function (q) = q (1 ) q<0 q q 0 = q( 1 (q < 0)) : (7. 1] the Quantile regression has become quite popular in recent econometric practice. However for computational convenience it is typical to assume that they are (approximately) linear in x (after suitable transformations).6 Quantile Regression 2 [0. For the random variables (yi .12) This generalizes representation (7. then ): (7. The quantile Q is the value such that (percent) of the mass of the distribution is less than Q : The median is the special case = :5: The following alternative representation is useful. For ’ quantile Q of a random variable with distribution function F (u) is de…ned as th Q = inf fu : F (u) g When F (u) is continuous and strictly monotonic. 7.8) for the median to all quantiles. If the random variable U has ’ quantile th Q . then F (Q ) = . xi ) with conditional distribution function F (y j x) the conditional quantile function q (x) is Q (x) = inf fy : F (y j x) g: Again. the quantile regression functions can take any shape. otherwise its properties are unspeci…ed th without further restrictions.
and test their signi…cance using a Wald test. 7. An asymptotic distribution theory for the quantile regression estimator can be derived using similar arguments as those for the LAD estimator in Theorem 7.12). When the error ei is independent of xi . conventional Newtontype optimization methods are inappropriate.1 Asymptotic Distribution of the Quantile Regression Estimator When the ’ conditional quantile is linear in x th p where V = (1 ) E xi x0 f (0 j xi ) i 1 n ^ d ! N (0. The null model is yi = x0 + ei i 114 . numerical methods are necessary for its minimization. One simple test for neglected nonlinearity is to add nonlinear functions of the regressors to the regression.Given the representation (7. Theorem 7. Fortunately. if the model yi = x0 ^ + ei has been ^ i …t by OLS. Thus. fast linear programming methods have been developed for this problem.11).6. the unconditional density of ei at 0. let z i = h(xi ) denote functions of xi which are not linear functions of xi (perhaps squares of nonbinary regressors) and then …t yi = x0 ~ +z 0 ~ + ei by OLS. since it has discontinuous derivatives. the quantile regression estimator ^ for mization problem ^ = argmin Sn ( ) where Sn ( ) = 1X n i=1 n solves the mini yi x0 i and (q) is de…ned in (7. it is useful to have a general test of the adequacy of the speci…cation.5.1. Since the quanitle regression criterion function Sn ( ) does not have an algebraic solution. Exi x0 i E xi x0 f (0 j xi ) i 1 and f (e j x) is the conditional density of ei given xi = x: In general. and form a Wald statistic ~ i i for = 0: Another popular approach is the RESET test proposed by Ramsey (1969). Furthermore.7 Testing for Omitted NonLinearity If the goal is to estimate the conditional expectation E (yi j xi ) . then f (0 j xi ) = f (0) . V ) . and are widely available. and we have the simpli…cation V = (1 ) E xi x0 i 2 f (0) 1 : A recent monograph on the details of quantile regression is Koenker (2005). the asymptotic variance depends on the conditional density of the quantile regression error.
th 7. say. note that (7. small values such as m = 2. If Q12 = 0 (so the variables are orthogonal) then these two variance matrices equal. and form the Wald statistic Wn for d = 0: It is easy (although somewhat tedious) to 2 m 1 : Thus the null 2 m 1 distribution. and consequently Q111 2 < Q11 Q12 Q221 Q21 115 1 2 : .be an (m which is estimated by OLS. + x0 2i In the model 1 2 + ei x2i is “irrelevant” if 1 is the parameter of interest and 2 = 0: One estimator of 1 is to regress 1 yi on x1i alone. or 4 seem to work best. To see why this is the case. and the two estimators have equal asymptotic e¢ ciency. . and n!1 lim n var( ^ 1 ) = Ex1i x0 1i Ex1i x0 Ex2i x0 2i 2i 1 Ex2i x0 1i 1 2 = Q11 Q12 Q221 Q21 1 2 .13) may be written as 2 3 m yi = x0 ~ + x0 ^ ~ 1 + x0 ^ ~ 2 + x0 ^ ~ m 1 + ei ~ i i i i which has essentially approximated G( ) by a m’ order polynomial. The RESET test appears to work well as a test of functional form against a wide range of smooth alternatives. It is particularly powerful at detecting singleindex models of the form yi = G(x0 ) + ei i where G( ) is a smooth “link”function. say. Typically. is rejected at the % level if Wn show that under the null hypothesis. 3. Otherwise. ^ 2 ): Under which conditions is ^ 1 or ~ 1 superior? It is easy to see that both estimators are consistent for 1 : However. yielding 1 1 ( ^ 1 . Wn ! exceeds the upper % tail critical value of the To implement the test. they will (typically) have di¤erent asymptotic variances. then Q11 > Q11 Q12 Q221 Q21 . m must be selected in advance.8 Irrelevant Variables yi = x0 1i E (xi ei ) = 0. yi ^m yi = x0 ^ : Now let ^ i 1 C A 1)vector of powers of yi : Then run the auxiliary regression ^ yi = x0 ~ + z 0 ~ + ei ~ i i (7. since Q12 Q221 Q21 > 0. zi = @ . ~ 1 = (X 0 X 1 ) (X 0 y) : Another is to regress yi on x1i and x2i jointly. yielding predicted values 0 2 yi ^ B . The comparison between the two estimators is straightforward when the error is conditionally homoskedastic E e2 j xi = 2 : In this case i n!1 lim n var( ~ 1 ) = Ex1i x0 1i 1 2 = Q111 2 .13) by OLS.
x2i = 2 : i A model selection procedure is a datadependent rule which selects one of the two models. as the larger problem can be written as a sequence of such comparisons. :::. E (e j X 1 . 7. In the absence of the homoskedasticity assumption. xK ) enters the regression function E (yi j x1i = x1 . To simplify some of the statistical discussion. How does a researcher go about selecting an econometric speci…cation. we say that M2 is true if 2 6= 0: To …x notation. In contrast. respectively. Let Exi = . we will on 1 2 occasion use the homoskedasticity assumption E e2 j x1i .This means that ~ 1 has a lower asymptotic variance matrix than ^ 1 : We conclude that the inclusion of irrelevant variable reduces estimation e¢ ciency if these variables are correlated with the relevant variables. 116 . “Which subset of (x1 . that it selects the true model with probability one if the sample is su¢ ciently large. and E (xi )2 = 2 : Then x under (5. For example. estimated ^ ^ variances ^ 2 and ^ 2 . k2 : This is equivalent to the comparison of the two models 1 1 y = X1 y = X1 + e.13). If the truth is in…nite dimensional. when economic theory does not provide complete guidance? This is the question of model selection. take the model yi = 0 + 1 xi + ei and suppose that 0 = 0: Let ^ 1 be the estimate of 1 from the unconstrained model.9 Model Selection In earlier sections we discussed the costs and bene…ts of inclusion/exclusion of variables. because it does not make clear the conditioning set. In many cases the problem of model selection can be reduced to the comparison of two nested models.). n!1 lim n var( ~ 1 ) = lim n var( ^ 1 ) = 2 2 x + 2 2 x 2 while n!1 : When 6= 0. For example.. X 2 ) = 0: E (e j X 1 . + X2 2 M2 : + e. the question. :::. this rule only makes sense when the true model is …nite dimensional. One useful property is consistency. this result can be reversed when the error is conditionally heteroskedastic. it is more appropriate to view model selection as determining the best …nite sample approximation. we see that ~ 1 has a lower asymptotic variance. and ~ 1 be the estimate under the constraint 0 = 0: (The leastsquares estimate with the intercept omitted. A model selection procedure is consistent if c P M = M1 j M1 c P M = M2 j M2 ! 1 ! 1 However. X 2 ) = 0 Note that M1 M2 : To be concrete. with residual vectors e1 and e2 . the question: “What is the right model for y?” is not wellposed. It is important that the model selection question be wellposed. there is no clear ranking of the e¢ ciency of the restricted estimator ~ 1 versus the unrestricted estimator. We thus consider the question of the inclusion of X 2 in the linear regression y = X1 where X 1 is n k1 and X 2 is n M1 : 1 + X2 2 + e. models 1 and 2 are estimated by OLS. etc. We c can write this as M. However. xKi = xK )?”is well posed. There are many possible desirable properties for a model selection procedure.
LRn p ! 0. depending on the sample size. let c satisfy P 22 > c = : Then select M1 if Wn c . else select M2 . (7.15) ! P k1 k1 + k2 < log(^ 2 ) + 2 j M1 2 n n P (LRn < 2k2 j M1 ) < 2k2 < 1: While many criterions similar to the AIC have been proposed. m The AIC can be derived as an estimate of the KullbackLeibler information distance K(M) = E (log f (y j X) log f (y j X. Indeed. The reasoning which helps guide the choice of in hypothesis testing (controlling Type I error) is not relevant for c model selection. else select M2 : AIC selection is inconsistent. etc. One popular choice is the Akaike Information Criterion (AIC). k A major problem with this approach is that the critical level is indeterminate.14) where ^ 2 is the variance estimate for model m. His criterion. is BICm = log ^ 2 + log(n) m km : n (7. Indeed. then P M = M1 j M1 1 but c that if is held …xed. then this model selection procedure is inconsistent. and km is the number of coe¢ cients in the model. as the rule tends to over…t. For some critical level . In contrast to the AIC. The AIC under normality for model m is AICm = log ^ 2 + 2 m km : n c P M = M2 j M2 could vary dramatically. known as the BIC. That is. the BIC places a larger penalty than the AIC on the number of estimated parameters and is more parsimonious. since (7. the most popular is one proposed by Schwarz based on Bayesian arguments. Another problem is (7. if is set to be a small number. log(n) so c P M = M1 j M1 = = P (BIC1 < BIC2 j M1 ) P (LRn < log(n)k2 j M1 ) LRn = P < k2 j M1 log(n) ! P (0 < k2 ) = 1: 117 . as P M = M1 j M1 ! 1 < 1: Another common approach to model selection is to use a selection criterion. since under M1 . BIC model selection is consistent.16) Since log(n) > 2 (if n > 8). M)) between the true density and the model density. LRn = n log ^ 2 1 then c P M = M1 j M1 = = = P (AIC1 < AIC2 j M1 ) P log(^ 2 ) + 2 1 2 k2 log ^ 2 ' Wn ! 2 d 2 k2 .A common approach to model selection is to base the decision on a statistical test such as the Wald Wn : The model selection rule is as follows.15) holds under M1 . The rule is to select M1 if AIC1 < AIC2 .
selecting based on (7. and 220 = 1.16). 048. a fullblown implementation of the BIC selection criterion would seem computationally prohibitive. 576: In the latter case. = =0 2 6= 0. K 6= 0: which are nested. . 6= 0. . Similarly for the BIC. 210 = 1024. 1 1 1 M2 : MK : 6= 0.Also under M2 . In the unordered case. In the ordered case. The methods extend readily to the issue of selection among multiple regressors. and then selects the model with the lowest AIC (7. E (ei j xi ) = 0 and the question is which subset of the coe¢ cients are nonzero (equivalently. The general problem is the model yi = 1 x1i + 2 x2i + + K xKi + ei . 2 2 = 3 = 3 = = K =0 K 6= 0. one can show that thus LRn p ! 1. For example. the models are M1 : . The AIC selection criteria estimates the K models by OLS. there are 2K such models. which regressors enter the regression). stores the residual variance ^ 2 for each model. xKi g. However. and the AIC or BIC in principle can be implemented by estimating all possible subset models. which can be a very large number. 118 .14). There are two leading cases: ordered regressors and unordered. 6= 0. : : : . log(n) c P M = M2 j M2 = P LRn > k2 j M2 log(n) ! 1: We have discussed model selection between two models. :::. a model consists of any possible subset of the regressors fx1i .
(d) Test whether the error variance is di¤erent for men and women. the residuals e. Let satisfy Eg(yi ) = 0: Is a quantile of the distribution of yi ? 119 .5 De…ne g(u) = 1 (u < 0) where 1 ( ) is the indicator function (takes the value 1 if the argument is true. and the outofsample value of the regressors.Exercises Exercise 7. Interpret. V .2 In the homoskedastic regression model y = X + e with E(ei j xi ) = 0 and E(e2 j i ^ xi ) = 2 . ^ 2 ). Report the results. (g) Using this model for the conditional variance. (c) Are there any variables which seem to be unimportant as a determinant of wages? You may reestimate the model without these variables. reestimate the model from part (c) using FGLS. ^ Exercise 7. (i) Compare the estimated standard errors.pdf. (f) Construct a model for the conditional variance. Estimate such a model. ^ is the NLLS estimator. (a) Start by an OLS regression of LNWAGE on the other variables. The goal of the exercise is to estimate a model for the log of earnings (variable LNWAGE) as a function of the conditioning variables.3 Suppose that yi = g(xi . test for general heteroskedasticity and report the results. if desired. the estimates ( ^ .4 For any predictor g(xi ) for yi . Interpret. X). (b) Consider augmenting the model by squares and/or crossproducts of the conditioning variables.dat contains 550 observations on 20 variables taken from the May 1978 current population survey.1 The data …le cps78. Exercise 7. else equals zero). suppose ^ is the OLS estimate of with covariance matrix V . Note any interesting di¤erences. xn+1 : ^ (a) Find a point forecast of yn+1 : (b) Find an estimate of the variance of this forecast. (e) Test whether the error variance is di¤erent for whites and nonwhites. and V is the estimate of var ^ : You are interested in the conditional mean function E (yi j xi = x) = g(x) at some x: Find an asymptotic 95% con…dence interval for g(x): Exercise 7. the mean absolute error (MAE) is E jyi g(xi )j : Show that the function g(x) which minimizes the MAE is the conditional median m (x) = med(yi j xi ): Exercise 7. based on a sample of size n: Let ^ 2 be the estimate of 2 : You wish to forecast an outofsample value of yn+1 given ^ that xn+1 = x: Thus the available information is the sample (y. (h) Do the OLS and FGLS estimates di¤er greatly? Note any interesting di¤erences. Estimate your selected model and report the results. Report coe¢ cient estimates and standard errors. Variables are listed in the …le cps78. )+ei with E (ei j xi ) = 0.
17) (a) Following Nerlove. where : In addition. (ii) AIC criterion. Consider model (7. Record the sum of squared errors. the variable log Qi has a regression slope of 2 : For values much above 7 . impose the restriction 3 + 4 + 5 = 1: This model is called a smooth threshold model.17) plus the extra term z i = log Qi (1 + exp ( (log Qi 7 ))) 1 6zi.7 In Exercise 6. Do so. calculate z i and estimate the model by OLS. and the model imposes a smooth transition between these regimes. the regression slope is 2 + 6 . at least 10 to 15) of log Qi are both below and above 7 : Examine the data and pick an appropriate range for 7 : (c) Estimate the model by nonlinear least squares. For each value of 7 . 7 ). For values of log Qi much below 7 . The equation you estimated was log T Ci = 1 + 2 log Qi + 3 log P Li + 4 log P Ki + 5 log P Fi + ei : (7.6 Verify equation (7. (iii) BIC criterion.Exercise 7.7. and …nd the value of 7 for which the sum of squared errors is minimized. add the variable (log Qi )2 to the regression. Exercise 7. I recommend the concentration method: Pick 10 (or more or you like) values of 7 in this range.11). you estimated a cost function on a crosssection of electric companies. (d) Calculate standard errors for all the parameters ( 1 . The model is nonlinear because of the parameter 7 : The model works best when 7 is selected so that several values (in this example. :::. Do you agree with this modi…cation? (b) Now try a nonlinear speci…cation. Assess the merits of this new speci…cation using (i) a hypothesis test. 120 .
For example. The unknown F is replaced by a consistent estimate Fn (one choice is discussed in the next section). F ) = limn!1 Gn (u. (yn . xi x) = E (1 (yi y) 1 (xi x)) .Chapter 8 The Bootstrap 8.2 The Empirical Distribution Function Recall that F (y. In a seminal contribution. Plugged into Gn (u. xi ) : Let Tn = Tn ((y1 .1) We call Gn the bootstrap distribution. F ) we obtain Gn (u) = Gn (u. the tstatistic is a function of the parameter which itself is a function of F: The exact CDF of Tn when the data are sampled from the distribution F is Gn (u. The method of moments estimator is the corresponding 121 . F ) with G(u. F ) = P(Tn u j F) In general. F ). The statistic Tn = Tn ((y1 . where 1( ) is the indicator function. Ideally. :::. x) = P (yi y. Gn (u. This is generally impossible since F is unknown. F ) = G(u) does not depend on F. x1 ) . xn ) . xn ) . F ): When G(u. This is a population moment. Fn ): (8. P(Tn u) = Gn (u): We call Tn the bootstrap statistic: The distribution of Tn is identical to that of Tn when the true CDF of Fn rather than F: The bootstrap distribution is itself random. Fn ) constructed on this sample is a random variable with distribution Gn : That is. meaning that G changes as F changes. :::. which makes a di¤erent approximation. as it depends on the sample through the estimator Fn : In the next sections we describe computation of the bootstrap distribution. F ) depends on F. Bootstrap inference is based on Gn (u): Let (yi . 8. Efron (1979) proposed the bootstrap. we say that Tn is asymptotically pivotal and use the distribution function G(u) for inferential purposes. x1 ) . inference would be based on Gn (u. for example an estimator ^ or a tstatistic ^ =s(^): Note that we write Tn as possibly a function of F . xi ) denote random variables with the distribution Fn : A random sample from this distribution is called the bootstrap data. F ) be a statistic of interest. (yn . Asymptotic inference is based on approximating Gn (u.1 De…nition of the Bootstrap Let F denote a distribution function for the population of observations (yi .
50. n: Notationally. xi = xi ) n 1X h (yi . 122 n X i=1 h (yi . The EDF is a consistent estimator of the CDF.2. x) ! F (y. xi ). the EDF is only a crude approximation to the CDF. 1 (yi y) 1 (xi p is an iid random variable with expectation F (y. xi ) P (yi = yi .2. as the sample size gets larger. x): We can easily calculate the moments of functions of (yi .1). the EDF step function gets uniformly close to the true CDF. P(yi y. For n = 25.sample moment: Fn (y. Fn is a nonparametric estimate of F: Note that while F may be either discrete or continuous. xi ) . Fn (y. x) = Fn (y. x) (1 d 1X 1 (yi n i=1 n y) 1 (xi x) : (8.1: Empirical Distribution Functions The EDF is a valid discrete probability distribution which puts probability mass 1=n at each pair (yi . x)dFn (y. The random draws are from the N (0. by the CLT (Theorem C. x))) : To see the e¤ect of sample size on the EDF. it is helpful to think of a random pair (yi . F (y. and 500. 1) distribution. x) is called the empirical distribution function (EDF). x) : Furthermore. x) F (y. n i=1 . x).2) x) F (y. xi ) : Z Eh (yi . 100. Figure 8. In general. :::. To see this. note that for any (y. x): Thus by the WLLN (Theorem 5. xi ) = h(y. x)) ! N (0. in the Figure below. xi ) with the distribution Fn : That is.1). I have plotted the EDF and true CDF for three random samples of size n = 25. Fn is by construction a step function. xi x) = Fn (y. p n (Fn (y. i = 1. x) = = the empirical sample average. but the approximation appears to improve for the large n.
8. The random vectors (yi . However. In consequence. the tratio ^ =s(^) depends on : As the bootstrap statistic replaces F with Fn . as there are 2n possible samples f(y1 . the estimate of ^n = = B 1 X Tnb B n is 1 B = ^ b=1 B X b=1 ^ b ^ ^: If ^ is biased. For example. A theory for the determination of the number of bootstrap replications B has been developed by Andrews and Buchinsky (2000).2) as the estimate Fn of F: Since the EDF Fn is a multinomial (with n support points). 123 . :::. a bootstrap sample f(y1 . (yn . When the statistic Tn is a function of F. The algorithm is identical to our discussion of Monte Carlo simulation. xn )g. (yn . :::. sampling from the EDF is equivalent to random sampling a pair (yi . It is desirable for B to be large. with the following points of clari…cation: The sample size n used for the simulation is the same as the sample size.4 Bootstrap Estimation of Bias and Variance ^ The bias of ^ is n = E(^ : Then n = E(Tn ( 0 )): The bootstrap 0 ): Let Tn ( ) = ^ ^: The bootstrap estimate counterparts are ^ = ^((y1 . Fn ) is calculated for each bootstrap sample. xn ) .3 Nonparametric Bootstrap The nonparametric bootstrap is obtained when the bootstrap distribution (8. it might be desirable to construct a biasedcorrected estimator (one with reduced bias). so long as the computational costs are reasonable.8. (When in doubt use ^:) Sampling from the EDF is particularly easy. The bootstrap statistic Tn = Tn ((y1 . :::. The popular alternative is to use simulation to approximate the distribution. the value of implied by Fn : Typically n = ^. :::. the parameter estimate. This is repeated B times. this would be ~=^ n. x1 ) . Since Fn is a discrete probability distribution putting probability mass 1=n at each sample point. it similarly replaces with n . B = 1000 typically su¢ ces.1) is de…ned using the EDF (8. x1 ) . in principle the distribution Gn could be calculated by direct methods. xn )g will necessarily have some ties and multiple values. Ideally. such a calculation is computationally infeasible. xn )) and Tn = ^ n = of n is n = E(Tn ): If this is calculated by the simulation described in the previous section. xi ) randomly from the sample. x1 ) . xi ) are drawn randomly from the empirical distribution. which is generally not a problem. (yn . This is equivalent to sampling a pair (yi . (yn . x1 ) . xi ) from the observed data with replacement. B is known as the number of bootstrap replications. it is typically through dependence on a parameter.
F ) may be nonunique. In (1 )% of samples. This is the function which solves Gn (qn ( . and qn ( ) = qn ( . The primary use of asymptotic standard errors is to construct asymptotic con…dence intervals.5 Percentile Intervals For a distribution function Gn (u. the quantile qn ( ) is estimated by qn ( ). so a biasedcorrected estimator of should be larger than ^. Computationally. qn ( . F ) is discrete. and we turn to this next. 8. Fn ) denote the quantile function of the bootstrap distribution. this suggests that the estimator is downwardbiased. ^ lies in the region [qn ( =2). that the biasedcorrected estimator is not ^ : Intuitively.] Let qn ( ) denote the quantile function of the true sampling distribution. as discussed in the section on Monte Carlo simulation. but we will ignore such complications. in which case the normal approximation is suspected. F ) = : [When Gn (u. the use of the bootstrap presumes that such asymptotic approximations might be poor. q ^ s (^) = Vn : While this standard error may be calculated and reported. The (estimated) bootstrap biasedcorrected estimator is ~ = ^ = ^ = 2^ ^n (^ ^ : ^) Note. let qn ( . F ). It appears superior to calculate bootstrap con…dence intervals.but n is unknown. it is not clear if it is useful. qn (1 q ^ =2)]: 124 . F ). the bootstrap makes the following experiment. Suppose that ^ is the truth. Then what is the average value of ^ calculated from such samples? The answer is ^ : If this is lower than ^. the ’ sample quantile of the ^ th simulated statistics fTn1 . F ) denote its quantile function. which are based on the asymptotic normal approximation to the tratio. Note that this function will change depending on the underlying statistic Tn whose distribution is Gn : Let Tn = ^. and the best guess is the di¤erence between ^ and ^ : Similarly if ^ is higher than ^. then the estimator is upwardbiased and the biasedcorrected estimator should be lower than ^. The (1 )% Efron percentile interval is then [^n ( =2). qn (1 =2)]: This is often called the percentile con…dence interval. However. TnB g. :::. qn (1 =2)]: This motivates a con…dence interval proposed by Efron: C1 = [qn ( =2). in particular. an estimate of a parameter of interest. Let Tn = ^: The variance of ^ is Vn = E(Tn Let Tn = ^ : It has variance Vn = E(Tn The simulation estimate is B X ^ ^ = 1 Vn b B b=1 ETn )2 : ETn )2 : ^ 2 : A bootstrap standard error for ^ is the square root of the bootstrap estimate of variance.
so P 0 0 2 C1 has a symmetric distribution. Let Tn ( ) = ^ and let qn ( ) be the quantile function of its distribution. F0 ) = 1 Gn (u. by an alternative method. was popularized by Efron early in the history of the bootstrap. However. Let Tn ( ) = ^ . at least in principle. f (qn (1 =2))]. Therefore. by the translation invariance argument presented above. C1 is in a deep sense very poorly motivated. If ^ then Gn ( u. F0 ) 0 = Gn ( qn ( =2). F0 ) = (1 = = 1 1 1 1 Gn ( qn (1 (1 2 =2). 125 ^ qn ( =2)]: . It will be useful if we introduce an alternative de…nition C1 . which is a naturally good property. That is. so an exact (1 )% con…dence interval for 0 C2 = [^ qn (1 qn ( =2)]: This motivates a bootstrap analog C2 = [^ qn (1 =2). F0 ) =2). C1 and C1 are designed for the case that ^ has a symmetric distribution about 0 : When ^ does not have a symmetric distribution. simple to motivate. C1 may perform quite poorly. Then 1 = P (qn ( =2) = P^ qn (1 0 Tn ( 0 ) =2) would be =2). This is because it is easy to compute. However. then percentile method applied to this problem will produce the con…dence interval [f (qn ( =2)). ^ + q (1 n =2)]: This is a bootstrap estimate of the “ideal” con…dence interval 0 C1 = [^ + qn ( =2). with subtracted. The problems with the percentile method can be circumvented. = Gn ( qn ( =2). (These are the original quantiles. F0 )) Gn (qn ( =2). F0 ). ^ + qn (1 =2)]: The latter has coverage probability P 0 0 2 C1 = P ^ + qn ( =2) = P qn (1 =2) 0 ^ + qn (1 0 =2) ^ qn ( =2) =2). F0 )) 2 Gn (qn (1 0 and this idealized con…dence interval is accurate.The interval C1 is a popular bootstrap con…dence interval often used in empirical practice. if we de…ne = f ( ) as the parameter of interest for a monotonically increasing function f. many argue that the percentile interval should not be used unless the sampling distribution is close to unbiased and symmetric. then the idealized percentile bootstrap method will be accurate. as we show now. ^ 0 qn (1 =2)) ^ qn ( =2). and also has the feature that it is translation invariant.) Then C1 can alternatively be written as C1 = [^ + qn ( =2). it also follows that if there exists some monotonically increasing transformation f ( ) such that f (^) is symmetrically distributed about f ( 0 ). Based on these arguments. F0 ) Gn ( qn (1 which generally is not 1 ! There is one important exception.
6 Percentilet EqualTailed Interval Suppose we want to test H0 : = 0 against H1 : < 0 at size : We would set Tn ( ) = ^ =s(^) and reject H0 in favor of H1 if Tn ( 0 ) < c. this interval can be estimated from a bootstrap simulation by sorting the ^ . 8. It is equaltailed or central since the probability that 0 is below the left endpoint approximately equals the probability that 0 is above the right endpoint. Computationally. ^ s(^)qn ( =2) . but is not widely used in practice. and the test rejects if Tn ( 0 ) < qn ( ): ): Similarly. this is based on the critical values from the onesided hypothesis tests. these critical values can be estimated from a bootstrap simulation by sorting ^ =s(^ ): Note. that the bootstrap test the bootstrap tstatistics Tn = ^ statistic is centered at the estimate ^. a bootstrap test replaces qn ( ) with the bootstrap estimate qn ( ). ^ ^ n n This con…dence interval is discussed in most theoretical treatments of the bootstrap. Then taking the intersection of two onesided intervals. These tstatistics are sorted to …nd the estimated quantiles qn ( ) and/or qn (1 ^ Let Tn ( ) = ^ =s(^).7 ^ Symmetric Percentilet Intervals Suppose we want to test H0 : = 0 against H1 : 6= 0 at size : We would set Tn ( ) = =s(^) and reject H0 in favor of H1 if jTn ( 0 )j > c. )% con…dence interval for 0 C3 = [^ s(^)qn (1 s(^)qn ( =2)]: This motivates a bootstrap analog C3 = [^ s(^)qn (1 =2). where c would be selected so that P (Tn ( 0 ) < c) = : Thus c = qn ( ): Since this is unknown. where c would be selected so that P (jTn ( 0 )j > c) = : 126 . if the alternative is H1 : > 0 . discussed above. each =2: Computationally. but otherwise they di¤er. ^ s(^)qn ( =2)]: This is often called a percentilet con…dence interval.Notice that generally this is very di¤erent from the Efron interval C1 ! They coincide in the special case that Gn (u) is symmetric about ^. 8. the bootstrap test rejects if Tn ( 0 ) > qn (1 Computationally. which are centered at the sample estimate ^: These are sorted bootstrap statistics Tn = ^ to yield the quantile estimates qn (:025) and qn (:975): The 95% con…dence interval is then [^ ^ ^ ^ q (:025)]: q (:975). and this is important. and the standard error s(^ ) is calculated on the bootstrap ^ sample. 1 = P (qn ( =2) = P qn ( =2) = P ^ so an exact (1 Tn ( 0 ) ^ 0 ): qn (1 =s(^) 0 =2)) qn (1 ^ =2) s(^)qn (1 0 =2) would be =2).
where qn ( ) is the (1 )% quantile of the distribution of Wn : The bootstrap test rejects if Wn qn ( ). and taking the upper % quantile. In some cases. qn ( ) is the 1 quantile of the distribution of jTn ( 0 )j : The bootstrap estimate is qn ( ). or the number which solves the equation Gn (qn ( )) = Gn (qn ( )) Gn ( qn ( )) = 1 : Computationally.8 Asymptotic Expansions d 2 Let Tn 2 R be a statistic such that Tn ! N(0. The ideal critical value c = qn ( ) solves the equation Gn (qn ( )) = 1 : Gn ( c) Equivalently. the 1 quantile of the distribution of jTn j . we would use a Wald or some other asymptotically chisquare statistic. where qn ( ) is the (1 )% quantile of the distribution of Wn = n ^ ^ 0 ^ V 1 ^ ^ : Computationally.] 8. It is designed to work well since P( 0 2 C4 ) = P ^ s(^)qn ( ) 0 ^ + s(^)q ( ) n = P (jTn ( 0 )j < qn ( )) ' P (jTn ( 0 )j < qn ( )) = 1 : If is a vector. qn ( ) is estimated from a bootstrap simulation by sorting the bootstrap t^ =s(^ ). ): 2 (8. then 2 = 1: In other cases writing Tn Gn (u. Equivalently. then to test H0 : = 0 against H1 : 6= statistic 0 ^ 1 ^ Wn ( ) = n ^ V 0 at size .3) is unknown. such as when Tn is a tratio. The bootstrap test rejects if statistics jTn j = ^ jTn ( 0 )j > qn ( ): Let C4 = [^ s(^)qn ( ). not ^ Note in the simulation that the Wald statistic is a quadratic form in ^ 0 : [This is a typical mistake made by practitioners. C4 is called the symmetric percentilet interval. which is a symmetric distribution function. ^ + s(^)qn ( )]. the critical value qn ( ) is found as the quantile from simulated values of Wn : ^ . F ) = .Note that P (jTn ( 0 )j < c) = P ( c < Tn ( 0 ) < c) = Gn (c) Gn (c). where qn ( ) is the bootstrap critical value for a twosided hypothesis test. Thus here Tn ( ) = Wn ( ): The ideal test rejects if Wn qn ( ). n!1 127 . F ) then u lim Gn (u.
8. To a third order of approximation. F ) converges to the normal limit at rate n1=2 : To a second order of approximation. Basically. an = O(n r ) if it declines to zero like n r : We say that a function g(u) is even if g( u) = g(u).1 an = o(1) if an ! 0 as n ! 1 De…nition 8. Gn (u.8. p [Side Note: When Tn = n Xn = . a standardized sample mean. F ) which adds a symmetric nonnormal component to the approximate density (for example. h(u): Theorem 8. the density function is skewed. Gn (u.8. Gn (u.8. F ) u +n 1=2 g1 (u. where g1 is an even function of u.1 Under regularity conditions and (8. and viceversa. g1 and g2 are di¤ erentiable functions of u and continuous in F relative to the supremum norm on the space of distribution functions.4) says that Gn converges to as n ! 1.8. F ) = u + g1 (u. it says nothing. F ) = u + o (1) : (8. We can interpret Theorem 8. Let an be a sequence.3 an = o(n r) if nr jan j ! 0 as n ! 1. and a function h(u) is odd if h( u) = The derivative of an even function is odd. F ) + n 1 g2 (u. The expansion in Theorem 8.or Gn (u. De…nition 8. First.1 is often called an Edgeworth expansion. adding leptokurtosis).8. F ) u +n 1=2 g1 (u.4) u While (8. F ) n1=2 1 + 1 g2 (u. Gn (u. F ) + O(n n 3=2 ) uniformly over u. The following notation will be helpful.2 an = O(1) if jan j is uniformly bounded. then g1 (u) = g2 (u) = 1 6 3 u2 4 1 u3 (u) 3u + 1 72 2 3 1 24 u5 10u3 + 15u (u) 128 . however. De…nition 8.1 as follows. F ): Since the derivative of g1 is odd. and g2 is an odd function of u: Moreover.3). about the rate of convergence. or the size of the divergence for any particular sample size n: A better asymptotic approximation may be obtained through an asymptotic expansion.
8. F0 ) + O(n n1=2 = O(n 1=2 ). and g1 is continuous with respect to F. F0 )) converges to 0 at rate n: Heuristically. F0 ) = O(n 129 1 ).where (u) is the standard normal pdf. F0 ) n1=2 1 + O(n 1 ) ) so the order of the error is O(n 1=2 ): A bootstrap test is based on Gn (u). was a profound economic and statistical theorist. We conclude that Gn (u) Gn (u. the di¤erence p (g1 (u. 1 (u) + g1 (u. F0 ) = 1 g1 (u. then g1 = 0 and g2 = 0. founding editor of the Economic Journal. F0 ) = since = 1: The di¤erence is (u) Gn (u.8. developing the theories of indi¤erence curves and asymptotic expansions.1 has the expansion g1 (u. we can assess the accuracy of onesided hypothesis tests and con…dence regions based on an asymptotically normal tratio Tn . which from Theorem 8. . Fn ) = (u) + Gn (u) Gn (u. F0 ) @ The “derivative” @F g1 (u. Fn ) g1 (u. He also could be viewed as the …rst econometrician due to his early use of mathematical statistics in the study of economic data. the exact distribution is P (Tn < u) = Gn (u. the di¤erence between the bootstrap distribution and the true distribution is Gn (u) = Gn (u.1. F0 )) + O(n 1 1 ): p Since Fn converges to F at rate n. g1 (u. so the secondorder Edgeworth expansion corresponds to the normal distribution.] Francis Edgeworth Francis Ysidro Edgeworth (18451926) of Ireland. as F is a function. Fn ) + O(n 1 ): n1=2 Because (u) appears in both expansions. F0 ) (Fn @F = O(n 1=2 ). An asymptotic test is based on (u): To the second order. F0 ) = 1 n1=2 (g1 (u. F0 ) @ g1 (u. Fn ) g1 (u. F ) is only heuristic.8.9 OneSided Tests Using the expansion of Theorem 8. and 3 4 = E (X = E (X )3 = )4 = 3 4 3 the standardized skewness and excess kurtosis of the distribution of X: Note that when 3 = 0 and 4 = 0. Fn ) g1 (u.
F0 ) = 2 g2 (u. the asymptotic twosided test has a better coverage rate than the asymptotic onesided test. F0 ) distribution. F ) 1 1 (u) + 1=2 g1 (u. Fn ) + O(n n 3=2 ): 130 .or P (Tn u) = P (Tn u) + O(n 1 ). g1 .8. This is because the …rst term in the asymptotic expansion. F ) = Gn ( u. then jTn j has the distribution function Gn (u. is an even function. n 3=2 ) (8. meaning that the errors in the two directions exactly cancel out. F ) = Gn (u. F ) + g2 (u. we can calculate that Gn (u. 8. we …nd Gn (u) = Gn (u. Hence the di¤erence between the asymptotic distribution and the exact distribution is (u) Gn (u. F0 ) + O(n n 3=2 ) = O(n 1 ): The order of the error is O(n 1 ): Interestingly. F ) Gn ( u. if Z y u) u) P (y u) H( u): N(0. F ): d d A twosided hypothesis test rejects H0 for large values of jTn j : Since Tn ! Z. Applying (8. if Tn has exact distribution Gn (u.5) = where the simpli…cations are because g1 is even and g2 is odd. F ) + g2 ( u. and exact critical values jZj are taken from the Gn (u. This rate can be used to show that onetailed bootstrap inference based on the tratio achieves a socalled asymptotic re…nement –the Type I error of the test converges at a faster rate than an analogous asymptotic test. 1).5) to the bootstrap distribution. F ) = Gn (u. then jTn j ! : Thus asymptotic critical values are taken from the distribution. Fn ) = (u) + 2 g2 (u. which is an improved rate of convergence over the asymptotic test (which converged at rate O(n 1=2 )). From Theorem 8.10 Symmetric TwoSided Tests u). then the random variable jyj If a random variable y has distribution function H(u) = P(y has distribution function H(u) = H(u) H( u) since P (jyj u) = P ( u = P (y = H(u) For example. F ) + O(n 3=2 ). F ) n n 1 1 ( u) + 1=2 g1 ( u. F ) + O(n n n 2 (u) + g2 (u. then jZj has distribution function (u) = (u) ( u) = 2 (u) 1: Similarly.1. F ).
Yet these methods do not require the calculation of standard errors! This means that in contexts where standard errors are not available or are di¢ cult to calculate. the percentile bootstrap methods provide an attractive inference method. whose error is O(n 1 ): Thus a twosided bootstrap test also achieves an asymptotic re…nement. The analysis shows that there may be a tradeo¤ between onesided and twosided tests. the theoretical literature (e. F0 )) + O(n 3=2 ) n = O(n 3=2 ). but onesided tests might have more power against alternatives of interest. where ^ = V (Fn ) is the bootstrap estimate of : The di¤erence is Gn (u) Gn (u. A reader might get confused between the two simultaneous e¤ects. Therefore. Twosided tests have better rates of convergence than the onesided tests. Horowitz. which is not pivotal.Thus the di¤erence between the bootstrap and exact distributions is 2 (g2 (u. and for the bootstrap Gn (u) = Gn (u. Based on these arguments. and bootstrap tests have better rates of convergence than asymptotic tests. It is no better than the rate obtained from an asymptotic onesided con…dence region. 1992. F0 ) = = = O(n u u 1=2 u u ) (^ + O(n 1=2 ) ) ) + O(n 1=2 Hence the order of the error is O(n 1=2 ): p The good news is that the percentiletype methods (if appropriately used) can yield nconvergent asymptotic inference. 2001) tends to advocate the use of the percentilet bootstrap methods rather than percentile methods. p the last equality because Fn converges to F0 at rate n.g.8. Fn ) g2 (u. F ) = + O(n 1=2 ). p where = V . The bad news is that the rate of convergence is disappointing. F0 ) = so the error from using the bootstrap distribution (relative to the true unknown distribution) is O(n 3=2 ): This is in contrast to the use of the asymptotic distribution.11 d Percentile Con…dence Intervals p n ^ 0 To evaluate the coverage rate of the percentile interval. Con…dence intervals based on the bootstrap can be asymmetric if based on onesided tests (equaltailed intervals) and can therefore be more informative and have smaller length than symmetric intervals. and g2 is continuous in F: Another way of writing this is P (jTn j < u) = P (jTn j < u) + O(n 3=2 ) Gn (u) Gn (u. V ). set Tn = : We know that Tn ! N(0. as it depends on the unknown V: Theorem 8. Fn ) = u + O(n 1=2 ). Therefore if standard errors are available. Twosided tests will have more accurate size (Reported Type I error). and needs to be determined on a casebycase basis. it is unclear if there are any bene…ts from using the percentile bootstrap over simple asymptotic methods. the choice between symmetric and equaltailed con…dence intervals is unclear. Hall. similar to a onesided test. 131 .1 shows that a …rstorder approximation u Gn (u. 8.
where Fn is the EDF. it is su¢ cient to sample the xi and ei independently. One proposal which imposes the regression condition without independence is the Wild Bootstrap. you sample ei using this twopoint distribution. xi ) from the EDF. xn g: A parametric method is to sample xi from an estimated parametric distribution. which is a valid statistical approach. It does not really matter. however. :::. Typically what is desirable is to impose only the regression condition E (ei j xi ) = 0: Unfortunately this is a harder problem. A nonparametric method is to sample the bootstrap errors ei randomly from the OLS residuals f^1 . en g: A parametric e ^ method is to generate the bootstrap errors ei from a parametric distribution. The advantage of the EDF is that it is fully nonparametric. If this is done. ^ 2 ): For the regressors xi . The methods discussed above are unattractive for most applications in econometrics because they impose the stringent assumption that xi and ei are independent. :::. such as the normal ei N(0. A third approach sets xi = xi : This is equivalent to treating the regressors as …xed in repeated samples. This can be achieved using a twopoint distribution of the form p ! ! p 1+ 5 5 1 p P ei = ei ^ = 2 2 5 p ! ! p 1 5 5+1 p P ei = ei ^ = 2 2 5 For each xi .12 Bootstrap Methods for Regression Models The bootstrap methods we have discussed have set Gn (u) = Gn (u. 132 . The disadvantage is that the bootstrap distribution may be a poor approximation when the error is not independent of the regressors. Fn ). it may be ine¢ cient in contexts where more is known about F: We discuss bootstrap methods appropriate for the linear regression model yi = x0 + ei i E (ei j xi ) = 0: The nonparametric bootstrap resamples the observations (yi . and is thus an ine¢ cient estimator of the true distribution (when in fact the regression assumption is true. But since it is fully nonparametric. which implies yi but generally The the bootstrap distribution does not impose the regression assumption.8. and then create yi = xi 0 ^ + ei : There are di¤erent ways to impose independence. whether or not the xi are really “…xed” or random. then all inferential statements are made conditionally on the observed values of the regressors. The idea is to construct a conditional distribution for ei so that E ei 2 j xi E ei 3 j xi E (ei j xi ) = 0 = e2 ^i = e3 : ^i E (ei j xi ) 6= 0: = xi 0 ^ + ei E (xi ei ) = 0 A conditional distribution with these features will preserve the main important features of the data. and works in nearly any context. To impose independence.) One approach to this problem is to impose the very strong assumption that the error "i is independent of the regressor xi : The advantage is that in this case it is straightforward to construct bootstrap distributions. it imposes no conditions. Any other consistent estimate of F may be used to de…ne a feasible bootstrap estimator. a nonparametric method is to sample the xi randomly from the EDF or sample values fx1 .
:::. e ) from the pair f(xi . ^ = 1:2 and s(^) = :2: Using the nonparametric bootstrap. where s(^) is the standard error in the original data. 2.3.dat contains data on house prices (sales).pdf. respectively. and the 2. Estimate a linear regression of price on the number of bedrooms. Set y = x 0 ^ + e : Draw (with ^ replacement) n such vectors. n]. lot size. ei ) : i = 1. ^ s(^)qn (:05) : Exercise 8. Show that C exactly equals the Alternative percentile interval (not the percentilet interval). Exercise 8.5% and 97. :::.75 and 1. F0 (x) (1 F0 (x))) : Exercise 8. and set x = xi0 and e = ei0 . yn g with = Eyi and 2 = var (yi ) : Let the statistic of interest be the sample mean Tn = y n : Find the population moments ETn and var (Tn ) : Let fy1 .Exercises Exercise 8.3 Consider the following bootstrap procedure for a regression of yi on xi : Let ^ denote the OLS estimator from the regression of y on X. ^ (a) Draw a random vector (x . X ): (b) Regress y on X . and de…ne the bootstrap con…dence interval h i C = ^ s(^)qn (:95). with variables listed in the …le hprice1. Show that p d n (Fn (x) F0 (x)) ! N (0. Find the bootstrap moments ETn and var (Tn ) : Exercise 8. and thus reject H0 if Tn = ^=s(^) > qn (:95): What is wrong with this procedure? Exercise 8. and e = y X ^ the OLS residuals. 133 .7 The data…le hprice1. You replace c with qn (:95). The ^ are sorted. :::. Calculate 95% con…dence intervals for the regression coe¢ cients using both the asymptotic normal approximation and the percentilet bootstrap. yn g be a random sample from the empirical distribution function and let Tn = y n be its sample mean. calculate the estimate ^ on these samples and then calculate Tn = (^ ^)=s(^). calculate the estimates ^ on these samples and then calculate Tn = ^ =s(^ ): Let qn (:95) denote the 95% quantile of Tn . creating a random bootstrap data set (y .2 Take a random sample fy1 . Let qn (:05) and qn (:95) denote the 5% and 95% quantiles of Tn .6 Suppose that in an application. Using the nonparametric bootstrap.4 Consider the following bootstrap procedure.1 Let Fn (x) denote the EDF of a random sample. :::. you generate bootstrap samples. (a) Report the 95% Efron Percentile interval for : (b) Report the 95% Alternative Percentile interval for : (c) With the given information. Show that this bootstrap procedure is (numerically) identical to the nonparametric bootstrap.5 You want to test H0 : = 0 against H1 : > 0: The test for H0 is to reject if Tn = ^=s(^) > c where c is picked so that Type I error is : You do this as follows. can you report the 95% Percentilet interval for ? Exercise 8. draw a random ^ integer i0 from [1.5% quantiles of the ^ are . and the colonial dummy. yielding OLS estimates ^ and any other statistic of interest. size of house. Using the nonparametric bootstrap. and ^ is calculated on each sample. 1000 samples are generated from the bootstrap distribution. ng : That is. generate bootstrap samples.
is not necessarily e¢ cient. an asymptotically e¢ cient estimator of is the OLS estimator.1 Overidenti…ed Linear Model yi = x0 + ei i = x0 1i E (xi ei ) = 0 where x1i is k 1 and x2 is r 1 with ` = k + r: We know that without further restrictions. but this is not required. xi . z. ) = z (y x0 ): In econometrics. these are known as estimating equations. 0) = z (y x0 ) (9. x. how should 1 be estimated? One method is OLS regression of yi on x1i alone. As an important special case we will devote special attention to linear moment condition models. z. as there are ` restrictions in E (xi ei ) = 0.1) by setting g(y. otherwise it is overidenti…ed. 0) 1 1 Consider the linear model + x0 2i 2 + ei + ei =0 (9. 1 this class of models are called moment condition models. This model falls in the class (9. while 1 is of dimension k < `. There are ` k = r more moment restrictions than free parameters. This is a special case of a more general class of moment condition models. This situation is called overidenti…ed. In the statistics literature. z i . ) be an ` 1 function of a k 1 parameter with ` k such that Eg(yi . The variables xi may be components and functions of z i . with ` k: If k = ` the model is just identi…ed.1) where 0 is the true value of : In our previous example. We call r the number of overidentifying restrictions.Chapter 9 Generalized Method of Moments 9. x. Now suppose that we are given the information that 2 = 0: Now we can write the model as yi = x0 1i E (xi ei ) = 0: In this case. however. This method. g(y. Let g(y. which can be written as yi = x 0 + e i i E (z i ei ) = 0: where the dimensions of xi and z i are k 1 and ` 1 . z.2) 134 .
for if W n is replaced by cW n for some c > 0.2) gn( ) = x0 i = 1 Z 0y n Z 0X : (9. if W n = I. the dependence is only up to scale. Jn ( ) = n g n ( )0 g n ( ) = n kg n ( )k2 .3) The method of moments estimator for is de…ned as the parameter value which sets g n ( ) = 0. then g n ( ^ ) = 0. The GMM estimator minimizes Jn ( ).9. the square of the Euclidean length. This is generally not possible when ` > k.1 GM M = argmin Jn ( ) : Note that if k = `. as there are more equations than free parameters. 135 . let Jn ( ) = n g n ( )0 W n g n ( ): This is a nonnegative measure of the “length”of the vector g n ( ): For example. The idea of the generalized method of moments (GMM) is to de…ne an estimator which sets g n ( ) “close” to zero.2.2. For some ` ` weight matrix W n > 0. and the GMM estimator is the method of moments estimator: The …rst order conditions for the GMM estimator are 0 = @ Jn ( ^ ) @ @ = 2 g n ( ^ )0 W n g n ( ^ ) @ 1 0 1 0 = 2 X Z Wn Z y n n X^ so 2 X 0Z W n Z 0X ^ = 2 X 0Z W n Z 0y which establishes the following. ^ GM M does not change. Proposition 9. then. De…nition 9.1 ^ GM M = X 0Z W n Z 0X 1 X 0Z W n Z 0y : While the estimator depends on W n .2 GMM Estimator 1X 1X gi( ) = z i yi n n i=1 i=1 n n De…ne the sample analog of (9.
but it can be estimated consistently. Chamberlain showed that in this context. i i i where g i = z i ei : Then 1 0 X Z Wn n and 1 0 X Z Wn n 1 0 ZX n d p ! Q0 W Q 1 p Z 0e n ! Q0 W N (0.3 Distribution of GMM Estimator p Assume that W n ! W > 0: Let and Q = E z i x0 i = E z i z 0 e2 = E g i g 0 . it is semiparametrically e¢ cient. as it has the same asymptotic distribution. ^ the e¢ cient GMM estimator. and this is all that is known. This result shows that in the linear model. This yields the e¢ cient GMM estimator: ^ = X 0Z Thus we have Theorem 9. This is a weak concept of optimality. as the distribution of the data is unknown. without imposing additional assumptions.9. we still call By “e¢ cient” we mean that this estimator has the smallest asymptotic variance in the class . Q0 1 Q : 1 Z 0X 1 X 0Z 1 Z 0 y: 1 W0 = is not known in practice.3.1 Asymptotic Distribution of GMM Estimator p where V = Q0 W Q n ^ 1 d ! N (0. 1 The optimal weight matrix W 0 is one which minimizes V : This turns out to be W