Page 1 of 1

Adding stochasticity to variable from .dat file

Posted: Fri Aug 20, 2010 1:19 am
by UniSheep
Hi people,

We are new to Vensim and would like to add stochasticity to an existing rainfall data file. We imported the rainfall data with a .dat file and would like to make it random ...

Anyone having any ideas for us ? ... Would be great!

Thank you ...

Posted: Fri Aug 20, 2010 9:50 am
by bob@vensim.com
You can simply use one of the random functions as in

rainfall = rainfall data + RANDOM NORMAL(-rainfall normal,1e9,0,noise standard deviation,0)

then use rainfall wherever your previous variable was used.

Posted: Fri Aug 20, 2010 3:23 pm
by tomfid
There was a related thread, with examples, a few months ago.
http://www.ventanasystems.co.uk/forum/v ... php?t=4045

Another option would be to take your data, look at its distribution, and then use RANDOM LOOKUP to replicate that. There's probably a lot of autocorrelation at various scales, and seasonality, so you'd have to think about that as well.

Tom