Docsity

Notes on Specification Analysis, Model Selection and Data Problems | ECON 5350, Study notes of Econometrics and Mathematical Economics

Toggle sidebar
bg1
ECON 5340 Class Notes
Chapter 8. Specification Analysis, Model Selection and Data Problems
1Introduction
Most of this chapter is concerned with choosing the correct regression model. That is, how do you choose
between competing models and if you get it wrong, what are the consequences. The last part of my notes,
deals with several different practical problems that may occur in the data.
2Specification Analysis
2.1 Omission of Relevant Variables
Suppose that the "true" regression model is
Y=X1β1+X2β2+(1)
where X1is a (n×k1)matrixandX2is a (n×k2) matrix. Now assume that the researcher mistakenly
estimates the following
Y=X1β1+. (2)
The least squares estimate of β1is
b1=(X0
1X1)−1X0
1Y
=(X0
1X1)−1X0
1(X1β1+X2β2+)
=β1+(X0
1X1)−1X0
1X2β2+(X0
1X1)−1X0
1.
Taking expectations then gives
E(b1)=β1+(X0
1X1)−1X0
1X2β2.
This implies that b1is a biased estimator of β1unless
1. β2=0, which means that equation (2) was the "true" model and X2was not really relevant or
2. X1and X2are orthogonal.
1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Notes on Specification Analysis, Model Selection and Data Problems | ECON 5350 and more Study notes Econometrics and Mathematical Economics in PDF only on Docsity!

ECON 5340 Class Notes

Chapter 8. Specification Analysis, Model Selection and Data Problems

1 Introduction

Most of this chapter is concerned with choosing the correct regression model. That is, how do you choose between competing models and if you get it wrong, what are the consequences. The last part of my notes, deals with several different practical problems that may occur in the data.

2 Specification Analysis

2.1 Omission of Relevant Variables

Suppose that the "true" regression model is

Y = X 1 β 1 + X 2 β 2 +  (1)

where X 1 is a (n × k 1 ) matrix and X 2 is a (n × k 2 ) matrix. Now assume that the researcher mistakenly estimates the following Y = X 1 β 1 + . (2)

The least squares estimate of β 1 is

b 1 = (X 10 X 1 )−^1 X 10 Y = (X 10 X 1 )−^1 X 10 (X 1 β 1 + X 2 β 2 + ) = β 1 + (X 10 X 1 )−^1 X 10 X 2 β 2 + (X 10 X 1 )−^1 X 10 .

Taking expectations then gives E(b 1 ) = β 1 + (X 10 X 1 )−^1 X 10 X 2 β 2.

This implies that b 1 is a biased estimator of β 1 unless

  1. β 2 = 0, which means that equation (2) was the "true" model and X 2 was not really relevant or
  2. X 1 and X 2 are orthogonal.

Neither of these are likely to be true, so omitting relevant variables produces biased estimates of the coefficients. Although b 1 is biased, its variance will not be larger (and is likely to be smaller) than the LS estimator for β 1 when X 2 is included (call this estimator b 1. 2 ). These two variances are

var(b 1 ) = σ^2 (X 10 X 1 )−^1 var(b 1. 2 ) = σ^2 (X 10 M 2 X 1 )−^1 = σ^2 (X 10 X 1 − X 10 X 2 (X^02 X 2 )−^1 X^02 X 1 )−^1

where M 2 is the "residual maker" matrix for X 2. Note, however, that the estimates of var(b 1 ) and var(b 1. 2 ) may not reflect this ordering because s^2 is a biased estimator of σ^2 when excluding X 2 from the model.

2.2 Pretest Estimators

At least on a mean-square error basis, it is not clear which estimator is better: b 1 or b 1. 2. A third (and quite popular) choice is the so-called pretest estimator, call it b∗ 1. This estimator is a mix of the previous two. First, you estimate model (1) and then perform a statistical test to see if X 2 belongs in the model. If you reject the null (X 2 does matter), then you settle on b 1. 2. Otherwise, you choose b 1. Using an F test, we can write E(b∗ 1 ) = E(b 1 ) Pr(F < Fc) + β 1 Pr(F > Fc) 6 = β 1.

Therefore, b∗ 1 is a biased estimator unless the F test is designed to always reject the null hypothesis (size ' 1 ). The variance of b∗ 1 is non-trivial to calculate. The gauss example below performs a Monte Carlo experiment to see which of these three estimators performs better on a mean-square error basis.

2.2.1 Gauss Example. MSE Comparison of a Pretest Estimator.

For this experiment, we let yi = β 1 + β 2 x 2 i + β 3 x 3 i + i

and examine the mean square error of three estimators of β 2 : b 2 , b 2. 3 and b∗ 2. For given values of the independent variables, we then draw 2000 different samples, each of size (n = 50). See Gauss example 8. for more details.

2.3 Inclusion of Irrelevant Variables

the following procedure:

  1. Estimate γ by a LS regression of Y on Z.
  2. Estimate β and α by a LS regression of Y on X and Zˆγ.
  3. Using αˆ, carry out an asymptotic t test of the null hypothesis Ho : α = 0.
  4. Reverse the order in (1) - (3) and test the null hypothesis Ho : α = 1. Unfortunately, in finite samples their are four possible outcomes — reject both nulls, fail to reject both nulls and reject one of each of the nulls.

4 Model Selection Criteria

The J test is implicitly designed to distinguish between models based on goodness-of-fit within the sample. An example of a less sophisticated model-selection criterion would be to see which model produced a greater R^2. The problem with these approaches is that what works well in-sample, may not work so well out-of- sample. In this case, we need a penalty for over-parameterizing a model. Here are some options:

  1. Choose explanatory variables to maximize R¯^2 = 1 − [(n − 1)/(n − k)]R^2 or alternatively minimize s^2.
  2. Choose explanatory variables to minimize, Akaike Information Criterion (AIC), ln(e^0 e/n) + 2k/n.
  3. Choose explanatory variables to minimize, Schwarz Criterion, ln(e^0 e/n) + k ln(n)/n. These three criteria will tend to produce increasingly parsimonious models, as the penalty for additional explanatory variables increases.

5 Data Problems

This section is an eclectic collection of practical data problems.

5.1 Multicollinearity

There are two types of multicollinearity (MC): perfect and imperfect. Perfect MC violates the Classical assumption that the X matrix is of full rank, in which case OLS cannot be calculated. This section deals with imperfect MC between the explanatory variables, in which case OLS can be calculated.

5.1.1 Properties of the OLS Estimator

Given that imperfect MC does not violate any of the Classical assumptions, we know that the Gauss-Markov theorem still holds and b is the best linear unbiased estimator. This is a surprising result to some, but it simply means that given the multicollinear regressors, there is no better way than OLS to estimate the population parameters. Of course, all else equal, having less multicollinear regressors would produce more reliable estimates (smaller standard errors), but that is not an option.

5.1.2 Detection

The first two procedures to detect MC involve using simple correlations and variance inflation factors (VIFs).

  1. Simple Correlation Coefficients. The easiest method to detect MC is to print out a matrix of simple, pairwise correlation coefficients between the explanatory variables and look for values close to one in absolute value (say, greater than 0.8 in magnitude).
  2. Variance Inflation Factors. The problem with pairwise correlation coefficients is that it can miss more sophisticated forms of multicollinearity that involve multiple explanatory variables. VIFs are calculated according to V IF (βˆj ) = (1 − R^2 j.)−^1 where R^2 j. is the coefficient of determination for a regression of the jth explanatory variable on all other explanatory variables. It is interpreted as the amount var(ˆβj ) is inflated relative to the case of no MC. Another approach to detecting MC is the diagnostic approach of looking for MC in the OLS results. Under severe MC, OLS properties include
  3. Small changes in the data (e.g., eliminating a single observation or variable) can cause large changes in the ˆβs.
  4. High R^2 s and low ts.
  5. Unexpected signs on the βˆs (of course this could also be caused by an inappropriate theory so be cautious).

5.2.2 Measurement Error in the Independent Variables

Now assume the true model is yi = β 1 + β 2 x∗ i + i, (4)

where x∗ i represents the true and unobserved value of the dependent variable. The researcher, unfortunately, is endowed with xi = x∗ i + μi, a noisy measure of x∗ i. Rewriting (4) gives

yi = β 1 + β 2 xi + (i − β 2 μi) = β 1 + β 2 xi + ∗ i.

It is clear that the corr(xi, ∗ i ) 6 = 0, which violates a Classical assumption and will result in biased and inconsistent estimates of β 2. In fact,

cov(xi, ∗ i ) = cov(x∗ i + μi, i − β 2 μi) = −β 2 σ^2 μ

and the inconsistency in b 2 , measuring the variables in their deviation-from-the-mean form, is given by

plim(b 2 ) = plim(

Pn Pi=1n^ xiyi i=1 x^2 i ) = plim(

(^1) n^ Pni=1(x∗ i + μi)(β 2 x∗ i + i) n^1 Pni=1(x∗ i +^ μi)^2 ).

Using Slutsky’s theorem and Q∗^ = plim( (^) n^1 Pni=1 x∗ i 2 ) we can show that

plim(b 2 ) = β^2 Q

∗ Q∗^ + σ^2 μ

so if σ^2 μ > 0 , b 2 is downwardly inconsistent (in magnitude). This matches the fact that corr(xi, ∗ i ) = −β 2 σ^2 μ < 0 when β 2 > 0 and corr(xi, ∗ i ) = −β 2 σ^2 μ > 0 when β 2 < 0 , which causes b 2 to be biased toward zero. Signing the bias is much more complicated in a multivariate setting. Finally, the typical solution is instrumental variables estimation, that is, find a proxy variable for xi that is not correlated with the measurement error μi.

5.3 Missing Observations

A third practical problem with economic data is missing observations (i.e., "holes" in your dataset). This is a common occurrence in survey data as people refuse to answer questions. If observations for certain

questions are missing there are several options.

  1. Eliminate the entire row (entire observation) from the dataset. There are two problems with this approach. First, missing observations are often not random, so eliminating them will produce a sample that is not representative of the population (e.g., maybe old people are reluctant to state their age). Second, this often leaves you with too few remaining observations.
  2. Replace the missing value with the sample mean. If the entire row of the X matrix is missing, this is no different than entirely eliminating the observation. Furthermore, if missing values are systematically related to X, the sample mean may not be an representative estimate of the true value of X.
  3. Dummy variable approach. Create a new dummy variable for each variable that has missing obser- vations (provided they are missing in different rows) and add the dummies to the X matrix. In this fashion, the researcher is using all the available observations on an explanatory variable in calculat- ing the corresponding coefficient. One downside is that like (1) and (2) above, it assumes that the observations are missing at random, which is not always the case.
  4. Sophisticated interpolation. There are several available routines that allow one to use in-sample and out-of-sample information to make a more sophisticated (than the unconditional mean) guess at the missing value. Little is known about the property of these estimators, and what it known, typically comes from simulation exercises in special contexts.