English

This Is the Moment for Probabilistic Loops

Programming Languages 2022-12-21 v2

Abstract

We present a novel static analysis technique to derive higher moments for program variables for a large class of probabilistic loops with potentially uncountable state spaces. Our approach is fully automatic, meaning it does not rely on externally provided invariants or templates. We employ algebraic techniques based on linear recurrences and introduce program transformations to simplify probabilistic programs while preserving their statistical properties. We develop power reduction techniques to further simplify the polynomial arithmetic of probabilistic programs and define the theory of moment-computable probabilistic loops for which higher moments can precisely be computed. Our work has applications towards recovering probability distributions of random variables and computing tail probabilities. The empirical evaluation of our results demonstrates the applicability of our work on many challenging examples.

Keywords

Cite

@article{arxiv.2204.07185,
  title  = {This Is the Moment for Probabilistic Loops},
  author = {Marcel Moosbrugger and Miroslav Stankovič and Ezio Bartocci and Laura Kovács},
  journal= {arXiv preprint arXiv:2204.07185},
  year   = {2022}
}

Comments

Published at OOPSLA 2022

R2 v1 2026-06-24T10:48:36.970Z