The covariance of MCMC draws is not positive definite

Dear all,

I have a difficulty to estimate my DSGE model.

I am using mode_compute = 6. But, I have the following message:

marginal density: I’m computing the posterior mean and covariance… Done!
marginal density: I’m computing the posterior log marginal density (modified harmonic mean)… marginal density: the covariance of MCMC draws is not positive definite. You may have too few MCMC draws.Done!

ESTIMATION RESULTS

Log data density (Modified Harmonic Mean) is NaN.

Could I ask how to solve this problem?

Thank you so much for your support.

Best,
Rubyss.

Without seeing the files to replicate the issue it is impossible to tell.

Actually, I figured it out after watching your YouTube video! Thanks a lot! @jpfeifer

I have one more question about the measurement error in Garcia-Cicco et al. (2010) AER paper.

I’m trying to derive 1/4 of the standard deviation of ( g_y ), ( g_i ), ( g_c ), and ( tb_y ) using the Excel file. This perfectly matches the max values of the Uniform distribution shown in Table 3 of the paper.

However, in your code, you apply sqrt and mention that these are actually variances, not standard deviations.

Could you kindly explain this issue?

Best,
Rubyss.

As I stated in the initial note:

The standard deviations of the estimated measurement error reported in Table 3 of the paper are actually variances. This mod-file reflects this difference to the published version by taking the square root. 

That is, the files used to generate the results do something else than what was written in the paper. My codes reflect the original files.

Yes!

You stated “The standard deviations of the estimated measurement error reported in Table 3 of the paper are actually variances.”

But the standard deviations of the estimated measurement error reported in Table 3 of the paper are actually standard deviations in the excel file.

What am I missing?

Thanks a lot!

My statement is one about the measurement errors not the data standard deviations. Instead of setting the standard deviations of the measurement errors to the corresponding standard deviation of the data, they set the variance of the measurement errors to the corresponding standard deviation of the data.