Scoring functions {murphydiagram}R Documentation

Scoring functions

Description

Implementations of some scoring functions discussed in the paper.

Usage

extremal_score(x, y, theta, functional = "expectile", alpha = 0.5)

apl_score(x, y, alpha = 0.5)
ase_score(x, y, alpha = 0.5)

Arguments

x

Numeric vector of forecasts

y

Numeric vector of realizations (same length as x)

theta

Threshold parameter for extremal score (must be a numeric scalar)

functional

String, either "expectile" or "quantile"

alpha

Level of the quantile or expectile, must be a numeric scalar in the (0,1) interval

Value

All functions return a vector of scores (same length as x and y). Smaller scores correspond to better forecasts.

extremal_score is the scoring function defined in Equations (10) and (12) of Ehm et al (2016). apl_score is the asymmetric piecewise scoring function for quantiles, see Equation (6) in Ehm et al (2016). ase_score is the asymmetric squared error for expectiles, see Equation (8) in Ehm et al (2016).

Author(s)

Fabian Krueger

References

Ehm, W., Gneiting, T., Jordan, A. and Krueger, F. (2016): Of Quantiles and Expectiles: Consistent Scoring Functions, Choquet Representations, and Forecast Rankings. Journal of the Royal Statistical Society (Series B) 78, 1-29. doi: 10.1111/rssb.12154 (open access).


[Package murphydiagram version 0.12.2 Index]