time varying volatility

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.

Re: time varying volatility

Postby jpfeifer » Fri Oct 12, 2012 6:57 pm

An IRF cannot converge to the ergodic mean. They always converge to 0 as the model is stationary and the effect of a shock thus dies out over time.
------------
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: time varying volatility

Postby econactually » Thu Oct 18, 2012 2:56 pm

I use basic DNK model to model time varying interest rate volatility. I wrote the code in dynare and plot impolse responses as percentage deviations from the variables' ergodic means. By using the same model I also wrote the code in mathematica in a way compatible with Eric Swanson's Perturbation aim codes and again plot impolse responses as percentage deviations from the variables' ergodic means. The two results are different. Do you know what would cause this particularly? Thanks!
econactually
 
Posts: 6
Joined: Wed Mar 28, 2012 1:03 am

Re: time varying volatility

Postby sidus87 » Sat Feb 02, 2013 12:15 pm

Hi all, could any of you experts tell me whether I got it right on how to implement the uncertainty shocks and get their IRFs?

For practicing I used the Ireland model "Technology shocks in the New Keynesian model", adding shocks to the TFP volatility and try to plot the IRFs following what's been told on this thread.

Thanks a lot
Attachments
Ireland_uncertainty.mod
(2.97 KiB) Downloaded 226 times
sidus87
 
Posts: 23
Joined: Sat Jun 23, 2012 9:46 pm
Location: London, UK

Re: time varying volatility

Postby jpfeifer » Fri Nov 21, 2014 3:13 pm

For more on this, see the appendix and the replication files to Born/Pfeifer (2014): "Risk Matters: A comment" on my homepage.
------------
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: time varying volatility

Postby sidus87 » Tue Mar 08, 2016 4:02 pm

Dear all,

I have a question concerning the calculation of IRFs from the Stochastic Steady State (SSS) as done in Basu and Bundick (2015). Brent Bundick has uploaded his code on his website and what they do is basically:
"simulating" (with simult_) the model with zero shocks (starting at the deterministics steady state) for a burn in period of say 2000, then at time 2001 there's the uncertainty shock hitting (simulation continues up until period 2020, so to get an IRF of 20 periods).

What I was doing before instead, was to run once simult_ with zero shocks for to back out the SSS, then run a second simulation with simult_ starting at the SSS to obtain the IRF.

I thought the IRFs would deliver the same result, but surprisingly (to me) they don't. Can anyone explain me why this is the case? Moreover, what's the correct way of doing it? Thanks in advance
Attachments
IRF_Basu.pdf
(8.84 KiB) Downloaded 174 times
IRF_mine.pdf
(8.7 KiB) Downloaded 163 times
sidus87
 
Posts: 23
Joined: Sat Jun 23, 2012 9:46 pm
Location: London, UK

Re: time varying volatility

Postby jpfeifer » Sun Mar 13, 2016 11:31 am

Could you please explain what exactly you did?
------------
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: time varying volatility

Postby sidus87 » Sun Mar 13, 2016 9:38 pm

That's what I did:
1) "simulate" the model with simult_ with zero shocks for 2000 periods and take the variables at T=2000 as the Stochastic Steady State (SSS)
2) Simulate once again the model with simult_ (for T=length IRF) starting from the SSS, hitting the economy with an uncertainty shock at time 1 and zero shocks afterwards
3) Calculate percentage deviations from SSS.

Basu and Bundick do the following:

Let T1= burnin
T2= length IRF
1) "simulate" the model with simult_ for T=T1+T2 with zero shocks for T1 periods and a 1 std shock to uncertainty at t=T1+1.
3) Calculate percentage deviations from SSS (value of the variables at t=T1)
sidus87
 
Posts: 23
Joined: Sat Jun 23, 2012 9:46 pm
Location: London, UK

Re: time varying volatility

Postby jpfeifer » Tue Mar 15, 2016 8:23 am

I don't know what exactly you did, but the outlined approach should be correct and should yield the Basu/Bundick IRFs (apart from a small difference related to them not actually starting at the stochastic steady state, because the burnin is insufficient)
I have replicated their IRFs using my own codes. Your differences are puzzling. Did you correctly deal with percentage deviations? If the model is in logs, you must use log differences instead of actual ratios.

ADDENDUM: What I said before only applies to the case without pruning. With pruning, there is an augmented state space. Basu/Bundick with their long series set yhat1 to yhat3 to the values at the stochastic steady state. However, when you restart the simulations at the stochastic steady state, you set yhat1 to yhat1+yhat2+yhat3 and yhat2=yhat3=0.
------------
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: time varying volatility

Postby sidus87 » Fri Mar 18, 2016 5:27 pm

Thanks a lot for the addendum, Johannes. It's been very helpful
sidus87
 
Posts: 23
Joined: Sat Jun 23, 2012 9:46 pm
Location: London, UK

Re: time varying volatility

Postby sidus87 » Wed Jun 22, 2016 4:24 pm

Dear Johannes,

Do you know why sometimes I get (non negligible) movements in the level of TFP after an uncertainty shock when I compute the IRFs as Generalized IRFs? I'm using the toolbox by Andreasen et al. so it should not be a problem of not having done enough replications. I really don't see why this is the case.
sidus87
 
Posts: 23
Joined: Sat Jun 23, 2012 9:46 pm
Location: London, UK

Re: time varying volatility

Postby jpfeifer » Thu Jun 23, 2016 7:24 pm

I am not that familiar with their toolkit, but it might have to do with the way the process is specified (log-normal vs. in levels)
------------
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: time varying volatility

Postby zhanghuifd » Sun May 21, 2017 1:30 pm

Dear friends, sorry to follow this old post.
I met a simple problem when studying Basu (2016). They set the s.t.d. of preference shock and that of its volatility shock to around 0.002. Then they set the variance to 1 and report irfs multiplied by 100 to represent one percent std from steady state. Are those irfs true levels or magnified? Could anyone help me?
Thanks a lot! !
zhanghuifd
 
Posts: 36
Joined: Tue Mar 21, 2017 8:14 am

Re: time varying volatility

Postby onthetopo » Sun May 21, 2017 9:08 pm

How would you estimate the parameters controlling time-variation in volatility?
onthetopo
 
Posts: 10
Joined: Tue May 16, 2017 11:22 pm

Re: time varying volatility

Postby zhanghuifd » Mon May 22, 2017 1:00 am

Sorry, I've not finished it yet.
zhanghuifd
 
Posts: 36
Joined: Tue Mar 21, 2017 8:14 am

Re: time varying volatility

Postby jpfeifer » Mon May 22, 2017 4:09 pm

@zhanghuifd Please explain your question in more detail. I have replicated the Basu/Bundick paper.
@onthetopo If you observe the endogenous process, you can e.g. use a particle filter to independently estimate the exogenous process from the rest of the model. In Basu/Bundick, the uncertainty shock is on a preference shock and therefore unobserved. They use a combination of impulse response function and moment matching.
------------
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

PreviousNext

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests