Professional Documents
Culture Documents
Introduction To Econometrics, 5 Edition: Chapter 4: Nonlinear Models and Transformations of Variables
Introduction To Econometrics, 5 Edition: Chapter 4: Nonlinear Models and Transformations of Variables
Dougherty
Introduction to Econometrics,
5th edition
Chapter heading
Chapter 4: Nonlinear Models and
Transformations of Variables
Y 1 2 X 2 3 X 3 4 X 4 u
This sequence introduces the topic of fitting nonlinear regression models. First we need a
definition of linearity.
1
LINEARITY AND NONLINEARITY
Y 1 2 X 2 3 X 3 4 X 4 u
The model shown above is linear in two senses. The right side is linear in variables
because the variables are included exactly as defined, rather than as functions.
2
LINEARITY AND NONLINEARITY
Y 1 2 X 2 3 X 3 4 X 4 u
3
LINEARITY AND NONLINEARITY
Y 1 2 X 2 3 X 3 4 X 4 u
Y 1 2 X 22 3 X 3 4 log X 4 u
4
LINEARITY AND NONLINEARITY
Y 1 2 X 2 3 X 3 4 X 4 u
Y 1 2 X 22 3 X 3 4 log X 4 u
Z 2 X 22 , Z3 X3 , Z 4 log X 4
5
LINEARITY AND NONLINEARITY
Y 1 2 X 2 3 X 3 4 X 4 u
Y 1 2 X 22 3 X 3 4 log X 4 u
Z 2 X 22 , Z3 X3 , Z 4 log X 4
Y 1 2 Z 2 3 Z 3 4 Z4 u
With these cosmetic transformations, we have made the model linear in both variables and
parameters.
6
LINEARITY AND NONLINEARITY
Y 1 2 X 2 3 X 3 4 X 4 u
Y 1 2 X 22 3 X 3 4 log X 4 u
Z 2 X 22 , Z3 X3 , Z 4 log X 4
Y 1 2 Z 2 3 Z 3 4 Z4 u
Nonlinear in parameters:
Y 1 2 X 2 3 X 3 2 3 X 4 u
This model is nonlinear in parameters since the coefficient of X4 is the product of the
coefficients of X2 and X3. As we will see, some models which are nonlinear in parameters
can be linearized by appropriate transformations, but this is not one of those.
7
LINEARITY AND NONLINEARITY
We will begin with an example of a simple model that can be linearized by a cosmetic
transformation. The table reproduces the data in Exercise 1.5 on average annual rates of
growth of employment and GDP for 31 OECD countries.
8
LINEARITY AND NONLINEARITY
2
e 1 u
g
3
Employment growth rate
0
0 1 2 3 4 5 6 7 8 9
GDP growth rate
A plot of the data reveals that the relationship is clearly nonlinear. We will consider various
nonlinear specifications for the relationship in the course of this chapter, starting with the
hyperbolic model shown.
9
LINEARITY AND NONLINEARITY
2 1
e 1 u z e 1 2 z u
g g
3
Employment growth rate
0
0 1 2 3 4 5 6 7 8 9
GDP growth rate
This is nonlinear in g, but if we define z = 1/g, we can rewrite the model so that it is linear in
variables as well as parameters.
10
LINEARITY AND NONLINEARITY
. gen z = 1/g
. reg e z
----------------------------------------------------------------------------
Source | SS df MS Number of obs = 31
-----------+------------------------------ F( 1, 29) = 13.68
Model | 5.80515811 1 5.80515811 Prob > F = 0.0009
Residual | 12.3041069 29 .424279548 R-squared = 0.3206
-----------+------------------------------ Adj R-squared = 0.2971
Total | 18.109265 30 .603642167 Root MSE = .65137
----------------------------------------------------------------------------
e | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-----------+----------------------------------------------------------------
z | -2.356137 .6369707 -3.70 0.001 -3.658888 -1.053385
_cons | 2.17537 .249479 8.72 0.000 1.665128 2.685612
----------------------------------------------------------------------------
12
LINEARITY AND NONLINEARITY
eˆ 2.18 2.36 z
3 ------------------------
e | Coef.
-----------+------------
z | -2.356137
Employment growth rate
2
_cons | 2.17537
------------------------
0
0.0 0.2 0.4 0.6 0.8 1.0
z=1/g
-1
The figure shows the transformed data and the regression line for the regression of e on z.
13
LINEARITY AND NONLINEARITY
2.36
eˆ 2.18 2.36 z 2.18
g
3
Employment growth rate
0
0 1 2 3 4 5 6 7 8 9
-1
-2
Substituting 1/g for z, we obtain the nonlinear relationship between e and g. The figure
shows this relationship plotted in the original diagram. The linear regression of e on g
reported in Exercise 1.5 is also shown, for comparison.
14
LINEARITY AND NONLINEARITY
2.36
eˆ 2.18 2.36 z 2.18
g
3
Employment growth rate
0
0 1 2 3 4 5 6 7 8 9
-1
-2
In this case, it was easy to see that the relationship between e and g was nonlinear. In the
case of multiple regression analysis, nonlinearity might be detected using the graphical
technique described in a previous slideshow.
15
Copyright Christopher Dougherty 2016.
Individuals studying econometrics on their own who feel that they might benefit
from participation in a formal course should consider the London School of
Economics summer school course
EC212 Introduction to Econometrics
http://www2.lse.ac.uk/study/summerSchools/summerSchool/Home.aspx
or the University of London International Programmes distance learning course
EC2020 Elements of Econometrics
www.londoninternational.ac.uk/lse.
2016.05.01