cn5 Non
cn5 Non
NONLINEAR MODELS
Example 1:
y t = xt • ′ β + ε t .
Example 2:
yt = β1 + β 2 e β3 xt + ε t , where xt is a scalar.
Example 3:
yt = Axtβ22 xtβ33 + ε t . (*)
NLLS-1
[2] Estimation of NL models
Definition:
Let S ( β ) = Σ t ( yt − h ( xt• , β ) ) . The NLLS (Nonlinear least squares)
2
Facts:
1) p lim βˆNL = β o (consistent). [No guarantee that E βˆNL = β o .] ( )
−1
⎛ ⎡ 1 ⎤ ⎞
2) T ( βˆNL − β o ) →d N ⎜ 0k ×1 , p lim σ ⎢ Σt H t ( β o ) H t ( β o )′⎥ ⎟ ,
2
⎝ ⎣T ⎦ ⎠
where H t ( β ) = ∂h ( xt• , β ) / ∂β .
⎛ H1 ( β )′ ⎞
⎜ H ( β )′ ⎟
If we define H ( β ) = ⎜ 2 ⎟ , H ( β )′H ( β ) = Σ t H t ( β ) H t ( β )′ .
⎜ : ⎟
⎜ H ( β )′ ⎟
⎝ T ⎠
2
3) Let sNL = S ( βˆNL ) / T , Then, p limT →∞ sNL
2
=σ 2.
(
4) βˆNL ≈ N β , sNL
2
⎡ H ( βˆNL )′H ( βˆNL ) ⎤
⎣ ⎦
−1
).
5) R2 = 1 - SSE/SST, where SSE = S ( βˆNL ) .
NLLS-2
Example:
yt = β1 + β 2 e β3 xt + ε t .
Then,
∂h ( xt• , β ) ∂h ( xt• , β ) ∂h ( xt• , β )
= 1; = e β3 xt ; = β 2 xt e β3 xt .
∂β1 ∂β 2 ∂β 3
⎛ 1 ⎞
Thus, H t ( β ) = ⎜ e β 3 xt ⎟.
⎜ ⎟
⎜ β x e β3 xt ⎟
⎝ 2 t ⎠
NLLS-3
−1
⎛ 1 ⎛ ∂ 2 ht ( β o ) ⎞⎞
( βˆ − βo ) ≈ − ⎜ Σt ⎜ ( yt − ht ( βo ) ) − H t ( β o ) H t ( βo )′ ⎟ ⎟
⎝ T ⎝ ∂β∂β ′
NL
⎠⎠
1
× Σt H t ( β o )( yt − ht ( β o ))
T
−1
⎛ 1 ⎛ ∂ 2ht ( β o ) ⎞⎞ 1
≈ − ⎜ Σt ⎜ ε t − H t ( β o ) H t ( β o )′ ⎟ ⎟ Σ t H t ( β o )ε t
⎝ T ⎝ ∂ β ∂ β ′ ⎠⎠ T
−1
⎛1 ⎞
≈ ⎜ Σt H t ( β o ) H t ( β o )′ ⎟ × 0k ×1 = 0k ×1.
⎝T ⎠
NLLS-4
[3] SPECIFICATION TESTS
CASE A:
• Same dependent variables under both the null and the alternatives
Ho: yt = ho(xt•,β) + εt. (A)
Ha: yt = ha(wt•,γ) + εt. (B)
Example:
ho(xt•,β) = β1 + β2xt ; ha(wt•,γ) = γ1 + γ2ln(xt).
[Even if the models are linear, we still can perform J or P tests.]
NLLS-5
(2) P-Test: An alternative to J-test.
• Get βˆNL and γˆNL by NLLS on both (A) and (B).
Hˆ to = H to ( xt• , βˆNL ) .
CASE B:
• Different dependent variables
Ho: yt = ho(xt•,β) + εt.
Ha: g(yt) = ha(wt•,γ) + εt,
where g(yt) is a function of yt (e.g., g(yt) = ln(yt)).
Example:
Ho: yt = β1 + β2xt + εt
Ha: ln(yt) = γ1 + γ2ln(xt) + εt
NLLS-6
• P test:
Estimate both β and γ by NLLS (or OLS).
Construct the following auxiliary model:
yt − hˆto = Hˆ to b + (hˆta − g ( hˆto ))α + error . (F)
Example:
Ho: yt = xt•′β + εt
Ha: ln(yt) = wt•′γ + εt ,
where xt• = [1,xt2,...,xtk]′ and wt• = [1,ln(xt2),...,ln(xtk)].
Explain in detail how you would test Ho.
NLLS-7
[EXAMPLE]
• Data: (WAGE2.WF1 or WAGE2.TXT – from Wooldridge’s
website)
# of observations (T): 935
1. wage monthly earnings
2. hours average weekly hours
3. IQ IQ score
4. KWW knowledge of world work score
5. educ years of education
6. exper years of work experience
7. tenure years with current employer
8. age age in years
9. married =1 if married
10. black =1 if black
11. south =1 if live in south
12. urban =1 if live in SMSA
13. sibs number of siblings
14. brthord birth order
15. meduc mother's education
16. feduc father's education
17. lwage natural log of wage
NLLS-8
<J-Test>
= STEP 1 =
Estimate the model under Ha:
NLLS-9
= STEP 2 =
Estimate lwage = (1 − α )( β1 + β 2 educ + β 3exer ) + α fitya + error .
NLLS-10
<P-Test>
= STEP 1 =
Estimate the model under Ho:
NLLS-11
= STEP 2 =
Estimate the model under Ha:
NLLS-12
= STEP 3 =
Estimate res0 = β1 + β 2 educ + β 3 exp er + α ( fitya − fity 0) .
NLLS-13
[4] NL models with unknown parameters in LHS
Estimation:
1) NLLS could be inconsistent. Even if it is consistent, computation of
the covariance matrix of the NLLS estimator could be complicated.
2) Do MLE. (See Greene.)
NLLS-14
• Box-Cox Model:
• yt (δ ) = β1 + Σ kj =2 xtj (λ ) β j + ε t .
NLLS-15