Historical and smoothed variables plot

Hi everyone

I have a question related to the Historical and smoothed variables

I have 14 obs. variables, in the figure 27 and 28 figure27.pdf (12.5 KB)
figure28.pdf (8.1 KB)
I know that
The dotted black line depicts the actually observed data, while the red line depicts the estimate of the smoothed variable (“best guess for the observed variable given all observations”), derived from the Kalman smoother at posterior mean (Bayesian estimation) (because I use the Bayesian method). In both figures 27 and 28 , both series are identical and no measurement error,

So my 2 questions are

  1. what happen if these two line are different, I mean there exists measurement error?
  2. Can we use this figure 27 and 28 to evaluate the fit of data to theoretical model? I mean what is the purpose to plot this figure?

With best regards

Dear Peter,

It is up to you to decide if your model has measurement errors. If you decide to add measurement errors, then you will observe gaps between historical data and smoothed variables. The smaller are these differences the better is the fit. Obviously this comparison does not make sense if you do not have measurement errors (see also this related recent topic).

It may happen that, even without measurement errors, you observe differences between historical and smoothed variables (typically different means). This may reflect a problem in the specification of your measurement equations (missing constant)… Or a bug in Dynare itself.

Best,
Stéphane.

Dear @stepan-a

Thank you so much for your detailed explanation

Best regards

You can also get a gap between observed variables and smoothed variables in case of stochastic singularity. This could particularly occur before Dynare 4.5 as the use_univariate_filters_if_singularity_is_detected option was enabled by default.