ts_to_sigma#
- gammapy.stats.ts_to_sigma(ts, df=1, ts_asimov=0)[source]#
Convert delta ts to number of sigma.
Assumes that the TS follows a chi2 distribution according to Wilks theorem [1]. This is valid only if:
the two hypotheses tested can be defined in the same parameters space
the true value is not at the boundary of this parameters space.
- Parameters:
- tsfloat
Test statistic value.
- dfint, optional
Number of degree of freedom. Default is 1.
- ts_asimovfloat, optional
TS value in the Asimov dataset. Should only be used for sensitivity computations. Default is 0. Deprecated since v2.2.
- Returns
- ——-
- n_sigmafloat
Significance in number of sigma.
References
[1]Wilks theorem: https://en.wikipedia.org/wiki/Wilks%27_theorem