Random Number generation

Use this forum to post Vensim related questions.
Post Reply
mostafizceesust
Junior Member
Posts: 2
Joined: Thu Mar 29, 2018 10:38 am
Vensim version: DSS

Random Number generation

Post by mostafizceesust »

I am trying to generate random number by exponential distribution. I need the parameters minimum, maximum, seed, shift, stretch. How can I calculate shift and stretch value from my data??? Please help me
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Random Number generation

Post by tomfid »

The scale parameter determines the mean (assuming shift=0 and there is no truncation), and therefore is the inverse of the lambda parameter typically described for the distribution. The standard deviation equals the mean (variance = mean^2).

So, you could use shift=0 and scale=mean of your data.

See the sample model in the help system for implementation.
Post Reply