scoringrules.logs_logistic

Contents

scoringrules.logs_logistic#

scoringrules.logs_logistic(obs: ArrayLike, mu: ArrayLike, sigma: ArrayLike, *, backend: Backend = None) ArrayLike#

Compute the logarithmic score (LS) for the logistic distribution.

This score is equivalent to the negative log likelihood of the logistic distribution

Parameters:
obsarray_like

Observed values.

muarray_like

Location parameter of the forecast logistic distribution.

sigmaarray_like

Scale parameter of the forecast logistic distribution.

Returns:
scorearray_like

The LS for the Logistic(mu, sigma) forecasts given the observations.

Examples

>>> import scoringrules as sr
>>> sr.logs_logistic(0.0, 0.4, 0.1)