historical and smoothed variables plot problem

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.

historical and smoothed variables plot problem

Postby ZBCPA » Tue Mar 22, 2016 2:55 am

Dear Johannes,

Could you have a look the attached historical and smoothed variables plot , there is no measurement error in the model. Does it look weird as for i_obs and h_obs ? Generally why does it happen?

Many thanks,
Huan
Attachments
HistoricalAndSmoothedVariables1.pdf
(20.39 KiB) Downloaded 222 times
ZBCPA
 
Posts: 101
Joined: Sat May 16, 2015 4:15 am

Re: historical and smoothed variables plot problem

Postby jpfeifer » Tue Mar 22, 2016 10:07 am

Usually this happens when there is stochastic singularity.
------------
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: historical and smoothed variables plot problem

Postby kipfilet » Wed Mar 23, 2016 8:55 pm

Hi Huan,

One reason why this may happen is that you have a deterministic relationship between two variables in the model that are being fed in as observables. This would generate the observed patterns, even in the absence of stochastic singularity (i.e. even if you have #shocks>=#observables).
kipfilet
 
Posts: 27
Joined: Thu Oct 04, 2012 5:24 am

Re: historical and smoothed variables plot problem

Postby jpfeifer » Thu Mar 24, 2016 8:34 am

@kipfilet What you describe is stochastic singularity. Having as many shocks as observables is only a necessary condition, but not sufficient. If there is a linear combination only involving observables the forecast error variance matrix will be singular.
------------
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: historical and smoothed variables plot problem

Postby DW916 » Sat May 21, 2016 5:26 am

Dear Johhanes,

In my model, I have 6 observables, 5 structural shocks and 2 measurement error shocks, one measurement error is attached to output (more shocks than observables). I construct the data output as Y=C+I+G (not Y=C+I+G+NX) which is consistent with my model.

If I have this output measurement error, every observable matches perfectly in "Historical and smoothed variables" plot. However, if there is no output measurement error, the government spending variable does not match perfectly well (the red line and black line have some gap). Graphs are attached, please have a look.

1. Is this plot reliable if the red line and black line have some gap? If this is a problem, must I add output measurement error?

1. Is this case calling stochastic singularity, even though shocks=observables?

2. Why this problem can happen? I do not think I have linearity since there is no two shocks simultaneously appear in one equation.

Many many thanks,
Catherine
Attachments
Doc2.pdf
(90.26 KiB) Downloaded 168 times
HistoricalAndSmoothedVariables1.pdf
(21.48 KiB) Downloaded 172 times
DW916
 
Posts: 31
Joined: Sat Feb 27, 2016 9:05 am

Re: historical and smoothed variables plot problem

Postby jpfeifer » Sat May 28, 2016 8:10 am

Dear Catherine, this is the prototypical stochastic singularity example. A necessary condition is to have as many shocks as observables. But this is not sufficient. In addition, there must not be a perfect linear relationship between the observables. If you have
Code: Select all
Y=C+I+G

and you observe all variables on the right, they are going to imply a particular value for Y at every point in time. If you now observe Y at the same time without measurement error, you have exactly this issue. For this reason, you need measurement error.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests