arXiv Science⌕ Search

arXiv subjects

Neven Elezović

Publications and source records attributed to Neven Elezović.

At least 19 recordsLinked to original sources

Discrete total variation under the multinomial, Part 5: cyclic total variation

We study the cyclic discrete total variation obtained by adding the wrap-around edge to the usual open-chain statistic. Under the uniform multinomial law the cyclic symmetry recombines the same per-edge, adjacent, and disjoint covariance blocks used for the linear statistic, but with different multiplicities, and this simplifies the variance: the bin-independent leading coefficient \(2A+4B\) carries over, the constant-order correction collapses \emph{exactly} to \(β_c(n)=β_1 n\) (no \(n^0\) or \(1/n\) tail; obtained directly here, and already reached in Part~2 through the transfer identity), and a conditional second-order coefficient \(γ_c(n)\) is given. The exact finite-\(N\) cyclic--linear transfer identity of Part~2, read order by order, both delivers these and, as its main consequence for the \emph{linear} statistic, explains the traveling mode of the linear variance: comparison with the (first-order) mode-free symmetric cyclic profile shows that deleting one edge introduces a rising contribution whose balance against the falling cyclic bulk creates a ridge at \(n\asymp\sqrt{K_0N}\) with local optimizer \(K_0=C_1/β_1\). Uniform control of three ridge blocks proves this optimizer on every compact ridge window, upgrading the previously heuristic \(\sqrt N\) mode law to a theorem; the global localization of the exact maximizer remains open. We also record the corresponding cyclic reference-centered statistic under a fixed alternative and the leading Nabeya variance formula for the matched non-uniform cyclic statistic. Throughout, ``exact'' refers to the asymptotic coefficient in \(N\); the operative symmetry is cyclic stationarity (rotation invariance), not exchangeability.

math.ST↗

Discrete total variation under the multinomial, Part 4: variance under a general distribution

We study the variance of the reference-centered discrete total variation $d_{\mathbf p}=\sum_{j=1}^{n-1}|X_{j+1}-X_j-N(p_{j+1}-p_j)|$ of $X\sim\mathrm{Mult}(N;\mathbf p)$ for fixed $n\ge3$ and fixed $\mathbf p$ with all $p_i>0$, as $N\to\infty$. We prove $\mathrm{Var}(d_{\mathbf p})=N\,v(\mathbf p)+O(1)$, where $v(\mathbf p)$, the variance of the sum of absolute values of the limiting Gaussian edge vector, is expressed through the exact multinomial edge variances and correlations and Nabeya's covariance formula for folded bivariate normal variables. Unlike in the uniform case, non-adjacent edge pairs generally contribute to $v(\mathbf p)$. The $O(1)$ remainder is controlled by a lattice Edgeworth expansion and Poisson summation; it oscillates with the lattice phases $\{N(p_{j+1}-p_j)\}$, and for $n=3,4$, where a pair of edges exhausts the bins, the summation runs over a sublattice coset. The formula reduces to the known uniform result (the classical Hoel--Kamat variance), gives a closed form when the reference law is a symmetric comb, and has a shape-independent large-bin limit for positive $C^1$ profiles. For the statistic $d_{\mathbf r}$ centered at a reference law $\mathbf r\ne\mathbf p$ the absolute values linearize: when every edge is mismatched the variance is that of a linear form in the counts up to an exponentially small error, and in mixed (triangular-array) regimes it is given to $o(N)$ by bivariate folded-normal covariances. The two-bin formulas are recorded from the companion preprints, and exact finite-$N$ reductions for $n\le4$ are used for validation.

math.PR↗

Discrete total variation under the multinomial, Part 3: expectation under a general distribution

For multinomial counts $X\sim\operatorname{Mult}(N;\mathbf p)$ on $n$ ordered bins and a reference law $\mathbf r$ we study the expectation of the reference-centered discrete total variation $d_{\mathbf r}(X)=\sum_{j=1}^{n-1}|(X_{j+1}-Nr_{j+1})-(X_j-Nr_j)|$, the natural extension of the comb-test statistic to a non-uniform null. For a non-uniform null the raw total variation of the counts carries a deterministic staircase of order $N$ that no centering of the statistic removes; the counts are therefore centered at the reference law, and under the null ($\mathbf p=\mathbf r$) the statistic is the matched $d_{\mathbf p}$. Exact finite-sample expectations are obtained by conditioning on the total mass in each adjacent pair, which reduces every edge to a translated binomial absolute-deviation problem. For fixed $n\ge3$ and a sampling law bounded away from the boundary of the simplex, the matched statistic admits a three-term asymptotic expansion in powers of $1/N$ whose coefficients are explicit continuous periodic functions of $N(p_{j+1}-p_j)$ (a generalized, non-Poincaré asymptotic expansion), obtained by a weighted local Edgeworth estimate and a corner Euler--Maclaurin summation; all half-integer orders vanish by parity. Each correction separates into a smooth Edgeworth part and an oscillatory lattice part, the latter an Edgeworth perturbation of one formal Euler--Maclaurin series of a Gaussian lattice sum. Under a sampling law $\mathbf p\neq\mathbf r$ the leading expectation is the folded-normal profile implied by the central limit theorem; under local alternatives we identify the $O(1)$ correction (a skewness term, plus a variance-gradient term for Pitman alternatives), and fixed alternatives give a law-of-large-numbers limit, the $\ell_1$ distance between the adjacent-gradient profiles of $\mathbf p$ and $\mathbf r$, on which threshold tests are consistent.

math.ST↗

Comb Test Under a Non-Uniform Null: Centered Total Variation and Phase-Blindness

The comb test detects alternating histogram defects, every second bin raised. For a non-uniform null it is defined on counts centered on their expected values, keeping it blind to which bins are raised; uncentered counts would expose only one choice of raised bins. Its exact null is computed for any rational null, a first beyond the uniform null for the total variation of counts, and an index known before any data predicts how much uncentered counts would lose. It applies where the null is known: converter code densities, bit-source run lengths, image histograms. With real image histograms as nulls it has about twice the power of pooled chi-square at a 6% mismatch, and it detects a two-lane defect in simulated bit-source run lengths. Code and data are available at https://github.com/DiscreteTotalVariation/ResidualCombTest.

stat.AP↗

Discrete total variation under the multinomial, Part 2: variance under the uniform null

For the counts $(X_1,\dots,X_n)\sim\mathrm{Mult}(N;1/n,\dots,1/n)$ of $N$ observations in $n$ ordered bins we study the variance of the discrete total variation $d=\sum_{i=1}^{n-1}|X_{i+1}-X_i|$. An exact decomposition splits $\mathrm{Var}(d)$ into per-edge, adjacent-pair and disjoint-pair terms and yields, for fixed $n$ as $N\to\infty$, $\mathrm{Var}(d)/N=α(n)-β(n)/N+γ(n)/N^2+o(N^{-2})$. For every $n\ge 2$, $Nα(n)$ is the classical normal-theory variance (Hoel, Kamat) of the sum of absolute successive differences of $n$ independent $N(0,N/n)$ variables; the correction $β(n)$ is obtained in closed form for $n\ge 3$ (the case $n=2$ is treated separately). Two disjoint edge differences $D_1=X_2-X_1$ and $D_3=X_4-X_3$ are exactly uncorrelated and asymptotically independent, yet $\mathrm{Cov}(|D_1|,|D_3|)=-1/(πn)+O(1/N)$: a correlation of relative order $1/N$, invisible in the Gaussian limit and absent under Poissonized sampling, whose constant is proportional to the exact joint fourth cumulant $κ_{2,2}(D_1,D_3)=-4N/n^2$ and is proved here on the lattice. The adjacent pair contributes the lattice-Edgeworth constant $a_*=-2\sqrt{3}/(9π)$, of which one quarter is a smooth Edgeworth term and three quarters a lattice-corner term; the disjoint skeleton $h(m)$ is closed through a Bessel generating function; and $γ(n)$ ($n\ge 5$) is expressed through a single triangular-lattice constant whose closed form we conjecture. Together with the mean of Part 1, the variance supplies the two moments used by moment-matched approximations to the null law of $d$. This is Part 2 of a series; the cyclic statistic $d^{c}$ will be treated in Part 5.

math.PR↗

Absolute moments of the binomial distribution folded at its mean

Let $X\sim Bin(N,p)$ and \(Y=|X-Np|\). We derive an exact reduction for every odd absolute moment of \(Y\), expressing it through finitely many central masses and central tail probabilities. The tail coefficients satisfy a sum rule and are divisible by \(q-p\), so that in the symmetric case the odd ladder collapses to masses alone. We then obtain the complete central-tail expansion at a bounded lattice displacement, with Bernoulli-polynomial coefficients in integer powers of the large parameter. As an application, the first two tail coefficients yield a second-order expansion for the median of the beta distribution, whose formal one-parameter degeneration reproduces the first two terms of Choi's expansion for the gamma median.

math.PR↗

Comb Test: Histogram Uniformity Testing Based on Discrete Total Variation

Histogram uniformity testing is a common statistical task usually performed using Pearson's chi-square test. This paper proposes a complementary test based on the discrete total variation of the bin counts, which is trivial to compute and, unlike chi-square, exploits bin ordering. Its exact null distribution follows from dynamic programming, and a gamma approximation, verified up to $N=5\cdot10^4$, extends it to large samples. Matching alternatives in $\ell_1$ distance locates the test: it gains over chi-square only in the period-2 comb direction and is least sensitive to smooth, single-jump, and depleted-block departures, for which chi-square is preferable. Experiments on converter nonlinearity, rounding bias, and real images confirm the analysis. Code and data are available at https://github.com/DiscreteTotalVariation/CombTest.

stat.ME↗

The classical discrete laws near the mode: complete local expansions for the negative binomial and hypergeometric distributions

We derive complete local asymptotic expansions near the mode for the negative binomial and hypergeometric laws, complementing the binomial expansion obtained in the companion papers. The coefficients are given in closed Bernoulli-polynomial form and retain the exact lattice displacement from the mean. For each law an entropy normalisation replaces the Bernoulli polynomials by reciprocal Bernoulli polynomials and makes the natural reflection symmetry visible. The first-order coefficient also recovers the exact mode rule: in the Katz cases the vertex gives the classical threshold exactly, while in the hypergeometric case its explicit discrepancy is always too small to change the selected integer mode.

math.PR↗

The mean absolute deviation of the classical discrete distributions: collapse identities, complete asymptotic expansions, and enveloping series

For each of the four classical discrete laws --- binomial, Poisson, negative binomial and hypergeometric --- the mean absolute deviation about the mean collapses to a single point mass. We give a common telescoping proof of these identities and interpret the resulting closed forms by size biasing. We then derive complete asymptotic expansions for the Poisson ($λ\to\infty$), negative binomial ($r\to\infty$, $p$ fixed) and hypergeometric ($N\to\infty$, margins in fixed proportion) cases, extending the binomial expansion from the companion papers. The coefficients are given in closed Bernoulli-polynomial form and carry the lattice displacement of the mean exactly. At integer means the expansions reduce to sign-alternating odd series, and a single Binet-kernel argument shows that these series envelop the logarithm of the normalised mean absolute deviation: successive partial sums bracket it.

math.PR↗

Binomial probabilities at a fixed distance from the mode: size-biasing and the complete asymptotic expansion

We study binomial probabilities at a fixed integer distance from the upper mode, in the regime where the fractional part of the mean remains visible. The complete asymptotic expansion is obtained to all orders, uniformly for the success probability in compact subintervals of $(0,1)$ and for bounded shifts from the mode. The main point is structural. A logarithmic tail in the standard local expansion is exactly the binomial size-bias factor, and removing it leaves a pure Appell expansion. A second, symmetric normalisation is governed by an even Appell sequence and recovers the classical Stirling prefactor. The resulting coefficients explain the exact binomial mode rule, recover the central-binomial expansions as a special case, and give closed forms for averaged oscillating coefficients.

math.PR↗

Appell Polynomials in Shifted Asymptotic Expansions: the Mills ratio, Hermite polynomials, and Stieltjes bounds

A theorem of Burić, Elezović and Vuk\v sić states that translating the argument in an asymptotic expansion, $f(x)\sim\sum(-1)^na_nx^{-n-1}$, to $f(x+t)$, replaces the constant coefficients $a_n$ by the Appell polynomials $R_n(t)$ generated by $(a_n)$. Their motivating examples came from the gamma and polygamma functions, where Bernoulli polynomials occur. We extend this construction beyond that setting and identify the Borel--Laplace representation $L_A(x)=\int_0^\infty e^{-xs}A(-s)\,\dd s$, whenever the integral exists. For the Gaussian kernel $A(-s)=e^{-s^2/2}$, this representation gives the \emph{Mills--Hermite} expansion $M(x+t)\sim\sum(-1)^n\He_n(t)x^{-n-1}$, extending the classical scalar expansion. We establish an explicit remainder estimate and derive finite-difference formulas that remain in the Hermite polynomial algebra. As an application, we obtain a large-threshold expansion of the non-central Gaussian tail with explicit polynomial dependence on the mean. If $A(-s)$ is itself the Laplace transform of a positive measure, then the coefficients form a Stieltjes moment sequence. The associated Padé convergents give a systematic hierarchy of two-sided bounds in which successive lower and upper approximants incorporate the moments one at a time.

math.CA↗

Multinomial probabilities near the mode: integer modes and the complete local expansion

Let $X\sim\text{Mult}(N;p_1,\dots,p_n)$ with $p_i>0$ and $\sum_ip_i=1$. We study $\Pr\{X=m\}$ for lattice points near $Np$ from two complementary viewpoints. First, we give an exact integer-mode criterion: the multinomial mode is the Jefferson--D'Hondt divisor apportionment, given when the mode is unique by $m_i=\lfloor (N+d)p_i\rfloor$, $d\in[0,n)$. For $n\ge3$ the mode need not be obtained by rounding each $Np_i$ to a neighbouring integer; the excess $m_i-\lceil Np_i\rceil$ can reach $n-2$, so the two-sided localisation $|m_i-Np_i|<1$ stated in a standard reference is not valid in general. Second, by writing the mass as a gamma quotient with unequal scalings, we derive the complete local expansion of $\Pr\{X=m\}$ in integer powers of $N^{-1}$, with all coefficients in closed Bernoulli-polynomial form. The expansion contains the known $O(N^{-1})$ local limit theorem, reduces to the binomial local mass for $n=2$ and to the central multinomial coefficient in the symmetric case, and admits Cesàro averages of the oscillating coefficients in closed $ζ$-value form.

math.PR↗

Absolute deviations of the binomial about a prescribed centre: the tail expansion in closed form

Let $X\sim Bin(N,p)$ and let $c=Nr$ be a prescribed centre with $r\ne p$. The finite formula for $E|X-c|$ is classical, and the existence of a complete large-deviation expansion in powers of $N^{-1}$ follows from Timashev's saddle-point expansion for binomial tails. We give the coefficients in closed form for the stop-loss tail produced by the absolute deviation, with the lattice defect of $Nr$ retained explicitly. The construction combines three standard ingredients: Bernoulli polynomials for the logarithm of successive binomial masses, the exponential Bell recursion, and Eulerian polynomials for weighted geometric sums. The $k$-th coefficient has denominator exactly $(1-ρ)^{2k+2}$, where $ρ$ is the exponential tilt; hence the effective expansion parameter is $1/(N(1-ρ)^2)$, the lattice weighted analogue of the parameter in the incomplete gamma expansion. The case $r=\tfrac12$ gives the fold at the origin of a biased $\pm1$ random walk, and its parity split is identified with the lattice defect of the fold.

math.PR↗

Local binomial expansions with an Appell shift, and the mean absolute deviation of the binomial distribution

We derive complete asymptotic expansions for the binomial mass at a bounded lattice displacement and for the mean absolute deviation $E|X-Np|$, $X\sim Bin(N,p)$, with $0<p<1$. De Moivre's exact formula reduces the latter problem to the local mass at $ν=\lceil Np\rceil$, so the coefficients depend on the oscillating displacement $h_N=\lceil Np\rceil-Np$. We show that the full expansion is governed by Bernoulli polynomials evaluated at this displacement; equivalently, the lattice correction is an Appell shift in the Stirling series. The calculation is based on a gamma-quotient expansion with unequal linear scalings, stated with uniformity in the bounded shift. In passing from the local mass to the mean absolute deviation, the elementary, non-Bernoulli part of the shift cancels term by term against the De Moivre prefactor, leaving coefficients that are pure Bernoulli polynomials. As consequences, the classical first correction of Frame and Johnson is embedded in the general coefficient sequence, and the Cesàro means of the oscillating coefficients are obtained from the multiplication theorem for Bernoulli polynomials. Finally, although an oscillating asymptotic expansion does not bound its function by truncation, De Moivre's identity together with Robbins's form of Stirling's formula yields an elementary two-sided bound of logarithmic width $O(N^{-2})$ in the interior; and at an integer mean the logarithmic expansion reduces to a sign-alternating series in odd powers of $N^{-1}$ which we prove to be enveloping, via a sign-definite Binet-kernel representation of the combined three-gamma Stirling remainder: successive truncations bracket the mean absolute deviation.

math.CA↗

Zero-disparity Distribution Synthesis: Fast Exact Calculation of Chi-Squared Statistic Distribution for Discrete Uniform Histograms

Pearson's chi-squared test is widely used to assess the uniformity of discrete histograms, typically relying on a continuous chi-squared distribution to approximate the test statistic, since computing the exact distribution is computationally too costly. While effective in many cases, this approximation allegedly fails when expected bin counts are low or tail probabilities are needed. Here, Zero-disparity Distribution Synthesis is presented, a fast dynamic programming approach for computing the exact distribution, enabling detailed analysis of approximation errors. The results dispel some existing misunderstandings and also reveal subtle, but significant pitfalls in approximation that are only apparent with exact values. The Python source code is available at https://github.com/DiscreteTotalVariation/ChiSquared.

stat.ME↗

Reply to Comment on "TVOR: Finding Discrete Total Variation Outliers among Histograms"

In this paper, we respond to a critique of one of our papers previously published in this journal, entitled "TVOR: Finding Discrete Total Variation Outliers among Histograms". Our paper proposes a method for smoothness outliers detection among histograms by using the relation between their discrete total variations (DTV) and their respective sample sizes. In this response, we demonstrate point by point that, contrary to its claims, the critique has not found any mistakes or problems in our paper, either in the used datasets, methodology, or in the obtained top outlier candidates. On the contrary, the critique's claims can easily be shown to be mathematically unfounded, to directly contradict the common statistical theorems, and to go against well established demographic terms. Exactly this is done in the reply here by providing both theoretical and experimental evidence. Additionally, due to critique's complaint, a more extensive research on top outlier candidate, i.e. the Jasenovac list is conducted and in order to clear any of the critique's doubts, new evidence of its problematic nature unseen in other lists are presented. This reply is accompanied by additional theoretical explanations, simulations, and experimental results that not only confirm the earlier findings, but also present new data. The source code is at https://github.com/DiscreteTotalVariation/TVOR.

cs.DM↗

TVOR: Finding Discrete Total Variation Outliers among Histograms

Pearson's chi-squared test can detect outliers in the data distribution of a given set of histograms. However, in fields such as demographics (for e.g. birth years), outliers may be more easily found in terms of the histogram smoothness where techniques such as Whipple's or Myers' indices handle successfully only specific anomalies. This paper proposes smoothness outliers detection among histograms by using the relation between their discrete total variations (DTV) and their respective sample sizes. This relation is mathematically derived to be applicable in all cases and simplified by an accurate linear model. The deviation of the histogram's DTV from the value predicted by the model is used as the outlier score and the proposed method is named Total Variation Outlier Recognizer (TVOR). TVOR requires no prior assumptions about the histograms' samples' distribution, it has no hyperparameters that require tuning, it is not limited to only specific patterns, and it is applicable to histograms with the same bins. Each bin can have an arbitrary interval that can also be unbounded. TVOR finds DTV outliers easier than Pearson's chi-squared test. In case of distribution outliers, the opposite holds. TVOR is tested on real census data and it successfully finds suspicious histograms. The source code is given at https://github.com/DiscreteTotalVariation/TVOR.

stat.ME↗

Asymptotic expansions of integral means and applications to the ratio of gamma functions

Integral means are important class of bivariate means. In this paper we prove the very general algorithm for calculation of coefficients in asymptotic expansion of integral mean. It is based on explicit solving the equation of the form $B(A(x))=C(x)$, where $B$ and $C$ have known asymptotic expansions. The results are illustrated by calculation of some important integral means connected with gamma and digamma functions.

math.CA↗