Abstract
Tracking quantiles in non-stationary data streams is a critical task for applications ranging from network monitoring to financial risk assessment. Traditional incremental methods often suffer from slow adaptation to distribution shifts because they rely solely on the sign of the error rather than its magnitude. This paper introduces the Quantile Exponentially Weighted Average (QEWA), a lightweight estimator that generalizes the classic EWA. By adjusting the update step size proportionally to the distance between the current observation and the estimate, QEWA achieves significantly faster convergence and superior tracking performance. We validate QEWA using synthetic benchmarks and a real-world indoor climate control dataset, demonstrating its effectiveness in detecting concept drift.
Introduction
In modern data processing, streams are often non-stationary, meaning their statistical properties evolve over time. While tracking the mean of such streams is well-handled by the Exponentially Weighted Average (EWA), tracking quantiles (e.g., the 95th percentile) remains a challenge. Existing incremental methods, such as the popular DUMIQE, are often "information-inefficient" because they typically only consider whether a new data point is above or below the current estimate, ignoring the magnitude of the deviation. This leads to sluggish responses when the underlying distribution shifts abruptly.
The QEWA Methodology
The proposed QEWA algorithm addresses this limitation by making the update step proportional to the distance between the observation ($x_n$) and the current quantile estimate ($Q_n$). This "proportional update" allows the estimator to "snap" toward the true value when it is far off-track.
To ensure mathematical convergence to the $q$-quantile, the algorithm maintains two auxiliary "sidecar" EWA estimators that track the conditional expectations of observations falling above and below the current estimate. The authors provide a rigorous proof of convergence using stochastic learning theory, specifically the theory of distance-diminishing models, showing that the estimator will eventually align with the true quantile.
Experimental Evaluation
The performance of QEWA was evaluated against legacy state-of-the-art methods using both synthetic and real-world datasets. Synthetic tests included "Periodic" scenarios (smoothly varying distributions) and "Switch" scenarios (sudden jumps in distribution parameters).
Key Results and Discussion
Experimental results show that QEWA consistently outperforms competitors like DUMIQE and the "Frugal" algorithm in terms of Root Mean Squared Error (RMSE) and adaptation speed. As seen in the synthetic "Switch" tests, the proportional update mechanism is particularly effective; QEWA recovers from distribution changes far more quickly than sign-based methods which ignore the magnitude of the error.
Beyond synthetic benchmarks, QEWA was applied to real-life indoor climate data for Concept Drift Detection. By monitoring the 80th percentile of prediction errors from an HVAC machine learning model, QEWA accurately identified when the model's performance degraded, signaling the need for retraining. This approach maintains high predictive accuracy while minimizing unnecessary computational costs associated with frequent, unneeded retraining.
Conclusion and Future Work
QEWA provides a robust, lightweight, and information-efficient solution for real-time quantile tracking. Its ability to leverage the magnitude of observations makes it uniquely suited for highly dynamic environments. One identified hurdle for future research is monotonicity: ensuring that multiple tracked quantiles (e.g., the 50th and 90th) do not cross during periods of extreme volatility. Future work will likely focus on constrained versions of the algorithm to maintain proper quantile ordering while preserving QEWA's signature speed and simplicity.
Summary updated