scoringrules.logs_uniform

Contents

scoringrules.logs_uniform#

scoringrules.logs_uniform(obs: ArrayLike, min: ArrayLike, max: ArrayLike, *, backend: Backend = None) ArrayLike#

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

This score is equivalent to the negative log likelihood of the uniform distribution.

Parameters:
obsarray_like

The observed values.

minarray_like

Lower bound of the forecast uniform distribution.

maxarray_like

Upper bound of the forecast uniform distribution.

Returns:
scorearray_like

The LS between U(min, max, lmass, umass) and obs.

Examples

>>> import scoringrules as sr
>>> sr.logs_uniform(0.4, 0.0, 1.0)