Dummy-Variable Regression Model
Dummy-Variable Regression Model
Model
Dummy Inter-
Linear
Variable action
Poly- Square
Log Reciprocal Exponential
Nomial Root
0 if Male
X2
1 if Female
Females
b0 + b2
b0
Males
0 X1
0
© 1999 Prentice-Hall, Inc. Chap. 14 - 7
Interpreting Dummy-
Variable Model Equation
Given: Yi b0 b1X 1i b2 X 2i
Y Starting salary of college grad's
X 1 GPA
0 if Male
X2
1 if Female
Males ( X 2 0):
Yi b0 b1X 1i b2 0 b0 b1X 1i
FEMALES
( X 1) :
Yˆi b0 b1 X1i b2 1 b0 b2 b1 X1i
2
Females
b0 + b2
b0
Males
0 X1
0
© 1999 Prentice-Hall, Inc. Chap. 14 - 10
Dummy-Variable Model
Example
Computer Output : Yˆi 3 5 X 1i 7 X 2i
X 2 10 if Male
if Female
Same slopes
Males ( X 0) :
Yˆi 3 5 X 1i 70 3 5 X 1i
2
Females ( X 1) :
Yˆi 3 5 X1i 71 3 7 5 X1i 10 5 X
2
1i
Dummy Inter-
Linear
Variable action
Poly- Square
Log Reciprocal Exponential
Nomial Root
Given:
Yi 0 1X 1i 2 X 2i 3 X 1i X 2i i
8
Y = 1 + 2X1 + 3(0) + 4X1(0) = 1 + 2X1
4
0 X1
0 0.5 1 1.5
Effect (slope) of X1 on Y does depend on X2 value
© 1999 Prentice-Hall, Inc. Chap. 14 - 20
Interaction Regression
Model Worksheet
FEMALE 0 B2 B3
Difference
FEMALE MALE
Single: Single: 1 1
Married: 2 Married: 1 2 4 1 4
Divorced: 3 Divorced: 1 3 5 1 5
EXAMPLE
Dummy Inter-
Linear action
Variable
Poly- Square
Log Reciprocal Exponential
Nomial Root
Y Y Y Y
X1 X1 X1 X1
2 > 0 2 > 0 2 < 0 2 < 0
ln Yi ln 0 1ln X 1i 2 ln X 2i ln i
© 1999 Prentice-Hall, Inc. Chap. 14 - 35
Using Transformations
1 < 0
X1
Transforms one of above model to one that appears linear.
Often used to overcome heteroscedasticity.
© 1999 Prentice-Hall, Inc. Chap. 14 - 37
Logarithmic
Transformation
Yi 0 1 ln( X 1i ) 2 ln( X 2 i ) i
Y 1 > 0
Similarly for X2
1 < 0
X1
Similarly for X2
1 < 0
X1
Transformed into: ln Yi 0 1 X 1i 2 X 2i ln 1
Linear Model
Log(Y)
Quadratic
Log(Y) + Quadratic
Many specifications
xi
Then the b’s are called standardized
coefficients. They indicate the number
of standard deviations Y will change
when X changes by one standard
deviation
© 1999 Prentice-Hall, Inc. Chap. 14 - 51
BETA Coefficients Example