Chapter 4 Functional form
Chapter 4 Functional form
Econometrics
Functional form
Linear Regression Linear and Logarithm Polynomial and Interaction Dummy Variable
Linear Regression
• Linear regression function: linear on coefficient
• Linear regression
y = β0 + β1 x + β2 x 2 + u
y = β0 + β1 ln(x1 ) + β2 x2 + u
• Linear-transformed regression
y = β0 x β1 u
• Non-linear regression
β0 + β1 x1
y= + u, y = β0 x β1 + β2 x 2 + u
β2 + β3 x2
LS method apply for linear or linear-transformed regression model
Linear Regression Linear and Logarithm Polynomial and Interaction Dummy Variable
Effect Analysis
• Absolute change: 1 unit change in variable
• Relative change: 1% change in variable
Effect unit change in y % change in y
unit change in x absolute → absolute absolute → relative
(derivative)
% change in x relative → absolute relative → relative
(elasticity)
• Linear-linear (level-level) model
y = β0 + β1 x1 + β2 x2 + u
• Absolute effect
∂y ∂y
dy = dx1 + dx2 = β1 dx1 + β2 dx2
∂x1 ∂x2
Linear Regression Linear and Logarithm Polynomial and Interaction Dummy Variable
• Relative effect
dy dx1 dx2
= β1 + β2
y x1 x2
dy dx1 dx2
100(%) = β1 100(%) + β2 100(%)
y x1 x2
Log-log model
Linear-log Model
Log-linear model
• Log-linear model: ln(y ) = β0 + β1 x + u
• Difference
dy dy
= β1 dx =⇒ 100(%) = 100β1 dx
y y
• x change 1 unit, y change approximately 100β1 %
• Exponential transform: y = e β0 +β1 x+u
• x change 1 unit, y change 100(e β1 − 1)% ≈ 100β1 % if β1 is
closed enough to 0.
Linear Regression Linear and Logarithm Polynomial and Interaction Dummy Variable
Predict value
• We can predict ln(y ) using estimators
[) = βb0 + βb1 x1 + · · · + β
ln(y ck xk
[)
• One guess the predicted value of y is yb = e ln(y . This
systematically underestimate the expected value of y .
2
• Assumption 1-6, then E [y |x] = e σ /2 · e β0 +β1 x1 +···+βk xk
• So the corrected prediction is
2 /2 [
yb = e σb · e ln(y )
where σ
b is simply the unbiased estimator of σ.
• This prediction is not unbiased, but it is consistent.
Xn
[
• Another prediction: yb = α b = n−1
b · e ln(y ) with α exp(ei ).
i=1
Linear Regression Linear and Logarithm Polynomial and Interaction Dummy Variable
Polynomial form
• Quadratic functions are used to capture decreasing or
increasing marginal effects.
• Quadratic form model: y = β0 + β1 x + β2 x 2 + u
• (Marginal) effect: dy
dx = β1 + 2β2 x
• Turning point: x ∗ = −β1
2β2
Interaction form
Interaction form
• Model: y = β0 + β1 x + β2 z + β3 x · z + u
• Effects:
dy dy
= β1 + β3 z, = β2 + β3 x
dx dx
• Effect of x is impacted by scalar of z, and vice versa
• Example
R code
Dummy variables
Linear Regression Linear and Logarithm Polynomial and Interaction Dummy Variable
Example
wage
[ = 0.123 + 0.411 gradmale + 0.198 undermale + 0.088 gradfem
(0.106) (0.056) (0.058) (0.052)
Example
Linear Regression Linear and Logarithm Polynomial and Interaction Dummy Variable
Example