Skip to content

Implement Energy Score (multivariate) #2

Description

@jc-macdonald

Summary

The energy score is the multivariate generalization of CRPS.

Function

Function Description
energy_score(obs::AbstractVector, fct::AbstractMatrix) Energy score from ensemble forecast samples

Algorithm

$$ \text{ES}(F, \mathbf{y}) = \mathbb{E}|\mathbf{X} - \mathbf{y}| - \frac{1}{2}\mathbb{E}|\mathbf{X} - \mathbf{X}'| $$

where norms are Euclidean. The sample estimate uses all pairwise distances in the ensemble.

References

  • Gneiting, T., & Raftery, A. E. (2007). Strictly proper scoring rules, prediction, and estimation.

Acceptance Criteria

  • Matches scoringrules (Python) on reference data
  • Reduces to CRPS for univariate case
  • Handles varying ensemble sizes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions