Docsity

Econometrics: Multivariate Regression, Panel Data, and Time Series Analysis, Lecture notes of Economics

Partial preview of the text

Download Econometrics: Multivariate Regression, Panel Data, and Time Series Analysis and more Lecture notes Economics in PDF only on Docsity!

Spring 2012

Eunice Han

Econometrics

Honor’s Exam Review Session

Topics

1. OLS
  • The Assumptions
  • Omitted Variable Bias
  • Conditional Mean Independence
  • Hypothesis Testing and Confidence Intervals
  • Homoskedasticity vs Heteroskedasticity
  • Nonlinear Regression Models: Polynomials, Log Transformation, and Interaction Terms
  1. Panel Data:
  • Fixed Effects: Entity FE and Time FE
  • Serial Correlation and Clustered HAC SE
  1. Internal Validity and External Validity 2

Least Squares Assumptions

1. (X

i

,Y

i ) are iid; random sampling

  1. Large outliers are rare; If this condition fails, OLS estimator is not consistent.
  2. E (u i
|X

i ) = 0; Conditional Mean Zero assumption. Xs are exogenous. This assumption fails if X and u are correalted.

  1. No Perfect Multicollinearity (In multivariate regression): The regressors are said to be perfectly multicollinear if one of the regressors is a perfect linear function of the other regressor(s).  If all the assumptions are satisfied, the OLS estimates are unbiased and consistent. 4

Univariate Regression Model

Do married men make more money than single men? ; i=1,2,…,n lwage = log(monthly wage) married =1 if married, 0 if single Q1. How would you interpret and? (intercept) is the average lwage of single men. (slope) represents the difference in average lwage between single and married men. Q2. In our model, which factors are likely to be in the error term? The error term u i captures all other factors except marital status that might affect the log of monthly wage. Education, experience, and ability are potential factors which are omitted here. lwagei = β 0 + β 1 marriedi + ui € β 0 5 € β 1 € β 0 € β 1

Multivariate Regression Model

Q1. How would you interpret , , and? : Predicted value of lwage when all the regressors are zero. Meaningless in this case. : Effect of unit change in “married” on lwage , holding other regressors constant. Q2. Suppose that we are interested in the effect of marriage on lwage. Can we be sure that the there is no OVB after we include more variables in the regression? Q3. Supposed we are only interested in the effect of marriage on lwage. Do we really need the strong assumption of exogeneity of Xs, E (u i

|X

i ) = 0, to obtain unbiased estimator for? € lwage i = β 0

  • β 1 married i
  • β 2 edu i
  • β 3 exp i
  • β 4 job i
  • u i € β 0 € β 1 € β 2 € β 0 € β 1 7 β 1

Conditional Mean Independence

 X: treatment variable W: control variables.  If we are only interested in the causal effect of X on Y, we can use a weaker assumption of Conditional Mean Independence:  The conditional expectation of u does not depend on X if control for W. Conditional on W, X is as if randomly assigned, so X becomes uncorrelated with u, but W can still be correlated with u.  Under the conditional mean independence assumption, OLS can give us the unbiased and consistent estimator for , but the coefficients for W can be biased. 8 € Y i = β 0

  • β 1 X i
  • β 2 W 1 i
  • ...+ β 1 + r W ri
  • u i € E ( u | X , W ) = E ( u | W ) € β 1

Hypothesis Testing

 H

0

H

1 : ≠ 0 (two-sided)  T-test: By the Central Limit Theorem, t-statistics is normally distributed when n is large enough. t-statistics = If |t|>1.96, we reject null hypothesis at 5% significance level.  P-value: The p-value is the probability of drawing a value of that differs from 0, by at least as much as the value actually calculated with the data, if the null is true. If p-value is less than 0.05, we reject the null hypothesis at 5% significance level. P-value ≈ € β 1 € β 1 € ˆ β 1 − 0 Var ( ˆ β 1 ) ~ N ( 0 , 1 ) € ˆ β 1 10 Pr(| z |>| t |) = 2 Φ(− | t |)

Confidence Interval

Confidence Interval : An interval that contains the true population parameter with a certain pre-specified probability. (usually 95%)  Confidence Interval is useful because it is impossible to learn the exact value of population mean using only the information in one sample due to the random sampling error. However, it is possible to use this data to construct a set of values that contains the true population mean with certain probability.  How do we construct the 95% confidence interval? Pr(−1.96 ≤ t ≤ 1.96) = 0. [ − 1.96 SE ( ) ≤ ≤ + 1.96 SE ( )] If this confidence interval contains 0, we fail to reject H 0

€ ˆ β 1 € ˆ β 1 € β 1 € ˆ β 1 € ˆ β 1 11 β 1

Joint Hypothesis Testing

 For joint hypothesis testing, we use F-test.

 Under the null hypothesis, in large samples, the F-statistic

has a sampling distribution of F

q,∞.

That is,

F-statistic ~ F

q,∞

where q is the number of coefficients that you are testing.

 If F-statistics is bigger than the critical value or p-value is

smaller than 0.05, we reject the null hypothesis at 5%

significance level. (ex. The critical value for F

2, ∞

at 5%

significance level is 3)

 If H

0

: and F-stat>3, we reject the null and

conclude that at least one of the coefficients is not zero,

€ β 2 = β 3 = 0 13

Nonlinear Regression (1)

1. Polynomials in X  The coefficients do not have a simple interpretation because it is impossible to change X holding X 2 constant.  Which polynomial model to choose? 1. Linear vs. Quadratic? T-test on H 0

  1. Quadratic vs. Cubic? T-test on H 0
  1. Linear vs. non-linear? F-test on H 0

If fails to reject, linear model is preferred. If rejects, at least one of the coefficients are not zero. € Y i = β 0

  • β 1 X i
  • β 2 X i 2
  • ...+ β r X i r
  • u i € β 2 = 0 € β 3 = 0 € β 2 = β 3 = 0 14

Nonlinear Regression (3)

3. The interaction terms

 If we believe that the effect of X 2i on Y depends on X 1i , we can include the “interaction term” X 1i

*X

2i as a regressor.  Suppose we want to plot the regression line of Y on X 2i when X 1 =a and X 1 =b. Assume that all coefficients are positive and a and b are also positive with a<b.  When X 1 = a,  When X 1 = b, 16 € Y i = β 0

  • β 1 X 1 i
  • β 2 X 2 i
  • u i € Y i = β 0
  • β 1 X 1 i
  • β 2 X 2 i
  • β 3 ( X 1 i
  • X 2 i ) + u i € Y i = β 0
  • β 1 a + ( β 2
  • β 3 a ) X 2 i € Y i = β 0
  • β 1 b + ( β 2
  • β 3 b ) X 2 i

The Graph and The interaction terms

17

  • The intercepts of the bottom regression line represent the predicted value of Y when X 2 = 0 for X 1 =a.
  • The slope of the bottom regression line represents the effect on Y of a unit change in X 2 given X 1 =a.

Types of Data

Panel Data : N different entities are observed at T different time periods

1. Balanced Panel : All variables are observed for each entity and each time period. 2. Unbalanced Panel : There are missing data for at least one time period for at least one entity.  Cross-Sectional Data : N different entities are observed at the same point in time  Time Series Data : 1 entity is observed at T different time periods 19

Panel Data

 Since each entity is observed multiple times, we can use fixed effect to get rid of the OVB, which results from the omitted variables that are invariant within an entity or within a period.  Entity Fixed Effects control for omitted variables that are constant within the entity and do not vary over time

  • ex. gender, race, or cultural and religious characteristics of each State  Time Fixed Effects control for omitted variables that are constant across entities but vary over time
  • ex. national level anti-crime policy or national safety standard each year 20