From 252b82fbc1161778b8d9d7c02e68abe01532e68d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Terrier?= Date: Fri, 11 Oct 2019 18:05:18 +0200 Subject: [PATCH] Correct formula for `gammapy.stats.significance` --- gammapy/stats/poisson.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gammapy/stats/poisson.py b/gammapy/stats/poisson.py index c3bb6310cb..9c4c3019b4 100755 --- a/gammapy/stats/poisson.py +++ b/gammapy/stats/poisson.py @@ -168,8 +168,8 @@ def significance(n_on, mu_bkg, method="lima", n_on_min=1): It is given by the following formula: .. math:: - S_{lima} = \left[ - 2 n_{on} \log \left( \frac{n_{on}}{\mu_{bkg}} \right) - n_{on} + \mu_{bkg} + S_{lima} = \sqrt{2} \left[ + n_{on} \log \left( \frac{n_{on}}{\mu_{bkg}} \right) - n_{on} + \mu_{bkg} \right] ^ {1/2} For ``method="simple"``, the significance estimate is given by: