WorksMathematics
Exact Online Estimation: Exploiting Sliding-Window Rank Invariance
Abstract
The 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 pairwise distances. We study exact online 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 comparisons while maintaining the sorted window in time. When the target rank shifts by positions, a localized row-heap procedure initialized via a monotonic two-pointer frontier scan extracts the new exact order statistic in comparisons without materializing the difference matrix, complemented by a hybrid fallback that executes frontier-guided implicit matrix selection in 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 () and 1,140,000 updates/s () to 127,000 updates/s (), outperforming both the exact FQN baseline ( to ) and the approximate AFQN sketch ( to ) across all tested window sizes.