SolarArbiter / solarforecastarbiter-core

Core data gathering, validation, processing, and reporting package for the Solar Forecast Arbiter
https://solarforecastarbiter-core.readthedocs.io
MIT License
33 stars 21 forks source link

probabilistic forecast metrics: add quantile score #520

Closed dplarson closed 4 years ago

dplarson commented 4 years ago

This issue is to discuss adding the quantile score to the list of probabilistic forecast metrics.

Given a set of observations (obs_1, obs_2, ..., obs_n), forecasts (fx_1, fx_2, ..., fx_n}), and corresponding forecast probabilities (p_1, p_2, ..., p_n), the quantile score is defined as:

where 1{obs_i >= fx_i} an indicator function (1 if obs_i >= fx_i, 0 otherwise).

The quantile score is similar to the Brier Score (1/n * sum_{i=1}^n (p_i - 1{obs_i >= fx_i})^2), but where the Brier Score is unitless (values between [0, 1], the quantile score returns the same units as the observations (e.g. power in MW, then quantile score in MW).

Here's an arbitrary example to illustrate:

Arguments in favor of adding quantile score:

Arguments against adding the quantile score:

Attached is the paper from Koenker and Bassett (1978) that introduced quantile regression and a more recent paper from Bouallegue, Pinson and Friederichs (2015) that adds additional discussion of the quantile score.

Koenker and Bassett (1978): koenker-bassett.pdf

Bouallegue, Pinson and Friederichs (2015): qj.2624.pdf

wholmgren commented 4 years ago

Thanks for the references. Pros outweigh the con. Also has a nice connect to the cost/loss framework. Do we also need a Quantile Skill Score?

dplarson commented 4 years ago

Adding Quantile Skill Score also makes sense.

As a next step, I'll open a PR to add Quantile Score and Quantile Skill Score. I expect the PR will be primarily additions to solarforecastarbiter.metrics.probabilistic, but I'll also check that the report code works with the new metrics.