pyhf.infer.calculators.AsymptoticCalculator

class pyhf.infer.calculators.AsymptoticCalculator(data, pdf, init_pars=None, par_bounds=None, fixed_params=None, qtilde=False)[source]

The Asymptotic Calculator.

__init__(data, pdf, init_pars=None, par_bounds=None, fixed_params=None, qtilde=False)[source]

Asymptotic Calculator.

Parameters
  • data (tensor) – The observed data.

  • pdf (Model) – The statistical model adhering to the schema model.json.

  • init_pars (tensor) – The initial parameter values to be used for fitting.

  • par_bounds (tensor) – The parameter value bounds to be used for fitting.

  • fixed_params (tensor) – Whether to fix the parameter to the init_pars value during minimization

  • qtilde (bool) – Whether to use qtilde as the test statistic.

Returns

The calculator for asymptotic quantities.

Return type

AsymptoticCalculator

Methods

__init__(data, pdf[, init_pars, par_bounds, …])

Asymptotic Calculator.

distributions(poi_test)

Probability Distributions of the test statistic value under the signal + background and and background-only hypothesis.

teststatistic(poi_test)

Compute the test statistic for the observed data under the studied model.