

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Math 464, Worksheet 5
Today the goal is to speed up the random trial process. Recall that last time, you needed to generate 100 random numbers to find out how many new animals were born to 100 animals. Here’s how you can do it with just one random number:
P (k) =
n!(100 − n)!
(0.03)k(0.97)^100 −k
for each number k = 0, 1 , 2 ,... 100. You can do this in Excel.
Even this trick requires you to generate a column of numbers — the CDF — and then examine it before you get the next day’s number. There is a better way. You can get Excel to spit out random numbers that don’t land uniformly between 0 and 1. You can get them to come out in a normal distribution.
x = sin(2πRAND())
−2 ln(RAND())
(a) Compute the mean: μ = 0. 03 N. (b) Compute the std deviation: σ =
(c) Rescale your random number: σx + μ.
Bonus weekend exercise: Use this technique on the model with