Excel - HYPGEOM.DIST 函数
描述
HYPGEOM.DIST 函数返回超几何分布。 HYPGEOM.DIST 返回给定样本大小、总体成功率和总体大小的情况下,给定样本成功的概率。
使用 HYPGEOM.DIST 解决有限总体的问题,其中每个观察结果要么成功要么失败,并且给定大小的每个子集都以相同可能性选择。
语法
HYPGEOM.DIST (sample_s、number_sample、population_s、number_pop、cumulative)
参数
参数 | 说明 | 必需/可选 |
---|---|---|
Sample_s | 样本中的成功次数。 | 必填 |
Number_sample | 样本的大小。 | 必填 |
Population_s | 总体中的成功次数。 | 必填 |
Number_pop | 人口规模。 | 必填 |
cumulative |
确定函数形式的逻辑值。 如果累计为 TRUE,则 HYPGEOM.DIST 返回累积分布函数。 如果累计为 FALSE,则 HYPGEOM.DIST 返回概率质量函数。 |
必填 |
备注
超几何分布的方程为 −
$$P\left ( X=x ight )=\frac{\begin{pmatrix} M\ x\end{pmatrix}\begin{pmatrix} N-M\ n-x\end{pmatrix}}{\begin{pmatrix} N\ n\end{pmatrix}}$$
其中 −
x = sample_s
n = number_sample
M =population_s
N = number_pop
HYPGEOM.DIST 用于从有限总体中进行无放回抽样。
所有参数均被截断为整数。
如果任何参数为非数字,HYPGEOM.DIST 将返回 #VALUE! 错误值。
HYPGEOM.DIST 返回 #NUM! 错误值
If sample_s < 0 or sample_s > the lesser of number_sample
If sample_s > population_s
If sample_s > (number_sample - number_pop + population_s)
If number_sample ≤ 0 or > number_pop
If population_s ≤ 0 or > number_pop
If number_pop ≤ 0
适用性
Excel 2010、Excel 2013、Excel 2016
示例
