Abstract
Defensive forecasting is a game-theoretic approach to probability prediction that guarantees forecasts will satisfy the fundamental laws of probability, such as the Law of Large Numbers, regardless of how the data is generated. By framing forecasting as a game against a "Skeptic" who attempts to prove predictions are biased, this work provides a meta-theorem to transform any continuous gambling strategy into a robust forecasting algorithm. We demonstrate that this approach, specifically the K29 algorithm, achieves calibration in both stationary and non-stationary environments where traditional methods struggle.
Introduction
In classical statistics, forecasting models typically assume that data originates from a specific, often stationary, probability distribution. However, real-world data is frequently generated by complex, non-stationary systems or even adversarial processes designed to exploit model assumptions. When these assumptions are violated, traditional forecasting methods often become "uncalibrated," meaning their predicted probabilities do not match observed frequencies over time.
Defensive forecasting addresses the challenge of making well-calibrated probability forecasts for binary events without making any assumptions about the data-generating process, referred to as "Reality." The goal is to ensure that if a model predicts a 70% chance of an event, that event occurs approximately 70% of the time in the long run, even if Reality is actively playing against the forecaster.
Methodology
The Forecasting Game
The paper frames the forecasting task as a perfect-information game between three players:
- Reality: Chooses an object $x_n$ and later determines the outcome $y_n \in \{0, 1\}$.
- Forecaster: Predicts the probability $p_n \in [0, 1]$ that $y_n = 1$.
- Skeptic: Gambles against the Forecaster’s probabilities. If the Forecaster’s predictions are biased, the Skeptic’s capital grows.
The Meta-Theorem and K29 Algorithm
The core mathematical contribution is a Meta-Theorem proving that if the Skeptic uses a continuous gambling strategy, the Forecaster can always select a $p_n$ that prevents the Skeptic's capital from increasing. This allows the Forecaster to "defend" against any specific test of accuracy.
The authors implement this via the K29 Algorithm, which utilizes Mercer kernels (specifically Gaussian kernels). This approach allows the Forecaster to be "unbiased in the small," ensuring calibration across different sub-regions of the prediction space. By using a bisection method, the algorithm finds the specific probability $p_n$ that nullifies the Skeptic's potential gains in each round.
Experimental Results
Performance on Stationary Data
The K29 algorithm was first evaluated on a stationary sequence of 1,000 bits where the probability of a '1' was fixed at 0.5. As shown in Figure 1, the K29 algorithm performs almost identically to the Laplace forecaster, which is a standard optimal baseline for stationary data. Both methods successfully converge to the true underlying probability.
Adaptability to Non-Stationary Data
The true strength of defensive forecasting is revealed in non-stationary environments. The authors tested a sequence of 3,000 bits with abrupt shifts: 1,000 random bits ($p=0.5$), followed by 1,000 zeros, and finally 1,000 ones.
As illustrated in Figure 2, the Laplace forecaster is slow to react because it averages all past data. In contrast, the K29 algorithm detects the shifts quickly and adjusts its forecasts toward the new reality, demonstrating superior robustness to structural changes in the data.
Discussion and Key Insights
Defensive forecasting offers several paradigm-shifting insights:
- Laws as Strategies: Every "law of probability" can be expressed as a gambling strategy. If a Skeptic cannot profit from a strategy, the corresponding law must hold.
- The Role of Continuity: By requiring the Skeptic’s strategies to be continuous, the authors bypass classical proofs (like Dawid’s) that suggest universal calibration is impossible. This constraint makes robust calibration mathematically achievable.
- Kernel-Based Calibration: The use of kernels allows the Forecaster to defend against an infinite number of "local" gambling strategies simultaneously, ensuring the model remains well-calibrated across all possible predicted values.
Future work aims to improve the computational efficiency of the bisection search and extend the framework to multi-class classification and continuous variables. Additionally, exploring strategies corresponding to other statistical bounds, such as Hoeffding’s inequality, may lead to even more resilient forecasting models.
Summary updated