Abstract
Probabilistic time series forecasting is essential for decision-making under uncertainty, yet selecting the optimal model for non-stationary and multi-modal data remains a significant challenge. This paper introduces pTSE (probabilistic Time Series Ensemble), a model-agnostic framework that treats member models as hidden states within a Hidden Markov Model (HMM). By combining mixture quantile estimation with non-parametric density smoothing, pTSE dynamically adapts to changing data patterns to produce superior uncertainty estimates. Experimental results across solar, electricity, and traffic datasets demonstrate that pTSE consistently outperforms state-of-the-art individual models and traditional ensemble baselines.
Introduction
In modern time series forecasting, point estimates are often insufficient. Stakeholders require a comprehensive understanding of the range of possible outcomes—probabilistic forecasting—to manage risk effectively. However, the landscape of forecasting models is fragmented; some architectures excel at capturing long-term trends, while others are optimized for high-frequency patterns. Because real-world data is frequently non-stationary, asymmetric, and multi-modal, no single model is universally optimal.
Existing ensemble techniques typically focus on point estimation through simple averaging or boosting. These approaches are difficult to translate to the probabilistic domain, as one cannot simply average probability distributions from disparate models to achieve a valid, calibrated result. Furthermore, many ensemble methods require deep integration with the underlying model architectures. pTSE addresses these gaps by providing a theoretically grounded, "plug-and-play" framework to merge the distributions produced by diverse forecasting experts.
The pTSE Framework
The core innovation of pTSE is the conceptualization of a collection of member models as a hidden state space. The framework operates through several key components:
1. HMM-Based Model Selection
pTSE assumes that at any given time $t$, there exists an "optimal" model among the ensemble members. The transition between which model is currently optimal is modeled as a Markov process. This allows the ensemble to dynamically switch its reliance between models as the underlying characteristics of the time series evolve.
2. Mixture Quantile Estimation (MQE) and Density Smoothing
Rather than assuming a fixed distribution (such as a Gaussian distribution), pTSE employs Mixture Quantile Estimation to model the distribution of residuals. To maintain flexibility and handle non-parametric data, the framework uses Weighted Kernel Density Estimation (WKDE) to approximate these distributions. A bootstrap-based method is utilized to automatically select the optimal bandwidth ($\sigma$) for the kernels, ensuring the density estimation remains robust across different data scales.
3. Learning and Convergence
The system utilizes a modified Baum-Welch algorithm—an adaptation of the classic Expectation-Maximization (EM) algorithm—to learn transition probabilities and model weights simultaneously. The final ensemble weights are derived from the HMM’s stationary distribution. The authors provide formal proofs demonstrating that the empirical distribution of the time series converges to this stationary distribution almost surely, providing a rigorous statistical foundation for the method.
4. Plug-and-Play Architecture
A primary advantage of pTSE is its model-agnostic nature. It requires only the "off-the-shelf" outputs (predicted distributions or quantiles) from member models. It does not require knowledge of the internal architectures of the models it ensembles, allowing it to combine outputs from diverse sources such as Transformers, Prophet, or even proprietary black-box models.
Experimental Evaluation
The authors evaluated pTSE against four strong base models—DeepAR, SFF, TFT, and Transformer—and two ensemble baselines, ModelRank and FFORMA. Testing was conducted on both synthetic data (to verify theoretical convergence) and three large-scale real-world benchmarks:
- Solar Energy (NREL): Hourly measurements from 137 time series.
- Electricity: Hourly measurements from 370 time series.
- Traffic: Hourly measurements from 963 time series.
Each task involved a 24-hour forecasting horizon based on a look-back window of the previous week (168 hours).
Key Results
- Superior Accuracy: pTSE outperformed all individual member models and ensemble baselines across all three real-world datasets.
- Quantile Risk Reduction: The performance gains were particularly notable in the Traffic dataset, where pTSE achieved an average quantile risk (AVG) of 0.128, a significant improvement over the best-performing single model, DeepAR (0.227).
- Consistency and Stability: While individual models like the Temporal Fusion Transformer (TFT) showed volatile performance—performing well on Solar data but poorly on Traffic—pTSE remained consistently at the top of the leaderboard, demonstrating its ability to mitigate the weaknesses of individual models.
Discussion and Limitations
While pTSE represents a significant step forward in probabilistic ensembling, it is subject to certain constraints. The framework's performance is inherently capped by the quality of its member models; if no model in the ensemble captures a specific underlying pattern, the ensemble cannot synthesize that information. Additionally, the use of the Baum-Welch algorithm introduces more computational overhead during the calibration phase than simple linear averaging, though this is often a necessary trade-off for the resulting accuracy gains.
Conclusion
pTSE offers a robust, theoretically sound method for ensembling probabilistic forecasts. By treating models as hidden states and focusing on distributional convergence, it provides a flexible solution for complex, non-stationary forecasting tasks. Future research may explore dynamic state selection to automatically determine the optimal number of models or the application of hierarchical HMMs to capture even more complex temporal dependencies.
Summary updated