pyhf.utils.pvals_from_teststat_expected¶
-
pyhf.utils.
pvals_from_teststat_expected
(sqrtqmuA_v, nsigma=0)[source]¶ Computes the expected \(p\)-values CLsb, CLb and CLs for data corresponding to a given percentile of the alternate hypothesis.
- Parameters
sqrtqmuA_v (Number or Tensor) – The root of the calculated test statistic given the Asimov data, \(\sqrt{q_{\mu,A}}\)
nsigma (Number or Tensor) – The number of standard deviations of variations of the signal strength from the background only hypothesis \(\left(\mu=0\right)\)
- Returns
The \(p\)-values for the signal + background, background only, and signal only hypotheses respectivley
- Return type
Tuple of Floats