Skip to content

Commit

Permalink
Correct formula for gammapy.stats.significance
Browse files Browse the repository at this point in the history
  • Loading branch information
registerrier committed Oct 11, 2019
1 parent 69a925c commit 252b82f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gammapy/stats/poisson.py
Expand Up @@ -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:
Expand Down

0 comments on commit 252b82f

Please sign in to comment.