computing exercise hints

  << back

Chapter14

Exercise 1.
Label columns ‘IAT’, inter-arrival time; ‘AT’, arrival time; ‘ATX’, AT-0.5; ‘AI’, arrival interval; ‘AIL’, list of arrival intervals; ‘N’, no. in arrival interval.
RANDOM 500 ‘IAT’;
EXPONENTIAL 0.5.
PARSUMS ‘IAT’ ‘AT’
LET ‘ATX’ = ‘AT’ – 0.5
ROUND (‘ATX’, ‘AI’)
TALLY ‘AI’;
STORE ‘AIL’ ‘N’.
# The values of N opposite 5, 10, 15,…are observations from the required distribution. Ingenuity or hard labour is needed to pull them out. Do not overlook zero counts. If an arrival interval, e.g. 35, includes no cars, it does not enter the list.

Exercise 2.
# Label columns X, Y, Z.
RANDOM 500 ‘X’;
UNIFORM 0 1.
RANDOM 500 ‘Y’;
UNIFORM 0 2.
LET ‘Z’ = ‘X’ + ‘Y’

<< back

 

 
Hodder Arnold