Shock decomposition

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.

Shock decomposition

Postby Robert » Mon Aug 22, 2016 9:39 am

Dear all,

I have finished the estimation part of my model (I let dynare do the linearization) and I'm currently analysing the results of dynare's shock decomposition. I have pulled out the decomp. results, for one specific variable and a certain time frame. You can see that below:


2007Q1 2007Q2 2007Q3 2007Q4
Shock 1 0.0029 0.0023 0.0022 0.0018
Shock 2 0.0016 0.0004 -0.0036 -0.0093
Shock 3 -0.0076 -0.0040 0.0003 -0.0002
Shock 4 0.0571 0.0543 0.0487 0.0394
Shock 5 -0.0183 -0.0176 -0.0179 -0.0195
Shock 6 -0.0016 0.0000 0.0013 0.0027
Shock 7 0.0479 0.0222 -0.0011 0.0002
Shock 8 -0.0019 -0.0105 -0.0170 -0.0120
Shock 9 0.0094 0.0262 0.0400 0.0362
ME 0 0 0 0
Initial 0.0346 0.0343 0.0339 0.0336
Smoothed 0.1241 0.1075 0.0869 0.0730

I would have two questions regarding this:

Q1) If I want to compute the contribution (deviation), of lets say shock 1 in year 2007, would I sum up the quarters or take the average over the four quarters?

Q2) For example in the paper "Sentiment Shocks as Drivers of Business Cycles", Arias shows a table with computed percentages of each shock contribution. Given my example above, how would I calculate the percentage contribution of lets say shock 1. The problem is that there are positive an negative values and the initial value.

Sorry for the very basic questions and thanks a lot for your help!

Robert
Robert
 
Posts: 36
Joined: Wed Jan 13, 2016 3:10 pm

Re: Shock decomposition

Postby jpfeifer » Thu Aug 25, 2016 7:19 am

1. The way to do time aggregation depends on the variables, e.g. if they are in levels, logs or whether they are growth rates. Most of the time, the average will be appropriate (as in average deviation of the level from its mean/trend during a particular year)
2. What Arias shows in hist Table 2 is a variance decomposition, not a shock_decomposition. Those are different things and they are triggered differently in Dynare. See the manual.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Shock decomposition

Postby Robert » Thu Aug 25, 2016 9:17 am

Many thanks Johannes! Sorry, I overlooked that Arias is doing a hist. variance instead of a shock decomposition.

Robert
Robert
 
Posts: 36
Joined: Wed Jan 13, 2016 3:10 pm

Re: Shock decomposition

Postby Robert » Fri Aug 26, 2016 8:29 am

Dear Johannes,

Sorry, one last question regarding the shock_decomposition command. I have estimated my model on a dataset which doesn't include GDP. Is it still possible to perform a shock decomposition on this observable? For example, lets say I include output in my datafile, estimate the model on all other observables (except GDP) and later declare the observable output under the shock_decomposition command. Would that work?

Many thanks for your help!

Robert
Robert
 
Posts: 36
Joined: Wed Jan 13, 2016 3:10 pm

Re: Shock decomposition

Postby jpfeifer » Fri Aug 26, 2016 8:47 am

That should work. It would be similar to running the smoother on a calibrated model. It does not matter where the parameters come from.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Shock decomposition

Postby Robert » Fri Aug 26, 2016 8:57 am

Thanks Johannes!
Robert
 
Posts: 36
Joined: Wed Jan 13, 2016 3:10 pm

Re: Shock decomposition

Postby Robert » Thu Sep 29, 2016 9:53 am

Dear Johannes,

Just for clarification. If I perform a shock decomposition after the stoch_simul command, then I will get the historical decomposition at the calibrated posterior mean. However, if I perform it right after the estimation command then I will get the mean shock decomposition. Is that correct (like in the case for the conditional variance decomposition)?

Many thanks.

Robert
Robert
 
Posts: 36
Joined: Wed Jan 13, 2016 3:10 pm

Re: Shock decomposition

Postby jpfeifer » Thu Sep 29, 2016 12:55 pm

After stoch_simul, it will be at the calibrated parameter values used for stoch_simul. After estimation, it will be at mean posterior parameter draw. There is no Bayesian treatment of this command that would give you the average of the statistic of interest over the parameter draws (because then the average shocks over the draws would not add up to the observables).
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Shock decomposition

Postby Robert » Thu Sep 29, 2016 4:38 pm

jpfeifer wrote:After stoch_simul, it will be at the calibrated parameter values used for stoch_simul. After estimation, it will be at mean posterior parameter draw. There is no Bayesian treatment of this command that would give you the average of the statistic of interest over the parameter draws (because then the average shocks over the draws would not add up to the observables).


Sorry, does this mean that if I have calibrated my model at the posterior mean (and run the shock decomposition command) then I would obtain the same results as running the shock decomposition after the estimation command? So both decompositions deliver the same output. Or is that wrong?

Robert
Robert
 
Posts: 36
Joined: Wed Jan 13, 2016 3:10 pm

Re: Shock decomposition

Postby jpfeifer » Fri Sep 30, 2016 7:54 am

That should be the case. Unless you specify something else, shock_decomposition will use the posterior mean. Calibration will take whatever you provided in the parameter vector
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Shock decomposition

Postby Robert » Sat Oct 01, 2016 2:44 pm

Great, thanks Johannes!
Robert
 
Posts: 36
Joined: Wed Jan 13, 2016 3:10 pm

Re: Shock decomposition

Postby Robert » Mon Mar 27, 2017 10:07 pm

Dear Johannes,

Another embarrassing question.. Can we say that the shock decomposition, which dynare produces, should correspond to the estimated IRFs? Or should be consistent with the IRFs?

So for example, if a positive productivity shock hits the economy, then this would trigger a positive response of GDP to this innovation. Let's say I perform now a shock decomposition on output. Would we expect, that during a time of increasing output (e.g. positive deviation from its steady state), the TFP shock has contributed positively to this upward movement?

Many thanks for your help Johannes!

Best

Robert
Robert
 
Posts: 36
Joined: Wed Jan 13, 2016 3:10 pm

Re: Shock decomposition

Postby jpfeifer » Tue Mar 28, 2017 8:53 am

At each point in time, shocks hit the economy and trigger IRFs. The shock decomposition tells you about the cumulated effect of e.g. past TFP shocks on a variable at each point in time.
Regarding your question: if TFP shocks are the only shock that moves GDP, you can make the conclusion. Otherwise, what you say is not necessarily true, because it could have been another shock as well.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Shock decomposition

Postby Robert » Tue Mar 28, 2017 12:50 pm

Many thanks Johannes!
Robert
 
Posts: 36
Joined: Wed Jan 13, 2016 3:10 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests