Title: The OLS Model and Categorical Variables
1The OLS Model and Categorical Variables
- ECON 222, lecture notes 2
- Petra Todd
2Discrete regressors, categorical variables
- Suppose we analyze factors that determine
workers earnings - Have data on
- Wages, education, labor market experience,
gender, union status, race/ethnicity
3OLS estimators
- Chooses ß coefficients to minimize the sum of
squared residuals
4Consider special case of regression only on a
constant term
5(No Transcript)
6(No Transcript)
7(No Transcript)
8(No Transcript)
9Interpretation of Model Coefficients
- Suppose model estimation yields
- Yi30,000-5,000 femalei
- (0.006) (0.03)
- Where p-values are given in parentheses
- What is the average earnings for males? Females?
- Is the difference between males and females
statistically significant from zero at a 5 level?
10(No Transcript)
11(No Transcript)
12Matrix representation of the OLS Regression
13(No Transcript)
14(No Transcript)
15(No Transcript)
16(No Transcript)
17(No Transcript)
18- If one of the columns of x is a constant term,
get that residuals sum to zero
19Properties of the OLS estimator for Nonstochastic
regressor case
- Recall the definition of the expectation of a
random variable
20Show that the OLS estimator is unbiased
21Variance of a random variable
22Variance of the OLS estimator
23(No Transcript)
24Distribution of OLS estimator
- Assume error terms are normally distributed
eN(0,s2I) - Note that A e N(0,As2A)
25- Observe that the term
- Is getting large with N (as you get more terms in
the sum).
26- To do hypothesis testing, we need a statistic for
which the variance is stable (not shrinking to
zero). - Standardize by square-root of N
27Testing Restrictions on the OLS Model
28(No Transcript)
29(No Transcript)
30Digression on Quadratic Forms
31(No Transcript)
32(No Transcript)
33Testing nonlinear restrictions the Delta Method
34(No Transcript)
35Deriving Partial Regression Coefficients
36(No Transcript)
37Show
38We will need the following properties
39(No Transcript)