solarforecastarbiter.metrics.event.probability_of_false_detection

solarforecastarbiter.metrics.event.probability_of_false_detection(obs, fx)[source]

Probability of False Detection (POFD).

\[\text{POFD} = \text{FP} / (\text{FP} + \text{TN})\]
Parameters:
  • obs ((n,) array-like) – Observed event values (True=event, False=no event).
  • fx ((n,) array-like) – Forecasted event values (True=event, False=no event).
Returns:

pofd (float) – The POFD of the forecast.

Raises:

RuntimeError – If there is no forecast or observation timeseries data, or the forecast and observation timeseries data do not have the same length.