Abstract
Traditional online prediction algorithms guarantee a global regret bound of $O(\sqrt{T})$, but often fail to provide tight guarantees over sub-intervals. This paper introduces a randomized algorithm that achieves an optimal amortized regret of $O(\sqrt{x})$ for any interval of length $x$, effectively removing the logarithmic dependence on the total sequence length $T$. By leveraging Cover’s observation and dynamic programming, the authors demonstrate both theoretical feasibility and practical performance on high-frequency financial data.
Introduction
In the realm of online learning, the "experts problem" is foundational. An agent must predict a sequence of bits based on advice from multiple experts. The standard metric, regret, measures the difference between the agent's cumulative loss and that of the best-performing expert in hindsight. While algorithms like Weighted Majority achieve $O(\sqrt{T})$ regret over a sequence of length $T$, they do not guarantee good performance on every sub-interval. An algorithm might perform perfectly over a long duration but suffer significant losses in a specific short window.
The Shift to Amortized Interval Regret
Previous attempts to address interval-specific performance resulted in bounds such as $O(\sqrt{x \log T})$. The $\log T$ factor implies that the performance on a short interval $x$ is still penalized by the total duration of the experiment. This paper proposes a paradigm shift: amortized regret. By allowing the algorithm to "trade" performance between intervals—performing slightly worse in one if it performs significantly better in another—the authors achieve a bound of $O(\sqrt{x})$ for every interval, independent of the total sequence length $T$.
Methodology
The core of the approach is the Interval Payoff Function ($P_\alpha$). This function represents the maximum possible payoff across all partitions of a sequence into intervals, minus a penalty of $\alpha\sqrt{x}$ for each interval of length $x$.
Key methodological components include:
- Cover’s Observation: The authors utilize a fundamental result from Thomas Cover, which states that a payoff function is "feasible" (meaning an algorithm exists to achieve it) if and only if the expected payoff over a uniformly random sequence is non-positive.
- Aligned Intervals: To simplify the mathematical proof, the authors first analyze "aligned intervals"—subsequences whose lengths are powers of two. They prove that a guarantee on these aligned intervals translates to a guarantee on any arbitrary interval with only a small constant factor increase.
- Randomized Prediction: The algorithm works by considering the current sequence, appending a potential next bit, and then completing the sequence to length $T$ with random bits. By comparing the expected interval payoffs of these completions, the algorithm determines its next prediction.
- Dynamic Programming: To make the prediction step computationally feasible, the authors developed an $O(T^3)$ dynamic programming approach to compute the payoff function.
Empirical Evaluation
The paper evaluates the algorithm using two primary sources:
- Synthetic Random Sequences: Used to empirically estimate the optimal value of the constant $\alpha$. While theoretical proofs show $\alpha \le 2.8$ for aligned intervals, tests on sequences up to $T=2000$ suggest the practical constant is closer to 2.1.
- High-Frequency Financial Data: The authors tested the algorithm on per-minute price changes for five major US stocks and ETFs: MSFT, GE, GLD, QQQ, and WMT. The experiment spanned 189 trading days, resulting in over 367,000 data points.
Key Results and Insights
- Theoretical Feasibility: The authors proved that there exists an absolute constant $\alpha$ such that the interval payoff function is feasible for any sequence length, removing the "global" penalty from local performance.
- Computational Efficiency: A refined variant of the algorithm allows for predictions in $O(\log T)$ time per step after an $O(T^4)$ pre-computation phase.
- Stock Market Performance: In empirical tests, the "Interval" algorithm outperformed other regret-minimization benchmarks like the Weighted Majority algorithm and the "boundedloss" algorithm.
- The ARIMA Comparison: Interestingly, the algorithm was outperformed by ARIMA, a standard statistical time-series model. The authors note that while ARIMA performs better on real financial data by exploiting statistical regularities, it lacks the provable guarantees of their algorithm. ARIMA could fail catastrophically on a truly adversarial sequence, whereas the proposed algorithm is guaranteed to maintain low regret regardless of the input.
Limitations and Future Work
The primary limitation of the current approach is the computational overhead; the $O(T^4)$ pre-computation becomes a bottleneck for very long sequences. Additionally, the performance gap between the proposed algorithm and ARIMA suggests that financial markets are not purely adversarial. Future research could focus on tuning the algorithm to better exploit the specific statistical properties of financial time series while maintaining its robust worst-case guarantees. Finally, the authors acknowledge that it is impossible to achieve this level of regret in a non-amortized sense, highlighting an inherent trade-off between performance at different time scales.
Summary updated