
Probabilities, Not Just Trading Signals: Calibration, the Brier Score and Economic Decision Thresholds in Financial Machine Learning
Abstract
Classification models in financial machine learning often output numbers between zero and one that are interpreted as probabilities of market events. Such numbers are useful for trading decisions only when their statistical meaning is understood. Good discrimination does not imply accurate probability estimates; a high hit rate does not demonstrate positive net returns. This article explains probability calibration, the Brier Score, reliability diagrams, time-aware validation and cost-based decision thresholds. A complete numerical example shows how a predicted success probability can be converted into a testable decision rule—and when taking no position may be the economically preferable choice.
1. Three questions that are often confused
A binary model might predict whether the net return over a specified future horizon will be positive. Three distinct properties then need to be assessed:
- Discrimination: Does the model tend to assign higher scores to positive outcomes than to negative ones? ROC-AUC is a commonly used metric.
- Calibration: Among forecasts close to 0.70, does the defined event occur approximately 70% of the time?
- Economic value: After costs, payoff magnitudes and risk limits, does using the model improve outcomes relative to an appropriate no-trade policy or benchmark?
One model may rank events well but systematically exaggerate their probabilities. Another may be statistically well calibrated yet offer no tradable advantage. Moreover, the label ‘Will the price increase?’ is not identical to ‘Will this trade be worthwhile after costs?’
2. What a calibrated probability actually means
A prediction of does not mean that an individual trade is certain to succeed or will earn a 70% return. It means that, across a sufficiently large group of comparable forecasts, approximately 70% of the defined events should occur. The ideal condition is:
This requires a stable, unambiguous definition of . Prediction horizon, reference price, costs, trading hours and label availability must not be altered retrospectively. When event windows overlap, the validation procedure must account for their shared information periods; temporal separation, purging and embargo techniques may be necessary.
Changes in market dynamics can subsequently damage calibration. Being well calibrated on historical data is not a permanent certification of forecast quality.
3. The Brier Score
For binary events and probability forecasts , the Brier Score under the binary convention used here is:
Lower values are better, and zero corresponds to perfect forecasts. A useful benchmark is a constant event probability estimated on the training sample—not necessarily 0.5. The Brier Score is a proper scoring rule: truthful probability reporting is optimal in expectation. However, it does not measure calibration alone. Its decomposition also reflects resolution (closely related to discrimination) and uncertainty arising from the base event rate. A model can achieve a better Brier Score despite weaker calibration if its resolution improves sufficiently. The scikit-learn documentation explicitly highlights this distinction.
Illustrative calculation: A model predicts for four events, and the realised outcomes are . The mean squared error is . Without a reference model and an adequate sample, this number establishes nothing about an investable market advantage.
4. Reliability diagrams and local miscalibration
A reliability diagram groups predictions into bins and compares mean forecast probabilities with observed event frequencies. Suppose 400 predictions fall between 0.55 and 0.65 and have an average forecast of 0.60. If the event occurs 204 times, the observed frequency is . In this interval, the model materially overestimates success.
Binning itself introduces uncertainty. Small bin counts, arbitrary boundaries and changing event frequencies can distort the diagnostic. Analysts should examine sample counts, bin construction, temporal splits and uncertainty intervals around observed frequencies. A single overall curve may conceal severe miscalibration during market stress or within a particular asset class.
5. Recalibration methods
Two widely used methods are sigmoid calibration (often called Platt scaling) and isotonic regression. A sigmoid model uses relatively few parameters but assumes a suitable functional form. Isotonic regression is more flexible but can overfit when calibration data are scarce. The appropriate choice depends on sample size, base event rate and the structure of the forecasting errors.
The essential rule is that the calibration model must not be fitted on the same untouched test labels later used to claim final performance. A defensible pipeline separates model training → probability calibration → final evaluation in time. In rolling experiments, calibration may be updated only using past labels that were actually available at the relevant decision point. Labels for events that have not yet resolved must remain unavailable until their outcomes are observed.
6. A probability becomes tradable only with a payoff model
Let be the estimated probability of a favourable trade. A win produces and a loss , with , before a fixed execution cost per trade. Under these simplified assumptions, expected net return is:
The modelled expected net return is positive only if:
Numerical example: Set , and . The break-even probability threshold is . With , expected net return is . With , the same trade has negative expected net return under the assumptions. A universal 50% trading threshold is therefore not economically justified.
The example assumes two fixed payoffs and deterministic costs. Realised return distributions, stop-order execution, market impact and state-dependent losses may require a separate conditional-return model. A classifier that estimates only the probability of success is then insufficient.
7. Why calibration and strategy optimisation must remain separate
Testing numerous probability thresholds on the same historical period creates a second layer of overfitting. Even a well-calibrated model can appear profitable after excessive threshold tuning. Optimisation should therefore remain inside the development data, with the final threshold evaluated on later, untouched observations.
A sound comparison should include at least a constant base-rate model, a simple nonlinear model, uncalibrated and calibrated versions, a strategy that does not use the model, and an economically defined no-trade alternative. Diagnostics should cover the Brier Score, log loss, reliability, trading frequency, turnover, expected and realised net returns, drawdowns and stability across periods.
8. Compact Python example for diagnostics
import numpy as np
from sklearn.metrics import brier_score_loss, log_loss
from sklearn.calibration import calibration_curve
# Synthetic, already separated test data only:
y_true = np.array([1, 1, 0, 0, 1, 0, 1, 0])
p_pred = np.array([.80, .60, .40, .20, .65, .35, .55, .25])
print("Brier:", brier_score_loss(y_true, p_pred))
print("Log Loss:", log_loss(y_true, p_pred))
observed, predicted = calibration_curve(
y_true, p_pred, n_bins=3, strategy="quantile"
)
print("Average predictions per bin:", predicted)
print("Observed event rates:", observed)
This code demonstrates calculations only. Eight observations are far too few for a serious calibration assessment. These outputs must not be described as a backtest or evidence for a real trading strategy. Credible research additionally requires time-consistent label construction, a test set separate from calibration, and substantially more comprehensive diagnostics.
9. Drift: when historical probabilities lose their meaning
The base rate of an event can change even if the model’s input features appear stable. Alternatively, a shifted feature distribution may cause the model to score a completely different population. At a minimum, distinguish data drift (changing inputs) from concept drift (a changing relationship between inputs and the outcome). A proper production process records not just predictions and trades but also subsequent label resolution and rolling calibration diagnostics.
Recalibration may be useful following drift, but it should not be triggered automatically without considering sample adequacy, delayed labels, risk and fresh test periods. Updated calibration parameters may temporarily conceal a structural model failure rather than remedy it.
10. Conclusion
The value of an ML trading signal does not begin with its accuracy rate. It begins with a probability interpretation that can be tested. Calibration matters when probability forecasts feed directly into decisions, but it cannot substitute for informative predictive features, realistic payoff estimates or time-aware evaluation. Only a combination of reliable probabilities, expected net economic outcomes and independent validation turns a model score into a scientifically testable trading rule.
References and verifiable sources
- scikit-learn: Probability calibration – User Guide. Describes reliability diagrams, calibration methods and the limitations of the Brier Score as a stand-alone calibration metric.
- scikit-learn: calibration_curve – API. Parameters and behaviour of the Python example.
- Brier, G. W. (1950). Verification of Forecasts Expressed in Terms of Probability. Monthly Weather Review, 78(1), 1–3. Original work introducing the score.
Related material: English-language overview · German-language machine learning articles · German-language knowledge base.
Educational research article; not investment advice. All numbers and arrays are illustrative, not empirical trading results.
