Learn R Programming

verification (version 1.02)

brier: Brier Score

Description

Calculates verification statistics for probabilistic forecasts of binary events.

Usage

brier(obs, pred, baseline, thresholds = seq(0,1,0.1), ...)

Arguments

obs
Vector of binary observations
pred
Vector of probablistic predictions [0,1]
baseline
Vector of climatological (no - skill) forecasts. If this is null, a sample climatology will be calculated.
thresholds
Values used to bin the forecasts. By default the bins are {[0,0.1), [0.1, 0.2), ....} .
...
Optional arguments

Value

  • baseline.tfLogical indicator of whether climatology was provided.
  • bsBrier score
  • bs.baselineBrier Score for climatology
  • ssSkill score
  • bs.reliabilityReliability portion of Brier score.
  • bs.resolutionResolution component of Brier score.
  • bs.uncertUncertainty component of Brier score.
  • y.iForecast bins -- described as the center value of the bins.
  • obar.iObservation bins -- described as the center value of the bins.
  • prob.yProportion of time using each forecast
  • obarForecast based on climatology or average sample observations.

References

Wilks, D. S. (1995) Statistical Methods in the Atmospheric Sciences Chapter 7, San Diego: Academic Press.

Examples

Run this code
#  probabilistic/ binary example

pred<- runif(100)
obs<- round(runif(100))

brier(obs, pred)

Run the code above in your browser using DataLab