Variance 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.

Variance Decomposition

Postby jakegunner » Wed Apr 01, 2015 7:47 pm

Dear all,

My question is regarding the unconditional variance decomposition post estimation. In the command window, dynare reports the following table:

VARIANCE DECOMPOSITION (in percent)

I am unsure as to whether I should use the values reported here or those reported in oo_.PosteriorTheoreticalMoments.dsge.VarianceDecomposition.hpdinf.<NAME_OF_THE_ENDOGENOUS_VARIABLE>.<NAME_OF_THE_EXOGENOUS_VARIABLE>. They are wildly different. Any help on the matter would be really appreciated.

Thanks
jakegunner
 
Posts: 5
Joined: Fri Oct 10, 2014 3:40 pm

Re: Variance Decomposition

Postby jpfeifer » Thu Apr 02, 2015 9:08 am

Your description is insufficient to provide a conclusive answer. But is seems you are comparing apples and oranges.
The output of the variance decomposition comes from the calibrated model, I guess. The fields you describe seem to come from the model estimation. Those are two completely different things.
On top of that, the HPDI field refers to the upper bound of the credible set (Bayesian confidence interval). Of course the upper bound is different from the mean or median.
------------
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: Variance Decomposition

Postby jakegunner » Sat Apr 04, 2015 10:25 am

Many thanks Prof,

I was under the impression that dynare, in the command window, would report variance decomposition for those parameter values evaluated after estimation. However, it is indeed reported for those in the calibration block.
J
jakegunner
 
Posts: 5
Joined: Fri Oct 10, 2014 3:40 pm

Re: Variance Decomposition

Postby costa » Mon Apr 06, 2015 9:51 pm

I always thought that conditional_variance_decomposition after estimation would automatically considers the posteriors means obtained from estimation. Is this correct ?
costa
 
Posts: 47
Joined: Thu Nov 14, 2013 8:09 pm

Re: Variance Decomposition

Postby jpfeifer » Tue Apr 07, 2015 5:21 am

If you run stoch_simul after estimation, you will obtain the conditional_variance_decomposition at the posterior mean and the output will be displayed in the command window. But this post referred to someone using stoch_simul BEFORE estimation, while also requesting conditional_variance_decomposition in the estimation command. In this case, there will only be output for the conditional_variance_decomposition from the calibrated model. There will be no output in the command window from the estimation command for the conditional_variance_decomposition as this command, as documented in the the manual, only stores the results in oo_.
------------
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: Variance Decomposition

Postby sbehpour » Tue Jun 30, 2015 8:38 am

Hi Mr Pfeifer
I am writing a paper by using "dsge models" and I have a problem.
could you help me how can I do variance decomposition in dynare? I do not know what code is required and where I should put that..
thank you
sbehpour
 
Posts: 2
Joined: Tue Jun 30, 2015 8:34 am

Re: Variance Decomposition

Postby jpfeifer » Sun Jul 05, 2015 4:21 pm

Are you doing estimation or simulations?
------------
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: Variance Decomposition

Postby sbehpour » Tue Jul 07, 2015 7:51 am

thank you Mr Pfeifer
I want to do both of them (estimation and simulation)..
sbehpour
 
Posts: 2
Joined: Tue Jun 30, 2015 8:34 am

Re: Variance Decomposition

Postby jpfeifer » Tue Jul 07, 2015 9:40 am

See the manual on
Code: Select all
conditional_variance_decomposition

For estimation, see also the manual on
Code: Select all
moments_varendo
------------
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: Variance Decomposition

Postby ZBCPA » Mon Sep 21, 2015 12:51 pm

jpfeifer wrote:If you run stoch_simul after estimation, you will obtain the conditional_variance_decomposition at the posterior mean and the output will be displayed in the command window. But this post referred to someone using stoch_simul BEFORE estimation, while also requesting conditional_variance_decomposition in the estimation command. In this case, there will only be output for the conditional_variance_decomposition from the calibrated model. There will be no output in the command window from the estimation command for the conditional_variance_decomposition as this command, as documented in the the manual, only stores the results in oo_.


Dear Johhanes,

If I use such command:
Code: Select all
estimation(datafile=...,moments_varendo,....);
stoch_simul(order=1,irf=0);


Then I will get two types of unconditional variance decomposition results.
The first one displayed in the command window is the unconditional variance decomposition at the posterior mean ;

My quesiton is , how to explain the second type of unconditional variance decomposition stored in oo_.PosteriorTheoreticalMoments.dsge.VarianceDcomposition ? Even though the two types are very close in value.

In published paper, people generally report which type of unconditional variance decomposition?

Thanks in advance.

Best regards,
Huan
ZBCPA
 
Posts: 101
Joined: Sat May 16, 2015 4:15 am

Re: Variance Decomposition

Postby jpfeifer » Wed Sep 23, 2015 8:20 pm

The main difference is that the stoch_simul variance decomposition is computed at the calibrated parameter combination (here the posterior mean), while the Bayesian variance decomposition is the mean variance decomposition (not to be confused with the variance decomposition at the mean). That is, the latter is the average of the variance decomposition over the parameter draws while the former is the variance decomposition at the average over the parameters.

You can use both. In the context of Bayesian estimation, the ones from the estimation command are theoretically preferable, but most people use the ones from stoch_simul, because they are easier to interpret. For example, Christiano/Motto/Rostagno (2014) in their Risk Shocks paper in the AER do this.
------------
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: Variance Decomposition

Postby ZBCPA » Sat Sep 26, 2015 4:59 am

jpfeifer wrote:The main difference is that the stoch_simul variance decomposition is computed at the calibrated parameter combination (here the posterior mean), while the Bayesian variance decomposition is the mean variance decomposition (not to be confused with the variance decomposition at the mean). That is, the latter is the average of the variance decomposition over the parameter draws while the former is the variance decomposition at the average over the parameters.

You can use both. In the context of Bayesian estimation, the ones from the estimation command are theoretically preferable, but most people use the ones from stoch_simul, because they are easier to interpret. For example, Christiano/Motto/Rostagno (2014) in their Risk Shocks paper in the AER do this.



Dear Johhanes,

Thank you for your time and patience and professional clear explanation.

Best regards,
Huan
ZBCPA
 
Posts: 101
Joined: Sat May 16, 2015 4:15 am

Re: Variance Decomposition

Postby HouseC » Mon May 01, 2017 5:14 am

Dear all,

Many thanks for your discussion. It's really helpful. My estimation exercise return significantly difference between variance decomposition using posterior mean and the mean variance decomposition. For instance, I want to look at TFP shock's explainary power on output and consumption. The bayesian estimation exercise reveals that this shock captures around 50% of output fluctuation. Yet when I check the variance decomposition for calibrated model using posterior mean. the explainary power is reduced to 10%. Is it possible to get such result? And how to understand ?

Best regard
HouseC
 
Posts: 41
Joined: Fri Apr 19, 2013 3:36 am

Re: Variance Decomposition

Postby jpfeifer » Mon May 01, 2017 4:51 pm

Are you using a different filter option?
------------
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: Variance Decomposition

Postby HouseC » Fri May 05, 2017 7:31 am

jpfeifer wrote:Are you using a different filter option?


Dear Johannes,

Thanks for your reply. My command in estimation is pretty standard and I guess I don't use another filter. The estimtaion command is the following
Code: Select all
estimation(datafile=xxxx,
        logdata,
        plot_priors=0,
        mode_check,
        mode_compute=6,
        optim=('AcceptanceRateTarget',0.25),
        moments_varendo,
        mh_nblocks=1,
        mh_replic=20000
               );
HouseC
 
Posts: 41
Joined: Fri Apr 19, 2013 3:36 am

Next

Return to Dynare help

Who is online

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