# 顺序统计量

**顺序统计量**是统计样本按数值大小递增排列后的各个取值：给定观测值 \( Y_1, \ldots, Y_N \)，排序后的值 \( Y_{[1]} \le \cdots \le Y_{[N]} \) 即为顺序统计量，而观测值 \( Y_i \) 的秩是它在这次排序中的位置 \( j \)。<sup>[1](https://itl.nist.gov/div898/handbook/prc/section2/prc262.htm)</sup> 第一顺序统计量 \( X_{(1)} \) 是样本最小值，\( X_{(1)} = \min(X_1, \ldots, X_n) \)；第 n 顺序统计量 \( X_{(n)} \) 是样本最大值。<sup>[2](https://www2.stat.duke.edu/~cr173/Sta111_Su14/Lec/Lec10.pdf)</sup>

| 要点 | 说明 |
|---|---|
| 定义 | 样本值按递增顺序排列为 \( Y_{[1]}, \ldots, Y_{[N]} \)；\( Y_i \) 的秩即它在排序列表中的下标 \( j \)<sup>[1](https://itl.nist.gov/div898/handbook/prc/section2/prc262.htm)</sup> |
| 极端值 | \( X_{(1)} = \min(X_1, \ldots, X_n) \)，\( X_{(n)} = \max(X_1, \ldots, X_n) \)<sup>[2](https://www2.stat.duke.edu/~cr173/Sta111_Su14/Lec/Lec10.pdf)</sup> |
| 分布（独立同分布，密度 f） | 所有顺序统计量的联合密度在 \( y_1 < \cdots < y_n \) 上为 \( n!\, f(y_1) \cdots f(y_n) \)<sup>[3](https://www.stat.purdue.edu/~dasgupta/gradprob.pdf)</sup> |
| 第 k 顺序统计量的密度 | \( f_{(k)}(x) = n f(x) \binom{n-1}{k-1} F(x)^{k-1} (1 - F(x))^{n-k} \)<sup>[2](https://www2.stat.duke.edu/~cr173/Sta111_Su14/Lec/Lec10.pdf)</sup> |
| 均匀情形 | \( n \) 个标准均匀随机变量的第 k 顺序统计量服从参数为 \( r = k \)、\( s = n - k + 1 \) 的贝塔分布<sup>[2](https://www2.stat.duke.edu/~cr173/Sta111_Su14/Lec/Lec10.pdf)</sup> |
| 与可靠性的联系 | k/n 系统的寿命即顺序统计量 \( X_{n-k+1:n} \)；并联系统是 1/n 系统，串联系统是 n/n 系统<sup>[4](https://onlinelibrary.wiley.com/doi/10.5402/2012/839473)</sup> |
| 分位数软件 | 常用的样本分位数定义有九种（海因德曼与范，1996）；R 全部实现九种，默认第 7 型；SAS 有五种，Excel 两种，Analytica 一种<sup>[5](https://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html)</sup><sup> • </sup><sup>[6](https://cdc.gov/niosh/ocas/pdfs/dps/dp-comppercdef-1219.pdf)</sup> |

## 分布理论

对于具有公共密度 \( f(x) \) 和累积分布函数 \( F(x) \) 的独立随机变量 \( X_1, \ldots, X_n \)，顺序统计量 \( X_{(1)}, \ldots, X_{(n)} \) 有一套系统的分布理论。<sup>[3](https://www.stat.purdue.edu/~dasgupta/gradprob.pdf)</sup> 所有顺序统计量的联合密度为

\[ f_{1,2,\cdots,n}(y_1, y_2, \cdots, y_n) = n!\, f(y_1) f(y_2) \cdots f(y_n) \, I_{\{y_1 < y_2 < \cdots < y_n\}}. \]

因子 \( n! \) 计数的是把 \( n \) 个样本值分配到 \( n \) 个有序位置上的方式数，而在不满足序关系之处密度为零。<sup>[3](https://www.stat.purdue.edu/~dasgupta/gradprob.pdf)</sup> 任意子集的边缘密度可通过对剩余坐标积分得到，积分时须注意使用正确的积分区域。<sup>[3](https://www.stat.purdue.edu/~dasgupta/gradprob.pdf)</sup>

**单个顺序统计量。** 对于独立同分布的连续样本，第 k 顺序统计量的密度为

\[ f_{(k)}(x) = n f(x) \binom{n-1}{k-1} F(x)^{k-1} (1 - F(x))^{n-k}, \]

它来自这样的要求：有一个观测落在 \( x \) 附近的小区间内，恰有 \( k-1 \) 个观测在它之下，其余 \( n-k \) 个在它之上。<sup>[2](https://www2.stat.duke.edu/~cr173/Sta111_Su14/Lec/Lec10.pdf)</sup> 两个极端值对应的累积分布为

\[ F_{(1)}(x) = 1 - (1 - F(x))^n, \qquad F_{(n)}(x) = F(x)^n. \]

最大值超过 \( x \) 当且仅当每个观测都超过 \( x \)；最小值低于 \( x \) 当且仅当至少有一个观测低于 \( x \)。<sup>[2](https://www2.stat.duke.edu/~cr173/Sta111_Su14/Lec/Lec10.pdf)</sup>

**均匀样本与贝塔分布。** 对于独立同分布的标准均匀变量 \( X_1, \ldots, X_n \)，\( X_{(k)} \) 的密度在 \( (0,1) \) 上化为 \( \binom{n}{k-1} \) 乘以 \( x^{k-1}(1-x)^{n-k} \)，即参数为 \( r = k \)、\( s = n - k + 1 \) 的贝塔分布。<sup>[2](https://www2.stat.duke.edu/~cr173/Sta111_Su14/Lec/Lec10.pdf)</sup> 这一联系还给出贝塔函数的一个化简式：\( B(k, n-k+1) = 1 / (n \binom{n-1}{k-1}) \)。<sup>[2](https://www2.stat.duke.edu/~cr173/Sta111_Su14/Lec/Lec10.pdf)</sup>

**密度的形状。** 若总体分布 \( F \) 关于其中位数对称，则样本中位数的密度关于同一点对称；样本最大值的密度一般右偏，样本最小值的密度左偏。对于一般分布，顺序统计量的密度通常没有初等函数的简单封闭形式，不过大样本近似往往是可能的。<sup>[3](https://www.stat.purdue.edu/~dasgupta/gradprob.pdf)</sup>

## 顺序统计量与分位数

顺序统计量提供了一种估计数据落在给定值之上和之下的比例的方法，这个给定值称为百分位数。第 \( p \) 百分位数是一个值 \( Y_{(p)} \)，使得至多 \( 100p \)% 的观测小于它，至多 \( 100(1-p) \)% 的观测大于它；第 50 百分位数是中位数；百分位数把有序数据分成百份，十分位数则分成十份。<sup>[1](https://itl.nist.gov/div898/handbook/prc/section2/prc262.htm)</sup> 给定 \( n \) 个点，第 i 个点对应的百分位数为 \( i/(n+1) \)，尽管所要求的百分位数常常落在具体数据点之间。<sup>[1](https://itl.nist.gov/div898/handbook/prc/section2/prc262.htm)</sup>

**软件中的九种定义。** 1996 年，统计学家、多部预测学著作的作者罗布·J·海因德曼（Rob J Hyndman）与亚南·范（Yanan Fan）在《美国统计学家》（*The American Statistician*）第 50 卷第 4 期第 361–365 页发表论文，比较了统计软件包中最常实现的几种样本分位数定义，用统一记号将它们写出，并主张采用一个标准定义，使不同软件包、以及同一软件包内不同过程给出相同答案。<sup>[7](https://fpp.robjhyndman.com/publications/quantiles/index.html)</sup> 该文识别出九种定义，大多数统计软件包使用其中之一。<sup>[6](https://cdc.gov/niosh/ocas/pdfs/dps/dp-comppercdef-1219.pdf)</sup> 海因德曼与范倾向于中位数无偏估计量，因为它具备分位数估计量所应具备的大部分优良性质，且其定义无需参照数据背后的分布。<sup>[7](https://fpp.robjhyndman.com/publications/quantiles/index.html)</sup>

九种类型都可写成相邻顺序统计量的加权平均：

\[ Q_i(p) = (1 - \gamma) x_j + \gamma x_{j+1}, \]

其中 \( x_j \) 是第 j 顺序统计量，\( j = \lfloor np + m \rfloor \)，\( g = np + m - j \)，\( m \) 是由类型决定的常数。<sup>[5](https://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html)</sup> 第 1、2、3 型关于 \( p \) 不连续，使用经验分布函数或其变体；基于经验分布函数的估计中，分位数总是某个观测数据值或两个相邻数据值的平均。<sup>[5](https://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html)</sup><sup> • </sup><sup>[6](https://cdc.gov/niosh/ocas/pdfs/dps/dp-comppercdef-1219.pdf)</sup> 第 4 至 9 型在绘图位置 \( p_k \) 之间线性插值：第 4 型用 \( p_k = k/n \)；第 5 型用 \( p_k = (k - 0.5)/n \)，在水文学家中流行；第 6 型用 \( p_k = k/(n+1) \)，为 Minitab 和 SPSS 采用；第 7 型用 \( p_k = (k-1)/(n-1) \)，为 S 采用；第 8 型用 \( p_k = (k - 1/3)/(n + 1/3) \)，无论 \( x \) 服从什么分布都给出近似中位数无偏的估计；第 9 型用 \( p_k = (k - 3/8)/(n + 1/4) \)，当 \( x \) 服从正态分布时给出对期望顺序统计量近似无偏的估计。<sup>[5](https://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html)</sup>

**软件默认值。** R 的函数 `quantile()` 实现全部九种方法，由 `type` 参数选择，默认第 7 型，这也是 S 以及 2.0.0 版本之前的 R 所采用的。<sup>[5](https://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html)</sup> 2019 年的一项比较指出，大多数软件包实现不止一种方法并指定其中之一为默认：Analytica 有九种中的一种，Excel 两种，SAS 五种，R 全部九种；SAS 的默认是第 2 型。<sup>[6](https://cdc.gov/niosh/ocas/pdfs/dps/dp-comppercdef-1219.pdf)</sup><sup> • </sup><sup>[5](https://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html)</sup> 马科宁（Makkonen）与帕亚里（Pajari）（2014）主张采用第 6 型——这一定义其实早在 1939 年就由韦布尔（Weibull）提出——理由是：与按秩排列的样本值相联系的概率是精确已知的。<sup>[5](https://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html)</sup><sup> • </sup><sup>[8](https://doi.org/10.1155/2014%2F326579)</sup> 这一选择在实践中确有影响：在同一个软件包内，计算分位数时可能用一种定义，而绘制箱线图、概率图或 QQ 图时却用其他定义。<sup>[7](https://fpp.robjhyndman.com/publications/quantiles/index.html)</sup> 数据中的并列值还带来进一步的麻烦，因为 1996 年那篇论文中的频数表达式假定观测值互不相同；存在并列观测时，例如 \( x = (1, 2, 2) \) 且 \( p = 0.5 \)，第 3 型定义就可能失效。<sup>[7](https://fpp.robjhyndman.com/publications/quantiles/index.html)</sup>

## 应用

**可靠性工程。** 在可靠性工程中，k/n 系统是 n 个部件的一种配置，当且仅当其中至少有 k 个部件正常工作时系统才正常工作，其寿命等于顺序统计量 \( X_{n-k+1:n} \)。并联系统是 1/n 系统，串联系统是 n/n 系统，因此研究 k/n 系统的寿命等价于研究顺序统计量的随机性质。<sup>[4](https://onlinelibrary.wiley.com/doi/10.5402/2012/839473)</sup> 间隔（相邻顺序统计量之差）在寿命试验和可靠性模型中很重要；例如，来自递减故障率（DFR）分布的随机样本，其间隔在条件意义下依次递增。<sup>[4](https://onlinelibrary.wiley.com/doi/10.5402/2012/839473)</sup> 这方面的工作大多假定观测独立同分布，而在可靠性应用中观测往往并非独立同分布，这一情形近几十年来引起了研究者的关注。<sup>[4](https://onlinelibrary.wiley.com/doi/10.5402/2012/839473)</sup>

**非参数推断。** 顺序统计量是总体分位数的非参数置信区间的基础。帕帕达托斯（Papadatos，1995）提出了顺序统计量的一种推广——中间顺序统计量，并用它为绝对连续分布的分位数构造非参数置信区间，还应用于唯一中位数的置信区间。<sup>[9](https://www.sciencedirect.com/science/article/pii/016771529400071F)</sup> 赫特曼斯珀格–希瑟（Hettmansperger–Sheather）插值法由排序观测 \( X_k \) 与 \( X_{n-k+1} \) 构造中位数的置信区间，其 \( k \) 根据试验次数为 \( n \)、成功概率为 0.5 的二项分布概率选取，并在相邻顺序统计量之间插值。<sup>[10](https://www.itl.nist.gov/div898/software/dataplot/refman1/auxillar/mediancl.htm)</sup> 顺序统计量还是通过分位数比较独立样本的那些方法的基础，例如 Quor 方法，它仅依赖样本的顺序统计量，只要求独立性。<sup>[11](https://arxiv.org/abs/1212.5405)</sup>

**容忍与覆盖。** 顺序统计量定义了无分布容忍区间：例如可以寻找两个顺序统计量，使得包含在二者之间的总体比例达到 95% 的置信度至少为 90%，相应的分布是二项分布。<sup>[12](https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir4941.pdf)</sup>

## 历史与文献

关于有序随机变量及其函数的系统理论，见于 H. A. 戴维（H. A. David）与 H. N. 纳加拉贾（H. N. Nagaraja）合著的专著《顺序统计量》（*Order Statistics*）。戴维是爱荷华州立大学统计学荣休杰出教授，纳加拉贾是俄亥俄州立大学教授，该书第三版（Wiley，2003）系统地展开了分布理论，并涵盖包括异常值处理在内的应用。<sup>[13](https://onlinelibrary.wiley.com/doi/book/10.1002/0471722162)</sup> 国家标准局早期关于秩顺序统计量的理论工作包括 I·理查德·萨维奇（I. Richard Savage）1954 年的报告《秩顺序统计量理论的贡献》（*Contributions to the theory of rank order statistics*，NBS 报告 3262）。<sup>[14](https://www.nist.gov/publications/contributions-theory-rank-order-statistics)</sup>

## References

1. [NIST/SEMATECH e-Handbook of Statistical Methods, Section 7.2.6.2: Percentiles](https://itl.nist.gov/div898/handbook/prc/section2/prc262.htm)
2. [Sta 111 Lecture 10: Joint Distributions & Order Statistics, Duke University](https://www2.stat.duke.edu/~cr173/Sta111_Su14/Lec/Lec10.pdf)
3. [A. DasGupta, Graduate Probability lecture notes, Purdue University](https://www.stat.purdue.edu/~dasgupta/gradprob.pdf)
4. [S. Kochar (2012). Stochastic Comparisons of Order Statistics and Spacings: A Review. International Scholarly Research Notices.](https://onlinelibrary.wiley.com/doi/10.5402/2012/839473)
5. [R Documentation: quantile {stats}](https://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html)
6. [NIOSH/OCAS (December 2019). Comparison of Several Percentile Definitions.](https://cdc.gov/niosh/ocas/pdfs/dps/dp-comppercdef-1219.pdf)
7. [R. J. Hyndman and Y. Fan (1996). Sample quantiles in statistical packages. The American Statistician 50(4), 361–365.](https://fpp.robjhyndman.com/publications/quantiles/index.html)
8. [L. Makkonen (2014). Defining Sample Quantiles by the True Rank Probability. Journal of Probability and Statistics.](https://doi.org/10.1155/2014%2F326579)
9. [N. Papadatos (1995). Intermediate order statistics with applications to nonparametric estimation. Statistics & Probability Letters 22(3), 231–238.](https://www.sciencedirect.com/science/article/pii/016771529400071F)
10. [Dataplot Reference Manual: Median Confidence Limits, NIST](https://www.itl.nist.gov/div898/software/dataplot/refman1/auxillar/mediancl.htm)
11. [Confidence Statements for Ordering Quantiles (Quor method), arXiv](https://arxiv.org/abs/1212.5405)
12. [NISTIR 4941: Selected publications for the Advanced Mass Measurements Workshop](https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir4941.pdf)
13. [H. A. David and H. N. Nagaraja (2003). Order Statistics, 3rd ed., Wiley Series in Probability and Statistics.](https://onlinelibrary.wiley.com/doi/book/10.1002/0471722162)
14. [I. Richard Savage (1954). Contributions to the theory of rank order statistics. NBS Report 3262, NIST.](https://www.nist.gov/publications/contributions-theory-rank-order-statistics)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Foundations of statistical inference › Statistical inference: overview

Copyright 2026 Edgepedia

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

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

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