Answer:
a) The mean number of runs required is 5000.
b) The standard deviation of the number of runs required is 2235.
Explanation:
For each time the program is run, there are only two posssible outcomes. Either it fails, or it does not. The probability of failing on each run is independent of other runs. So we use the binomial probability distribution to solve this question.
Binomial probability distribution
Probability of exactly x sucesses on n repeated trials, with p probability.
The expected number of trials for r sucesses is:
The standard deviation is:
A computer program has a bug that causes it to fail once in every thousand runs, on average.
This means that
In an effort to find the bug, independent runs of the program will be made until the program has failed five times.
This means that
a. What is the mean number of runs required?
The mean number of runs required is 5000.
b. What is the standard deviation of the number of runs required?
The standard deviation of the number of runs required is 2235.