# 广义平均数

**广义平均数**，又称幂平均或Hölder平均，是一族用于聚合正数集合的函数，由一个实指数 \( p \) 参数化。它以算术平均、几何平均和调和平均（即毕达哥拉斯平均）为特例，还包括均方根，以及在极限指数下的数据最小值与最大值。<sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/PowerMean.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对非零实数 \( p \) 和正数 \( x_1, \ldots, x_n \)：\( M_p = \left( \frac{x_1^p + \cdots + x_n^p}{n} \right)^{1/p} \)<sup>[3](https://academicweb.nd.edu/~dgalvin1/43900/43900_F15/43900F15notes.pdf)</sup> |
| \( p = 0 \) 的情形 | 定义为极限 \( p \to 0 \)，等于几何平均 \( (x_1 \cdots x_n)^{1/n} \)<sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup> |
| 有名称的特例 | \( p = -1 \) 调和平均，\( p = 0 \) 几何平均，\( p = 1 \) 算术平均，\( p = 2 \) 均方根（二次平均），\( p = 3 \) 三次平均<sup>[2](https://mathworld.wolfram.com/PowerMean.html)</sup> |
| 极限情形 | \( M_{-\infty} = \min \) 与 \( M_{+\infty} = \max \) 为各值的最小值与最大值<sup>[4](https://www.statistics.com/glossary/power-mean/)</sup> |
| 单调性 | 对 \( r < s \)，\( M_r \le M_s \)，等号成立当且仅当所有 \( x_i \) 相等<sup>[3](https://academicweb.nd.edu/~dgalvin1/43900/43900_F15/43900F15notes.pdf)</sup> |
| 加权形式 | 取正权重 \( w_i \)，\( M_p^{w} = \left( \sum_i \frac{w_i}{\sum_k w_k} x_i^p \right)^{1/p} \)；无权平均对应所有 \( w_i = 1 \)<sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup> |
| 定义域 | 仅对正（非负）值有定义；具有尺度不变性，但不具有平移不变性<sup>[4](https://www.statistics.com/glossary/power-mean/)</sup> |

## 定义与特例

对非零实数 \( p \) 和正实数 \( x_1, \ldots, x_n \)，指数为 \( p \) 的广义平均为

\[ M_p(x_1, \ldots, x_n) = \left( \frac{x_1^p + \cdots + x_n^p}{n} \right)^{1/p}. \]

该公式与向量的 \( p \)-范数密切相关。<sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup> 当 \( p = 0 \) 时，表达式没有直接定义，因此取值定为几何平均，即 \( M_p \) 当 \( p \) 趋于零时的极限；一种证明方法是用指数函数改写定义，并对指数函数的自变量应用洛必达法则。<sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup>

若干指数产生熟悉的统计量：<sup>[2](https://mathworld.wolfram.com/PowerMean.html)</sup>

- \( p = -1 \)：调和平均，\( \frac{n}{1/x_1 + \cdots + 1/x_n} \)。
- \( p = 0 \)：几何平均，\( (x_1 \cdots x_n)^{1/n} \)。
- \( p = 1 \)：算术平均，\( (x_1 + \cdots + x_n)/n \)。
- \( p = 2 \)：均方根（二次平均）。
- \( p = 3 \)：三次平均。
- \( p \to +\infty \)：各值的最大值；\( p \to -\infty \)：最小值。<sup>[4](https://www.statistics.com/glossary/power-mean/)</sup>

对两个正数 \( a \) 和 \( b \)，这些给出 \( A(a,b) = M_1(a,b) = (a+b)/2 \)、\( G(a,b) = M_0(a,b) = \sqrt{ab} \) 和 \( H(a,b) = M_{-1}(a,b) = 2ab/(a+b) \)。<sup>[5](https://doi.org/10.1016%2Fj.camwa.2011.12.080)</sup>

**加权形式。** 对一列正权重 \( w_i \)，加权幂平均为

\[ M_p^{w}(x_1, \ldots, x_n) = \left( \sum_{i=1}^{n} \frac{w_i}{\sum_k w_k} \, x_i^p \right)^{1/p}, \]

当 \( p = 0 \) 时，它等于加权几何平均 \( \left( \prod_{i=1}^n x_i^{w_i} \right)^{1/\sum_k w_k} \)。<sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup><sup> • </sup><sup>[6](https://e-archivo.uc3m.es/bitstreams/d3ed5d28-0654-4de2-bd34-5f52a250e220/download)</sup> 令每个 \( w_i = 1 \) 即可恢复无权平均。<sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup> 按uc3m文献的记号，\( M_r(\vec{w}, \vec{x}) \) 随 \( r \) 变化所描绘的曲线称为数据向量的Hölder路径。<sup>[6](https://e-archivo.uc3m.es/bitstreams/d3ed5d28-0654-4de2-bd34-5f52a250e220/download)</sup>

## 幂平均不等式

核心的结构性结果是：广义平均数关于其指数单调不减。对实数 \( r < s \),

\[ M_r(a_1, \ldots, a_n) \le M_s(a_1, \ldots, a_n), \]

等号成立当且仅当所有 \( a_i \) 相等。<sup>[3](https://academicweb.nd.edu/~dgalvin1/43900/43900_F15/43900F15notes.pdf)</sup> 取 \( r = -1 \)、\( r = 0 \) 和 \( r = 1 \)，即恢复经典的调和–几何–算术链

\[ \frac{n}{\frac{1}{a_1} + \cdots + \frac{1}{a_n}} \le \sqrt[n]{a_1 \cdots a_n} \le \frac{a_1 + \cdots + a_n}{n}, \]

因此幂平均不等式推广了AM–GM不等式和毕达哥拉斯平均不等式。<sup>[3](https://academicweb.nd.edu/~dgalvin1/43900/43900_F15/43900F15notes.pdf)</sup><sup> • </sup><sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup> 同一不等式在加权形式下也成立，当所有权重都等于 \( 1/n \) 时化归为无权情形。<sup>[3](https://academicweb.nd.edu/~dgalvin1/43900/43900_F15/43900F15notes.pdf)</sup>

对实数 \( p, q \ne 0 \)，该不等式可借助Jensen不等式应用于函数 \( x \mapsto x^{q/p} \) 来证明：当 \( q > 0 \) 时该函数为凸，当 \( q < 0 \) 时为凹；其中一个指数为零的情形则由Jensen不等式应用于对数得出。该不等式还可推广到定义域上可测的非负函数 \( f \)，此时 \( M_{-\infty}(f) = \min_\Omega f \)，\( M_{+\infty}(f) = \max_\Omega f \)，不过除非满足可积性条件，\( p \to 0 \) 时的极限未必等于 \( M_0(f) \)。<sup>[7](https://math.stackexchange.com/questions/4368451/are-the-power-mean-inequalities-still-valid-when-they-are-generalized-to-continu/5013522)</sup>

## 性质

对正自变量，每个广义平均数总介于 \( x \) 各值的最小值与最大值之间。<sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup> 它是其自变量的对称函数：置换自变量不改变其值。<sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup> 它还是一阶齐次的：将每个 \( x_i \) 乘以正常数 \( b \)，平均数也乘以 \( b \)。<sup>[1](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)</sup>

指数控制着对较大值的敏感度。参数 \( p \) 越大，最大值对结果的贡献越大；无界地增大 \( p \)，所得平均数趋近样本最大值；无界地减小 \( p \)，所得平均数趋近最小值。<sup>[4](https://www.statistics.com/glossary/power-mean/)</sup> 由于幂平均仅对非负值有定义，它不具有平移不变性（给每个值加上一个常数会以无法用平均数平移来刻画的方式改变结果），因此更宜将其描述为平均量级的度量，而非中心位置的恰当度量；不过它具有尺度不变性。<sup>[4](https://www.statistics.com/glossary/power-mean/)</sup>

一条实用约定涵盖零的情形：依照哈代、李特尔伍德和波利亚（1952，第13页），当权重严格为正、\( r < 0 \) 且某个 \( x_i \) 为零时，广义平均数取为0；类似地，当某个 \( x_i \) 为 \( \infty \) 且 \( r > 0 \) 时，取为 \( \infty \)。<sup>[8](https://www.rdocumentation.org/packages/gpindex/versions/0.6.3/topics/generalized_mean)</sup>

## 历史

该族以奥托·Hölder（Otto Hölder，1859–1937）命名，这位德国数学家刚到哥廷根工作不久，便在1889年的论文《论一个平均值定理》（Über einen Mittelwerthssatz）中发现了如今以他命名的不等式。<sup>[9](https://mathshistory.st-andrews.ac.uk/Biographies//Holder/)</sup> 这篇1889年的论文基于一个归功于L. J. 罗杰斯（L. J. Rogers）在《数学信使》（*Messenger of Mathematics*）上的观察——任意多个正值的几何平均总小于算术平均——并由一个一般定理导出一系列不等式。<sup>[10](https://de.wikisource.org/wiki/Seite%3AOtto_H%C3%B6lder_Ueber_einen_Mittelwerthssatz_1889.pdf/1)</sup> 后来的文献对这一主题进行了整合，尤其是P. S. 布伦（P. S. Bullen）在《平均及其不等式手册》（*Handbook of Means and Their Inequalities*，Kluwer，2003）中的“幂平均”一章，以及哈代、李特尔伍德和波利亚的《不等式》（*Inequalities*，剑桥大学出版社，1952）中的论述。<sup>[2](https://mathworld.wolfram.com/PowerMean.html)</sup>

## 应用

指数 \( p \) 使广义平均数成为一种可调的聚合器，这在机器学习中被用作池化算子。在弱标注声音事件检测中，模型必须将帧级预测聚合为片段级标签，幂池化推广了平均池化和softmax池化，并让对高激活实例的关注程度可从数据中学习；在两个公开数据集上，一种自适应版本相较线性softmax池化将基于事件的F1分数分别相对提升了11.4%和10.2%。<sup>[11](https://arxiv.org/abs/2010.09985)</sup> 广义平均（Lp）池化也被用于生成紧凑的图像表示，而基于幂平均的变换已被加入CNN线性层，以在几乎不增加参数的情况下获得非线性，据报道在资源受限环境下的小模型上有大幅提升。<sup>[12](https://jyx.jyu.fi/bitstream/handle/123456789/82937/1/1-s2.0-S0893608022003173-main.pdf)</sup><sup> • </sup><sup>[13](https://www.sciencedirect.com/science/article/abs/pii/S0031320318304503)</sup>

在统计学与指数实践中，三种毕达哥拉斯平均是最常用的特例：算术平均、几何平均和调和平均，分别对应 \( r = 1 \)、\( r = 0 \) 和 \( r = -1 \)，被描述为编制价格指数最有用的平均数。<sup>[8](https://www.rdocumentation.org/packages/gpindex/versions/0.6.3/topics/generalized_mean)</sup> 对经典不等式的改进研究仍在继续：近期工作建立了将两数的幂平均与算术平均和几何平均的组合进行比较的不等式，证实了《美国数学月刊》（*American Mathematical Monthly*）上“重访对数平均”一文中的一个猜想。<sup>[14](https://eprints.lancs.ac.uk/id/eprint/175986/)</sup>

## References

1. [Generalized mean (lecture notes), Charles University, Prague](https://www.karlin.mff.cuni.cz/~vlasakv/Predmety/MA1-MFF/Proseminar/Generalized_mean.pdf)
2. [Power Mean, Wolfram MathWorld](https://mathworld.wolfram.com/PowerMean.html)
3. [Power means inequality, lecture notes 43900, University of Notre Dame](https://academicweb.nd.edu/~dgalvin1/43900/43900_F15/43900F15notes.pdf)
4. [Power Mean, Statistics.com glossary](https://www.statistics.com/glossary/power-mean/)
5. [A new sharp double inequality for generalized Heronian, harmonic and power means, Computers & Mathematics with Applications](https://doi.org/10.1016%2Fj.camwa.2011.12.080)
6. [The Case for Shifting the Rényi Entropy, Entropy 2019, 21, 463, Universidad Carlos III de Madrid](https://e-archivo.uc3m.es/bitstreams/d3ed5d28-0654-4de2-bd34-5f52a250e220/download)
7. [Are the power mean inequalities still valid when generalized to continuous functions?, Mathematics Stack Exchange](https://math.stackexchange.com/questions/4368451/are-the-power-mean-inequalities-still-valid-when-they-are-generalized-to-continu/5013522)
8. [generalized_mean function, RDocumentation (gpindex package)](https://www.rdocumentation.org/packages/gpindex/versions/0.6.3/topics/generalized_mean)
9. [Otto Hölder (1859–1937), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Biographies//Holder/)
10. [Otto Hölder: Über einen Mittelwerthssatz (1889), Wikisource](https://de.wikisource.org/wiki/Seite%3AOtto_H%C3%B6lder_Ueber_einen_Mittelwerthssatz_1889.pdf/1)
11. [Power pooling: An adaptive pooling function for weakly labelled sound event detection, arXiv:2010.09985](https://arxiv.org/abs/2010.09985)
12. [Generalized mean pooling for compact image representations, Neural Networks](https://jyx.jyu.fi/bitstream/handle/123456789/82937/1/1-s2.0-S0893608022003173-main.pdf)
13. [Improving CNN linear layers with power mean non-linearity, Pattern Recognition](https://www.sciencedirect.com/science/article/abs/pii/S0031320318304503)
14. [Jameson, Graham (2023). Some inequalities for power means, American Mathematical Monthly 130(3), 276–278](https://eprints.lancs.ac.uk/id/eprint/175986/)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Elementary and formal arithmetic › Elementary arithmetic operations

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/generalized-mean

English original: https://www.edgepedia.org/generalized-mean
