How do I assign probability to certain inputs?

Use this forum to post Vensim related questions.
Post Reply
DDLin26
Junior Member
Posts: 2
Joined: Tue Jan 05, 2010 6:13 pm

How do I assign probability to certain inputs?

Post by DDLin26 »

I have two variables of values 0 and 1, respectively.

I would like to make a new variable that takes in these two variables, and picks either 0 or 1 based on an assigned probability. Let's say I want the new variable to return a '0' 95% of the time, and to return '1' 5% of the time.

is this possible?
Administrator
Super Administrator
Posts: 4838
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

I usually do something like this.

Random number = Random 0 1 ()

result = if then else ( Random number > .95 , 1 , 0 )
Post Reply