PenalisedLikelihoods#

class PenalisedLikelihoods[source]#

Bases: object

static BIC(likelihood, n, k, **kwargs)[source]#

Calculate the Bayesian Information Criterion (BIC).

Parameters:
likelihoodfloat

The log likelihood value.

nint

The number of data points.

kint

The number of parameters.

Returns:
float

The BIC value.

static AIC(likelihood, n, k, **kwargs)[source]#

Calculate the Akaike Information Criterion (AIC).

Parameters:
likelihoodfloat

The log likelihood value.

nint

The number of data points.

kint

The number of parameters.

Returns:
float

The AIC value.