Excel - HYPGEOMDIST 函数
HYPGEOMDIST 函数取代了 Excel 2010 中的 HYPGEOM.DIST 函数。
描述
该函数返回超几何分布。 HYPGEOMDIST 返回给定样本大小、总体成功率和总体大小的情况下,给定样本成功的概率。
使用 HYPGEOMDIST 解决有限总体的问题,其中每个观察结果要么成功要么失败,并且给定大小的每个子集都以相等的可能性选择。
语法
HYPGEOMDIST (sample_s,number_sample,population_s,number_pop)
参数
参数 | 描述 | 必需/可选 |
---|---|---|
Sample_s | 样本中的成功次数。 | 必需 |
Number_sample | 样本的大小。 | 必需 |
Population_s | 总体中的成功次数。 | 必填 |
Number_pop | 人口规模。 | 必填 |
注释
超几何分布的方程为 −
$$P(X=x) = h(x;n,M,N) = \frac{\binom{M}{x}\binom{N-M}{n-x}}{\binom{N}{n}}$$
其中 −
x = sample_s
n = number_sample
M =population_s
N =number_population
HYPGEOMDIST 用于从有限总体中进行无放回抽样。
所有参数均被截断为整数。
如果任何参数为非数字,HYPGEOMDIST 将返回 #VALUE! 错误值。
如果 sample_s < 0 或 sample_s 大于 number_sample 或population_s 中较小的一个,HYPGEOMDIST 将返回 #NUM! 错误值。
如果 sample_s 小于 0 或 (number_sample - number_population +population_s) 中的较大一个,HYPGEOMDIST 将返回 #NUM!错误值。
如果 number_sample ≤ 0 或 number_sample > number_population,HYPGEOMDIST 将返回 #NUM! 错误值。
如果population_s ≤ 0 或population_s > number_population,HYPGEOMDIST 将返回 #NUM! 错误值。
如果number_population ≤ 0,HYPGEOMDIST 将返回 #NUM! 错误值。
示例
