Professional Documents
Culture Documents
Roberto Casarin
Ca Foscari Summer School
Roberto Casarin
Introduction
Diagnostic Tests
We discussed the assumptions of the OLS model and the properties
of the OLS estimator under these assumptions. In the following we
will show how to test whether or not the OLS residuals of a given
model and dataset are coherent with assumptions.
Roberto Casarin
Outline
Roberto Casarin
Roberto Casarin
Y = 0.198 + 0.932X
15
10
RENDNCCO
5
0
-5
-10
-15
-20
-25
-30
-25
-20
-15
Roberto Casarin
-10
-5
RENDMARK
10
Relative frequency
0.25
0.2
0.15
0.1
0.05
0
-30
-25
-20
-15
Roberto Casarin
-10
-5
RENDMARK
10
15
0.3
Relative frequency
0.25
0.2
0.15
0.1
0.05
0
-30
-20
Roberto Casarin
-10
0
RENDNCCO
10
20
Roberto Casarin
Roberto Casarin
const
RENDMARK
Coefficient
Std. Error
t-ratio
p-value
0.197877
0.931537
0.188637
0.0391816
1.0490
23.7748
0.2953
0.0000
0.951383
1975.184
0.703701
565.2434
593.4786
1197.918
0.019127
Roberto Casarin
5.281289
2.880814
0.702456
8.41e65
1190.957
1193.762
1.969687
Roberto Casarin
Bank Wage
The data consists of a cross section of 474 individuals working for
a US bank. For each employee, the information consists of the
following variables: salary, education, begin salary, gender (0:
male, 1: females), minority (1: minority group, 0:otherwise), job
category and some further job related variables.
The scatter diagrams show the bivariate relations between
variables: LOGSAL (log of yearly salary in dollar), EDUC (finished
years of education), LOGSALBEGIN (log of yearly salary when
employee entered the firm) and GENDER (0: females, 1: males)
for 474 US bank employs.
Scatter diagrams: simple regressions may be misldeadinig as the
explanatory variables are mutually related. For example the
GENDER effect on salary is partially caused by the GENDER effect
on EDUC. Multiple regression accounts for this mutual
dependence.
Roberto Casarin
Bank Wage
0.3
Relative frequency
0.25
0.2
0.15
0.1
0.05
0
20000
40000
60000
Roberto Casarin
80000
SALARY
100000
120000
140000
Bank Wage
yi = 1 + 2 x2i + 2 x3i + i
yi : log of the salary
x2i : education
x3i : log of begin salary
con i = 1, . . . , n.
Roberto Casarin
(2)
Bank Wage
Model 2: OLS, using observations 1474
Dependent variable: LOGSAL
const
LOGSALBEGIN
EDUC
Coefficient
Std. Error
t-ratio
p-value
1.64692
0.868505
0.0231223
0.274598
0.0318346
0.00389364
5.9976
27.2817
5.9385
0.0000
0.0000
0.0000
10.35679
14.89166
0.800579
945.4206
147.5393
276.5950
Roberto Casarin
0.397334
0.177812
0.799733
1.2e165
289.0786
284.1690
Bank Wage
The interpretation of the estimates is as follows. The marginal
relative effect of education x2 on wage S is
log S
1 S
=
= 2
S x2
x2
(3)
Roberto Casarin