-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very regular pattern of the variance profile #22
Comments
I have not seriously considered whether the built-in RNG is appropriate for stochastic simulation in general. Adding other RNG types is straightforward, but I have not introduced it yet (I've been working on a rather big change offline). That being said, I don't think the RNG is causing the regular pattern. I have come across this myself but never been able to reproduce it (but it happens often enough). I suspected it is related to the way the "regular paths" are constructed. Measurements over regular intervals are binned; see here. How did you simulate the data you plotted in your second figure? If you used the "fixed interval" option then it isolates the problem to the plotting recipe here. |
Now I don't think it's the problem of RNG but that's definitely an option great to have. I used the following code to generate the cure for one species. It looks like the problem is somewhere post simulation. result = simulate(model, OptimizedDirect(), time = 10000.0, epochs = 200, trials = 2000) |
Hello,
I am doing simulation with simple simulation and plot command.
result = simulate(model, Direct(), time = 10000.0, epochs = 50, trials = 1000)
plot(result; plot_type = :meantrajectory)
I got the result that you can see from the attached picture. There are very regular patterns for the variance of all the variables. if you look carefully, similar pattern also exist for your example. as a stochastic simulation, I don't expect the variance to change so regularly. Do you think it a problem? Is there something I can do like to choose a better random number generator?
Thanks
The text was updated successfully, but these errors were encountered: