TL;DR
This paper introduces two novel metrics, Spectral Predictability and the Largest Lyapunov Exponent, to assess how inherently predictable a time series is before any forecasting models are trained. These metrics correlate strongly with actual forecasting performance, allowing practitioners to better allocate resources and set realistic expectations for supply chain planning.
What Problem Does This Paper Address?
Accurate time series forecasting is crucial for modern supply chain management, impacting everything from demand prediction to inventory optimization. However, not all time series are equally predictable. Traditionally, assessing forecastability involves training and evaluating models, which is computationally expensive and can lead to wasted effort on inherently unpredictable data. This paper addresses the need for a more efficient, model-agnostic method to quantify a time series' intrinsic forecastability a priori, enabling better decision-making and resource allocation in complex environments like supply chains.
Methods
The paper proposes two key metrics:
- Spectral Predictability: This metric quantifies the regularity and strength of frequency components in a time series. It's derived from the power spectral density (PSD) and spectral entropy. A time series with clear, dominant frequencies (like seasonality) will have high spectral predictability, indicating it's easier to forecast. Conversely, a series with energy spread across many frequencies (like white noise) will have low spectral predictability. This method is computationally efficient, with a time complexity of O(T log T).
- Largest Lyapunov Exponent: This metric measures the sensitivity of a dynamical system to initial conditions, essentially quantifying its chaos and stability. A positive Lyapunov exponent indicates exponential divergence and chaotic behavior, implying reduced forecastability. A non-positive exponent suggests stability and higher forecastability. This is estimated by reconstructing the state space of the time series and tracking the divergence of nearby state vectors. While more computationally intensive (O(T²)), it provides insights into the system's long-term dynamics.
Datasets
- Synthetic Datasets: Used to demonstrate the behavior of the metrics under controlled conditions, including pure sine waves, multi-frequency waves, noisy waves, Lorenz chaotic system trajectories, and white noise.
- M5 Forecasting Competition Dataset: A real-world, hierarchical dataset containing daily and weekly sales time series across multiple aggregation levels (total, category, department, product). This dataset was used to validate the correlation between the proposed metrics and actual forecasting performance.
Key Insights and Ideas
- Proactive Forecastability Assessment: The core idea is to shift from reactive (post-model evaluation) to proactive (pre-model assessment) forecastability analysis. This can save significant computational resources and prevent wasted effort.
- Complementary Metrics: Spectral Predictability and Lyapunov Exponents offer different but complementary views of a time series' nature. One focuses on frequency domain patterns, the other on temporal dynamics and chaos. Together, they provide a more robust understanding.
- Hierarchical Data Insights: The M5 dataset analysis revealed that forecastability generally decreases as you move down the hierarchy (from total sales to individual products). Aggregating data (e.g., from daily to weekly) can significantly improve forecastability, a crucial insight for supply chain planning.
- Guiding Model Selection and Expectations: Understanding a time series' forecastability before modeling can inform the choice of forecasting models (e.g., simpler models for predictable series, more complex or ensemble methods for chaotic ones) and set realistic performance expectations.
Key Results
- Correlation with Forecasting Performance: Both Spectral Predictability and Lyapunov Exponents showed strong correlations with actual forecasting errors (Weighted Absolute Percentage Error - WAPE) on the M5 dataset. Spectral Predictability had a negative correlation (higher predictability = lower WAPE), while Lyapunov Exponents had a positive correlation (higher chaos = higher WAPE), with correlation coefficients around 0.9 for both daily and weekly frequencies.
- Synthetic Data Validation: Experiments on synthetic data confirmed that the metrics accurately reflect the complexity and predictability of different signal types, distinguishing between simple, noisy, chaotic, and random series.
- Sensitivity Analysis: Spectral Predictability was found to be relatively stable with respect to time series length and moderately affected by sparsity. Lyapunov Exponents were also stable with sufficient length but could be misleading at extreme sparsity levels (>0.8).
Limitations and Future Work
- Metric Stability with Sparsity/Short Series: The authors note that interpreting results for highly sparse or short time series requires caution, as metric stability may degrade. This is particularly relevant for monthly or yearly retail data.
- Distinguishing Chaos from Randomness: While the metrics indicate overall complexity, they cannot definitively distinguish between deterministic chaos and pure randomness.
- Future Work: The authors suggest integrating these metrics into automated model selection pipelines, using them to inform active learning, anomaly detection, and dynamic retraining in real-time forecasting systems. They also propose further exploring how these metrics can guide the selection of specific forecasting models for different levels of forecastability.
Summary updated