DescTools (version 0.99.18)

BrierScore: Brier Score

Description

Calculate Brier score.

Usage

BrierScore(...)
"BrierScore"(x, scaled = FALSE, ...)
"BrierScore"(resp, pred, scaled = FALSE, ...)

Arguments

x
a glm object

resp
the response variable

pred
the predicted values

scaled
logical, defining if scaled or not. Default is FALSE.

...
further arguments to be passed to other functions.

Value

Details

The Brier score is a proper score function that measures the accuracy of probabilistic predictions. It is applicable to tasks in which predictions must assign probabilities to a set of mutually exclusive discrete outcomes. The set of possible outcomes can be either binary or categorical in nature, and the probabilities assigned to this set of outcomes must sum to one (where each individual probability is in the range of 0 to 1). It's calculated as $$\frac{1}{n} \cdot \sum_{i=1}^{n}\left ( p_{i}-o_{i} \right )^2 \; \; \; \textup{where} \; p_{i} predicted probability \; \textup{and} \; o_{i} observed value out of (0,1)$$

References

Brier, G. W. (1950) Verification of forecasts expressed in terms of probability. Monthly Weather Review, 78, 1-3.

See Also

Conf

Examples

Run this code
r.glm <- glm(Survived ~ ., data=Untable(Titanic), family=binomial)

BrierScore(r.glm)

Run the code above in your browser using DataLab