HistFactory implementation for fitting/limit-setting/interval estimation
Top 92.1% on sourcepulse
pyhf provides a pure-Python implementation of the HistFactory statistical model for multi-bin histogram-based analyses, enabling statistical inference and limit setting outside of the traditional ROOT/RooFit framework. It targets physicists and researchers in high-energy physics and related fields, offering modern computational features like autodifferentiation and GPU acceleration via backends such as PyTorch and TensorFlow.
How It Works
pyhf implements the HistFactory statistical model, which defines probability density functions (PDFs) for histogram-based measurements. It leverages computational graph libraries (NumPy, PyTorch, TensorFlow, JAX) for efficient computation and automatic differentiation, enabling advanced statistical inference techniques like hypothesis testing and interval estimation based on asymptotic formulas. This approach allows for flexible model definition and leverages modern hardware for faster analysis.
Quick Start & Requirements
python -m pip install pyhf
python -m pip install pyhf[backends]
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
2 weeks ago
1 day