Brier score for event probabilities
Question
Implement the mean Brier score for one-dimensional binary outcomes and probability forecasts. Define handling of invalid probabilities and empty input.
Short answer
The binary Brier score is the mean squared difference between probability and outcome. Lower is better; reject invalid probabilities, shapes and empty input. This is a proper scoring rule for probabilities, not a direct trading-profit metric.
Original question and answer written by SelfMadeQuant.com.
See the hint and the full worked solution in the question bank (free account).
Open the worked solutionLessons behind this question
- The Supervised Learning Problem and the ML Pipeline
- Sample Spaces, Events, and the Probability Axioms
- Conditional Probability, Total Probability, and Bayes' Rule
Start with a free lesson: Basic Statistics and Regression is part of a free topic. Create a free account, no card needed, to read it in full with worked solutions.
Read it free