arXiv Science⌕ Search

arXiv · 2611.26852

Exact Online $Q_n$ Estimation: Exploiting Sliding-Window Rank Invariance

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Robin Nunkesser. 2026-11-19. Exact Online $Q_n$ Estimation: Exploiting Sliding-Window Rank Invariance. https://arxiv.science/abs/2611.26852

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

SULA: Robust Langevin Sampling via Drift-Diffusion Saturation

The unadjusted Langevin algorithm (ULA) and its stochastic-gradient variant, SGLD, are workhorses of modern Bayesian machine learning, but can be fragile when faced with a target distribution possessing a non-Lipschitz drift. In such settings, the conditional expected squared jump distance can grow rapidly, leading to numerical instability or the need for prohibitively small step-sizes. We propose the saturated unadjusted Langevin algorithm (SULA) that pairs a saturated gradient drift with a gradient-informed state-dependent diffusion, while preserving first-order consistency with the Langevin diffusion. The two coefficients are chosen so that the conditional expected squared jump distance is independent of the gradient. Under suitable conditions, we establish first-order weak convergence to the Langevin diffusion, geometric ergodicity of the discretized Markov chain for a fixed step-size, and an $O(h)$ bound on the invariant-measure bias for smooth test functions with polynomial growth. We also develop a stochastic-gradient variant, SG-SULA, using a gradient rescaling motivated by a Gaussian cumulative distribution function identity under Gaussian gradient noise. Numerical experiments demonstrate that SULA is less sensitive to the choice of step-size than existing Langevin discretizations on the targets considered, and that SG-SULA provides competitive predictive performance in Bayesian inference problems.

stat.CO↗

A generalized ensemble-marginalized Kalman filter for semilinear time-dependent PDEs with noisy boundary conditions

Uncertainty in boundary data is a major source of bias in PDE-constrained inverse problems, yet it is often neglected by treating measured boundary records as exact inputs. The ensemble-marginalized Kalman filter (EnMKF) removes this bias for linear parabolic problems with noisy boundaries by modeling boundary values as a linear Gaussian control, estimating them with a Kalman filter, and marginalizing their uncertainty from the prediction step. We extend this construction to semilinear time-dependent PDEs by exploiting time discretizations in which the boundary enters the discrete dynamics affinely, such as IMEX schemes that treat the linear part implicitly and the nonlinear reaction explicitly. For such discretizations the boundary uncertainty can still be marginalized one step at a time, yielding a deterministic covariance inflation term without any additional sampling. For second-order-in-time problems, the same per-step marginalization fails because the sensitivity of the discrete velocity to boundary errors scales like the inverse time step; we introduce an error-state EnMKF that propagates temporally correlated boundary-error realizations according to the innovations-form dynamics of the control Kalman filter. Parameter-dependent observation operators are treated by augmenting the ensemble with predicted observations and projecting the marginalization term into observation space. Numerical experiments on contaminant transport with nonlinear decay and on nonlinear cable vibration demonstrate reduced boundary-induced parameter bias, avoidance of ensemble collapse at small ensemble sizes, and improved state and flux estimates relative to standard ensemble Kalman filters.

stat.CO↗

Sub-Cauchy Sampling: Escaping the Dark Side of the Moon

We introduce a Markov chain Monte Carlo algorithm based on Sub-Cauchy Projection, a geometric transformation that generalizes stereographic projection by mapping Euclidean space into a spherical cap of a hyper-sphere, referred to as the complement of the dark side of the moon. We prove that our proposed method is uniformly ergodic for sub-Cauchy targets, namely targets whose tails are at most as heavy as a multidimensional Cauchy distribution, and show empirically its performance for challenging high-dimensional problems. The simplicity and broad applicability of our approach open new opportunities for Bayesian modeling and computation with heavy-tailed distributions in settings where most existing methods are unreliable.

stat.CO↗