arXiv Science⌕ Search

arXiv · 2611.41657

The exact null distribution of the discrete total variation

Abstract

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Nikola Banić, Neven Elezović. 2026-11-30. The exact null distribution of the discrete total variation. https://arxiv.science/abs/2611.41657

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

How far does absolute concentration robustness survive weak reverse reactions?

A mass-action system has absolute concentration robustness (ACR) in a species if it takes the same value at every positive steady state. The Shinar--Feinberg mechanism needs irreversible reactions, and we previously showed that no weakly reversible network has nontrivial ACR. We therefore give every irreversible reaction of an ACR network a reverse reaction with rate constant $\varepsilon$ times a fixed positive number, and ask over which range of conserved totals the robust species stays within a prescribed relative tolerance $δ$ of its former value, as $\varepsilon\to0$. For the minimal Shinar--Feinberg network $B\to A$, $A+B\to2B$ the steady state is unique in each compatibility class, and the tolerance band holds exactly for totals in an explicit interval whose upper end is asymptotic to $δκ_1/(\varepsilonμ_2)$. The $1/\varepsilon$ law is not general. In a deficiency-one network that meets the Shinar--Feinberg criterion, the completion has positive steady states outside the band at every fixed total once $\varepsilon$ is small; along a ray of totals in another network, every steady state stays in the band for all totals. What is general is the form of the law: along a fixed ray, whenever the first total at which the band fails is finite and diverges as $\varepsilon\to0$, it is asymptotic to $K\varepsilon^{-γ}$ with $γ$ a positive rational number, and every positive rational exponent is realized by an explicit deficiency-one family. For the Shinar--Feinberg EnvZ--OmpR model with fixed rate constants we prove uniqueness of steady states in every compatibility class and compute the leading coefficient of the $1/\varepsilon$ law along a ray. For the stochastic model of the minimal network at fixed volume, the reverse rates that keep a fixed probability of the band range from $\exp[-T\log T+O(T)]$ to order $1/T$ in the total copy number $T$.

cs.DM↗

A General Procedure for Pattern Avoidance in Constrained $q$-ary Words

In this paper we generalize the construction and the enumeration of a particular pattern avoidance approach into a set of words defined in a $q$-ary alphabet. By means of jumping and marked succession rules, we describe the growth of such words according to a selected letter which is more numerous than the total number of all the other letters in the $q$-ary alphabet. This approach provides a unified framework independently from the patterns to be avoided. In this context the notion of non-overlapping words is mandatory to provide the results. From the succession rules we derive functional equations involving the generating functions.

cs.DM↗

A Formalization of Elementary Linear Algebra: Part III

This is the third installment of an exposition of an ACL2 theory of elementary linear algebra, addressing finite-dimensional vector spaces and linear transformations. Our formalization of these concepts is based on constrained functions. In particular, the notion of a vector space is formalized by an encapsulated set of functions representing space membership, vector addition, scalar multiplcation, etc., constrained to satisfy the usual axioms. The restriction to finite dimensions allows a close connection with the theory of matrices, which is the subject of Parts I and II. This in turn leads to constructive definitions of various concepts that are not usually defined constructively, such as linear independence and the inverse of a linear transformation. The computational nature of these definitions will be critical in future instantiations of the results of this paper, including applications to Galois theory and computational number theory.

cs.DM↗