Docsity

Functional Form and Structural Change - Lecture Notes | ECON 5350, Study notes of Econometrics and Mathematical Economics

Toggle sidebar
bg1
ECON 5340 Class Notes
Chapter 7. Functional Form and Structural Change
1Introduction
Recall that although OLS is considered a linear estimator, it does not mean that the relationship between
Y and X need be linear. In this chapter, we introduce several types of nonlinear models and methods of
testing for nonlinearity associated with structural changes.
2 Dummy Variables
2.1 Comparing Two Means
Consider the regression model
yi=α+x0
iβ+δdi+i
for i=1, ..., n where diis a dummy or binary variable equal to one if the condition is satisfied and zero
otherwise. The dummy variable can be used to contrast two means
E[yi|x0
i,d
i=0]=α+x0
iβ
E[yi|x0
i,d
i=1]=α+x0
iβ+δ.
Asimplettest can then be used to test whether the conditional mean of yis different when d=0as opposed
to d=1. The null hypothesis for this test would be H0:δ=0. An example will be presented below.
2.2 Several Categories
Some qualitative variables are naturally grouped into discrete categories (e.g., seasons of the year, religious
affiliation, race, etc.). It also often useful to artificially categorize quantitative variables (e.g., income levels,
education, age, etc.). Consider the regression model
yi=α+x0
iβ+δ1D1i+δ2D2i+δ3D3i+i
1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Functional Form and Structural Change - Lecture Notes | ECON 5350 and more Study notes Econometrics and Mathematical Economics in PDF only on Docsity!

ECON 5340 Class Notes

Chapter 7. Functional Form and Structural Change

1 Introduction

Recall that although OLS is considered a linear estimator, it does not mean that the relationship between Y and X need be linear. In this chapter, we introduce several types of nonlinear models and methods of testing for nonlinearity associated with structural changes.

2 Dummy Variables

2.1 Comparing Two Means

Consider the regression model yi = α + x^0 iβ + δdi + i

for i = 1, ..., n where di is a dummy or binary variable equal to one if the condition is satisfied and zero otherwise. The dummy variable can be used to contrast two means

E[yi|x^0 i, di = 0] = α + x^0 iβ E[yi|x^0 i, di = 1] = α + x^0 iβ + δ.

A simple t test can then be used to test whether the conditional mean of y is different when d = 0 as opposed to d = 1. The null hypothesis for this test would be H 0 : δ = 0. An example will be presented below.

2.2 Several Categories

Some qualitative variables are naturally grouped into discrete categories (e.g., seasons of the year, religious affiliation, race, etc.). It also often useful to artificially categorize quantitative variables (e.g., income levels, education, age, etc.). Consider the regression model

yi = α + x^0 iβ + δ 1 D 1 i + δ 2 D 2 i + δ 3 D 3 i + i

with a set of four binary variables (D 1 i, D 2 i, D 3 i and D 4 i). Notice that one of the variables (D 4 i) is excluded from the model to avoid the dummy-variable trap. Inclusion of D 4 i would violate the Classical assumption that the X matrix is of full rank. This occurs because the four dummy variables will sum to a column of ones, which is perfectly collinear with the constant. By excluding D 4 i, the δ coefficients are interpreted as the change in y when moving from the jth^ category (Dji = 1) as compared to 4 th^ category (D 4 i = 1).

2.2.1 Example. Testing for seasonality.

Consider two different models that test for seasonality in Y :

yi = α + x^0 iβ + δ 1 D 1 i + δ 2 D 2 i + δ 3 D 3 i + i (1) yi = x^0 iβ + θ 1 D 1 i + θ 2 D 2 i + θ 3 D 3 i + θ 4 D 4 i + i. (2)

Each equation avoids the dummy-variable trap — the first by excluding D 4 i and the second by excluding the constant term α. Both equations generate the same goodness of fit, but the coefficients are interpreted differently. For equation (1) the test for seasonality is

H 0 : δ 1 = δ 2 = δ 3 = 0

and for equation (2) the test is H 0 : θ 1 = θ 2 = θ 3 = θ 4.

Both of these tests can be performed using the general F test developed in chapter 6 (provided the errors are normally distributed). It is instructive to relate the coefficients to one another

Category Relationship between coefficients D 1 = 1 θ 1 = α + δ 1 ⇒ δ 1 = θ 1 − θ 4 D 2 = 1 θ 2 = α + δ 2 ⇒ δ 2 = θ 2 − θ 4 D 3 = 1 θ 3 = α + δ 3 ⇒ δ 3 = θ 3 − θ 4 D 4 = 1 θ 4 = α

This highlights the fact that the δ coefficients are measured as the effect on Y , relative to the excluded category.

with the additional restriction that the line is continuous at xi = x^0 (i.e., α + β 1 x^0 = α + β 1 x^0 + β 2 x^0 + β 3 ). Substituting the restriction β 3 = −β 2 x^0 back into equation (4) and rearranging gives

yi = α + β 1 xi + β 2 Di(xi − x^0 ) + i.

The slope of the regression line when xi < x^0 equals β 1. The slope of the regression line when xi > x^0 equals β 1 + β 2.

2.5 Gauss Examples. Earnings Equation.

Consider the following (log) earnings equation

ln(wagei) = β 1 + β 2 Agei + β 3 Age^2 i + β 4 Gradei + β 5 Marriedi + β 6 (M arriedi ∗ Gradei) + i

and a sample of 1000 men taken from the 1988 Current Population Survey. The first program shows how to estimate (and graph) a regression model with both an intercept and a slope dummy variable (see Gauss example 7.1). The second program estimates (and graphs) a spline regression with knots at Gradei = 12 and Gradei = 16. The second program also tests to see if the slopes are equal across the different education levels (see Gauss example 7.2).

3 Nonlinear Functional Forms

Below are some common nonlinear functional forms for regression models. Note that although some re- gression models may appear to violate Classical assumption #1 (i.e., the model is linear in the coefficients and error term), it is sometimes possible to take a linearizing transformation of the model (e.g., see the double-log form below).

3.1 Double-Log

Consider the following regression model

yi = β 1 Q^ k j=2^ x

β j,ij exp(i)

which initially appears to be nonlinear in the parameters and the error term. However, by taking natural logs of both sides, we get

ln(yi) = β 1 + β 2 ln(x 2 ,i) + β 3 ln(x 3 ,i) + ... + βk ln(xk,i) + i,

which is now obviously linear in β and . This is called the double-log functional form. The β coefficients can be interpreted as elasticities ∂ ln(yi) ∂ ln(xki) =^ βk

or the percentage change in yi for a one percent change in xki, all else equal.

3.2 Semi-Log

The semi-log functional form refers to either the dependent or some of the independent variables being logged. One example is ln(yi) = β 1 + β 2 x 2 ,i + β 3 x 3 ,i + ... + βkxk,i + i.

3.2.1 Notes.

  1. If, for instance, we introduced a time trend t as an explanatory variable, then ∂ ln(yi)/∂t gives the conditional average growth rate of yi.
  2. β 2 , for example, can be interpreted as the percentage change in yi for a unit change in x 2 ,i.

3.3 Polynomial

An example of a polynomial functional form is

yi = β 1 + β 2 x 2 ,i + β 3 x^22 ,i + β 4 (x 2 ,ix 3 ,i) + i.

The coefficients do not measure the relevant partial derivatives. For example ∂yi ∂x 2 i^ =^ β^2 + 2β^3 x^2 ,i^ +^ β^4 x^3 ,i

where β 1 and β 2 are (k × 1 ) vectors. We can estimate this model using least squares

b =

X^10 X^1

0 X^02 X 2

X^01 Y^1

X^02 Y 2

Next, we test for structural change using our standard F test, where the hypotheses are

H 0 : Rβ = q or β 1 = β 2 HA : Rβ 6 = q or β 1 6 = β 2

and R = (Ik | − Ik) and q = 0. The standard F statistic is

F = (Rb^ −^ q)

(^0) [R(X (^0) X)− (^1) R (^0) ]− (^1) (Rb − q)/k s^2 ∼^ F^ (k, n^ −^2 k).

4.1.1 Notes.

  1. This test is often referred to as a Chow test after Gregory Chow (1960).
  2. The test can be performed using the unrestricted and restricted residuals as well.
  3. It is also possible to test for a break in only the slopes or only the intercepts.
  4. Sometimes the error variances may not be equal on each side of the break. In this case, the appropriate test is of the Wald type W = (βˆ 1 − βˆ 2 )^0 (V 1 + V 2 )−^1 (βˆ 1 − βˆ 2 ) which is asymptotically distributed chi-square with k degrees of freedom. V 1 and V 2 refer to the asymptotic variance-covariance matrices of ˆβ 1 and βˆ 2 respectively.

4.2 A Test with Unknown Break Points

The Chow test above requires that the user knows the break point with certainty. Often structural change is more subtle and gradual, with an unknown break point. The CUSUM test below is designed for this type of situation.

Begin by defining the recursive residuals (t = 1, ..., T ) as

et = yt − x^0 tbt− 1

where bt− 1 = (X t^0 − 1 Xt− 1 )−^1 X^0 t− 1 Yt− 1 and Xt− 1 is the (t − 1 × k) matrix of regressors including data from 1 , ..., t − 1. The variance of the recursive residuals is

var(et) = E(e^0 tet) = var(t − x^0 t(bt− 1 − β)) = σ^2 + x^0 tσ^2 (X t^0 − 1 Xt− 1 )−^1 xt = σ^2 (1 + x^0 t(X^0 t− 1 Xt− 1 )−^1 xt).

Now define wt = p(1 + x 0 et t(X t^0 − 1 Xt−^1 )−^1 xt)^

which under constant parameters is distributed wt ∼ iidN (0, σ^2 ). The CUSUM test is based on the cumulative sum of wt Wt = Ptr=k+1^ w ˆσr

where σ ˆ^2 = Ptr=k+1^ (wr^ −^ w¯) 2 T − k − 1 and^ w¯^ =^

Pt r=k+ wr T − k.

The CUSUM statistic can then be graphed over time with the confidence bands connecting the points [k ± ap(T − k)] and [T ± 3 ap(T − k)]. For a 95% (99%) confidence interval, a = 0. 948 (a = 1. 143 ).

4.2.1 Notes

  1. It is also possible to graph the recursive residuals themselves or the sum of the squared recursive residuals (CUSUMSQ test).
  2. Other tests are available for finding unknown structural break points, such as the Hansen (1992) test and Andrews (1993) test.