# 马洪统计量

**马洪统计量**是排列上（更一般地，词上）的一种统计量，其分布与逆序数的分布相同：它在对称群 \( S_n \) 上的生成函数是 q-阶乘 \( [n]_q! = [1]_q \cdot [2]_q \cdots [n]_q \)，其中 \( [k]_q = 1 + q + q^2 + \cdots + q^{k-1} \)<sup>[1](https://www.findstat.org/StatisticsDatabase/St000004/)</sup>。等价地，一个统计量若在 \( S_n \) 上的分布等于逆序数的分布，就称为马洪统计量<sup>[2](https://sites.math.rutgers.edu/~zeilberg/Theses/AndrewBaxterThesis.pdf)</sup>。此名纪念珀西·亚历山大·麦克马洪（Percy Alexander MacMahon），他在二十世纪初的工作开创了排列统计量的系统研究<sup>[3](https://www.mat.univie.ac.at/~slc/s/s44stein.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义分布 | \( \sum_{\pi \in S_n} q^{\mathrm{inv}(\pi)} = \sum_{\pi \in S_n} q^{\mathrm{maj}(\pi)} = [n]_q! = (1+q)(1+q+q^2)\cdots(1+q+\cdots+q^{n-1}) \)<sup>[2](https://sites.math.rutgers.edu/~zeilberg/Theses/AndrewBaxterThesis.pdf)</sup> |
| 原型统计量 | 逆序数 inv（由内托（Netto）引入）与主指标 maj（由麦克马洪引入）<sup>[2](https://sites.math.rutgers.edu/~zeilberg/Theses/AndrewBaxterThesis.pdf)</sup> |
| 词 | 对一个词的每个重排类 \( R(c) \)，maj 与 inv 具有相同的生成函数，即 q-多项系数 \( \begin{bmatrix} c(1)+\cdots+c(r) \\ c(1),\ldots,c(r) \end{bmatrix}_q \)<sup>[4](https://citeseerx.ist.psu.edu/document?doi=5ea9349be6cd8f87698a3d21c75be8beea5f2b0e&repid=rep1&type=pdf)</sup> |
| 均值与方差 | 对随机排列，马洪分布的均值为 \( E\,M_n = n(n-1)/4 \)，方差为 \( \mathrm{Var}\,M_n = n(n-1)(2n+5)/72 \)<sup>[5](https://sites.math.rutgers.edu/~zeilberg/mamarim/mamarimPDF/mahon.pdf)</sup> |
| 渐近性质 | 在排列上，inv 与 maj 渐近独立且正态分布；在词上，二者渐近联合服从二元正态分布<sup>[6](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/F68F57B314C4F27AE9D80190D01E744B/S0963548315000346a.pdf/inversion_number_and_the_major_index_are_asymptotically_jointly_normally_distributed_on_words.pdf)</sup> |
| 分类 | 文献中几乎所有的马洪排列统计量都是连结模式的线性组合；当模式长度至多为 3 时，只有十四种可能<sup>[3](https://www.mat.univie.ac.at/~slc/s/s44stein.pdf)</sup> |

## 两个原型统计量

对排列 \( \sigma = a_1 a_2 \ldots a_n \)，一个逆序是一对位置 \( i < j \) 且 \( a_i > a_j \)，逆序数 \( \mathrm{inv}\,\sigma \) 计数这样的对。对 \( \sigma = 41523 \)，逆序集为 \( \{(1,2), (1,4), (1,5), (3,4), (3,5)\} \)，所以 \( \mathrm{inv}\,\sigma = 5 \)<sup>[7](https://users.math.msu.edu/users/bsagan/Papers/Old/pps.pdf)</sup>。inv 的分布早在 1839 年就由罗德里格斯（Rodriguez）给出，内托后来证明其重量枚举式是 q-阶乘<sup>[3](https://www.mat.univie.ac.at/~slc/s/s44stein.pdf)</sup><sup> • </sup><sup>[2](https://sites.math.rutgers.edu/~zeilberg/Theses/AndrewBaxterThesis.pdf)</sup>。

**主指标**将下降的位置相加，下降位置 \( i \) 满足 \( a_i > a_{i+1} \)：\( \mathrm{maj}\,\sigma = \sum_{i \in \mathrm{Des}\,\sigma} i \)。对 \( \sigma = 41523 \)，下降集为 \( \{1, 3\} \)，所以 \( \mathrm{maj}\,\sigma = 1 + 3 = 4 \)<sup>[7](https://users.math.msu.edu/users/bsagan/Papers/Old/pps.pdf)</sup>。麦克马洪在 1913 年关于排列指标的论文中引入这个统计量<sup>[8](https://www.jstor.org/stable/2370312)</sup>，并证明它在 \( S_n \) 上的分布也由 q-阶乘给出，因此对每个 \( n \)，inv 与 maj 等分布<sup>[2](https://sites.math.rutgers.edu/~zeilberg/Theses/AndrewBaxterThesis.pdf)</sup>。

这个名字有一段奇特的历史。麦克马洪称他的统计量为大指标（greater index）；它被译成法文 *l'indice majeur*，而法语形容词又被译回英文作“major index”，从而留下一个暗指麦克马洪军衔的典故<sup>[2](https://sites.math.rutgers.edu/~zeilberg/Theses/AndrewBaxterThesis.pdf)</sup>。

## 等分布与双射

inv 与 maj 的等分布并非整个对称群所特有的偶然现象。麦克马洪证明了更强的命题：主指标与逆序数在每个重排类 \( R(c) \) 上等分布，\( R(c) \) 是非降词 \( 1^{c(1)} 2^{c(2)} \ldots r^{c(r)} \) 的所有重排构成的集合；共同的生成函数是 q-多项系数<sup>[4](https://citeseerx.ist.psu.edu/document?doi=5ea9349be6cd8f87698a3d21c75be8beea5f2b0e&repid=rep1&type=pdf)</sup>。

**第二基本变换。** 福阿塔（Foata）变换 \( \Phi \) 将每个词 \( w \) 映到同一字母多重集的重排 \( \Phi(w) \)，并满足 \( \mathrm{maj}\,w = \mathrm{inv}\,\Phi(w) \)，且它在每个重排类上的限制是该类到自身的双射<sup>[9](https://irma.math.unistra.fr/~foata/paper/pub109StatCollect.pdf)</sup>。在排列上，福阿塔双射将满足 \( \mathrm{maj}(w) = x \) 的排列 \( w \) 映到满足 \( \mathrm{inv}(F(w)) = x \) 的排列 \( F(w) \)<sup>[10](https://oeis.org/A195924)</sup>。这一结果得到细化：福阿塔用双射证明，对任意固定的末值 \( i \)，inv 与 maj 在 \( \{\pi \in S_n : \pi_n = i\} \) 上等分布<sup>[2](https://sites.math.rutgers.edu/~zeilberg/Theses/AndrewBaxterThesis.pdf)</sup>。

多米尼克·福阿塔（Dominique Foata）与马塞尔-保罗·舒岑贝格（Marcel-Paul Schützenberger）1978 年的论文《排列的主指标与逆序数》（*Major Index and Inversion Number of Permutations*，Mathematische Nachrichten 83，第 143–159 页）使图景更加清晰。他们构造了一个双射 \( \varphi \)，它保持逆下降集不变，同时交换 INV 与 MAJ；因此，参数对 (MAJ, INV)、(IMAJ, INV) 和 (IMAJ, MAJ) 中的每一对，在 \( S_n \) 的全部 \( n! \) 个排列上都服从相同的二元分布<sup>[11](https://igm.univ-mlv.fr/~berstel/Mps/Travaux/A/1978-3MajorIndexMathNachr.pdf)</sup><sup> • </sup><sup>[12](https://onlinelibrary.wiley.com/doi/full/10.1002/mana.19780830111)</sup>。由于 (IMAJ, MAJ) 的分布按定义是对称的，所以 (MAJ, INV) 也如此；肯塔基大学（University of Kentucky）的王钟（Chung C. Wang）曾发表 \( n \le 7 \) 时 (MAJ, INV) 的分布表，并观察到这一对称性<sup>[11](https://igm.univ-mlv.fr/~berstel/Mps/Travaux/A/1978-3MajorIndexMathNachr.pdf)</sup>。福阿塔与舒岑贝格进一步证明，在任意一组具有固定升降序列的排列中，逆序数与逆主指标等分布。<sup>[13](https://www.mat.univie.ac.at/~slc/opapers/s22desare.html)</sup>

## 马洪统计量的族

除 inv 与 maj 之外，许多统计量也具有马洪分布。福阿塔与蔡尔伯格（Zeilberger）引入了统计量 mak，而巴布森（Babson）与斯泰因格里姆松（Steingrímsson）的分类把这些统计量写成连结模式之和：例如，\( \mathrm{maj} = (a\,cb) + (b\,ca) + (c\,ba) + (ba) \) 与 \( \mathrm{mak} = (b\,ca) + (cb\,a) + (a\,cb) + (ba) \)<sup>[3](https://www.mat.univie.ac.at/~slc/s/s44stein.pdf)</sup>。

**连结模式。** 2000 年，巴布森与斯泰因格里姆松引入了如今所称的排列连结模式，其中模式的两个相邻字母可被要求在该排列中相邻，并用它们重新定义已知的马洪统计量、引入新的马洪统计量<sup>[14](https://strathprints.strath.ac.uk/54230/)</sup>。他们证明，文献中几乎所有马洪排列统计量都能写成这类模式的线性组合，而且几乎都能用长度至多为 3 的模式写出；这样的统计量只有十四种可能，其中八种已知，三种在他们的论文中被证明是马洪的，三种为猜想<sup>[3](https://www.mat.univie.ac.at/~slc/s/s44stein.pdf)</sup>。这些猜想后来由福阿塔与蔡尔伯格于 2001 年、福阿塔与兰德里亚纳里沃尼（Randrianarivony）于 2006 年证明<sup>[14](https://strathprints.strath.ac.uk/54230/)</sup>。2010 年，伯斯坦（Burstein）给出了主指标取固定值的排列与统计量 STAT 取同值的排列之间的双射，基塔耶夫（Kitaev）与瓦伊诺夫斯基（Vajnovszki）在 2016 年用它证明了 STAT 在词上的一个对应统计量具有马洪性<sup>[14](https://strathprints.strath.ac.uk/54230/)</sup>。

**联合分布。** 将一个马洪统计量与一个欧拉统计量（如下降数 des）配对，得到欧拉–马洪多项式 \( A_n(q,t) = \sum_{\pi \in S_n} q^{\mathrm{maj}(\pi)}\, t^{\mathrm{des}(\pi)} \)，这是一个被充分研究的序列<sup>[2](https://sites.math.rutgers.edu/~zeilberg/Theses/AndrewBaxterThesis.pdf)</sup>。等分布结果可推广到集合分拆、带符号词与部分排列：在带符号词上，旗主指标与旗逆序数是 maj 与 inv 的对应物，福阿塔与韩（Han）构造了一个变换，将其中一个映到另一个，同时保持逆路线行（inverse ligne of route）与低记录<sup>[9](https://irma.math.unistra.fr/~foata/paper/pub109StatCollect.pdf)</sup>。福阿塔与蔡尔伯格还定义了图版本 \( \mathrm{maj}_U \) 与 \( \mathrm{inv}_U \)，由一个字母表上的有向图 \( U \) 索引，并证明它们在所有重排类上等分布当且仅当 \( U \) 是双分的<sup>[15](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v25i1p1)</sup>。

## 概率

马洪分布是随机排列的逆序数的分布。若 \( Y_j \) 是满足 \( i < j \) 且 \( \pi_i > \pi_j \) 的 \( i \) 的个数，则 \( M_n = Y_1 + \cdots + Y_n \)，其中各 \( Y_j \) 相互独立，且 \( Y_j \) 在 \( \{0, \ldots, j-1\} \) 上均匀分布；这可通过将 \( 1, \ldots, n \) 依次插入随机位置来构造排列得出。均值和方差为 \( E\,M_n = n(n-1)/4 \) 与 \( \mathrm{Var}\,M_n = n(n-1)(2n+5)/72 \)<sup>[5](https://sites.math.rutgers.edu/~zeilberg/mamarim/mamarimPDF/mahon.pdf)</sup>。

该分布是渐近正态的。巴克斯特（Baxter）与蔡尔伯格证明，在排列上逆序数与主指标渐近独立且正态分布；坎菲尔德（Canfield）、詹森（Janson）与蔡尔伯格证明，在词上马洪分布渐近正态<sup>[6](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/F68F57B314C4F27AE9D80190D01E744B/S0963548315000346a.pdf/inversion_number_and_the_major_index_are_asymptotically_jointly_normally_distributed_on_words.pdf)</sup>。苏黎世大学数学研究所（Institut für Mathematik at the Universität Zürich）的马尔科·蒂尔（Marko Thiel）于 2016 年补全了图景，证明在词上逆序数与主指标联合收敛到二元正态分布<sup>[6](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/F68F57B314C4F27AE9D80190D01E744B/S0963548315000346a.pdf/inversion_number_and_the_major_index_are_asymptotically_jointly_normally_distributed_on_words.pdf)</sup>。

## References

1. [FindStat, StatisticsDatabase St000004: The major index of a permutation](https://www.findstat.org/StatisticsDatabase/St000004/)
2. [Andrew Baxter, Algorithms for Permutation Statistics (Ph.D. thesis, Rutgers University)](https://sites.math.rutgers.edu/~zeilberg/Theses/AndrewBaxterThesis.pdf)
3. [Eric Babson and Einar Steingrímsson, Generalized permutation patterns and a classification of the Mahonian statistics, Séminaire Lotharingien de Combinatoire 44](https://www.mat.univie.ac.at/~slc/s/s44stein.pdf)
4. [A Classification of Mahonian maj-inv Statistics (CiteSeerX)](https://citeseerx.ist.psu.edu/document?doi=5ea9349be6cd8f87698a3d21c75be8beea5f2b0e&repid=rep1&type=pdf)
5. [E. Rodney Canfield, Svante Janson, Doron Zeilberger, The Mahonian probability distribution on permutations](https://sites.math.rutgers.edu/~zeilberg/mamarim/mamarimPDF/mahon.pdf)
6. [Marko Thiel, The Inversion Number and the Major Index are Asymptotically Jointly Normally Distributed on Words, Combinatorics, Probability and Computing 25 (2016), 470–483](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/F68F57B314C4F27AE9D80190D01E744B/S0963548315000346a.pdf/inversion_number_and_the_major_index_are_asymptotically_jointly_normally_distributed_on_words.pdf)
7. [Bruce Sagan, Permutation patterns and statistics](https://users.math.msu.edu/users/bsagan/Papers/Old/pps.pdf)
8. [P. A. MacMahon, The Indices of Permutations and the Derivation Therefrom of Functions of a Single Variable Associated with the Permutations of any Assemblage of Objects, American Journal of Mathematics 35 (1913), 281–322](https://www.jstor.org/stable/2370312)
9. [Dominique Foata and Guo-Niu Han, Signed Words and Permutations, I; A Fundamental Transformation, Proc. Amer. Math. Soc. 135 (2007), 31–40](https://irma.math.unistra.fr/~foata/paper/pub109StatCollect.pdf)
10. [OEIS A195924](https://oeis.org/A195924)
11. [Dominique Foata and Marcel-Paul Schützenberger, Major Index and Inversion Number of Permutations (PDF transcription)](https://igm.univ-mlv.fr/~berstel/Mps/Travaux/A/1978-3MajorIndexMathNachr.pdf)
12. [Foata, D. and Schützenberger, M.-P. (1978), Major Index and Inversion Number of Permutations, Math. Nachr. 83: 143–159](https://onlinelibrary.wiley.com/doi/full/10.1002/mana.19780830111)
13. [Desarménien, Foata et al., Séminaire Lotharingien de Combinatoire 22: Mahonian statistics](https://www.mat.univie.ac.at/~slc/opapers/s22desare.html)
14. [Sergey Kitaev and Vincent Vajnovszki (2016), Mahonian STAT on words, Information Processing Letters 116, 157–162](https://strathprints.strath.ac.uk/54230/)
15. [Amy Grady and Svetlana Poznanović (2018), Graphical Mahonian Statistics on Words, The Electronic Journal of Combinatorics 25(1), #P1.1](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v25i1p1)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra › Algebraic combinatorics and graph theory

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/mahonian-statistic

English original: https://www.edgepedia.org/mahonian-statistic
