Linearization/log-linearization and steady state

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Linearization/log-linearization and steady state

Postby jmaih » Wed Mar 22, 2006 6:53 pm

Hi,
I have two questions:

1- Is linearization better than log-linearization or the other way around?

2- How does dynare treat the variables that are zero in steady state when it comes to linearization/log-linearization?

Junior
jmaih
 
Posts: 24
Joined: Tue Jan 17, 2006 6:12 pm

Postby iacoviel » Wed Mar 22, 2006 9:47 pm

1) The answer is: it depends. I will use an example.

Suppose you have a model in which the production function is

Y = A*K^(alfa)*L^(1-alpha)

and A is log-normal with zero mean and finite variance.

Then log-linearization is going to do a perfect job, because the model is non-linear in levels but linear in the LOG of variables, so log-linearization is going to give exact solution for the response of the variables to shocks etc...

Suppose you have another model in which the production function is

Y = A + teta*K + (1-teta)*L

and A is normal with zero mean and finite variance. Then linearization is going to do an excellent job, because the model is linear in the LEVELS of the variables.


2) If the level of a variable is zero in steady state, one cannot log-linearize around a zero level (typical example: bond positions in two country models of the business cycle). In cases like this, it is better (if not necessary) to linearize the variables which are zero in steady state (and maybe log-linearize the others).
iacoviel
 
Posts: 38
Joined: Wed Feb 01, 2006 6:25 pm

Postby jmaih » Fri Mar 24, 2006 5:21 pm

Thanks Matteo

Junior
jmaih
 
Posts: 24
Joined: Tue Jan 17, 2006 6:12 pm

Postby ripatti » Thu Mar 30, 2006 7:40 am

iacoviel wrote:2) If the level of a variable is zero in steady state, one cannot log-linearize around a zero level (typical example: bond positions in two country models of the business cycle). In cases like this, it is better (if not necessary) to linearize the variables which are zero in steady state (and maybe log-linearize the others).


Do you have examples of such a dynare code?

Antti
ripatti
 
Posts: 59
Joined: Mon Jan 16, 2006 6:28 am
Location: Helsinki

Postby iacoviel » Fri Mar 31, 2006 10:41 pm

//% Two country model with borrowing and lending and small quadratic cost
//% of adjusting bond positions around zero
//% Log utility over consumption
//% Cost is PHY*b1^2

var c1 c2 b1 y1 y2 R ;
varexo e1 e2;

parameters BETA RHO PHY;

BETA=.98;
RHO=.85;
PHY=.01;

model;
exp(c1) = exp(y1) + b1 - R(-1)*b1(-1) - PHY*b1^2 ;
exp(c2) = exp(y2) - b1 + R(-1)*b1(-1) - PHY*(-b1)^2 ;
//% b1 + b2 = 0 ;
exp(c1) = BETA*R*exp(c1(+1))*(1-2*PHY*b1*exp(c1)) ;
exp(c2) = BETA*R*exp(c2(+1))*(1-2*PHY*(-b1)*exp(c2)) ;
y1=RHO*y1(-1)+e1;
y2=RHO*y2(-1)+e2;
end;

initval;
y1=1;
y2=1;
c1=1;
c2=1;
b1=0;
//% b2=0;
e1=0;
e2=0;
end;

shocks;
var e1; stderr 1;
var e2; stderr 1;
end;

steady;

stoch_simul(dr_algo=0,order=1,periods=200);
iacoviel
 
Posts: 38
Joined: Wed Feb 01, 2006 6:25 pm

Postby iacoviel » Fri Mar 31, 2006 10:44 pm

An example is above. I am not sure it is exactly what you would like, but should give the idea. Notice that consumption c1 and c2 and output y1 and y2 are in logs, whereas the bond position is in levels. Steady state output and consumption are 1.
iacoviel
 
Posts: 38
Joined: Wed Feb 01, 2006 6:25 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 10 guests