Hostname: page-component-74656f9884-rngvg Total loading time: 0 Render date: 2026-11-05T23:19:44.255Z Has data issue: false hasContentIssue false

The k-window statistic in a random permutation

Published online by Cambridge University Press:  03 September 2026

Hosam Mahmoud*
Affiliation:
The George Washington University
*
*Postal address: Department of Statistics, The George Washington University, Washington, DC 20052, USA. Email address: hosam@gwu.edu
Rights & Permissions [Opens in a new window]

Abstract

We introduce a new permutation statistic, which we call the k-window statistic, for permutations of $\{1,2,\ldots, n\}$. The aim is to add to the repertoire of potentially useful tools in the design of efficient algorithms. The k-window statistic counts the number of elements that are at a displacement at most k from their natural positions in the ascendingly sorted permutation. We find the exact mean and exact variance of the k-window statistic, revealing phases in the mean and variance in the different regimes of k. We find a weak (or even strong) law of large numbers in the regime where $k=k_n$ is growing but remains ${\mathrm{o}} (n)$. Via a representation of the statistic into dependent heterogeneous weakly correlated indicators, we establish the complete spectrum of distributions as $k_n$ spans its entire range using an appropriate method for each regime.

Information

Type
Original Article
Copyright
© The Author(s), 2026. Published by Cambridge University Press on behalf of Applied Probability Trust
Figure 0

Figure 1. The permutation Π8=(3,8,1,6,2,7,5,4)$\boldsymbol{\Pi}_{8}=(3,8,1,6,2,7,5,4)$ represented as bullets in an 8×8$8\times8$ grid appearing at the positions (i,πi)$(i, \pi_{i})$. The pink shaded cells satisfy |i−j|≤k$|i-j| \le k$; (a) k=2$k=2$, (b) k=5$k=5$.

Figure 1

Table 1. Asymptotics for some selected kn$k_n$ functions.Table 1 long description.

Figure 2

Figure 2. The coefficient ρ(α)$\rho(\alpha)$ of n as a function of α$\alpha$.