stats - Statistics#

gammapy.stats Package#

Statistics.

Functions#

cash(n_on, mu_on[, truncation_value])

Cash statistic, for Poisson data.

cash_sum_cython

Summed cash fit statistics.

cstat(n_on, mu_on[, truncation_value])

C statistic, for Poisson data.

f_cash_root_cython

Function to find root of.

get_wstat_gof_terms(n_on, n_off)

Goodness of fit terms for WSTAT.

get_wstat_mu_bkg(n_on, n_off, alpha, mu_sig)

Background estimate mu_bkg for WSTAT.

norm_bounds_cython

Compute bounds for the root of _f_cash_root_cython.

wstat(n_on, n_off, alpha, mu_sig[, mu_bkg, ...])

W statistic, for Poisson data with Poisson background.

Classes#

CashCountsStatistic(n_on, mu_bkg)

Class to compute statistics (significance, asymmetric errors , ul) for Poisson distributed variable with known background.

WStatCountsStatistic(n_on, n_off, alpha[, ...])

Class to compute statistics (significance, asymmetric errors , ul) for Poisson distributed variable with unknown background.