In: Operations Management
A box contains 100 balls, of which 15% are green, 40% are red, and 45% are spotted.
Use simulation to find the probability that if you randomly draw a ball you get a Red Ball.
Use the following 20 randomly generated numbers: 97, 52, 61, 87, 07, 48, 73, 49, 23, 75, 18, 15, 70, 34, 67, 40, 48, 98, 49, 70
Draw a cumulative probability distribution table
Ball color | Probability | Cumulative probability |
Green | 0.15 | 0.15 |
Red | 0.40 | 0.55 |
Spotted | 0.45 | 1.00 |
The random number range is cumulative probability multiplied by 100
If the given random number lies within the random number range as determined in cumulative probability table, then you get the ball of that color.
For example, number 97 is in the range of 55 onwards to 100, so you get a spotted ball.
For 52 you get a red ball, for 61 spotted, for 87 spotted, for 07 green and so on..
The simulation table is following
Random number | ball |
97 | Spotted |
52 | Red |
61 | Spotted |
87 | Spotted |
07 | Green |
48 | Red |
73 | Spotted |
49 | Red |
23 | Red |
75 | Spotted |
18 | Red |
15 | Green |
70 | Spotted |
34 | Red |
67 | Spotted |
40 | Red |
48 | Red |
98 | Spotted |
49 | Red |
70 | Spotted |
Probability of getting a red ball = count of red in the above table /20 = 9/20 = 45%