scoringrules.logs_gev#
- scoringrules.logs_gev(obs: ArrayLike, shape: ArrayLike, location: ArrayLike = 0.0, scale: ArrayLike = 1.0, *, backend: Backend = None) ArrayLike#
Compute the logarithmic score (LS) for the generalised extreme value (GEV) distribution.
This score is equivalent to the negative log likelihood of the GEV distribution
- Parameters:
- obsarray_like
The observed values.
- shapearray_like
Shape parameter of the forecast GEV distribution.
- locationarray_like
Location parameter of the forecast GEV distribution.
- scalearray_like
Scale parameter of the forecast GEV 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 GEV(shape, location, scale).
Examples
>>> import scoringrules as sr >>> sr.logs_gev(0.3, 0.1)