Statistical Model Checking Beyond Means: Quantiles, CVaR, and the DKW Inequality (extended version)

Carlos E. Budde, Arnd Hartmanns, Tobias Meggendorfer, Maximilian Weininger, Patrick WienhöftarXiv 2025

TL;DR

This paper expands Statistical Model Checking (SMC) beyond simple averages to estimate risk-aware metrics like quantiles, Conditional Value-at-Risk (CVaR), and entropic risk. By leveraging the Dvoretzky-Kiefer-Wolfowitz-Massart (DKW) inequality, the authors provide statistical confidence bounds over a system's entire cumulative distribution function. This enables simultaneous multi-objective verification from a single set of simulation samples without diluting the confidence budget.

What Problem Does This Paper Address?

Statistical Model Checking (SMC) is a highly scalable, simulation-based approach used to verify probabilistic systems (such as network protocols or cyber-physical systems) by sampling random execution paths. However, traditional SMC is heavily limited: it almost exclusively estimates means—such as expected execution times or reachability probabilities—using standard statistical tools like Hoeffding's inequality or Clopper-Pearson intervals.

In real-world engineering, averages rarely tell the whole story. System designers often care about worst-case scenarios and tail risks: What is the 99th percentile of network latency? What is the expected system behavior within the worst 5% of outcomes? While exact Probabilistic Model Checking (PMC) can compute these risk metrics, it suffers from the "state space explosion" problem, making it unusable for massive systems. This paper bridges the gap, bringing risk-aware properties to the highly scalable world of simulation-based verification.

Methods

The core innovation of this paper is the application of the Dvoretzky-Kiefer-Wolfowitz-Massart (DKW) inequality to verification. Instead of calculating a confidence interval for a single point or a mean value, the DKW inequality constructs a simultaneous confidence band around the entire unknown cumulative distribution function (CDF) from $k$ random samples.

Example of a DTMC model alongside its probability distribution and its CDF enveloped by a gray DKW confidence band.

By bounding the entire CDF with an upper and lower envelope, the authors mathematically derive sound confidence intervals for several non-mean properties:

  • Quantiles (Value-at-Risk): The smallest value where the probability of an outcome reaches a threshold $t$.
  • Conditional Value-at-Risk (CVaR): The expected value given that the outcome falls into the worst $t$-tail of the distribution.
  • Entropic Risk: An exponentially weighted risk measure that penalizes high-reward outliers.

The authors also introduce Sequential-DKW. While standard DKW assumes a fixed sample size, Sequential-DKW safely samples incrementally until a desired precision is reached. It splits the confidence budget ($\delta$) across sampling stages to avoid the "optional stopping" problem, which normally invalidates statistical guarantees when checking bounds repeatedly.

Datasets

The methods were evaluated using three diverse benchmarks from the standard Quantitative Verification Benchmark Set (QVBS), chosen for their distinct CDF characteristics:

  1. coupon: A Discrete-Time Markov Chain (DTMC) with 17 billion states. This represents a massive state space where exact PMC is impossible, making SMC the only viable option.
  2. leader_sync: A DTMC with 4,244 states, featuring highly discrete, step-like reward distributions.
  3. embedded: A Continuous-Time Markov Chain (CTMC) with 8,548 states, yielding a smooth, continuous distribution of danger times.

Key Insights and Ideas

  • The Global Advantage of the CDF: Bounding the entire CDF simultaneously via DKW is a paradigm shift for SMC. It allows verification tools to handle non-linear and non-smooth aggregators (like quantiles) that traditional pointwise estimation methods cannot touch.
  • Multi-Objective Efficiency: Because the DKW guarantee applies globally to the CDF, engineers get a "buy one, get many free" deal. You can compute the mean, multiple percentiles, and CVaR all from the exact same simulation runs without needing to split or dilute your statistical confidence budget.
  • The Discreteness Hurdle: Quantiles are inherently discontinuous with respect to small changes in discrete distributions. The authors show that while lower bounds for quantiles are always effective, tight two-sided bounds can only be guaranteed if the underlying distribution is continuous at the target quantile.

Key Results

The authors implemented their framework into modes, the statistical model checker within the widely used Modest Toolset.

  • For the 17-billion-state coupon model, modes successfully computed tight, sound two-sided confidence intervals for the 0.3-quantile and $\text{CVaR}_{0.3}$ using just 100 to 1,000 samples (e.g., a $\text{CVaR}_{0.3}$ interval of $[7.28, 9.21]$ at $k=1000$).
  • The computational overhead required to collect and sort samples for the DKW intervals was found to be completely negligible compared to the simulation time itself.
  • The tool can now export empirical CDFs alongside their valid DKW confidence bands for visual analysis, as shown below:
DKW CDF confidence bands obtained on the example benchmarks (`coupon`, `embedded`, `leader_sync`).

Limitations and Future Work

  • Quantile Effectiveness: As noted, two-sided effective bounds for quantiles fail on purely discrete distributions due to mathematical discontinuity issues.
  • Syntactic Lower Bounds: For models with unbounded variables (like embedded), the tool's automated syntactic analysis sometimes fails to find a valid lower bound for expectations and CVaR, meaning it can only provide quantile bounds in those specific cases.
  • Future Extensions: The authors plan to extend this framework to other complex risk metrics, such as variance, variance-penalized expected payoffs, and cumulative prospect theory.

Summary updated

BibTeX
@misc{budde2025statistical,
  author = {Carlos E. Budde and Arnd Hartmanns and Tobias Meggendorfer and Maximilian Weininger and Patrick Wienhöft},
  title = {{Statistical Model Checking Beyond Means: Quantiles, CVaR, and the DKW Inequality (extended version)}},
  year = {2025},
  eprint = {2509.11859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.11859},
}
Figure