Lecture - 5 - FF - Quanlitative Regressors
Lecture - 5 - FF - Quanlitative Regressors
𝑌 = 𝛽0 + 𝛽1 𝑋 + 𝜀
» 𝛽 is change in Y when X increases by 1 unit.
» Sometimes the relationship is not linear.
» Common functional form:
• Linear
• Log-linear
• Log-lin
• Lin-log
3
FUNCTIONAL FORMS
Linear Log-linear
Lin-log Log-lin
4
EXAMPLE DATASET
6
DATA DESCRIPTION
7
DATA DESCRIPTION
8
EXPLAINING THE LINEAR MODEL
» Consider a linear regression function
𝑌 = 𝛽0 + 𝛽1 𝑋 + 𝜀
» Slope (marginal effect): 𝛽1
When 𝑋 increases by 1 unit, 𝑌 changes by 𝛽1 .
𝑋
» Elasticity: 𝛽1
𝑌
𝑋
When 𝑋 increase by 1%, 𝑌 changes by 𝛽1 percent.
𝑌
10
LOG-LINEAR MODEL
can be transformed into a linear model by taking natural logs of both sides:
ln 𝑄𝑖 = ln 𝛽1 + 𝛽2 ln 𝐿𝑖 + 𝛽3 ln 𝐾𝑖
𝑌
» Slope (marginal effect): 𝛽1
𝑋
𝑌
When 𝑋 increases by 1 unit, 𝑌 changes by 𝛽1 .
𝑋
The marginal effect in a log-linear model depends on the values of 𝑋 and 𝑌.
» Elasticity: 𝛽1
When 𝑋 increase by 1%, 𝑌 changes by 𝛽1 percent.
LOG-LINEAR MODEL
13
LOG-LIN MODEL (GROWTH MODEL)
ln 𝑅𝐺𝐷𝑃𝑡 = 𝛽0 + 𝛽1 𝑡
EXPLAINING THE LOG-LIN MODEL
» The model:
ln 𝑌 = 𝛽0 + 𝛽1 𝑋 + 𝜀
» Slope (marginal effect): 𝛽1 𝑌
When 𝑋 increases by 1 unit, 𝑌 changes by 𝛽1 𝑌.
The marginal effect in a log-linear model depends on the current value of 𝑌.
» Elasticity: 𝛽1 𝑋
When 𝑋 increase by 1%, 𝑌 changes by 𝛽1 𝑋 percent.
The elasticity in a log-linear model depends on the current value of 𝑋.
16
LIN-LOG MODELS
𝑌𝑖 = 𝛽0 + 𝛽1 ln 𝑋𝑖 + 𝑢𝑖
1
» Elasticity: 𝛽1
𝑌
1
When 𝑋 increase by 1%, 𝑌 changes by 𝛽1 percent.
𝑌
The elasticity in a log-linear model depends on the current value of 𝑌.
» The meaning of β1 : increase in 𝑌 when 𝑋 doubles.
LIN-LOG MODEL
19
A SUMMARY: FUNCTION FORMS
MODEL FORM MARGINAL EFFECT
𝜕𝑌 𝜕𝑌
𝜕𝑋 ELASTICITY 𝑌
𝜕𝑋
𝑋
𝑋
Linear 𝑌 = 𝛽0 + 𝛽1 𝑋 𝛽1 𝛽1
𝑌
𝑌
Log-linear 𝑙𝑛𝑌 = 𝛽0 + 𝛽1 𝑙𝑛𝑋 𝛽1 𝛽1
𝑋
Log-lin 𝑙𝑛𝑌 = 𝛽0 + 𝛽1 𝑋 𝛽1 𝑌 𝛽1 𝑋
1 1
Lin-log 𝑌 = 𝛽0 + 𝛽1 𝑙𝑛𝑋 𝛽1 𝛽1
𝑋 𝑌
20
QUADRATIC FUNCTIONAL FORM
21
EXAMPLE DATA
A survey of 20,306 individuals in the U.S.
» male 1 = male; 2 = female
» age age (year)
» wage wage ($/hour)
» tenure # years working for current employer
» union 1 = union member, 0 otherwise
» edu years of schooling (years)
» race 1 = white; 2 = black; 3 = others
» married 1 = married or living together with a partner, 0 otherwise
Data file: qlr.xlsx
DATA DESCRIPTION
MINCER’S WAGE FUNCTION…
28
DUMMY VARIABLE AS A REGRESSOR
Coefficient of a dummy regressor
should be interpreted as the
difference between the two groups
of the dummy regressor.
INTRODUCING CATEGORICAL VARIABLE
30
TRANSFORMING CATEGORICAL VARIABLES TO DUMMY VARIABLES
race = 1 if white, = 2 if black, 3 if others
» We generate
• white: = 1 if race == 1, 0 otherwise
• black: = 1 if race == 2, 0 otherwise
» We introduce white and black to the regression
» others is then considered base category
31
THE WAGE FUNCTION WITH
CATEGORICAL VARIABLES
β of white/black indicates the
difference in ln(wage) between
white/black and the base
category (“others”).
GENDER DIFFERENCE
IN RETURN TO EDUCATION