无涯教程-JavaScript - HYPGEOMDIST函数

HYPGEOMDIST函数替代Excel 2010中的HYPGEOM.DIST函数。

描述

该函数返回超几何分布。 HYPGEOMDIST返回给定样本数量,给定样本数量,总体成功率和总体数量的概率。

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

语法

复制代码
HYPGEOMDIST (sample_s,number_sample,population_s,number_pop)

争论

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

Notes

  • 超几何分布的方程为-

    P(X=x)= h(x; n,M,N)=\\frac {\\binom {M} {x}\\binom {NM} {nx}} {\\binom {N} {n}}

    哪里-

    x =样本

    n =数字样本

    M =人口

    N =人口数量

  • HYPGEOMDIST用于采样而无需从有限总体中替换。

  • 所有参数均被截断为整数。

  • 如果有任何非数字参数,则HYPGEOMDIST返回#VALUE!错误值。

  • If sample_s < 0 or sample_s is greater than the lesser of number_sample or population_s, HYPGEOMDIST returns the #NUM! error value.

  • 如果sample_s小于0或(number_sample-number_population +人口_s)中的较大者,则HYPGEOMDIST返回#NUM!错误值。

  • If number_sample ≤ 0 or number_sample > number_population, HYPGEOMDIST returns the #NUM! error value.

  • If population_s ≤ 0 or population_s > number_population, HYPGEOMDIST returns the #NUM! error value.

  • 如果number_population≤0,则HY​​PGEOMDIST返回#NUM!错误值。

Example

JavaScript 中的 HYPGEOMDIST函数 - 无涯教程网无涯教程网提供HYPGEOMDIST函数替代Excel 2010中的HYPGEOM.DIST函数。 描述该函数返回超几何分布。 H...https://www.learnfk.com/javascript/advanced-excel-compatibility-hypgeomdist-function.html

相关推荐
前端Hardy31 分钟前
别再无脑用 `JSON.parse()` 了!这个安全漏洞你可能每天都在触发
前端·javascript·vue.js
前端Hardy33 分钟前
别再让 `console.log` 上线了!它正在悄悄拖垮你的生产系统
前端·javascript·vue.js
csdn飘逸飘逸1 小时前
Autojs基础-用户界面(ui)
javascript
炫饭第一名1 小时前
速通Canvas指北🦮——图形、文本与样式篇
前端·javascript·程序员
进击的尘埃2 小时前
React useEffect 的闭包陷阱与竞态条件:你以为的 cleanup 真的在正确时机执行了吗
javascript
进击的尘埃2 小时前
TypeScript 类型体操进阶:用 Template Literal Types 实现编译期路由参数校验
javascript
滕青山2 小时前
文本字符数统计 在线工具核心JS实现
前端·javascript·vue.js
十二7402 小时前
前端缓存踩坑实录:从版本号管理到自动化构建
前端·javascript·nginx
进击的尘埃2 小时前
前端大文件上传全方案:切片、秒传、断点续传与 Worker 并行 Hash 计算实践
javascript
西梯卧客2 小时前
[1-2] 数据类型检测 · typeof、instanceof、toString.call 等方式对比
javascript