计算机科学 > 离散数学
[提交于 2026年11月30日]
标题:The exact null distribution of the discrete total variation
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The discrete total variation (DTV) $d=\sum_i|X_{i+1}-X_i|$ of a multinomial histogram, and its version $d_{\mathbf r}$ centered at a specified rational null $\mathbf r$, have exact null laws that can be computed by dynamic programming. We describe the recurrence for both nulls in one generic form, give a running-sum version that needs $O(nN^3)$ arithmetic operations for $d$ instead of $O(nN^4)$ (and $O(nLN^3)$ for $d_{\mathbf r}$), and prove an error bound for its floating-point version. We then determine the lattice on which the exact law lives: for $r_i=q_i/L$ ($q_i$ positive integers with $\gcd_iq_i=1$), $d_{\mathbf r}=0$ is possible if and only if $L\mid N$; for $n\ge3$ the support lies on a lattice of step $s/L$, with $s$ an explicit gcd that depends on $N$ modulo $L$, and this is the exact step for all large $N$, though not always for small $N$; we also give the parity law and the maximum. For three cells the uniform law has a permanent period-$3$ sawtooth, which we describe by a local limit theorem, and in general the masses of the residue classes of $L\,d_{\mathbf r}$ modulo $L$ converge, along each class of $N$ modulo $L$, to sums of Gaussian orthant probabilities. The exact cumulants agree numerically with the limits of the companion paper. Finally we calibrate continuous approximations against exact tables. With exact finite-sample moments, a gamma-based Cornish--Fisher quantile with a half-span lattice shift gives the exact critical value in five illustrative uniform cases, but not uniformly on a wider grid; under general nulls it is exact in only $39$--$53\%$ of $182$ tables (the normal-based Cornish--Fisher quantile is exact more often at the levels $1\%$ and $0.1\%$), and it can fail completely when some expected counts are small. We therefore recommend the exact law, or at least an exact check of the tail, whenever the level must be controlled.
提交历史
来自:Nikola Banić[v1] 2026年11月30日 星期一 17:13:26 UTC (39 KB)