Modeling and Simulation Lab 02
Modeling and Simulation Lab 02
2.1 Introduction:
This laboratory session will introduce an numerical example for
Monte Carlo
2.2 Objectives:
2.3 Content:
Introduction
14-Clark Property Management is responsible for the maintenance, rental, and day-
to-day operation of a large apartment complex on the east side of new or- leans.
George Clark is especially concerned about the cost projections for replacing air
conditioner compressors. He would like to simulate the number of compressor
failures each year over the next 20 years. Using data from a similar apartment
building he manages in a New Orleans suburb, Clark establishes a table of relative
frequency of failures during a year as shown in the following table:
Number Of A.C. Probability
Compressor Failures (Relative Frequency)
0 0.06
1 0.13
2 0.25
3 0.28
4 0.20
5 0.07
6 0.01
15-The number of cars arriving per hour at Lundberg’s Car Wash during the past
200 hours of operation is observed to be the following:
Number of cares arriving Frequency
3 or fewer 0
4 20
5 30
6 50
7 60
8 40
9 or more 0
Total=200
(a) Set up a probability and cumulative probability distribution for the variable of
car arrivals.
(b) Establish random number intervals for the variable.
(c) Simulate 15 hours of car arrivals and compute the average number of arrivals
per hour. Select the random numbers needed from the first column of Table 14.4,
beginning with the digits 52.
Solution
(a)
Number of Frequency probability Cumulative Interval of
cares probability random number
arriving
3 or fewer 0 0/200=0.0 0.0 00
4 20 20/200=0.1 0.1 1 to 10
5 30 30/200=0.15 0.25 11 to 25
6 50 50/200=0.25 0.5 26 to 50
7 60 60/200=0.3 0.8 51 to 80
8 40 40/200=0.2 1.00 81 to 100
9 or more 0 0/200=0.0 1.00 100
Total=200
16- Compute the expected number of cars arriving in Problem 14-15 using
the expected value formula. Compare this with the results obtained in the
simulation.
Solution
Expected number of cars arriving
9 ormore
Probability Number of cares arriving number of care arrive
i 3
0+.4+.75+1.5+2.1+1.6+0=6.35 care.