Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the energy score scoring rule for comparing multivariate distributions #3362

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

BenZickel
Copy link
Contributor

Background

In order to compare a predicted univariate distribution to a true univariate distribution Pyro already has pyro.ops.stats.crps_empirical which implements the Continuous Ranked Probability Score (CRPS) scoring rule for univariate distributions.

For multivariate distributions we can only use the CRPS to compare marginals but not the full distribution, and therefore two predicted distributions with the same marginals but different full distribution will have the same per marginal CRPS score relative to the true distribution.

Proposal

The energy score scoring rule implemented in pyro.ops.stats.energy_score_empirical can be used to compare a predicted multivariate distribution to a true multivariate distribution, such that the score is minimized only if the full predicted multivariate distribution is equal to the full true multivariate distribution, i.e. it is not sufficient for the marginals of the predicted and true distributions to be the same in order to minimize the score (see more details here).

Copy link
Member

@fritzo fritzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@fritzo fritzo merged commit c6cd2a1 into pyro-ppl:dev Apr 23, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants