Exact Online $Q_n$ Estimation: Exploiting Sliding-Window Rank Invariance
Robin Nunkesser
Key points
From the paper's conclusion- We study exact online $Q_n$ computation in a sliding window by exploiting temporal rank coherence between consecutive windows.
Abstract
The $Q_n$ scale estimator (Rousseeuw and Croux, 1993) combines a 50% finite-sample breakdown point with high Gaussian efficiency, but its computation requires selecting an order statistic among the $\binom{n}{2}$ pairwise distances. We study exact online $Q_n$ computation in a sliding window by exploiting temporal rank coherence between consecutive windows. Formalizing the multiset decomposition of surviving pairwise distances in terms of strict and weak rank counts, we derive a tie-exact dual-rank update that verifies whether the previous unscaled estimate remains valid in $\mathcal{O}(\log n)$ comparisons while maintaining the sorted window in $\mathcal{O}(n)$ time. When the target rank shifts by $m$ positions, a localized row-heap procedure initialized via a monotonic two-pointer frontier scan extracts the new exact order statistic in $\mathcal{O}(n + m\log n)$ comparisons without materializing the difference matrix, complemented by a hybrid fallback that executes frontier-guided implicit matrix selection in $\mathcal{O}(n\log n)$ time for larger rank shifts. On deterministic multi-regime stress streams, our implementation matches the offline batch reference. In repeated same-platform benchmarks on a synthetic Gaussian stream, our implementation achieves median internal throughputs from 2,220,000 updates/s ($n=25$) and 1,140,000 updates/s ($n=51$) to 127,000 updates/s ($n=201$), outperforming both the exact FQN baseline ($2.5\times$ to $6.4\times$) and the approximate AFQN sketch ($1.3\times$ to $2.7\times$) across all tested window sizes.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Tight Bounds for Rank Estimation in Turnstile StreamsarXiv · 2026
- Finite-Sample Distribution Theory and Efficient Large-Scale Inference for Online Quantile RegressionarXiv · 2026
- Recursive estimation of the Oja median and related simplex mediansarXiv · 2026
- Spatio-Temporal Kernel Density Estimation for Streaming Time-Varying Data.IEEE transactions on visualization and computer graphics · 2026
- Aeris Filter: A Strongly and Monotonically Adaptive Range FilterProceedings of the ACM on Management of Data · 2026
- One Rater to Score Them All: Frozen Large Language Model Anchoring for Video Quality of ExperiencearXiv · 2026