API¶
Top-Level¶
NumPy backend for pyhf |
|
NumPy backend for pyhf |
|
Get the current backend and the associated optimizer |
|
|
Probability Distribution Functions (PDFs)¶
The Normal distribution with mean |
|
The Poisson distribution with rate parameter |
|
A probability density corresponding to the joint distribution of a batch of identically distributed random variables. |
|
A probability density corresponding to the joint distribution of multiple non-identical component distributions |
Making Models from PDFs¶
|
|
Backends¶
The computational backends that pyhf
provides interfacing for the vector-based calculations.
NumPy backend for pyhf |
|
|
|
|
Optimizers¶
|
|
|
|
|
Modifiers¶
Interpolators¶
The piecewise-linear interpolation strategy. |
|
The piecewise-exponential interpolation strategy. |
|
The quadratic interpolation and linear extrapolation strategy. |
|
The polynomial interpolation and exponential extrapolation strategy. |
|
The piecewise-linear interpolation strategy, with polynomial at \(\left|a\right| < 1\) |
Exceptions¶
Various exceptions, apart from standard python exceptions, that are raised from using the pyhf
API.
InvalidInterpCode is raised when an invalid/unimplemented interpolation code is requested. |
|
InvalidModifier is raised when an invalid modifier is requested. |
Utilities¶
|
|
|
|
|
The \(p\)-values for signal strength \(\mu\) and Asimov strength \(\mu'\) as defined in Equations (59) and (57) of `arXiv:1007.1727`_ |
|
Computes the expected \(p\)-values CLsb, CLb and CLs for data corresponding to a given percentile of the alternate hypothesis. |
|
The test statistic, \(q_{\mu}\), for establishing an upper limit on the strength parameter, \(\mu\), as defiend in Equation (14) in `arXiv:1007.1727`_ . |
|
Computes \(p\)-values and test statistics for a single value of the parameter of interest |