English

stanhf: HistFactory models in the probabilistic programming language Stan

High Energy Physics - Phenomenology 2025-09-03 v2 High Energy Physics - Experiment Data Analysis, Statistics and Probability

Abstract

In collider physics, experiments are often based on counting the numbers of events in bins of a histogram. We present a new way to build and analyze statistical models that describe these experiments, based on the probabilistic programming language Stan and the HistFactory specification. A command-line tool transpiles HistFactory models into Stan code and data files. Because Stan is an imperative language, it enables richer and more detailed modeling, as modeling choices defined in the HistFactory declarative specification can be tweaked and adapted in the Stan language. Stan was constructed with automatic differentiation, allowing modern computational algorithms for sampling and optimization.

Keywords

Cite

@article{arxiv.2503.22188,
  title  = {stanhf: HistFactory models in the probabilistic programming language Stan},
  author = {Andrew Fowlie},
  journal= {arXiv preprint arXiv:2503.22188},
  year   = {2025}
}

Comments

8 pages, see https://github.com/xhep-lab/stanhf

R2 v1 2026-06-28T22:37:42.088Z