Which average multiplier reproduces a sequence of positive growth factors?
The geometric mean is the root of the product of positive values. It summarizes successive multiplicative changes.
Python example and interpretation
Doubling then halving returns to the start, equivalent to a factor of one per step. Supply factors such as 2 and 0.5, rather than percentage-point changes.
from statistics import geometric_mean
geometric_mean([2,0.5])Result 1.0
中文
怎样汇总多阶段正增长因子所对应的平均倍率?
几何平均数将正值相乘后开相应次数的根,适合总结连续的比例变化。
Python 算例与适用条件
先翻倍再减半,两步总量回到原点,等效每步倍率为 1。传入 2 和 0.5 这样的因子,不能直接传百分数增量。
from statistics import geometric_mean
geometric_mean([2,0.5])结果 1.0