Indexed metadata

The exact null distribution of the discrete total variation

Nikola Banić, Neven Elezović

Source record

Source: arXiv

Published: Nov 30, 2026

arXiv: 2611.41657

Open original source ↗

Source abstract

The discrete total variation (DTV) d=∑i∣Xi+1−Xi∣d=\sum_i|X_{i+1}-X_i| of a multinomial histogram, and its version drd_{\mathbf r} centered at a specified rational null r\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(nN3)O(nN^3) arithmetic operations for dd instead of O(nN4)O(nN^4) (and O(nLN3)O(nLN^3) for drd_{\mathbf r}), and prove an error bound for its floating-point version. We then determine the lattice on which the exact law lives: for ri=qi/Lr_i=q_i/L (qiq_i positive integers with gcd⁡iqi=1\gcd_iq_i=1), dr=0d_{\mathbf r}=0 is possible if and only if L∣NL\mid N; for n≥3n\ge3 the support lies on a lattice of step s/Ls/L, with ss an explicit gcd that depends on NN modulo LL, and this is the exact step for all large NN, though not always for small NN; we also give the parity law and the maximum. For three cells the uniform law has a permanent period-33 sawtooth, which we describe by a local limit theorem, and in general the masses of the residue classes of L drL\,d_{\mathbf r} modulo LL converge, along each class of NN modulo LL, 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 3939--53%53\% of 182182 tables (the normal-based Cornish--Fisher quantile is exact more often at the levels 1%1\% and 0.1%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.

Evidence graph

No public relationships recorded yet.

Integrity note: This page is a factual metadata record created by deterministic ingestion. It is not a claim that the work moves a mathematical frontier or has been independently verified.