Block-Restricted One-Swap Permutations
- The paper establishes the analytical tractability of block-restricted one-swap permutations, demonstrating exact finite-sample validity and variance reduction in both two-sample testing and combinatorial sorting.
- Block-restricted one-swap permutations are defined by permissible cross-block swaps within designated representatives, ensuring a rigorously constrained action space for efficient computation.
- The methodology leverages limited swap operations to yield tighter variance bounds and higher statistical power compared to full relabeling, enhancing both inference and sorting performance.
Block-restricted one-swap permutations are a highly structured class of permutations, relevant in both combinatorial sorting theory and the design of statistical permutation tests. The terminology spans two technical contexts: (1) structured test statistics in two-sample testing via block-restricted swaps between representatives, and (2) combinatorial characterization of permutations in the symmetric group that are sortable to the identity using exactly one prescribed block-interchange, as encoded by the context-directed swap (cds) operation. Both settings exhibit sharply restricted action spaces, admit exact analytical treatment, and find applications in statistical inference and permutation group theory.
1. Formal Definition of Block-Restricted One-Swap Permutations
In the statistical two-sample framework, suppose there are two groups and , total items. The set is partitioned into disjoint blocks via any label-invariant rule (e.g., quantiling on auxiliary covariates or kernel scores). A representative set of size , , allocates quota per block. The permissible cross-swaps are
A block-restricted one-swap permutation is any permutation obtainable from the identity via a single transposition in . More generally, an -swap block-restricted path is a sequence of disjoint one-swap moves, with (Ho, 29 Nov 2025).
In the combinatorial context, the cds sorting operation on acts by swapping two disjoint, specific blocks, determined by the occurrence pattern of pairs of “pointers” in the permutation’s pointer word. A permutation is block-restricted one-swap sortable if it requires exactly one cds operation to become the identity (Brown et al., 2020).
2. Algebraic and Combinatorial Structure
In the block-restricted two-sample setting, the set of admissible permutations forms a fixed subset of the symmetric group , specified a priori by the blocks and representatives. These permutations are reachable via disjoint one-swap cross-block transpositions from the identity. This structure makes the analysis of test statistic increments and variance tractable, as the set structure is stable and independent of observed labels (Ho, 29 Nov 2025).
For cds one-swap-sortable permutations, there is an equivalent cycle-structure criterion: Define , , and . The permutation is cds one-swap-sortable if and only if has a unique $4$-cycle for some distinct and all other cycles are fixed points. Equivalently, the strategic pile has size two, and there is exactly one eligible pointer context (Brown et al., 2020).
3. Exact Validity and Increment Formulas in Statistical Testing
A principal advantage of block-restricted one-swap permutations in hypothesis testing is exact finite-sample validity. For any fixed (label-invariant) restricted set , drawing i.i.d. permutations uniformly from and forming the usual permutation -value yields type-I error control at all levels:
When (all block-restricted one-swap permutations), randomization inference remains exact in finite samples without recourse to subgroup symmetry or worst-case conditions (Ho, 29 Nov 2025).
The restricted action space of single swaps enables closed-form increment calculations for common test statistics:
- Mean Difference: For , swapping , , . Conditional variance under random one-swap is , contrasted with variability under full-relabeling permutation.
- Unbiased : The one-swap change is , and the conditional variance is the sum of within-class variances of the swap effectors.
The variance contraction (from to ) leads to tighter control of permutation quantiles and better Bernstein–Freedman tail proxies.
4. Power Enhancement and Critical Value Behavior
Under full relabeling, the null permutation distribution of the statistic admits Chebyshev or normal-approximation quantile bounds:
The block-restricted scheme, by contrast, yields Bernstein–Freedman upper bounds:
with for the mean or for MMD, . Because , is substantially below for the same , for large . The result is higher statistical power under alternatives:
Pointwise, (Ho, 29 Nov 2025). Empirically, gains are maximized for balanced, large samples and block schemes that exploit high-contrast structures (e.g., kernel-score stratification).
5. Enumeration and Structure in
Within the cds framework, every one-swap-sortable permutation corresponds uniquely to an unordered pair , , and a choice of orientation for the 4-cycle. The total number is . These permutations are extremely sparse, in total against overall. Detecting single-swap-sortability is : compute the strategic pile and scan for pointer-interleaving (Brown et al., 2020).
Such permutations sit at the minimal nontrivial end of the cds complexity spectrum: the first nonzero member in the species-by-contexts partition at . They admit two equivalent block forms depending on the context’s order in the pointer word, e.g.,
for pointer pairs with .
6. Relationship to Broader Permutation and Testing Theory
Block-restricted one-swap permutations provide a test-bed for studying the trade-off between label-exchange symmetry and power in permutation tests. Their a priori definition ensures exact validity and sharp variance behavior, exploiting fixed group structure rather than average- or worst-case coverage.
In the cds sorting paradigm, block-restricted one-swap permutations characterize the boundary of “minimal non-sortability”—the fewest possible eligible pointer contexts and smallest possible strategic pile size (2) to require any block-interchange operation. This positions them as a combinatorial extreme, with implications for sorting complexity and group action enumeration.
These frameworks, found in "Restricted Block Permutation for Two-Sample Testing" (Ho, 29 Nov 2025) and "Classifying Permutations under Context-Directed Swaps and the cds game" (Brown et al., 2020), exemplify structured, low-complexity randomization mechanisms enabling rigorous finite-sample statistical guarantees and rich algebraic properties.