Академический Документы
Профессиональный Документы
Культура Документы
Quantitative variables in
regression
(Dummy
Variables)
In regression analysis response variable is not only influenced by
Yi 1 2 D 2i 3D3i X i U i
Salary (y)
Thousand of rupees
Sex
Years of teaching
experience
60
50
40
40
60
50
60
Male
Male
Female
Male
Male
Female
Female
6
4
5
3
6
7
5
1
1
1
1
1
1
1
1
1
0
1
1
0
0
0
0
1
0
0
1
1
Yi 1 2 D 2i X i U i
Salary (y)
Thousand of
rupees
Sex
Years of
teaching
experience
60
50
40
40
60
50
60
Male
Male
Female
Male
Male
Female
Female
6
4
5
3
6
7
5
1
1
0
1
1
0
0
6
7
RULE
Important notes
Interpretation of results
Mean salary for Female professor
Mean salary for male professor
Yi X i , D2i 0 1 X i
Yi X i , D2i 1 1 2 X i
Test of hypothesis
Compare the annual mean salary of
male and female college teachers
Male
Ho: 2=0
2 2 6.64 0
t
0.96 ns
6.9
var 2
Female
1 2
1
Where
10
Regression for
salesmenD2=1
11
Salesmen
1 2
Saleswome
n
Saleswome
n
Salesmen
1 2
1
2
Saleswome
n
Salesmen
1
12
SCATTER PLOT
Salary vs experience
14
13
12
11
10
SALARY
GENDER
8
7
female
male
0
10
20
30
40
EXPERIEN
13
Estimation in regression
15
Y 1 2 D 2 3 D 3 U
D2=1 incorporated
=0 Otherwise
D3=1 if quality of sales management high
=0 Otherwise
17
D2=1 incorporated
=0 Otherwise(i.e not incorporated)
(D3=1 if quality of sales management high
=0 Otherwise( Low sales management)
Estimated Regression equation is
Y=44000-16000D2+5500D3
INTERPRETATION:
Average expenditure for base category
(not incoporated with low management)
is 44000
The expenditure is decrease by 16000
if the firm is incorporated
Expenditure is increase by 5500
if quality of sale management is high.
Nonsignificant value t-ratio for D2 indicates that there is no difference between the
Advertising expenditure of incorporated and not incorporated firms
Nonsignificant value t-ratio for D3 indicates that there is no difference between the
Advertising expenditure for the firms having high or low quality sales management
18
Y 1 2 D 2 3 D 3 U
Yi= Annual expenditure on health care
Xi= Annual Income
D2=1 if high School education
= 0 otherwise
D3= 1 if college education
= 0 otherwise
19
Expenditure (Y)
Income (X)
Education
D3
D2
D=D3+D2
38
90
College
40
95
College
39
82
College
32
75
College
36
87
College
40
93
College
20
45
High School
18
46
High School
17
48
High School
28
52
High School
18
25
27
32
20
0
20
Interpretation of results
E (Y / D2 0, D3 0) 1 X
Mean healthcare expenditure by an individual having high school education
E (Y / D2 1, D3 0) ( 1 2 ) X
Mean healthcare expenditure by an individual having college education
E (Y / D2 0, D3 1) ( 1 3 ) X
The intercept 1 will reflect the intercept for base category.
The differential intercepts 2 , 3 tell by how much the
intercept of
the other two categories differ from the intercept of the base
category
21
TEST OF HYPOTHESIS
1) Comparison of mean expenditure on health care by an
individual having high school education and less than high
school education ( Base group)
H0 : 2 0
H0 : 3 0
Expendie=
-4.41 +
7.92D2
+10.5 D3
+0.361X
SE
(3.195)
(3.328)
(7.813)
(0.122)
t-ratio
2.38*
1.34
(2.95)
P-Value
0.037
0.206
0.013
22
TEST OF HYPOTHESIS
H0 : 2 3
Restricted Model
Unrestricted Model
Y 1 2D
2i
3D
3i
X U
Unrestricted ANOVA
SOV
H0 : 2 3
Y
Where
*
2
2i
D 2 D 3
Restricted ANOVA
SS
SOV
Regression 3
3052.9
Regression 2
3051.2
Error
11
71.1
Error
12
72.8
Total
14
3124.0
Total
14
3124.0
DF
DF
SS
71.1 / 11
6.5
23
period
Concurrent
Coincident
Parallel
Dissimilar
Equal or
24
Yi = saving of a family
Xi = income of family
D2i
=1
for urban family ; = 0
Mean saving of a rural family
otherwise
E (Yi / D 0) 1 1X i..........(ii)
2
27
Unrestricted Model
y 1 2D 2i 1Xi 2(D2iXi) Ui
i
SOV DF
SS
1 1Xi Ui
SOV DF
SS
Reg 1 15806561
Error 18 64193439
Reg 3 16746734
Error 16 63253266
Total 19 80000000
F
Restricted Model
Total 19 80000000
64193439 63253266 / 18 16
63253266 /16
470086.5
0.11ns
3953329.125
28
29
30
Scatter plot
31
Un - Restricted model
Y 1 2 Di 1 X i 1 ( Di X i ) U i
Y 1.016 152.479 Di 0.08 X i 0.065( DX i )
SOV DF
SS
Reg 3 88079.834
Error 22 11790.253
Total 25 99870.087
F
Restricted Model
1 1Xi Ui
Y 62.423 0.038 X i
SOV DF
SS
Reg 1 76621.788
Error 24 23248.298
Total 25 99870.087
23248.298 11790.253
(24 22)
11790 .253
22
5729.023
10.69*
535.92
32