scoringrules.logs_exponential2

scoringrules.logs_exponential2#

scoringrules.logs_exponential2(obs: ArrayLike, location: ArrayLike = 0.0, scale: ArrayLike = 1.0, *, backend: Backend = None) ArrayLike#

Compute the logarithmic score (LS) for the exponential distribution with location and scale parameters.

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

Parameters:
obsarray_like

The observed values.

locationarray_like

Location parameter of the forecast exponential distribution.

scalearray_like

Scale parameter of the forecast exponential distribution.

backendstr

The name of the backend used for computations. Defaults to ‘numba’ if available, else ‘numpy’.

Returns:
scorearray_like

The LS between obs and Exp2(location, scale).

Examples

>>> import scoringrules as sr
>>> sr.logs_exponential2(0.2, 0.0, 1.0)