solarforecastarbiter.metrics.deterministic.mean_bias

solarforecastarbiter.metrics.deterministic.mean_bias(obs, fx, error_fnc=<function error>)[source]

Mean bias error (MBE).

\[\text{MBE} = 1/n \sum_{i=1}^n (\text{fx}_i - \text{obs}_i)\]
Parameters:
  • obs ((n,) array-like) – Observed values.
  • fx ((n,) array-like) – Forecasted values.
  • error_fnc (function) – A function that returns the error, default fx - obs. First argument is obs, second argument is fx.
Returns:

mbe (float) – The MBE of the forecast.