solarforecastarbiter.metrics.probabilistic.sharpness

solarforecastarbiter.metrics.probabilistic.sharpness(fx_lower, fx_upper)[source]

Sharpness (SH).

SH = 1/n sum_{i=1}^n (f_{u,i} - f_{l,i})

where n is the total number of forecasts, f_{u,i} is the upper prediction interval value and f_{l,i} is the lower prediction interval value for sample i.

Parameters:
  • fx_lower ((n,) array_like) – The lower prediction interval values (physical units).
  • fx_upper ((n,) array_like) – The upper prediction interval values (physical units).
Returns:

SH (float) – The sharpness (physical units), where smaller sharpness values indicate “tighter” prediction intervals.