
- Excel 函式教程
- Excel 函式 - 首頁
- 相容性函式
- 邏輯函式
- 文字函式
- 日期與時間函式
- 多維資料集函式
- 數學函式
- 三角函式
- 資料庫函式
- 動態陣列函式
- 工程函式
- 財務函式
- 資訊函式
- 查詢與引用函式
- 統計函式
- Web 函式
- Excel 有用資源
- Excel - 快速指南
- Excel - 有用資源
- Excel - 討論
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! 錯誤值。
示例
