Page 1 of 1

Simulation results change even with fixed seed

PostPosted: Wed Jun 14, 2017 8:16 pm
by nmark
I am running a dynare program where in the simulations, even though I fix the seed, if I run it twice, the results change. Before each run, I clear the memory. I'm talking about things like the standard deviation of variables. I ran it on my apple macbook pro, on my unversity's research computing cluster, and my coauthor ran it on her windows computer. In each instance, the results change.

I am running a dynare program using Matlab version R2016b Dynare 4.3.3 on a macbook pro. My university's research computing cluster has Matlab R2016a and Dynare 4.3.3.

This is very strange to me. Has anyone else ever had this problem? Any ideas/suggestions/help would be greatly appreciated.

Re: Simulation results change even with fixed seed

PostPosted: Fri Jun 16, 2017 8:00 am
by jpfeifer
How do you fix the seed? Also, please try the Dynare 4.5. Older version may not be compatible with the newer version to adress Matlab's random number generator.

Re: Simulation results change even with fixed seed

PostPosted: Fri Jun 16, 2017 7:34 pm
by nmark
set_dynare_seed(82784) ;

Re: Simulation results change even with fixed seed

PostPosted: Sat Jun 17, 2017 3:16 pm
by jpfeifer
Have you tried Dynare 4.5?