Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

本文將說明 Microsoft Excel 中 HYPGEOM.DIST 函數的公式語法及使用方式。

傳回超幾何分配。 HYPGEOM.DIST 會傳回指定之樣本成功個數、樣本大小、母體成功個數以及母體大小等的機率。 HYPGEOM.DIST 可用以解決有限母體的問題,例如在每次觀察成功或失敗,和每一個有同樣大小的子集合發生機會均等時適用。

語法

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

HYPGEOM.DIST 函數語法具有下列引數:

  • Sample_s     必要。 這是樣本中的成功個數。

  • Number_sample     必要。 這是樣本的大小。

  • Population_s     必要。 這是母體中的成功個數。

  • Number_pop     必要。 這是母體的大小。

  • Cumulative     必要。 這是決定函數形式的邏輯值。 如果 cumulative 為 TRUE,HYPGEOM.DIST 會傳回累加分配函數;如果為 FALSE,則會傳回機率質量函數。

註解

  • 所有引數會取至整數。

  • 如果有任何非數值的引數,HYPGEOM.DIST 會傳回 #VALUE! 的錯誤值。

  • 如果 sample_s < 0 或是 sample_s 大於 number_sample 或 population_s 二者中較小者,HYPGEOM.DIST 會傳回 #NUM! 的錯誤值。

  • 如果 sample_s 小於 0 或 (number_sample - number_population + population_s) 二者中較大者,HYPGEOM.DIST 會傳回 #NUM! 的錯誤值。

  • 如果 number_sample ≤ 0 或 number_sample > number_population,HYPGEOM.DIST 會傳回 #NUM! 的錯誤值。

  • 如果 population_s ≤ 0 或 population_s > number_population,HYPGEOM.DIST 會傳回 #NUM! 的錯誤值。

  • 如果 number_pop ≤ 0,HYPGEOM.DIST 會傳回 #NUM! 的錯誤值。

  • 超幾何分配的方程式為:

    方程式

    其中:

    x = sample_s

    n = number_sample

    M = population_s

    N = number_pop

    HYPGEOM.DIST 會用於取樣 (不以有限母體取代)。

範例

請在下列表格中複製範例資料,再將之貼到新 Excel 活頁簿中的儲存格 A1。 若要讓公式顯示結果,請選取公式,按 F2,然後再按 Enter。 如有需要,您可以調整欄寬來查看所有資料。

資料

描述

結果

1

樣本中的成功個數

4

樣本大小

8

母體中的成功個數

20

母體大小

公式

描述 (結果)

=HYPGEOM.DIST(A2,A3,A4,A5,TRUE)

儲存格 A2 至 A5 中樣本及母體的累加超幾何分配函數。

0.4654

=HYPGEOM.DIST(A2,A3,A4,A5,FALSE)

儲存格 A2 至 A5 中樣本及母體的機率超幾何分配函數。

0.3633

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×