Discrete#

class Discrete[source]#

Bases: object

static ChiSquare(predicted, observed, **kwargs)[source]#

Compute the Chi-Square statistic.

Parameters:
predictedarray_like

The predicted values.

observedarray_like

The observed values.

Returns:
float

The Chi-Square statistic.

static G2(predicted, observed, **kwargs)[source]#

Compute the G2 statistic.

Parameters:
predictedarray_like

The predicted values.

observedarray_like

The observed values.

Returns:
float

The G2 statistic.