spey.hypothesis_testing.distributions.EmpricTestStatisticsDistribution

spey.hypothesis_testing.distributions.EmpricTestStatisticsDistribution#

class spey.hypothesis_testing.distributions.EmpricTestStatisticsDistribution(samples: ndarray)[source]#

Create emprical distribution. The p-values are computed from sampled distribution.

Parameters:

samples (np.ndarray) – input samples

__init__(samples: ndarray) None[source]#

Methods

__init__(samples)

expected_value(nsigma)

Compute expected value of the test statistic with respec to the level of standard deviations

pvalue(value)

Compute the p-value for a given test statistic.

Attributes

samples