AI & ML
Revisiting Generalized Median Estimators: Exact Bitwise Computation and Gray Code Acceleration
arXiv stat.CO0 views
arXiv:2611.26848v1 Announce Type: cross Abstract: Generalized median estimators evaluate the median of a symmetric kernel over all $M = \binom{n}{k}$ subsets of size $k$. Exhaustive evaluation was considered impractical even for $n = 29, k = 5$ ($M = 118,755$), prompting stochastic subsampling (Wilde and Grimshaw, 2013). We show that this barrier is computational, not combinatorial: storing all subsets requires $\Theta(kM)$ space, whereas stateful enumeration uses $\mathcal{O}(k)$ auxiliary state and retains only $M$ kernel values. We combine two exhaustive traversals with three-way Quickselect and a deterministic median-of-medians fallback, giving worst-case $\mathcal{O}(M)$ selection. Gosper's successor takes $\mathcal{O}(k)$ kernel work per subset for $n < w$; a Revolving Door Gray code changes one element out and one in, enabling $\mathcal{O}(1)$ kernel updates between recalibrations and $\mathcal{O}(M + kM/P)$ total time. We derive floating-point error bounds for the location ($h_1$) and mean-centered sample variance ($h_2$) kernels and their resulting median. For $n = 29, k = 5$, our ANSI C implementation evaluates all $118,755$ subsets in $0.74$ ms and $0.71$ ms, respectively. A direct C sweep places the crossover with partial lexicographic unranking at approximately $18,000$-$23,000$ subsets ($15\%$-$19\%$ of $M$), below the $32,160$-$45,420$ subsets required by Wilde and Grimshaw's sequential approximation at $\epsilon = 0.01$.
Source:https://arxiv.org/abs/2611.26848PreviousgraphMTP: An R Shiny Interface for Graphical Multiple Testing and Interim MonitoringNextBessel-Debiased Pseudo-Marginal MCMC for Generalised Bayesian Inference
Related posts
Bessel-Debiased Pseudo-Marginal MCMC for Generalised Bayesian Inference
0arXiv stat.CO
Exact Online $Q_n$ Estimation: Exploiting Sliding-Window Rank Invariance
0arXiv stat.CO
ISC Stormcast For Monday, November 23rd, 2026 https://isc.sans.edu/podcastdetail/10190, (Mon, Nov 23rd)
0SANS ISC

Part 34: The approval experience compared: what the human actually sees
0dev.to UX
![UI Practice - Duolingo [2]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsm9jb1tnj56ekdp69mb5.png)
UI Practice - Duolingo [2]
0dev.to UX
Entenda o repositório de habilidades para o Claude
0dev.to GitHub