Example 4: Simulate 100 observations on a normal random variable N(
µ=80, σ
2
=50).
Ensure that
MODES is set to radian measure and type:
MAKELIST(80+ 50*( (-2*LN(RANDOM))*sin(2*RANDOM)),X,1,100,1) C2
Example 5: Simulate 50 observations on an exponential distribution with mean = 2.
In the HOME view type:
MAKELIST(-2*LN(1-RANDOM),1,50,1) C2
As an illustration, the result of this particular simulation is shown
graphically on the right. Its mean turned out to be 2.067 (3 decimal
places.). Yours will be different of course - after all, that’s the point of
using random numbers!
Calculator Tip
The ly ‘random’ any more than it is on any
command repeatedly on two
l
lators.
RANDSEED
RANDOM function is not tru
computer. If you use the
RANDOM
calculators just out of the box then you wil see the same set of numbers
on both calcu
This is because the
RANDOM function uses a ‘seed’ value and this is
the same initially for all calculators. It is possible to fix this by ‘seeding’
a new number using the command. For information on this
see page 206.
122