nectarchain.utils.utils.Statistics#

class Statistics[source]#

Bases: object

Statistical utility functions.

Methods

chi2_pvalue

Compute the p-value from a chi-squared distribution.

static chi2_pvalue(ndof: int, likelihood: float)[source]#

Compute the p-value from a chi-squared distribution.

Parameters:
ndofint

Number of degrees of freedom.

likelihoodfloat

The likelihood value.

Returns:
float

The p-value.