JavaScript 中的 HYPGEOM.DIST函数

首页 / JavaScript入门教程 / JavaScript 中的 HYPGEOM.DIST函数

描述

HYPGEOM.DIST函数返回超几何分布。 HYPGEOM.DIST返回给定样本数量,给定样本数量和总样本数量的给定样本成功次数的概率。

将HYPGEOM.DIST用于有限总体的问题,其中每个观察输出都是成功或失败,并且给定大小的每个子集的选择可能性均等。

语法

HYPGEOM.DIST (sample_s, number_sample, population_s, number_pop, cumulative)

争论

Argument 描述 Required/Optional
Sample_s The number of successes in the sample. Required
Number_sample The size of the sample. Required
Population_s The number of successes in the population. Required
Number_pop The population size. Required
Cumulative

决定函数形式的逻辑值。

如果累计值为TRUE,则HYPGEOM.DIST返回累计分布函数。

如果累计值为FALSE,则HYPGEOM.DIST返回概率质量函数。

Required

Notes

  • 超几何分布的方程为-

    $$P \left(X = x \right)= \frac {\begin {pmatrix} M \\ x \end {pmatrix} \begin {pmatrix} N \M \\ n-x \end {pmatrix}} {\begin {pmatrix} N \\ n \end {pmatrix}} $$

    哪里-

    无涯教程网

    x =样本

    n =数字样本

    M =人口

    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

    • 如果number_pop≤0

适用性

Excel 2010,Excel 2013,Excel 2016

Example

Hypgeom.Dist Function

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

人工智能基础课 -〔王天一〕

零基础学Python -〔尹会生〕

趣谈Linux操作系统 -〔刘超〕

苏杰的产品创新课 -〔苏杰〕

摄影入门课 -〔小麥〕

分布式协议与算法实战 -〔韩健〕

Web漏洞挖掘实战 -〔王昊天〕

零基础GPT应用入门课 -〔林健(键盘)〕

LangChain 实战课 -〔黄佳〕

好记忆不如烂笔头。留下您的足迹吧 :)