Skip to contents

Mean of obs - pred. Positive values mean the model under-predicts suitability on average and negative values mean it over-predicts. Values closer to 0 are better.

Usage

bias_score(obs, pred)

Arguments

obs

Numeric vector of observations (1 = presence, 0 = absence).

pred

Numeric vector of predicted suitability.

Details

Limits. With background points, which include unrecorded presences, a negative bias is expected and does not by itself mean over-prediction.

References

Konowalik, K., Nosol, A. (2021) Evaluation metrics and validation of presence-only species distribution models based on distributional maps with varying coverage. Scientific Reports 11, 1482. doi:10.1038/s41598-020-80062-1

Examples

bias_score(c(1, 1, 0, 0), c(0.9, 0.6, 0.7, 0.1))
#> [1] -0.075