- Introduced by
- Alok Goel and Kazuhira Okumoto
- Year
- 1979
- Type
- stochastic model
- Family
- Reliability prediction
What does it do?
Software reliability models are stochastic models that describe how the failure rate of software changes as testing and operation proceed, and they are used to estimate when a required reliability level will be reached.
Goel and Okumoto (1979) proposed a nonhomogeneous Poisson process (NHPP) model in which the expected cumulative number of failures is given by a mean-value function. Teams use such models to inform release timing and the amount of remaining test effort.
The intuition behind the method
Early in testing, many faults remain and failures are frequent. As faults are found and fixed, each further test run is less likely to expose a new failure, so the observed failure intensity falls. A reliability growth model encodes this decline in a fitted curve. Given failure data up to the present, the curve can be used to estimate the expected number of failures in further testing and the point at which a target failure intensity is reached. These estimates are only as good as the assumption that future testing behaves like past testing.
History
Goel and Okumoto (1979) published a stochastic model of the software failure process based on a nonhomogeneous Poisson process, with a mean-value function for cumulative failures, and analysed actual failure data with it. Musa, Iannino and Okumoto's 1987 book, listed among the citations, is a standard reference on software reliability measurement and prediction. Test-effort-based extensions of growth models were also developed in the 1980s, including work by Yamada and colleagues. Machine learning approaches are now used alongside classical growth models, which remain widely used in safety-critical settings where interpretable models are valued.
When to use it
Use reliability growth models when failures are recorded over a period of testing with a reasonably stable test process, and the question is when testing can stop or when a reliability target will be reached. They are most relevant for safety-critical or high-availability systems, and where contracts or regulation require a stated reliability level. Do not rely on them when failure data are sparse, because predictions from very few failures are unstable. They are also a poor fit when the software or the testing strategy changes radically during the observation window, because the fitted trend then mixes several processes.
Limitations and considerations
- Choosing the model is a judgement: different candidate curves can fit the early data similarly well yet extrapolate to quite different predictions.
- Predictions assume the discovery pattern continues. A change in test coverage, team composition or code volume breaks this assumption, and the fitted curve then needs to be refitted or abandoned.
- The models describe the occurrence of failures, not safety or security. Zero observed failures do not show that hazards are absent if the conditions that trigger them were never exercised in testing.
- Testing is a controlled environment, whereas field usage profiles vary; field failure behaviour can differ from test-based predictions, and the direction of the difference depends on the product and usage profile.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives a fitted mean-value function from which the expected cumulative failures and the time to a target failure intensity can be computed, providing a quantitative basis for release timing.
- Supports forecasting of remaining failures and remaining test effort from the trend observed so far, before those failures occur.
- Allows the cost of further testing to be weighed against the reliability gain, since the same fitted curve shows how the failure intensity is expected to fall with additional testing.
- Several model families allow the curve shape to be matched to the observed discovery pattern.
Applications
- Illustrative scenario: setting test-completion criteria for avionics software, where a target on failure rate is specified and the fitted model indicates when the intensity is expected to fall below it.
- Illustrative scenario: estimating remaining test duration for an e-commerce platform by fitting an exponential growth curve to six weeks of failure data and forecasting the time to a target failure intensity.
- Illustrative scenario: checking field reliability claims for firmware in medical devices by comparing predictions with post-deployment failure observations, and using any discrepancy to adjust later product iterations.
- Illustrative scenario: informing availability expectations in telecommunications by using reliability predictions as one input to service-level discussions.
How it works
How it works
Collect failure data from testing and, where available, field operation: failure times or counts, together with the execution measure used as the time axis (calendar time, CPU hours or test cases executed). The time axis changes the shape of the fitted curve, so it must be recorded consistently.
Clean the data by resolving duplicate or ambiguous failure reports. Classify failures by severity if the reliability target is defined per severity class. Align failure times with release or test-phase boundaries so that changes in testing strategy are visible in the data.
Fit candidate models to the cumulative failure data. The primary candidate is the exponential model in its Goel-Okumoto NHPP form. Other families, such as S-shaped or test-effort-based models, can be considered when the discovery pattern is clearly not exponential. Compare goodness of fit, and use residual plots to show systematic misfit. Prefer the simpler model unless the more complex one fits materially better.
Estimate model parameters by maximum likelihood or least squares. For the Goel-Okumoto model the mean-value function is m(t) = a(1 - e^(-bt)), where a is the expected total number of failures and b the per-fault detection rate. The failure intensity is its derivative, lambda(t) = a*b*e^(-bt). Use the fitted function to predict future cumulative failures, m(t2) - m(t1). The time at which the intensity reaches a target value solves lambda(t*) = target, giving t* = ln(a*b/target)/b when a*b exceeds the target. Confidence bounds on these predictions can be obtained from the asymptotic distribution of the maximum-likelihood estimates or by bootstrap; they reflect parameter uncertainty only, not uncertainty about the choice of model.
Report predictions with their uncertainty and state the assumption behind them: that the testing regime continues much as before. Give stakeholders the expected failures over the next testing interval and the estimated time to the target reliability. Treat the result as one input to the release decision, not as a certification of the software.
Common pitfalls
- Fitting many candidate models to sparse data and selecting the best fit can capitalise on noise rather than on the underlying trend.
- Extrapolating far beyond the tested range. Predictions for horizons well past the observed data are much less reliable than predictions close to it.
- Treating fitted parameters as constant across releases or test phases. Refactoring, changes in test strategy or staffing alter the rate at which failures are discovered.
- Reading zero observed failures as zero defects. Faults that the test profile never exercises can remain in the code and trigger in the field.
Frequently asked questions
Which software reliability model should I choose for my project?
Start with the simplest candidate, the exponential (Goel-Okumoto) model, and check whether it fits the cumulative failure data. If it fits poorly, consider other growth-model families such as S-shaped or logarithmic Poisson models. Plot residuals to see how the fit fails. No model is universally best, and the right choice depends on the discovery pattern of your testing. Increase model complexity only when a simpler model clearly underfits.
How much failure data do I need before model predictions are reliable?
There is no universal threshold. Predictions from very few failures are unstable because parameter uncertainty is large, and the uncertainty should always be reported. Predictions generally stabilise as data accumulate, and it helps to observe failures across more than one testing phase, such as unit and system testing, and to check how much the fitted parameters change as new data are added.
Can I use reliability models to predict field failures from test data?
With caution. Testing is a controlled environment, whereas field usage is variable, so field failure behaviour can differ from test-based predictions. Treat test-based predictions as rough estimates rather than firm ones. If calibration data from similar released products are available, use them to adjust the predictions for the difference in environment.
What if my failure data doesn't fit any standard model?
Investigate the cause first. A poor fit may signal a change in test strategy or coverage, major code refactoring, a change in team experience, or data quality problems. Segment the data by phase and fit separate models to each segment. Mixture models that combine simple models can also be considered. Nonparametric or Bayesian approaches are a last resort, and they come with greater prediction uncertainty.
Related methods
Sources
Goel, A. L., & Okumoto, K. (1979). Time-dependent error-detection rate model for software reliability and other performance measures. IEEE Transactions on Reliability, 28(3), 206–211.
Open DOI referenceMusa, J. D., Iannino, A., & Okumoto, K. (1987). Software Reliability: Measurement, Prediction, Application. McGraw-Hill.
Open publication referenceYamada, S., Ohera, H., & Narihisa, H. (1984). Software reliability growth with a Weibull test-effort: A model and application. IEEE Transactions on Reliability, 33(2), 117–123.
Open publication reference