BrierScoreCalc.m 460 B

12345678910111213
  1. function [ BS ] = BrierScoreCalc( ProbOccurs, Occured )
  2. %BrierScoreCalc Calculates the Brier Score of a binary probabilistic
  3. %prediction after knowing the actual result. Two inputs are needed:
  4. %ProbOccures is the reported probability of the event becoming true.
  5. %Occured shoud be 1 if the event became true and 0 if the event became
  6. %false.
  7. ProbNotOccurs = 1 - ProbOccurs;
  8. BS = (ProbOccurs - Occured)^2 + (ProbNotOccurs - (1-Occured) )^2;
  9. end