Model Specification

Large N & Leeuwenhoek (70700173)

Yue Hu

Overview

  1. Nonstochastic X (“X is fixed”), and X has positive noninfinite varianceX > 0);
  2. Correct specification;
  3. Linearity in the parameter;
  4. Full rank/identification
    • N > K; K = 2 for a simple OLS);
  5. Mean zero errors
    • E(εi|Xi) = 0;
  6. Exogeneity: No covariance between Xi and εi
    • E(Xiεi) = cov(xi, εi) =0;
  1. No autocorrelation/serial correlation: E(εi, εJ|Xi, Xj) = cov(εi, εJ|Xi, Xj) = 0, ∀ i, j);
  2. Normality: \(U|X \sim N(0, \sigma^2I).\)
  3. Homoskedasticity/Spherical disturbances: constant variance of εi, var(εi|X) = σ2;
  4. No perfect collinearity: there are more than one X, ∄ Xi s.t., Xi = a + b∑j = 1bjXj

Specification Issues

How can you specify things wrong?

Measurement Issues

  • Proxy variable
  • Measurement error
  • Variable type

Specification Issues

  • Functional form
  • Omitted variable

Interpretation Issues

  • Nonlinear model

1 Measurement Issues

1.1 Why proxy variables?

  • Human capital ← years of education
  • GDP ← economic well-being
  • Voter turnout ← democratic health
  • Partisaship ← ideology

1.2 Proxy Variable in Statistics

True model: Y = β0 + β1X1 + β2X2 + β3X3* + ε, ε ~ Φ(0, σε2).

  • Unobservable: X3*.
    • Observable X3* = δ0 + δ1X3 + ν, ν ~ Φ(0, σν2).
  • ⇒ Y = (β0 + β3δ0) + β1X1 + β2X2 + β3δ1X3 + (ε + β3ν).
    • Assuming cov(ε, ν) = 0, then
      1. E(ε + β3ν|X) = 0;
      2. var(ε + β3ν|X) = β32σν2 + σε2.

Outcome of proxy variable

Only when cov(ε, X3) = cov(ν, X1) = cov(ν, X2) = 0, can the model produce unbiased estimates.

1.3 Measurement Error

Relation with proxy variable

Proxy variable is a source of measurement error (random error, specifically).

  • Nonrandom error → systematic bias
  • Random error in the outcome variable: Y = Y* + ε.
    • \[\begin{align} &Y^* = \beta_0 + \beta_1X_1 +\cdots+ \beta_kX_k + \epsilon;\\ &Y = \beta_0 + \beta_1X_1 +\cdots+ \beta_kX_k + (\nu + \epsilon) \end{align}\]
    • Consequence
      • β Unbiased
      • var(β) ↑

1.4 Measurement Error

  • Random error in the explanatory: X = X* + ν. If E(νX) = 0, then \[\begin{align} Y =& \beta_0 + \beta_1(X_1 - \nu) + \epsilon,\\ =& \beta_0 + \beta_1X_1 + (\epsilon - \beta_1\nu). \end{align}\]

\[\begin{align} cov(\epsilon, X_1) =& E(\epsilon X_1) - E(\epsilon)E(X_1) = E(\epsilon X_1), \\ =& E[\epsilon (X_1^* + v)] = E(\epsilon X_1^*) + E(\epsilon v) = \sigma_\epsilon^2\neq0.\\ cov(\epsilon - \beta_1\nu, X_1) =& cov(-\beta_1\nu, X_1) = -\beta_1cov(\nu, X_1) = -\beta_1\sigma_\nu^2.\\ \Rightarrow\ plim(\hat\beta_1) =& \beta_1 + \frac{cov(\epsilon - \beta_1\nu, X_1)}{var(X_1)},\\ =& \beta_1 + \frac{-\beta_1\sigma_\nu^2}{\sigma_{X_1}^2} = \beta_1 + \frac{-\beta_1\sigma_\nu^2}{\sigma_{X_1}^{*2} + \sigma^2_\epsilon} = \frac{\sigma_{X_1}^{*2}}{\sigma_{X_1}^{*2} + \sigma^2_\nu}\beta_1. \end{align}\]

1.5 Measurement Error

\[plim(\hat\beta_1) = \frac{\sigma_{X_1}^{*2}}{\sigma_{X_1}^{*2} + \sigma^2_\nu}\beta_1.\]

  • Unbiased only when var(X1) = var(X1* + ν), i.e., σ2X1 = σX1*2+ σν2
  • Consequence: \(|\hat\beta_1| < \beta_1\), a.k.a., the attenuation bias.
    • β1: underestimated;
    • Affecting the estimations of others in unknown ways .

1.6 Bonus: Concerns of the variable type

Warning

In OLS, there is no requirement (assumption) for Xs (but the parameter) to be linear.

  • Indicator variable (binary)
    • \(Y = \beta_0 + \beta_1X_i + \epsilon_i,\) where X is either male (0) or female(1)
      • β0: E(Y|X = male);
      • β1: E(Y|X = female) - E(Y|X = male).
  • Nominal:
    • Can’t regress unless being broken up into indicators
    • e.g., A race variable: white, black, native
      • H0: βblack = 0, testing the difference between black and white
      • H0: βblack = βnative = 0, testing if the race has any effect.

1.7 If no linearity requirement for Xs, why transformation

You saw log(GDP) or log(income), right? What does the logarithm transformation do?

The problem to solve: Violation of A3 (“Linearity in the parameter”)

1.8 Model Fit with Logarithm Transformation

1.9 So, when to use Logrithm Transformation

Critical criterion: Skewness

Rule of thumb:

  • |Skewness| < 0.5, the distribution is approximately symmetric (0 ⇔ perfect symmetric)
  • |Skewness| < 1, moderately skewed
  • |Skewness| > 1, highly skewed

Example data:

$body
[1] 6.249429

$brain
[1] 4.828829

2 Misspecification

2.1 Problem Types

  1. Functional form
  2. Omitted variable

2.2 Misspecification in the Functional Form

When there are two ways to specify the model:

\[\begin{align} Y =& f_1(X_1, X_2, X_3) =\beta_1X_1 + \beta_2X_2 + \beta_3X_3 + \epsilon, \\ Y =& f_2(X_1, X_2, X_3) =\beta_4X_1^2 + \beta_5X_2^3 + \beta_6X_3^4 + \epsilon. \end{align}\]

Which specification is correct?

Test out:

β1 in Y = f1(X) + f2(X) + ε

Conduct a joint test:

H0: β1 = β2 = β3 = 0 or

β4 = β5 = β6 = 0

Statistics: Davidson-Mackinnon test

  1. Run \(Y = f_2(X) + \epsilon\) and calculate the expected value \(\hat Y = E[Y|f_2(X)]\)
  2. Run \(Y = f_1(X) + \theta\hat Y + \epsilon\), and test if θ = 0.

2.3 Omitted Variable

\[\begin{align} True: Y_i =& \beta_0 + \beta_1X_{1i} + \beta_2X_{2i} + \epsilon_i;\\ Specified: Y_i =& \tilde\beta_0 + \tilde\beta_1X_{1i} + \tilde \epsilon_i, \end{align}\]

How does \(\tilde\beta_1\) compare to \(\beta_1\)?

\[\begin{align} Y_i =& \beta_0 + \beta_1X_{1} + \beta_2X_{2} + \epsilon_i,\\ Y_i -\bar Y =& \beta_1(X_{1} - \bar X_1) + \beta_2(X_{2} - \bar X_2) + (\epsilon_i - \bar \epsilon),\\ (Y_i -\bar Y)(X_1 - \bar X_1) =& \beta_1(X_{1} - \bar X_1)^2 + \beta_2(X_{2} - \bar X_2)(X_1 - \bar X_1)\\ &+ (\epsilon_i - \bar \epsilon)(X_1 - \bar X_1),\\ \frac{(Y_i -\bar Y)(X_1 - \bar X_1)}{\sum(X_1 - \bar X_1)^2} =& \beta_1\frac{\sum(X_{1} - \bar X_1)^2}{\sum(X_1 - \bar X_1)^2} + \beta_2\frac{\sum(X_{2} - \bar X_2)(X_1 - \bar X_1)}{\sum(X_1 - \bar X_1)^2} + \frac{\sum \epsilon_i(X_1 - \bar X_1)}{\sum(X_1 - \bar X_1)^2}.\\ \text{That is, } \tilde\beta_1 =& \beta_1 + \beta_2\hat\delta_1 + \frac{\sum \epsilon_i(X_1 - \bar X_1)}{\sum(X_1 - \bar X_1)^2},\\ \Rightarrow E(\tilde\beta_1|X_1) =& E(\beta_1|X_1) + E(\beta_2\hat\delta_1|X_1) + E[\frac{\sum \epsilon_i(X_1 - \bar X_1)}{\sum(X_1 - \bar X_1)^2}|X_1],\\ =& \hat\beta_1 + \hat\beta_2E(\hat\delta_1|X_1) + \frac{\sum(X_1 - \bar X_1)}{\sum(X_1 - \bar X_1)^2}E(\epsilon_i|X_1),\\ =& \hat\beta_1 + \hat\beta_2\delta_1. \end{align}\]

2.4 Biased how

\[E(\tilde\beta_1|X_1) = \hat\beta_1 + \hat\beta_2\delta_1,\] in which \(\hat\delta_1\) is the regression coefficient of \(X_2\) on \(X_1\) ( \(X_1 = \delta_0 + \delta_1X_2 + r\)).

  • \(\tilde\beta_1\): Biased, unless X2 is an irrelevant variable.
    • Even if δ1 = 0, \(X_1 = \delta_0 + r\), the model may increase the risk of Type I error

Examples:

  • Economic development and democracy
  • Election and democracy
  • Media freedom and political accountability

3 Misinterpretation

3.1 Linear modeling of nonlinear relationship

Believe or not, still unbiased & efficient linear estimates, but what does β1 mean?

3.2 One way out

Marginal Effects💫

Discrete:

\[Pr(Y|x = X_{n + 1}) - Pr(Y|x = X_n)\]

Continuous:

\[\lim_{\Delta x\to0} \frac{ f(x + \Delta x) - f(x)}{\Delta x}\]

That’s to say, every value in X (n > 1) has a marginal effect (Δx). Which one should we use?

3.3 Marginal Effects in Types

Average Marginal Effect (AME)

  1. Calculate the marginal effect of each variable x for each observation.
  2. Calculate the average.

Marginal Effect at the Mean (MEM)

Calculate the marginal effect of each variable x for each’s mean value.

Marginal Effect at Representative Values (MER) 🌟

Calculate the marginal effect of each variable x for value(s) of interest.

3.4 Hypothesis Testing of A Nonlinear Model

\[e.g., Y = \beta_0 + \beta_1X + \beta_2X^2 + u.\]

  • Margins: \(\frac{\partial Y}{\partial X} = \beta_1 + 2\beta_2X\)
  • Let α = 0.05, H0: β1 + 2β2X = 0;
    • The average acceleration is zero

Statistics:

\[\begin{align} \frac{\beta_1 + 2\beta_2X - 0}{SE(\beta_1 + 2\beta_2X)}\sim& t_{n - 3}.\\ SE(\beta_1 + 2\beta_2X) =& \sqrt{var(\beta_1 + 2\beta_2X)}, \\ =& \sqrt{var(\beta_1) + 4X^2var(\beta_2) + 4Xcov(\hat\beta_1,\hat\beta_2)}. \end{align}\]

3.5 Interpretation

Statistics:

\[\begin{align} \frac{\beta_1 + 2\beta_2X - 0}{SE(\beta_1 + 2\beta_2X)}\sim& t_{n - 3}.\\ \end{align}\]

Interpretation issue

Can’t simply say whether the null hypothesis is rejected, because there may not be a coherent effect over the entire domain of X due to the nonlinearity.

  • Way-out: “In the range from a to b, the hypothesis can be rejected.”
    • Max - min/First difference
    • Marginal effects across values
    • Just plot it. (Do this, cool kids!)

Take-home point

Appendix

Stretch

Meditation

松茸的世界:5分钟正念冥想-自信之心

松茸的世界:5分钟正念冥想-自信之心