The time between arrivals of cars at the Petroc Services Station is defined by the following probability
Fantastic news! We've Found the answer you've been seeking!
Question:
The time between arrivals of cars at the Petroc Services Station is defined by the following probability distribution:
a. Simulate the arrival of cars at the service station for 20 arrivals and compute the average time between arrivals.
b. Simulate the arrival of cars at the service station for 1 hour, using a different stream of random numbers from those used in (a) and compute the average time between arrivals.
c. Compare the results obtained in (a) and (b).
Petroco service | ||
Probability | Cumulative | Time between arrival (min) |
0.35 | 1 | |
0.25 | 2 | |
0.2 | 3 | |
0.2 | 4 | |
1 |
a. Avg Arrival time | 2.25 |
b. Avg. arrival time | 2.609 |
Compare a. and b. |
Simulation | ||
Counts | RN | Time between calls |
1 | 43 | 2 |
2 | 90 | 4 |
3 | 54 | 3 |
4 | 69 | 3 |
5 | 41 | 2 |
6 | 72 | 3 |
7 | 30 | 2 |
8 | 1 | 1 |
9 | 16 | 2 |
10 | 41 | 2 |
11 | 43 | 2 |
12 | 54 | 3 |
13 | 83 | 3 |
14 | 4 | 1 |
15 | 55 | 3 |
16 | 7 | 1 |
17 | 68 | 2 |
18 | 63 | 2 |
19 | 18 | 2 |
20 | 40 | 2 |
RN | Time between calls | Cumulative clock |
61 | 3 | |
27 | 2 | |
45 | 2 | |
72 | 3 | |
38 | 2 | |
47 | 3 | |
26 | 2 | |
73 | 3 | |
53 | 3 | |
3 | 1 | |
29 | 2 | |
6 | 1 | |
60 | 3 | |
21 | 2 | |
40 | 2 | |
60 | 3 | |
86 | 4 | |
73 | 3 | |
47 | 2 | |
50 | 2 | |
96 | 4 | |
Related Book For
Posted Date: