The Unnecessity of Assuming Statistically Independent Tests in Bayesian Software Reliability Assessments

Kizito Salako, Xingyu Zhao

Introduction

Reliability assessments for safety-critical software, such as nuclear protection systems, often rely on "zero-failure" testing data. Traditional Bayesian methods convert this data into a probability of failure on demand (pfd) by assuming tests are independent and identically distributed (i.i.d.). However, this assumption is frequently a "leap of faith." In reality, software failures often cluster, meaning the i.i.d. assumption can lead to dangerously optimistic safety claims. This paper introduces a Conservative Bayesian Inference (CBI) framework that formally incorporates doubt regarding test independence to provide more robust reliability bounds.

The Klotz Model and the Problem of Independence

To move beyond the standard Bernoulli process, the authors employ the Klotz Model, a stationary Markov process characterized by a dependence parameter ($\lambda$). When $\lambda$ equals the pfd ($x$), the model simplifies to the i.i.d. case. Deviations in $\lambda$ represent positive or negative correlations between successive tests.

The Klotz Model represented as a stationary Markov process with states Failure (1) and Success (0).

In high-stakes environments, ignoring potential correlations is not just a simplification; it is an optimistic bias. If failures cluster (positive correlation), a sequence of successes might not be as representative of global reliability as an i.i.d. model suggests.

Conservative Bayesian Inference (CBI) Framework

A significant hurdle in Bayesian analysis is the elicitation of a precise "prior distribution" from experts. The CBI approach mitigates this by allowing assessors to provide "Prior Knowledge" (PK) as constraints rather than full distributions. These constraints typically represent the degree of "doubt" an expert has regarding the i.i.d. assumption.

Visualization of Prior Knowledge regions in the parameter space defined by pfd (x) and the dependence parameter (lambda).

The researchers derived a theorem to identify the "worst-case" prior distribution consistent with these constraints. This ensures that the resulting posterior confidence bound is a conservative lower limit on the system's reliability, preventing overconfidence.

Key Insights: The Paradox of Success

The most counterintuitive finding is that under the possibility of positive correlation, observing more successes can eventually decrease confidence in the software's reliability. This occurs because a skeptical model may interpret an excessive number of successes as evidence that the tests are "too easy" or confined to a "safe" region of the input space, rather than proving the system is robust across all demands.

Furthermore, the study found that while positive correlation (clustering) significantly impacts reliability claims, negative correlation has negligible effect when no failures are observed. This highlights that the primary risk to statistical validity in software testing is the clustering of failures.

Conclusion and Future Work

The CBI framework provides a mathematically rigorous way to quantify skepticism in software reliability. By treating the i.i.d. assumption as an optimistic boundary rather than a default, engineers can produce safer, more realistic assessments. Future work aims to extend this model to non-stationary environments and Machine Learning components, where data correlation is a pervasive challenge.

Summary updated

BibTeX
@article{salako2023unnecessity,
  author = {Kizito Salako and Xingyu Zhao},
  title = {{The Unnecessity of Assuming Statistically Independent Tests in Bayesian Software Reliability Assessments}},
  journal = {IEEE Trans. Software Eng.},
  year = {2023},
  doi = {10.1109/tse.2022.3233802},
}
Figure