Displaying 1 result from an estimated 1 matches for "numberofoutcomestogenerate".
2009 Jan 30
1
simulating outcomes - categorical distribution (?)
Hi,
I am simulating an event that has 15 possible outcomes and I have a
vector 'pout' that gives me the probability of each outcome -
different outcomes have different probabilities. Does anyone know a
simple way of simulating the outcome of my event?
If my event had only two possible outcomes (0/1) I would pick a
uniform random number between 0 and 1 and use it to choose between the
two