Continuous Probability Distributions
In the first example in this chapter, ComputerWorld's store manager
We have concentrated on examples with discrete distributions because with a discrete distribution, the ranges of random numbers can be explicitly determined and are thus easier to
The area under the curve,
f
(
x
), represents the probability of the occurrence of the random variable
x
. Therefore, the area under the curve must equal 1.0 because the sum of all probabilities of the occurrence of a random variable must equal 1.0. By computing the area under the curve from 0 to any value of the random variable
x
, we can determine the cumulative probability of that value of
x
, as
Cumulative probabilities are analogous to the discrete ranges of random numbers we used in previous examples. Thus, we let this function, F ( x ), equal the random number, r ,
and solve for x ,
By generating a random number,
r
, and substituting it into this function, we determine a value for
x
, "time." (However, for a continuous function, the range of random numbers must be between zero and one to
The purpose of
Simulation of a Machine Breakdown and Maintenance SystemIn this example we will demonstrate the use of a continuous probability distribution. The Bigelow Manufacturing Company produces a product on a number of machines. The elapsed time between breakdowns of the machines is defined by the following continuous probability distribution:
where x = weeks between machine breakdowns
A continuous probability distribution of the time between machine breakdowns . As indicated in the previous section on continuous probability distributions, the equation for generating x , given the random number r 1 , is
When a machine breaks down, it must be repaired, and it takes either 1, 2, or 3 days for the repair to be completed, according to the discrete probability distribution shown in Table 14.8. Every time a machine breaks down, the cost to the company is an estimated $2,000 per day in lost production until the machine is repaired. Table 14.8. Probability distribution of machine repair time
The company would like to know whether it should implement a machine maintenance program at a cost of $20,000 per year that would reduce the frequency of breakdowns and thus the time for repair. The maintenance program would result in the following continuous probability function for time between breakdowns:
f
(
x
) =
x
/18, 0
where x = weeks between machine breakdowns The equation for generating x , given the random number r 1 , for this probability distribution is
The reduced repair time resulting from the maintenance program is defined by the discrete probability distribution shown in Table 14.9. Table 14.9. Revised probability distribution of machine repair time with the maintenance program
To solve this problem, we must first simulate the existing system to determine an estimate of the average annual repair costs. Then we must simulate the system with the maintenance program installed to see what the average annual repair costs will be with the maintenance program. We will then compare the average annual repair cost with and without the maintenance program and compute the difference, which will be the average annual savings in repair costs with the maintenance program. If this savings is more than the annual cost of the maintenance program ($20,000), we will recommend that it be implemented; if it is less, we will recommend that it not be implemented. First, we will manually simulate the existing breakdown and repair system without the maintenance program, to see how the simulation model is developed. Table 14.10 illustrates the simulation of machine breakdowns and repair for 20 breakdowns, which occur over a period of approximately 1 year (i.e., 52 weeks). Table 14.10. Simulation of machine breakdowns and repair times
The simulation in Table 14.10 results in a total annual repair cost of $84,000. However, this is for only 1 year, and thus it is probably not very accurate.
The
Table 14.11. Simulation of machine breakdowns and repair with the maintenance program
{% if main.adsdop %}{% include 'adsenceinline.tpl' %}{% endif %} Table 14.11 shows that the annual repair cost with the maintenance program totals $42,000. Recall that in the manual simulation shown in Table 14.10, the annual repair cost was $84,000 for the system without the maintenance program. The difference between the two annual repair costs is $84,000 42,000 = $42,000. This figure represents the savings in average annual repair cost with the maintenance program. Because the maintenance program will cost $20,000 per year, it would seem that the recommended decision would be to implement the maintenance program and generate an expected annual savings of $22,000 per year (i.e., $42,000 20,000 = $22,000).
However, let us now concern
Manual simulation is limited because of the amount of real time required to simulate even one trial . Computer Simulation of the Machine Breakdown Example Using Excel
Exhibit 14.7 shows the Excel spreadsheet model of the simulation of our original machine breakdown example simulated manually in Table 14.10. The Excel simulation is for 100 breakdowns. The random numbers in
C14:C113
are generated using the
RAND
() function, which was used in our previous Excel examples. The "Time Between Breakdowns" values in column D are developed using the formula for the continuous cumulative probability function, =
4*SQRT(C14)
, typed in
Exhibit 14.7.
The "Cumulative Time" in column E is computed by copying the formula =
E14+D15
in cells
E15:E113
. The second stream of random numbers in column F is generated using the
RAND
() function. The "Repair Time" values in column G are generated from the cumulative probability distribution in the array of cells
B6:C8
. As in our previous examples, we
The "Average Annual Cost" in cell H7 is computed with the formula = SUM(H14:H113 )/( E113/52 ). For this, the original problem, the annual cost is $82,397.35, which is not too different from the manual simulation in Table 14.10. Exhibit 14.8 shows the Excel spreadsheet simulation for the modified breakdown system with the new maintenance program, which was simulated manually in Table 14.11. The two differences in this simulation model are the cumulative probability distribution formulas for the time between breakdowns and the reduced repair time distributions from Table 14.9 in cells A6:C8 . Exhibit 14.8.(This item is displayed on page 631 in the print version)
The average annual cost for this model, shown in cell H8, is $44,504.74. This annual cost is only slightly higher than the $42,000 obtained from the manual simulation in Table 14.11. Thus, as before, the decision should be to implement the new maintenance system. |