Testing Stability in Linear Regression Models
Testing Stability in Linear Regression Models
We want to test whether these consumption (demand) functions are identical (i.e., have identical
parameters) or whether they have different parameters (i.e., they are different). We do this by
introducing the following null hypothesis, namely,
H0: β1 = β2 against the alternative H1: β1 β2
Note that this needs one basic assumption which has to be fulfilled in order to proceed. Namely,
2 2 2 2
we need to assume that two variances are equal. That is to test H 0: σ 1=σ 2 against H1: σ 1≠σ 2 ,
86
which can be tested by the F test as follows: The calculated F statistic is
F cal=
σ^ 21
σ^ 22
and under H 0 ,
σ^ 21
σ^ 22
∼ F (( n −k ) , ( n −k ))
1 2 where σ^ 12=
RSS1
n1 −k
∧ σ^ 22=
RSS 2
n2 −k
2 2
Assuming that our null hypothesis (H0: σ 1=σ 2 ) is accepted, we can then proceed to test the
hypotheses: H0: β1 = β2 against the alternative H1: β1 β2, i.e., whether the two regression
functions have the same parameters.
Procedure for testing this hypothesis:
^ ^
Step1: Estimate the two models separately by OLS and obtain β 1 and β 2 . Use this to obtain the
residual sum of squares for equations, i.e., RSS1 = ∑ e 21i and RSS 2=∑ e 22i
From these obtain the unrestricted sum of squares, which is given by
URSS=RSS1 + RSS2 , this will have (n + n - 2k) degrees of freedom.
1 2
^
Step2: Estimate the model under H0: β1 = β2 (= β) by OLS and obtain β . Thus we have,
Y 1 = X 1 β 1 +ε 1 ¿ } ¿ ¿ ⇒ [ Y 1 ¿] ¿ ¿ ¿
¿
Use the results, β^ , obtained here to derive the restricted residuals sum of squares (RRSS). These
residuals are restricted because we have forced the β’s in the two equations to be identical.
F cal =
( RRSS −URSS ) / k
URSS / [ ( n1−k ) + ( n2 −k ) ]
and
( RRSS −URSS ) / k
URSS / [ ( n1−k ) + ( n2 −k ) ]
∼ F ( ( n1 −k ) , ( n2 −k ) )
Example: The following are results obtained from a data set on US for two periods, before and
after second world war (the data set is for 1927-1962 and for 1942-1947 was omitted because it
was war period). The model was specified as
ln Q = β 1 + β2 ln P+ β3 ln Y +ε
Where lnQ is log of demand for food, lnP is log of price of food, lnY is log of income. Since the
period spans over a long period and includes the 2 nd WW, two models were specified for before
87
(1927-41) and after (1948-62) the war. Thus, we have
ln Q = β 11+ β12 ln P+β 13 ln Y +ε 1 for the first period, and
The results of the exercise gave us the following result (t-ratios in parenthesis):
σ^ 21 0 . 001151
F cal = = ≃ 2. 11 but F 0( 12. 01,12 ) = 4 .16
σ^ 22 0. 0005444
Thus
Now, since the calculated Fcal is less than the tabulated F, we accept the null at = 2%, i.e., the
variances are equal.
Thus, the URSS = 0.001151 + 0.000544 = 0.001695
Pooling all observations one obtains
ln Q = 4 . 050−0. 12 ln P+0 .242 ln Y +e0
( 29. 65 ) ( 2. 95 ) (0 . 048 )
2
R =0 . 9731 , RSS=0 . 002866 , n=30 , df =26
The test we apply tries to distinguish which model to use.
( RRSS −URSS ) /k ( 0. 002866−0 . 001695 ) / 3 0. 002866−0 . 001695 24
F cal = = = x
URSS / [ ( n1 −k ) + ( n2 −k ) ] 0. 001695 / [ (15−3 ) + ( 15−3 ) ] 0. 001695 3
0 . 001171
= x 8 ≃ 5 .53
0 . 001695
0. 05
From the tables of F, F (3 , 24 ) = 3 .01 at 10% level of significance and is 4.72 at 2%. Thus, the
null is rejected because F calculated is greater than F tabulated. Thus, there is no case for
pooling. Though the second parameter (the price elasticity) is almost the same in the two models,
88
the third parameter (the income elasticity) is different.
89
4.2 Specification Errors
Assume that on the basis of some criteria we arrived at a model that we assumed to be correct,
and let this model be:
Y i = β1 + β 2 X 2i + β3 X 3 i + β 4 X 4 i +U 1 i EQ 1
Y i = α 1 +α 2 X 2i + α 3 X 3 i +U 2i EQ 2
Since equation 1 is assumed to be the correct model, and then adopting equation 2 would
constitute a specification error termed as "Omitting a relevant variable (X4)". Hence, the error
term U2i in equation 2 is in fact:
U 2 i = U 1 i+ β4 X4 i EQ 3
Y i = θ1 +θ 2 X 2i + θ3 X 3 i +θ 4 X 4 i +θ5 X 5i +U 3i EQ 4
If equation 1 is again assumed to be the true model, then equation 3 also constitutes a
specification error that we call "inclusion of irrelevant or unnecessary variable (X5)" in the
true model. Given that equation 1 is the true model then it follows that θ 5 should be zero.
However, if θ5 is different from zero as per the specification in equation 4, then in this case the
error term is in fact:
U 3 i = U 1i−θ 5 X 5 i EQ 5
Now, assume also that yet another researcher postulates the following specification:
ln Y i = β 1 + β 2 X 2 i + β 3 X 3 i + β 4 X 4 i +U 4i EQ 6
In relation to the true model given in equation 1 above, equation 6 would also constitutes a
specification bias where the bias here is termed as the use of "wrong functional form". In the
true model the dependent variable appears linearly, whereas in equation 6 it appears log-linearly.
89
Finally, consider again another researcher who uses the following model:
¿ ¿ ¿ ¿ ¿ ¿ ¿ ¿ ¿
Y i = β 1 +β 2 X 2 i +β 3 X 3 i +β 4 X 4 i +U i EQ 7
¿ ¿ ¿ ¿
Y i =Y i + ε i X 2i =X 2 i +ω 2i X 3 i= X 3i + ω3 i X 4 i =X 4i + ω 4i , and
Where ε i , and ω 2i , ω3i and ω 4i are the errors of measurement .
Equation 7 states that instead of the true values of the variables, we use their proxies, which may
contain errors of measurement. Hence the error that we commit in using equation 7 is termed as
the "errors of measurement bias".
In summary, having once specified a model as the correct model, one is likely to commit one or
more of the following specification errors:
1. Omission of a relevant variable
2. Inclusion of irrelevant variable
3. Adopting a wrong functional form
4. Errors of measurement.
Y i = β1 + β 2 X 2i + β3 X 3 i +ui EQ 8
but for some reason a researcher fits the following model, and thus commits the specification
error of excluding a relevant variable:
Y i = α 1 +α 2 X 2i + v i EQ 9
nonzero, both α^ 1 and α^ 2 are biased as well as inconsistent, and the bias does not
disappear no matter how large the sample may be. Fitting EQ9 yields the following
estimators of the two unknown parameters of the model
90
α^ 2 =
∑ x 2i y i and α^ 1 = Ȳ −α^ 2 X̄ 2
∑ x22 i
If the true model is as given in EQ8, then
∑ x2 i ( β 2 x 2i + β 3 x 3 i +ui−ū )
α^ 2 = as y i = β 2 x 2i + β 3 x 3 i +ui −ū
∑ x22 i
∑ x 2i x 3 i +∑ x 2i u
= β 2+ β 3 i
as ∑ x2 i ¯u = 0
∑ x 22i ∑ x 22 i
∑ x 2i u i
= β 2 + β 3 β32 +
∑ x 22i
∴ E ( α^ 2) = β 2 + β 3 β32 +
∑ x2 i E ( ui )
∑ x22 i
= β 2 + β 3 β32 ; as E ( ui ) =0 ∀ i
Similarly,
α^ 1 = Ȳ −α^ 2 X̄ 2
= ( β 1 + β 2 X̄ 2 + β 3 X̄ 3 + ū ) −α^ 2 X̄ 2
(
= ( β 1 + β 2 X̄ 2 + β 3 X̄ 3 + ū ) − β 2 + β3 β32 +
∑ x 2i ui
∑ x 22i ) X̄ 2
X̄ 2 ∑ x 2 i u i
= β 1 + β 3 X̄ 3 −β 3 β 32 X̄ 2 + ū−
∑ x 22i
X̄ 2 ∑ x 2i E( ui )
∴ E ( α^ 1 ) = β1 + β 3 X̄ 3 −β 3 β 32 X̄ 2 + E ( ū )−
∑ x 22 i
= β 1 + β 3 X̄ 3−β 3 β 32 X̄ 2 as E (ū )=0 and E ( ui ) = 0 ∀ i
p lim α^ 2≠β 2 p lim α^ 1 ≠β1
From the above derivation, it can clearly be seen that n →∞ and n→∞ , and
hence both α^ 1 and α^ 2 are biased and inconsistent estimators of β1 and β2, respectively.
91
3. The disturbance variance σ2 is incorrectly estimated. Disturbance variance of the true
σ^ 2u =
∑ u^ 2i σ^ 2v =
∑ v^ 2i
model is n−3 , this is to be estimated by n−2 and
β 23 [ ∑ x 23 i−β 32 ∑ x 2 i x 2 i ]
E ( σ^ 2v ) = σ 2 + ≠ σ2
n−2
4. The conventionally measured variance of α^ 2 is a biased estimator of the variance of the
^
true estimator β 2 .
σ2
Var ( β^ 2 ) =
^ (1−r 223 ) ∑ x 22i
Variance of the true estimator β 2 is and the conventionally
σ2
Var ( α^ 2 ) =
^
α
measured variance of 2 is ∑ x 22 i .
5. In consequence, the usual confidence interval and hypothesis-testing procedures are
likely to give misleading conclusions about the statistical significance of the estimated
parameters.
Y i = β1 + β 2 X 2i + ui EQ 10
Y i = α 1 +α 2 X 2i + α 3 X 3 i +ν i EQ 11
and thus commits the specification error of including an irrelevant variable in the model. The
consequences of this specification error are as follows:
1. The OLS estimators of the parameters of the incorrect model are all unbiased and
E(α
^ 1 ) = β 1 , E ( α^ 2 ) = β 2 , and E ( α^ 3 ) = β 3 = 0
consistent, that is, This
can be shown as follows:
If the true model is as given in EQ 10 and the researcher estimates EQ 11, then
92
^2 =
α
∑ x23 i ∑ x 2i y i −∑ x 2i x 3i ∑ x 3i y i
(∑ )
2
∑ x22 i ∑ x 23i − x 2i x 3i
=
∑ x 23i ∑ x 2 i Y i−∑ x 2 i x 3 i ∑ x 3i Y i
(∑ )
2
∑ x 22i ∑ x 23 i− x 2i x 3 i
(∑ )
2
∑ x 22i ∑ x 23 i− x 2i x 3 i
[ (∑ )]
2
β2 ∑ x 22i ∑ x 23 i− x 2i x 3 i + ∑ x 23i ∑ x 2i ui − ∑ x 2i x 3i ∑ x 3 i ui
=
(∑ )
2
∑ x 22i ∑ x 23 i− x 2i x 3 i
= β 2+
∑ x 23 i ∑ x2 i ui−∑ x2 i x 3i ∑ x 3i ui
(∑ )
2
∑ x 22 i ∑ x 23 i− x 2i x 3 i
∑ x 23i ∑ x 2 i E ( ui ) −∑ x 2i x 3i ∑ x 3 i E ( ui )
∴ E ( α^ 2 ) = β 2 +
(∑ )
2
∑ x 22i ∑ x 23 i− x2 i x 3 i
= β2 as E ( ui ) = 0 ∀i
^3 =
α
∑ x 22i ∑ x 3i y i −∑ x 2i x 3i ∑ x 2i y i
(∑ )
2
∑ x 22i ∑ x 23i − x 2 i x 3i
=
∑ x 22i ∑ x 3 i Y i−∑ x 2 i x 3 i ∑ x 2i Y i
(∑ )
2
∑ x 22i ∑ x 23 i− x 2i x 3 i
(∑ )
2
∑ x 22i ∑ x 23 i− x 2i x 3 i
=
∑ x 22i ∑ x 3 i u i−∑ x 2 i x 3 i ∑ x 2i ui
(∑ )
2
∑ x 22i ∑ x 23 i− x 2i x 3 i
^ 3) =
∑ x 22i ∑ x 3 i E ( ui ) −∑ x 2i x 3i ∑ x 2i E ( u i )
∴ E (α
(∑ )
2
∑ x 22i ∑ x 23 i− x2 i x3 i
= 0 as E ( ui ) = 0 ∀i
93
α^ 1 = Ȳ −α^ 2 X̄ 2 −α^ 3 X̄ 3
= ( β 1 + β 2 X̄ 2 + ū ) −α^ 2 X̄ 2 −α^ 3 X̄ 3
∴ E ( α^ 1 ) = β1 + β 2 X̄ 2 + E ( ū )−E ( α^ 2 ) X̄ 2−E ( α^ 3 ) X̄ 3
= β 1 + β 2 X̄ 2−β 2 X̄ 2 as E ( ū ) =0 , E ( α^ 2 ) =β 2 and E ( α^ 3 )=β 3 =0
= β1
variance of α^ 2 larger than necessary, thereby making α^ 2 less precise. This is also true ofα^ 1 .
In conclusion here would be it is better to include irrelevant variable than to omit the relevant
ones. But this philosophy is not to be especially used because addition of unnecessary
variables will lead to loss in efficiency of the estimators and may also lead to the problem of
multicollinearity, not to mention the loss of degrees of freedom. Therefore, in general, the
best approach is to include only explanatory variables that, on the theoretical grounds,
directly influence the dependent variable and that are not accounted for by other included
variables.
94
the estimated t-ratios, the signs of the estimated coefficients in relation to their prior
expectations, and the like. If these diagnostic tests are reasonably good, we proclaim that the
chosen model is a fair representation of reality. By the same token, if the results do not look
encouraging, then we may begin to worry about model adequacy and look for remedies: may
be we have omitted important variable or used wrong functional form, or have not first
differenced the time series (to remove serial correlation), and so on. To aid us in determining
whether model inadequacy is because of omission of relevant variable or wrong functional
form, we can use the following methods.
To illustrate, let us consider the total cost of production function, where the true total cost
function is assumed to be a cubic function as given below:
Y i = β1 +β 2 X i +β 3 X i2 +β 4 X 3i +u 1i
Where Y = total cost and X = output EQ 12
Y i = α 1 +α 2 X i +α 3 X i2 +u2 i EQ 13
Y i = λ1 + λ2 X i + u3i EQ 14
Ramsey's RESET Test: Ramsey has proposed a general test of specification error called
RESET (regression specification error test). To illustrate how the RESET test is used to detect
for a specification error, now, assume that a researcher fits a linear model for the total cost of
production where the true model is a cubic function.
Now, if we plot the residuals obtained from the linear regression function given in EQ 14 against
Y^ i , the estimated Y from this model, the residuals will show a pattern in which their mean
i
^ ^
changes systematically with Y i . This would suggest that if we introduce Y i in some form as a
regressor(s) in EQ 14, in fact it should increase R 2. If the increase in R2 is statistically significant,
it would suggest that the linear cost function in EQ 14 was misspecified. This is essentially the
95
ideas behind the RESET test. The steps involved in RESET are as follows:
^
1. From the chosen model, for example EQ 14, obtain the estimated Yi, that is, Y i .
^
2. Rerun EQ 14 by introducing Y i in some form as an additional regressor(s). Suppose is it
observed that the plot of the residuals against the estimated Y i's show a curve-linear
^2 ^3
relationship, one can introduce Y i and Y i as additional regressors. Thus, we may run the
following regression:
Y i = β1 + β 2 X i + β 3 Y^ 2i + β 4 Y^ 3i +ui EQ 15
2 2
3. Let the R2 obtained from EQ 15 be R new and that obtained from EQ 14 be Rold . Then one
can use the F test as follows:
( R2new − R2old ) / number of new regressors
F =
( 1- R2new ) / ( n− number of parameters in the new model )
to find out if the increase in the R2 from using EQ 15 is statistically significant.
4. If the computed Value is significant at some specified level of significance, one can
accept the hypothesis that the model in EQ 14 is misspecified.
To provide a numerical illustration, suppose we have ten observations on total cost and
output, and obtained the following estimated regression equations (standard errors in
parenthesis):
( 0 . 9983−0. 8409 ) /2
F cal = = 284 . 4035
( 1−0 . 9983 ) / ( 10−4 ) EQ 18
96
It can easily be verified that this F-value is highly significant, indicating that the model in EQ 16
is misspecified.
One advantage of RESET is that it is easy to apply, for the reason that it does not specify what
the alternative model is. But that is also its disadvantage because knowing that a model is
misspecified does not help us in choosing a better alternative model.
u^ i = α 1 +α 2 X i +α 2 X i2 +α 3 X 3i +v i
Where v is an error term with the usual properties . EQ 19
4. For large sample size, it can be shown that n (the sample size) times the R 2 estimated
from the auxiliary regression in EQ 19 follows the chi-square distribution with degrees of
freedom equal to the number of restrictions imposed by the restricted regression.
Symbolically,
nR
2
~ 2
χ ( number of restrictions )
asy EQ 20
5. If the chi-square value obtained from EQ 20 exceeds the critical chi-square value at the
chosen level of significance, we reject the restricted regression.
97
For the example we started with, the regression results are as follows:
When the residuals from EQ 21 are regressed as suggested in step 3, we obtain the following
results (standard errors in parenthesis):
Although our sample size of 10 is by no means regarded as large, just to illustrate the LM test,
obtain nR2 = 10*0.9896 = 9.896. From the chi-square table we observe that for 2 degrees of
freedom the 1% critical chi-square value is about 9.21. Therefore, the observed value of 9.896 is
significant at 1% level of significance, and our conclusion would be to reject the restricted
regression, which is the same conclusion as that we reached based on the Ramsey RESET test.
98
4.3 Dummy Variable Regression
Usually data is classified according to categories. Often, such categories are qualitative in nature
and specify unique characteristics of the members of the observations. For instance, if we have
data on outputs and inputs of firms, the producing unit may be classified as large or small. If we
have data on wages of workers in a firm, we may characterize the recipients of these wages as
male and female, etc. We may then argue, hypothesize that large firms are more productive than
small ones, or female workers earn less than their male counterparts. Note that what we are
saying here is that, given the same attributes in the right-hand side of the equation, the left hand
side of the equation will give larger or smaller value depending on the categories of the firms or
workers. What we are proposing here is the following. Suppose the general model we specify is
the following
Y i = β1 + β 2 X i + ε i
with the following characteristics
Y i = β1 + β 2 X i + ε i : Small firms/female workers
Y i = β1 +γ + β 2 X i + ε i : Large firms/ male workers
Thus, the problem is, how do we take into account for the increment in output/wage equivalent to
γ, when the slope parameter is the same. This can be shown more clearly using the following
graph:
Large firms/
Y Male workers
X1 X
98
99
This is one of the main areas where the notion of dummy variables is used. To illustrate
this,
Let Di = 0 for small firms /female workers
Di = 1 for large firms /male workers
Say we have n1 small firms/ female workers and n2 large firms/ male workers in our
sample. The total number of observations in our sample is, therefore, equal to n =n 1+n2.
Then our model reduces to:
Y i = β1 + β 2 X i + ε i ; i=1 , 2 ,⋯, n1
Y i = β1 +γ + β 2 X i + ε i ; i=n1 +1 , n1 +2 ,⋯,n
Y i = β1 +γ Di + β2 X i +ε i ; i=1 , 2 ,⋯, n
To estimate 1, 2 and we regress Y on X and D. Suppose we ignore such a difference
and regress the equation without the dummy variable, then we would have a biased
estimators because we have omitted a relevant variable. To see this, observe the
following figure.
X
Notice the parameter estimates would be different if we use dummy compared to the case
where we don’t. Now, given that the model should include a dummy variable, we have:
Y i = β1 +γ Di + β2 X i +ε i
We minimize the sum of squared residuals with respect to the parameters in order to
n n
∑ ∑ (Y i − β^ 1− γ^ Di − β^ 2 X i )
2
min e 2i =
obtain the OLS estimators, i.e., i =1 i=1
100
This results in the following first order conditions:
n
∂ ∑ ei2 n
i=1
= 0 ⇒ 2 ∑ ( Y i− β^ 1 −^γ D i− β^ 2 X i ) (−1 ) = 0
∂ β^ 1 i=1
n n
⇒ ∑ Y i−n β^ 1 −n2 ^γ − β^ 2 ∑ X i = 0
i=1 i=1
n2
⇒ Y = β^ 1 + γ^ + β^ 2 X EQ1
n
n
∂ ∑ ei2 n
i=1
= 0 ⇒ 2 ∑ ( Y i− β^ 1 −^γ D i− β^ 2 X i ) (−X i ) = 0
∂ β^ 2 i=1
n n n n
= ⇒ ∑ X i Y i − β^ 1 ∑ X i −^γ ∑ Di X i− β^ 2 ∑ X 2i = 0
i=1 i=1 i=1 i=1
n n n n
= ⇒ ∑ X i Y i − β^ 1 ∑ X i −γ^ ∑ X i− β^ 2 ∑ X i2 = 0 EQ2
i=1 i=1 i=n 1 i=n1+1
n
∂ ∑ ei2 n
i=1
= 0 ⇒ 2 ∑ ( Y i− β^ 1 −^γ D i− β^ 2 X i ) (−D i ) = 0
∂ γ^ i=1
n n n n
= ⇒ ∑ Di Y i− β^ 1 ∑ Di −γ^ ∑ Di − β^ 2 ∑ D i X i = 0
2
= ⇒ γ^ = Ȳ 2 - β^ 1 - β^ 2 X̄ 2 EQ3
101
n1 n
∑ ( Y 1i −Ȳ 1 )( X 1i − X̄ 1 ) + ∑ ( Y 2i −Ȳ 2 )( X 2i − X̄ 2 )
i=1 i=n1 +1
β^ 2 = n
1 n
∑ ( X 1 i− X̄ 1 ) + ∑ ( X 2 i− X̄ 2 )2
2
i=1 i=n1
test in order to test whether the intercepts are different or equal. Not that if we accept H 0 ,
it implies that the dummy variable is not necessary in our model, i.e., categorization of
the data is not necessary. On the other hand if H 0 is rejected, meaning that is
significantly different from zero in the statistical sense, then our categorization is correct,
and there are two different regression equations and not one in our model.
We can also introduce a different dummy variable for group1 and model our regression
as follows
Y i = β1 + β 2 X i + ε i : Small firms/female workers
Y i = δ + β 2 X i +ε i : Large firms/ male workers
In this formulation δ = β 1 + γ
Combining the two equations give us:
102
Y i = β1 Z i +δ D i + β 2 X i + ε i ; ∀ i i=1 , 2 ,⋯, n
where Z i = 1 & D i = 0 for group1, and
Z i = 0 & D i = 1 for group2
Note that in this formulation we do not have a constant (intercept) term. Actually
introducing an intercept into the last model would lead to what is known as the dummy
variable trap, which is the result of the fact that given
Y i = α + β 1 Z i +δ Di + β 2 X i +ε i ; ∀ i i=1 ,2 ,⋯, n
4.4 1Multicollinearity
Multicollinearity is a phenomenon that may be observed in multiple linear regressions. It
results in:
1. high estimates of standard errors (small t-ratios) and a high R2.
2. a wide confidence intervals for parameter estimates.
There are basically two reasons for multicollinearity. Either
1. there is little variation in the explanatory variables, or
2. there is high correlation among the explanatory variables.
Now, for the general linear regression model, we know that
σ2
Var ( β^ j )=
∑ x 2j ( 1−R2j ) 2
, where R j is the square of multiple correlation coefficient
between Xj and the other explanatory variables. If X2, X3, ..., Xk are orthogonal (i.e.,
β^ 2 =
∑ x2 y
, β^ 3 =
∑ x3 y , .. . , β^ = ∑ x k y
uncorrelated) or R2j =0 , then ∑ x 22 ∑ x 23 k
∑ x 2k and
σ2
Var ( β j )=
^
∑ x 2j ∀ j j = 2, 3, ..., k
Var ( β^ j ) Var ( β^ j )
Based on this fact, we use the ratio of to the orthogonal to obtain a
103
measure of the degree of multicolliniearity in the model, which is known as the Variance
Inflation Factor (VIFj) for the jth explanatory variable. That is,
Var ( β^ j ) σ2 σ2 1
VIF j = = / = ≥ 1
Var orth ( β^ j ) ∑ x 2j ( 1−R 2j ) ∑ x j ( 1−R2j )
2
2
There is a positive relationship between R j and VIFj, which is depicted in the following
table.
R2j VIFj
0.1 1.11
0.2 1.25
0.5 2
0.8 5
0.9 10
0.95 20
VIFj
1
2
Rj
1
1Detection of Multicollinearity
1. The estimates are unstable: thus, though R2 is high, the parameter estimates will
be unstable and insignificant. Actually, if R2j = 1 it follows that the parameter
estimates will be indeterminate.
2. Deletion/addition of an explanatory variable causes large changes in the estimates
of the remaining coefficients.
Suppose that Y = 2 + 3X2 + X3 and that X3 = 2X2 - 1. There is no disturbance term in the
104
equation for Y, but that is not important. Suppose that we have the six observations
shown below.
X2 X3 Y
10 19 51
11 21 56
12 23 61
13 25 66
14 27 71
15 29 76
The three variables are plotted as line graphs below. Looking at the data it is impossible
to tell whether the changes in Y are caused by changes in X2, by changes in X3, or jointly
by changes in both X2 and X3.
80
70
60
50
40
30
20
10
0
1 2 3 4 5 6
105
set of possibilities. What would happen if you tried to run a regression when there is an
exact (perfect) linear relationship among the explanatory variables?
We will investigate, using the model with two explanatory variables shown above.
[Note: A disturbance term has now been included in the true model, but it makes no
difference to the analysis.]
^
The multiple regression coefficient β 2 is calculated as:
^ =
β
∑ x 2i y i ∑ x 23 i−∑ x 2 i x 3 i ∑ x 3i y i
(∑
2
)
2
∑ x22 i ∑ x 23i − x 2i x 3i
Assume that X3i =μ+ λX2i, where λ is non-zero constant, the estimator of β2 can be written
as:
^ =
β
∑ x 2i y i λ 2 ∑ x 22i − λ2 ∑ x 22 i ∑ x2 i y i =
0
(∑ )
2 2 0
λ 2 ∑ x 22i ∑ x 22i − λ 2
2
x 2i
- Indeterminate
It turns out that both the numerator and the denominator are equal to zero. The
regression coefficient is not defined (determinate).
106
Since the problem of multicollinearity is caused by the population variances of the
coefficients being unsatisfactorily large, we will seek for ways of reducing the variances.
We will look at the various components of the population variance. We might be able to
reduce it by bringing more variables into the model and reducing the population variance
of the disturbance term.
σ 2 = n Varσ ( X ) ¿ 1−r1
2 2
σ
V ar ( β^ 2 )= β^ 2
=
( 1−r 22 ,3 ) ∑ x 22 i
2
2 2 ,3
You select a number of these randomly, perhaps using stratified random sampling to
make sure that metropolitan, other urban and rural areas are properly represented. You
then confine the survey to the areas selected. This reduces the travel time and cost of the
fieldworkers, allowing them to interview a greater number of respondents. If you are
working with time series data, you may be able to increase the sample by working with
shorter time intervals for the data, for example quarterly or even monthly data instead of
annual data.
3. Increase Var(X2): A third possible way of reducing the problem of multicollinearity
might be to increase the variance of the explanatory variables. This is possible only at the
design stage of a survey.
For example, if you were planning a household survey with the aim of investigating how
expenditure patterns vary with income, you should make sure that the sample included
relatively rich and relatively poor households as well as middle-income households.
107
4. Reduce
r 2 , 3 : Another possibility might be to reduce the correlation between the
explanatory variables. This is possible only at the design stage of a survey and even then
it is not easy.
5. Combine the correlated variables: If the correlated variables are similar conceptually,
it may be reasonable to combine them into some overall index.
6. Drop some of the correlated variables: Drop some of the correlated variables, if they
have insignificant coefficients. However, this approach to multicollinearity is dangerous
because some of the variables dropped may truly belong to the model and their omission
may cause omitted variable bias.
7. Empirical restriction: A further way of dealing with the problem of multicollinearity
is to use extraneous information, if available, concerning the coefficient of one of the
variables.
For example, suppose that Y in
ln Y t =β 1 + β2 ln X t + β 3 ln Pt + ut
108
¿
Y t = β 1 +β 2 ln Pt +ut
Where Y ¿t = ln Y t − β^ ¿2 ln X t , represents that value of Y after having removed the effect of X (income )
This is a simple regression, so multicollinearity has been eliminated. There are some
^
problems with this technique. First, the β 2 coefficients may be conceptually different in
time series and cross-section contexts. Second, since we subtract the estimated income
^ ¿ ln X
β
component 2 t , not the true income component β 2 ln X t , from ln Y t when constructing
¿
Y t , we have introduced an element of measurement error in the dependent variable.
Mother's education is generally held to be at least, if not more, important than father's
education for educational attainment, so this outcome is unexpected.
S= β1 + β 2 ASVABC+ β3 SM +β 4 SF +u
β 3 =β 4
S= β1 + β 2 ASVABC+ β3 (SM + SF )+u
¿ β 1 + β 2 ASVABC+ β 3 SP+u
4.5 Hetroscedasticity
An important assumption maintained so far in our analysis is that of constant variance
(assumption of common variance). Or, stated differently, we assumed that the equation
has a common variance 2. This is known as the homoscedastisity assumption. In this
section attempt will be made to examine the validity of this assumption and find out what
happens if this assumption is not fulfilled. Some of the questions that we need to answer
are:
1. What is the nature of heterscedasticity?
2. What are its consequences?
109
3. How does one detect it?
4. What are the remedial measures?
The Nature of Heteroscedasticity
This sequence introduces the topic of heteroscedasticity, which relates to the distribution
of the disturbance term in a regression model. We will discuss it in the context of the
regression model: Y i =β 1 + β 2 X i + ε i
To keep the diagram uncluttered, we will suppose that we have a sample of only five
observations, the X values of which are as shown. If there were no disturbance term in the
model, the observations would lie on the line as shown below.
E Y 1 2 X
1
X X2 X3 X4 X5 X
1
Now we take account of the effect of the disturbance term. It will displace each
observation in the vertical dimension, since it modifies the value of Y without affecting
110
Y
Y
Y=1+2X
1
X
X.
The disturbance term in each observation is hypothesized to be drawn randomly from a
given distribution. In the diagram, three assumptions are being made.
One is that the expected value of in each observation is 0. The second is that the
distribution in each observation is normal. We are not concerned with either of these and
we will assume them to be true.
The third is that the distribution is the same for each observation. In the present case, that
means that the normal distributions shown all have the same variance.
If this condition is satisfied, the disturbance term is said to be homoscedastic (Greek for
same scattering).
Each observation is then potentially (before the sample is drawn) an equally reliable
guide to the location of the line
Y = β1 + β 2 X +ε
Once the sample has been drawn, some observations will lie closer to the line than others,
but we have no way of anticipating in advance which ones these will be.
111
Y
Y
Y=1+2X
1
Now consider the situation illustrated by the diagram above. The distribution of ε
associated with each observation still has expected value 0 and is normal. However, the
variance is no longer constant. Obviously, observations where ε has low variance, like
that for X1, will tend to be better guides to the underlying relationship than those like that
for X5, where it has a relatively high variance. When the distribution is not the same for
each observation, the disturbance term is said to be subject to heteroscedasticity.
There are two major consequences of heteroscedasticity. One is that the standard errors
of the regression coefficients are estimated wrongly and the t tests (and F test) are
invalid.
which gives relatively high weight to, the relatively low-variance observations should
Effects/Consequences of Heteroskedasticity
Heteroscedasticity implies that the variance of error terms is not constant. Thus,
Var ( ε i ) = σ 2i
112
The main effects of this are:
1. The least squares estimators are still unbiased, but they are inefficient, and
2. Variance of the estimators are biased–thus the tests of significance based on them are
invalid.
To see this consider the simple regression model in deviation form
y i = β x i +ε i , with Var ( ε i ) = σ 2i
∑ x i yi ∑ xi ( β xi + εi ) ∑ xi εi
β^ = = = β+
∑ x 2i ∑ x 2i ∑ x 2i
Since E(i) = 0 and and X are independent, it follows that
∑ x i E ( εi )
E ( β^ ) = β + = β
∑ x 2i
Therefore, the OLS estimator is unbiased.
3. However, hetroscedasticity increases the variance of the error term and hence it does
affect the minimum variance property.
If i’s are mutually independent, i.e., uncorrelated,
[ ( β−
^ β) ]
2
^) = E
Var ( β
[( ) ] [ ∑
∑
]
2
xi ε i ∑ x 2i ε 2i + ∑ ∑ x i ε i x j ε j
i≠ j
= E = E
∑ ( )
2
2 2
xi xi
∑ x 2i E ( ε 2i ) + ∑ ∑ x i x j E ( ε i ε j ) ∑ x 2i σ 2i
i≠ j
= =
(∑ ) (∑ )
2 2
2 2
xi xi
OLS estimation in the presence of heteroscedasticity results in estimators that are still
linear and unbiased but less efficient, i.e., the OLS estimator does not possess the
minimum variance in the class of linear unbiased estimators. This is one violation of one
of the classical assumptions of homoscedasiticity (Common Variance of the disturbance
terms). Hence, in the presence of heteroscedasticity, OLS estimators are no longer BLUE
as OLS estimation does not make use of the "information" contained in the unequal
variability of the dependent variable Y.
113
Thus the OLS estimators are inefficient and hence no longer BLUE
Thus, OLS in the presence of heteroscedasticity, causes standard errors to be
inappropriate and hence any inferences we make could be misleading.
4. t-test and F-test are invalid in the presence of heteroscadisticity
5. OLS estimation technique is inappropriate. Thus, we need alternative estimation
technique known as “Generalized Least Squares-GLS”. This estimation technique
transforms the original variables in such a way that the transformed variables satisfy the
assumptions of classical model and then apply the OLS estimation method and is
therefore capable of producing estimators that are BLUE. The estimators thus obtained
are known as GLS estimators.
In short, GLS is OLS on the transformed variables that satisfy the assumptions of CLRM
Now, suppose that we know the functional form of the variance up to a multiplicative
constant, say, given by
σ 2i = σ 2 z 2i
and zi's are known. Then dividing the original equation by zi, we get
yi xi εi
= β +
zi zi zi
()
¿ ¿ ¿ ¿ 1 εi σ 2 z 2i
y i = β xi + εi ; Var ( ε i )= Var = 2 Var ( ε i )= 2 =σ 2
zi zi zi
β^ be
¿
Let the parameter estimate in this model: it is known as the Weighted Least
Squares (WLS) or GLS estimators because we are using zi's as weights that deflate the
equation. The WLS estimator is BLUE.
Proof:
^¿ = ∑ x¿i y ¿i ∑ ( y i / zi )( x i / z i ) ∑ ( x i / z i ) ( βx i / z i + ε ¿i )
β = =
∑( / z ) ∑( /z )
¿ 2 2 2
∑ ( xi ) xi xi
i i
( / zi ) +∑ ( x / z ) ε
2
β ∑ xi
¿
=
i i i
= β+
∑ ¿
( xi / zi ) εi
∑ ( xi / zi ) ∑ ( xi / zi )
2 2
114
( )
∑ ( x i / z i ) ε ¿i ∑ ( x i / z i ) E ( ε ¿i )
E ( β^ ¿ ) = E β + = β+ = β
∑ ( xi / z i ) ∑ ( xi / zi )
2 2
Thus, the WLS is an unbiased estimator of . In addition, the WLS is more efficient than
the OLS estimator. By this we mean that the variance of WLS estimator is less than the
variance of the OLS estimator.
Proof: Now the variance of the WLS estimator is
[( ∑
)]
2
( /z )ε
xi i
¿
i
^ ¿) = E
Var ( β [ ( β^ ¿
^ ¿))
−E ( β
2
] = E
∑(
2
xi / zi )
[( ∑
∑ ( xi / zi ) ( ε i )
]
2
¿ 2
+ ∑ ∑ ( x i / z i ) ( x j / z j ) ε ¿i ε ¿j
i≠ j
= E
( x / zi ) )
2 2
∑ ( x / zi ) E ( ε ) +∑ ∑ ( x / z ) ( x / z ) E ( ε ε )
2
¿ 2 ¿ ¿
i i i i j j i j
i≠ j σ2
= =
( ∑ ( / zi ) ) ∑ ( xi / zi )
2 2 2
xi
^ ) = σ2
Var ( β
∑ x 2i z 2i
(∑ )
2
2
xi
Substituting σ 2i = σ 2
z 2i in this formula we have
To obtain the relative efficiency of WLS to that of OLS, we just obtain the ratio of the
two variances, which is
( / )
2
^ ¿)
Var ( β σ 2 /∑ x i z i
=
(∑ )
^)
Var ( β 2
2
σ ∑ xi zi /
2 2 2
xi
(∑ )
2
2
xi
=
∑ ( xi / z i ) ∑ x 2i z 2i
2
115
(∑ ) (∑ )
2 2
2
xi ai b i
=
(∑ ( / ) ) ∑ ∑ a2i ∑ b 2i
2
xi zi x2i z 2i
It can easily be show that this value is less than unity. It will be equal to unity if and only
if
1. ai and bi are proportional, that is xi/zi and xizi are proportional, implying that their
multiplication will always give a constant, or
2. zi2 is a constant for all i, implying that the error terms are constant (homoscedastic).
3. Variances of the estimators are biased and thus tests of significance based on them are
invalid.
Conclusion:
If the error terms are not homoscedastic
a) OLS estimators are unbiased
b) the OLS estimators are less efficient (i.e., have higher variance) than the WLS.
Detection of Hetroscedasticity
The first, and simplest, way of detecting hetroscedasticity is to cross-plot the residuals
versus the explanatory variable. If the residuals from the levels cross-tabulated against
the explanatory variable indicate that there is larger variation in the residuals as the
explanatory variable increases, then one may suspect the presence of heteroscedasticity.
To detect the type of relationship that exists between the explanatory variable and the
residual, we have to check the correlations (even use regression) between the two
116
variables. Recall however, that the residuals and the explanatory variable(s) are
uncorrelated. Thus any regression of the residual and the explanatory variable would give
no significant relationship. Consequently, the following tests that are based on regression
have been suggested in the literature.
1. Glejser test: amounts to running the OLS regression first and then obtaining the
^ i , and then regressing the absolute values of the u
residuals u ^ i on the X variable that
2
is thought to be closely associated with σ i using the functional forms:
|^ui| = β 1 + β 2 X i + ν i
|^ui| = β 1 + β 2 √ X i + ν i
1
|^ui| = β 1 + β 2 +ν i
Xi
1
|^ui| = β 1 + β 2 +ν
√ Xi i
Where νi is the error term.
Glejser has found that for large samples these models give generally satisfactory results
in detecting heterscedasticity.
2. Goldfield and Quandt test: This test is applicable if one assumes that the
2
heteroscedastic variance, σ i , is positively related to one of the explanatory variables
in the regression model. For simplicity, consider a two variables regression model of
the form:
Y i = β1 + β 2 X i +ui
2
Suppose σ i is positively related to Xi as
σ 2i = σ 2 X 2i
2
Where σ is constant
2
If this assumption appropriate, it would mean σ i would be larger, the larger the values
of Xi. If this turns out to be the case, heterscedasticity is most likely to be present in the
model. To test this explicitly, the following steps are suggested:
117
Step1. Rank or order the observations in ascending order of magnitude of values of Xi.
Step2. Omit c central observations, where c is specified a priori, and then divide the
remaining (n-c) observations into two groups of each of (n-c)/2 observations.
Step3. Fit separate OLS regressions to the first (n-c)/2 observations and the last (n-c)/2
observations, and obtain the respective residual sum of squares, RSS1 and RSS2.
( n−c ) ( n-c- 2 k )
−k or
These residual sum of squares each have 2 2 degrees of
freedom, where k is the number of parameters to be estimated, including the
intercept.
RSS 2 / df
f =
Step4. Compute the ratio RSS 1 / df .
The central observations are omitted to sharpen or accentuate the difference between the
small variance group and large variance group. The ability of Goldfield-Quandt test to
detect the presence of heteroscedasticity depends on how the "c" central observations are
chosen, and on identifying the correct X variable with which to order the observations.
Goldfield and Quandt suggest omitting about a quarter of the central observations.
Y i = β1 + β 2 X 2i +⋯+ β k X ki +ui EQ 23
2
Assume that the error variance σ i is described as:
σ 2i = f ( α 1 +α 2 Z 2 i +⋯+α m Z mi ) EQ 24
2
that is, σ i is some function of the non-stochastic variables Z's; some or all of the X's
can serve as Z's. Specifically you may assume that
118
σ 2i = α 1 + α 2 Z 2i +⋯+ α m Z mi EQ 25
2 2
that is, σ i , a linear function of the Z's. If α2 = α3 = ····· = αm = 0, σ i = α1, which is
2
constant. Therefore, to test whether σ i is homoscedastic, one can test the hypothesis
that H0: α2 = α3 = ····· = αm = 0. The actual test procedure for the Breusch-Pagan-
Godfrey test is as follows:
pi = α 1 + α 2 Z 2i +⋯+ α m Z mi+ ν i EQ 26
Step5. Obtain the ESS (explained summ of squares) from step 4 and define
1
Θ = ( ESS )
2 EQ 27
Assuming ui are normally distributed, one can show that if there is homoscedasticity and
Θ ~ 2
χ m−1
if the sample size is sufficiently large, then asy
Therefore, if the computed chi-square value exceeds the critical value at the chosen level
of significance then on can reject the hypothesis of homoscedasticity.
4. White's Heteroscedasticity test: This does not rely on the normality assumption of
the error terms and is easy to apply. For the purpose of illustration, consider a three
variables linear regression model:
Y i = β1 + β 2 X 2i + β3 X 3 i +ui EQ 28
The White test proceeds as follows:
Step1. ^i.
Estimate the model in EQ 6 and obtain the residuals, u
Step2. Run the following auxiliary regression:
u^ 2i = α 1 +α 2 X 2 i +α 3 X 3 i +α 4 X 22i + α 5 X 23i + α 6 X 2 i X 3i + ν i EQ 29
119
Higher powers of regressors can also be introduced in this regression, and then
obtain the R2 from this auxiliary regression.
Step3. Under the null hypothesis that there is no heteroscedasticity, it can be
shown that the sample size (n) times R2 obtained from the auxiliary regression
asymptotically follows the chi-square distribution with degrees of freedom equal to
the number of regressors (excluding the constant term) in the auxiliary regression.
That is
nR
2
~ 2
χ df
asym EQ 30
Step4. If the chi-square value obtained in EQ 8 exceeds the critical chi-square
value at the chosen level of significance, the conclusion is that there is
heteroscedasticity.
Remedial Measures
Heteroscedasticity does not destroy the unbiasedness and consistency properties of the
OLS estimators, but they are not efficient, even asymptotically. This inefficiency makes
the usual hypothesis testing procedure dubious and as a result, remedial measures called
2 2
for. There are two approaches to remedies: when σ i is known and when σ i is not
known.
2 2
When σ i is known: If σ i is known, the most straightforward method of correcting for
heteroscedasticity is by means of weighted least squares so that the estimators thus
obtained to be BLUE.
For the purpose of ease of exposition, let us consider a two variables linear regression
model of the following form:
Y i = β1 + β 2 X i +ui
Where E ( ui ) = 0 E ( u2i ) = σ 2i and Cov ( ui , u j ) = 0 ∀ i≠ j
120
( ) ( )( )
Yi X X u
= β1 0 i + β2 i + i Where X 0 i = 1 for each i
σi σi σi σi
Where the starred or transformed variables are the original variables divided by σ i , and
¿ ¿
β
the notations 1
and β 2 , the parameters of the transformed model, are used to distinguish
] = E (σ [ )]
2
ui
[
Var ( ui ) = E ( ui )
¿ ¿ 2
1
= 2
E [ u2i ]
σi
1 2
= 2 σi = 1
σi
which is constant. Hence, the variance of the transformed error term is now
homoscedastic. Therefore, OLS applied to the transformed variables results in estimators
that are BLUE. Weighted least squares amounts to applying OLS on the transformed
variables that satisfy the standard least-squares assumptions.
2 2
When σ i is not known: When the true σ i are not known one alternative way to deal
with heteroscedasticity is to obtain the White's Heteroscedasticity-Consistent Variances
and Standard errors of the estimators of each parameter values. Asymptotically valid
statistical inferences can be made about the true parameter values using this estimate.
121
Y i = β1 +β 2 X i +ui
Where E ( ui ) = 0 E ( u2i ) = σ 2i and Cov ( ui , u j ) = 0 ∀ i≠ j
Yi β1 ui
= + β 2+
Xi Xi Xi
1
= β1 + β2 +ν i
Xi
where νi is the transformed error term, equal to ui/Xi. It can easily be shown that:
[( ) ]
2
ui 1 1
2 ( i )
Var ( νi )=E ( ν 2i ) = E = E u 2 = 2 σ2 Xi2
Xi Xi Xi
= σ2
Now the variance of νi is homoscedastic, and hence one can proceed to apply OLS to the
transformed equation by regressing Yi/Xi on 1/Xi.
If this is the case with regard to the pattern of heteroscedasticity, then the original model
122
Assumption 3: The error variance is proportional to the square of the mean value of Y,
i.e.,
[ E (Y ) ] .
2
E( u 2i ) = σ 2
i
Yi β1 Xi ui
= + β2 +
E (Y i ) E ( Y i) E (Y i ) E (Y i )
( )
1 X
= β1 + β2 i +ν i
E ( Y i) E (Y i )
First run the usual OLS regression, disregarding the heterscedasticity problem, and obtain
Y^ i . Second, using the estimatedY^ i , we transform the original model as follows:
( )
Yi 1 X
= β1 + β 2 i +ν i
Y^ i Y^ i Y^ i
where ν = u / Y^ i i i
^
and run the above transformed model using OLS. Although Y i is not exactly the same as
E(Yi), they are consistent estimators, as the sample size increases indefinitely, they
converge to the true E(Yi). Hence, the above transformation will perform satisfactory if
the sample size is sufficiently large.
123
reduces heteroscedasticity when compared with the regressionY i = β1 + β 2 X i +ui .
This result arises because log transformation compresses the scales in which the variables
are measured. The additional advantage of the log transformation is that the slope
coefficient β2 measures elasticity of Y with respect to X, which can easily be interpreted.
4.6 Autocorrelation
The term autocorrelation may be defined as correlation between members of series of
observations ordered in time (as in time series data) or space (as in cross-sectional data).
The classical linear regression assumes that such autocorrelation does not exist in the
E ( ui u j ) =0 for all i≠ j
disturbancesui , i.e., . However, if there is such dependence, we
E ( ui u j ) ≠0 for i≠ j
have autocorrelation. Symbolically, .
124
γs
ρs =
γ0
Note that ρ0 = 1
The γ's and the ρ's are symmetric in s (the lag) and do not depend on t (time), i.e., they
only depend on the lags.
The covariance matrix of the u's is now:
[( ) ] [ ]
u1 u21 u1 u2 ⋮ u 1u T
2
u uu u ⋮ u 2u T
E ( uu ) = E 2 (u1 u2 ⋯ uT ) = E 2 1 2
'
⋮ ⋯ ⋯ ⋯ ⋯
ut uT u 1 u T u 2 ⋮ u2T
[ ]
[ γ0 γ 1 γ 2 ⋯ γT −1 ¿ ][ γ1 γ 0 γ1 ⋯ γ T−2 ¿ ] [⋯ ⋯ ⋯ ⋯ ⋯ ¿ ] ¿ ¿¿
E ( u21) E ( u1 u 2 ) ⋮ E ( u 1 u T ) ¿
E (u2 u1 ) E ( u22) ⋮ E ( u 2 uT )
= =
⋯ ⋯ ⋯ ⋯
E (uT u1 ) E (uT u2 ) ⋮ E ( u2T )
¿
The autocorrelation matrix is given by:
125
be fairly confident of capturing realistic dynamics in the residuals by considering low
order AR process. Hence, we will confine ourselves (our attention) to the AR(1) model:
ut = ρ ut −1 + ε t
To ensure that this process is stationary, we require, |ρ| < 1 in statistical sense.
Definition: A weakly Stationary Process has a constant and finite mean and variance, and
a set of (auto) covariances which are independent of time and are functions of the lag
length, s.
Consider the following regression model:
Y t = β 1 + β 2 X 2t +⋯+ β k X kt +ut where ut = ρut−1 + ε t
and E ( ε t ) = 0 , Var ( ε t ) = σ 2ε for all t , Cov ( ε t , ε t−s ) for all s≠0
The regression equation can be written matrix form as follows:
Y = Xβ+u
E (ε ) = 0 E (ε ε ) = σ2 I T [u0 ¿] [u1 ¿] [u2 ¿] [⋮¿] ¿ ¿¿
'
u = ρu−1+ε
Where u−1 = ¿
¿
Here, we know that
2 σ 2ε
Var ( ut ) = σu =
1−ρ 2
and E ( u u ) = σ u Ω
'' 2
126
Estimation when ρ is known:
¿ ¿ ¿
Y t = β 0 +β 1 X t +ε t EQ 33
Equation (3) satisfies the usual assumptions of the classical linear regression model, and
hence once can apply OLS, which is BLUE.
compute ρ^ in step 2 and repeat the process until the estimates converges, i.e., until
|ρ^ i − ρ^ i−1| is small. This procedure is available in Stata and other Econometric packages.
Another alternative method is to use the Maximum Likelihood estimation technique.
127
Testing for autocorrelation (1st order)
The most commonly used test is due to Durbin and Watson. The statistic is given by:
∑ ( u^ t −u^ t −1 )
T 2
u^ t =Y t −X t β^
t =2 ¿
d = T
where
∑ u^ 2t
t =1
∑ u^ 2t ∑ u^ 2t ∑ u^ 2t
t=1 t=1 t=1
≈ 2 ( 1- { ^ρ ¿ )
1
ρ^ ≈ 1− d
Or equivalently, 2
The exact distribution is difficult to calculate - there is an indeterminate region.
NB dL is the lower bound both are obtained from the table
dU is the upper bound
128
Reject H0 in Inconclusive Accept H0 (No Reject H0 in
favour of +ve region autocorrelation) Inconclusive favour of –ve
autocorrelation region autocorrelatio
n
d
0 dL du 2 4- du 4-dL 4
129
4.7 DYNAMIC MODELS
So far we have considered purely static models of the form:
Y t = β 0 + β1 X t + ut
What implications does this have for the underlying behaviour of economic agents?
What is the effect on Y of a change in X? If X increases by 1 unit in period t, then Y
will increase by β1 units instantaneously. This is unrealistic. In the real world adjustment
does not take place immediately - there are lags involved. These lags may be
due to:
i. time to feed through the economy
ii. lack of information
iii. search cost
iv. adjustment costs
Suppose it takes three periods for a change in X to feed through into Y given by the
model of the form:
Y t = β 0 + β1 X t + β2 X t −1 + β 3 X t−2 + ε t
The effect on Y of a one-time change in X is as follows:
Period Effect (Cumulative)
t β1
t+1 β1+ β2
t+2 β1+ β2+ β3
This type of model is known as a DISTRIBUTED LAG MODEL. In general we have a
model of the form:
Y t = α + β 0 X t + β 1 X t −1 + β 2 X t −2 + ⋯ + β k X t −k + ε t
k
= α + ∑ β i X t −i +ε t
i=0
130
The easiest way to estimate Distributed Lag (DL) model is by OLS but note that
estimation is based on T-K observations.
Example: t Xt Xt-1 Xt-2
1 12 - -
2 10 12 -
3 14 10 12
4 15 14 10
Suppose we have an infinite distributed lag model in variables of the following form:
Y t = α + β 0 X t + β 1 X t −1 + β 2 X t −2 + ⋯ + ε t EQ 1
Where the lag length is not defined, that is, how far into the past we want to go. One
alternative estimation mechanism of such a model is to use the KOYCK approach to
distributed lag model. If the β's are all of the same sign, Koyck assumes that they decline
or decay geometrically as follows:
βk = β0 λk k = 0, 1, 2, ⋯ EQ 2
Where λ, such that 0 < λ <1, is known as the rate of decline or decay, of the distributed
lag and where 1- λ is known as the speed of adjustment. By assuming that λ<1, we are
attaching lesser weight to the distant β's than current ones, and also insures that the sum
of the β's, which gives the long-run multipliers, is finite, namely:
∞ ∞ ∞ β0
∑ βk = ∑ β 0 λk = β 0 ∑ λ k =
1−λ
k =0 k =0 k =0
Y t = α + β 0 X t + β 0 λ X t −1 + β 0 λ2 X t −2 + ⋯ +ε t EQ 3
Still the model in equation (3) is not amenable to easy estimation. Now lag equation (3)
by one period and multiply both sides of the resulting model by λ to obtain:
λY t −1 = αλ+ β 0 λ X t −1 + β 0 λ 2 X t −2 + β 0 λ3 X t −3 + ⋯ + λε t −1 EQ 4
Or rearranging,
131
Y t = α ( 1−λ )+ β0 X t + λ Y t −1 + ν t EQ 5
AUTOREGRESSIVE MODELS
These are models containing lagged dependent variables as regressors.
Example: Y t = α 0 + α 1 Y t −1 + β0 X t +ε t
and α1 = 1, i.e., Y t = Y t −1 + ε t .
X ¿t −X ¿t −1 = γ ( X t − X ¿t −1 )
EQ 7
132
value of Xt and previous period's expectations..
¿
How can we use this information? Solve equation (7) for X t :
¿ ¿
X t = γ X t + ( 1−γ ) X t −1
and substitute into equation (6) to get:
¿
Y t = β 0 + β1 γ X t +β 1 ( 1−γ ) X t−1 +u t EQ 8
¿
which still includes X t−1 : now lag equation (8) by 1 period and multiply by (1-γ) to
obtain:
or
Y t = ( 1−γ ) Y t −1 + γβ 0 + γβ 1 X t + ν t EQ 10
{{ ^ 0 α^ 1
α
α^ 0=^γ β^ 0 ¿} α^ 1=^γ β^ 1¿}¿¿ ⇒ ¿ β^ 0= ¿ β^1= ¿ ¿¿
THE PARTIAL ADJUSTMENT MODEL
1−^α2 1−^α2
(Stock adjustment Model):
Here we assume that the desired level of Y (Y*) is a function of the observable X, i.e.,
¿
Y t = β 0 + β 1 X t +ut EQ 11
133
¿
Where Y t is the desired/expected level of Y.
In this model, it is assumed that Yt adjusts as follows:
Y t −Y t −1 = δ ( Y ¿t −Y t −1 )
EQ 12
Where δ is the adjustment parameter: 0 < δ ≤ 1, i.e., the actual change in Y is some
proportion δ of the desired change in Y.
{{ ^ 0 α^ 1
α
α^ 0=δ^ β^ 0 ¿}α^ 1=δ^ β^ 1 ¿}¿¿ ⇒ ¿ β^ 0= ¿ β^ 1= ¿ ¿¿
1−α^2 1−α^2
Economic theory typically has little to say about dynamic adjustment, but the partial
adjustment and adaptive expectations model go some way towards overcoming these
drawbacks.
Y t = α ( 1−λ )+ β0 X t + λY t −1 + ( ε t −λ ε t −1 )
EQ 14
134
Y t = ( 1−γ ) Y t −1 + γβ 0 + γβ 1 X t + [ u t −( 1−γ ) ut −1 ]
EQ 15
Y t = δ β 0 +δ β 1 X t + ( 1−δ ) Y t −1 + δ ut EQ 16
Y t = α 0 + α 1 X t + α 2 Y t −1 + ν t EQ 17
They are all autoregressive in nature. The classical least squares estimation cannot be
directly applicable for such models for two reasons:
i. Presence of stochastic explanatory variable
ii. Possibility of serial correlation
For the above models, OLS estimators are not only biased but also not consistent as the
stochastic explanatory variable in the regression model is correlated with the stochastic
disturbance term.
Let us suppose we can find a proxy variable for Y t-1 that is highly correlated with Y t-1 but
uncorrelated with the error term νt, where νt is the error term appearing in the Koyck, or
adpative expectations or partial adjustment models. Such a variable is called an
instrumental variable (IV). One suggestion could be to use Xt-1 as an instrument for Yt-1
and further suggestion is that the parameters of the model in equation (17) can be
obtained by solving the following normal equations:
135
T +1 T +1 T +1
∑ Yt = T α^ 0 + α^ 1 ∑ X t + α^ 2 ∑ Y t−1
t=2 t=2 t=2
T +1 T +1 T +1 T +1
∑ Y t X t = α^ 0 ∑ X t + α^ 1 ∑ X 2t +α^ 2 ∑ Y t−1 X t
t=2 t=2 t=2 t=2
T +1 T +1 T +1 T+1
∑ Y t X t−1 = α^ 0 ∑ X t−1 +α^ 1 ∑ X t X t−1 +α^ 2 ∑ Y t−1 X t−1
t=2 t=2 t=2 t=2
Since Yt-1 is included as a regressor, DW is not appropriate. In this case, the appropriate
test statistic is the Durbin's h-statistic. Durbin's h-statistic to test for 1st order
autocorrelation is given by:
h = ^ρ
√ T
1−T . Var ( α^ 2 )
Where T - Number of observations used for estimation
ρ^ - Estimate of ρ in ut = ρ ut-1+εt
In large samples, if ρ = 0 then h has a N(0, 1) distribution, i.e., H 0: ρ = 0 (no first order
auto correlation).
Decision rule: if h > Z(α/2) then reject H0 at α% level of significance, do not reject H 0 if
otherwise.
There is an easy way to compute h, since we know that:
1
ρ^ ≈ 1− d
2
where d is the DW statistic; thus
1
h ≈ 1− d
2 ( ) √ 1−T .TVar ( α^ ) 2
136
T . Var ( α^ 2 )
NB. This test statistic can not be used if ≥ 1. Alternatively, one can use
Breusch-Godfrey test of higher order autocorrelation, also known as the Lagrange
multiplier test.
137