API reference#
This page provides a summary of scoringrules’ API. All functions are available in the top-level namespace of the package and are here organized by category.
Ensemble forecasts#
Univariate#
|
Estimate the Continuous Ranked Probability Score (CRPS) for a finite ensemble. |
|
Estimate the threshold-weighted CRPS (twCRPS) for a finite ensemble. |
|
Estimate the outcome-weighted CRPS (owCRPS) for a finite ensemble. |
|
Estimate the vertically re-scaled CRPS (vrCRPS) for a finite ensemble. |
|
Compute the univariate Gaussian Kernel Score (GKS) for a finite ensemble. |
|
Compute the Threshold-Weighted univariate Gaussian Kernel Score (GKS) for a finite ensemble. |
|
Compute the univariate Outcome-Weighted Gaussian Kernel Score (owGKS) for a finite ensemble. |
|
Estimate the Vertically Re-scaled Gaussian Kernel Score (vrGKS) for a finite ensemble. |
|
Approximate the CRPS from quantile predictions via the Pinball Loss. |
|
Compute the Dawid-Sebastiani-Score for a finite univariate ensemble. |
Multivariate#
|
Compute the Energy Score for a finite multivariate ensemble. |
|
Compute the Outcome-Weighted Energy Score (owES) for a finite multivariate ensemble. |
|
Compute the Threshold-Weighted Energy Score (twES) for a finite multivariate ensemble. |
|
Compute the Vertically Re-scaled Energy Score (vrES) for a finite multivariate ensemble. |
|
Compute the Variogram Score for a finite multivariate ensemble. |
|
Compute the Outcome-Weighted Variogram Score (owVS) for a finite multivariate ensemble. |
|
Compute the Threshold-Weighted Variogram Score (twVS) for a finite multivariate ensemble. |
|
Compute the Vertically Re-scaled Variogram Score (vrVS) for a finite multivariate ensemble. |
|
Compute the multivariate Gaussian Kernel Score (GKS) for a finite ensemble. |
|
Compute the Threshold-Weighted Gaussian Kernel Score (twGKS) for a finite multivariate ensemble. |
|
Compute the multivariate Outcome-Weighted Gaussian Kernel Score (owGKS) for a finite ensemble. |
|
Compute the Vertically Re-scaled Gaussian Kernel Score (vrGKS) for a finite multivariate ensemble. |
|
Compute the Dawid-Sebastiani-Score for a finite multivariate ensemble. |
Parametric distributions forecasts#
|
Compute the closed form of the CRPS for the beta distribution. |
|
Compute the closed form of the CRPS for the binomial distribution. |
|
Compute the closed form of the CRPS for the exponential distribution. |
|
Compute the closed form of the CRPS for the standard exponential distribution with a point mass at the boundary. |
|
Compute the closed form of the CRPS for the two-piece exponential distribution. |
|
Compute the closed form of the CRPS for the gamma distribution. |
|
Compute the closed form of the CRPS for the censored, shifted gamma distribution. |
|
Compute the closed form of the CRPS for the generalised extreme value (GEV) distribution. |
|
Compute the closed form of the CRPS for the generalised pareto distribution (GPD). |
|
Compute the closed form of the CRPS for the generalised truncated and censored logistic distribution. |
|
Compute the closed form of the CRPS for the truncated logistic distribution. |
|
Compute the closed form of the CRPS for the censored logistic distribution. |
|
Compute the closed form of the CRPS for the generalised truncated and censored normal distribution. |
|
Compute the closed form of the CRPS for the truncated normal distribution. |
|
Compute the closed form of the CRPS for the censored normal distribution. |
|
Compute the closed form of the CRPS for the generalised truncated and censored t distribution. |
|
Compute the closed form of the CRPS for the truncated t distribution. |
|
Compute the closed form of the CRPS for the censored t distribution. |
|
Compute the closed form of the CRPS for the hypergeometric distribution. |
|
Compute the closed form of the CRPS for the laplace distribution. |
|
Compute the closed form of the CRPS for the logistic distribution. |
|
Compute the closed form of the CRPS for the log-Laplace distribution. |
|
Compute the closed form of the CRPS for the log-logistic distribution. |
|
Compute the closed form of the CRPS for the lognormal distribution. |
|
Compute the closed form of the CRPS for a mixture of normal distributions. |
|
Compute the closed form of the CRPS for the negative binomial distribution. |
|
Compute the closed form of the CRPS for the normal distribution. |
|
Compute the closed form of the CRPS for the two-piece normal distribution. |
|
Compute the closed form of the CRPS for the Poisson distribution. |
|
Approximate the CRPS from quantile predictions via the Pinball Loss. |
|
Compute the closed form of the CRPS for the student's t distribution. |
|
Compute the closed form of the CRPS for the uniform distribution. |
|
Compute the logarithmic score (LS) for the beta distribution. |
|
Compute the logarithmic score (LS) for the binomial distribution. |
|
Estimate the Logarithmic score for a finite ensemble via kernel density estimation. |
|
Compute the logarithmic score (LS) for the exponential distribution. |
|
Compute the logarithmic score (LS) for the exponential distribution with location and scale parameters. |
|
Compute the logarithmic score (LS) for the two-piece exponential distribution. |
|
Compute the logarithmic score (LS) for the gamma distribution. |
|
Compute the logarithmic score (LS) for the generalised extreme value (GEV) distribution. |
|
Compute the logarithmic score (LS) for the generalised Pareto distribution (GPD). |
|
Compute the logarithmic score (LS) for the hypergeometric distribution. |
|
Compute the logarithmic score (LS) for the Laplace distribution. |
|
Compute the logarithmic score (LS) for the log-Laplace distribution. |
|
Compute the logarithmic score (LS) for the logistic distribution. |
|
Compute the logarithmic score (LS) for the log-logistic distribution. |
|
Compute the logarithmic score (LS) for the log-normal distribution. |
|
Compute the logarithmic score for a mixture of normal distributions. |
|
Compute the logarithmic score (LS) for the negative binomial distribution. |
|
Compute the logarithmic score (LS) for the normal distribution. |
|
Compute the logarithmic score (LS) for the two-piece normal distribution. |
|
Compute the logarithmic score (LS) for the Poisson distribution. |
|
Compute the logarithmic score (LS) for the Student's t distribution. |
|
Compute the logarithmic score (LS) for the truncated logistic distribution. |
|
Compute the logarithmic score (LS) for the truncated normal distribution. |
|
Compute the logarithmic score (LS) for the truncated Student's t distribution. |
|
Compute the logarithmic score (LS) for the uniform distribution. |
Consistent scoring functions#
|
Compute the Interval Score or Winkler Score. |
|
Compute the weighted interval score (WIS). |
Categorical forecasts#
|
Brier Score |
|
(Discrete) Ranked Probability Score (RPS) |
|
Compute the Logarithmic Score (LS) for probability forecasts for binary outcomes. |
|
Compute the (Discrete) Ranked Logarithmic Score (RLS). |
Backends#
|