HYPGEOMDIST 函數

套用到
SharePoint Server 2019 SharePoint Server 2016 SharePoint Server 2013 SharePoint Server 2013 企業版 SharePoint Foundation 2010 SharePoint Server 2010 Windows SharePoint Services 3.0

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

語法

催眠 (sample_s,number_sample,population_s,number_population)

Sample_s 是樣本中的成功次數。

Number_sample 是樣本的大小。

Population_s 是人口中的成功次數。

Number_population 是人口規模。

註解

  • 所有引數會取至整數。
  • 如果有任何引數非數值,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! 的錯誤值。
  • 超幾何分配的方程式為:
    方程式
    其中:
    x = sample_s
    n = number_sample
    M = population_s
    N = number_population

HYPGEOMDIST 會用於取樣 (不以有限母體取代)。

範例

一份巧克力試吃包含20塊。 其中八塊是焦糖,剩下的十二塊是堅果。 如果一個人隨機選擇4塊焦糖,以下函數會回傳恰好1塊是焦糖的機率。

Sample_s Number_sample Population_s Number_Population 公式 描述 (結果)
1 4 8 20 =HYPGEOMDIST ([Sample_s],[Number_sample],[Population_s],[Number_Population]) 樣本與母體的超幾何分布 (0.363261)