WorksheetFunction.Binom_Dist(Double, Double, Double, Boolean) 方法

定义

返回一元二项式分布的概率。

public:
 double Binom_Dist(double Arg1, double Arg2, double Arg3, bool Arg4);
public double Binom_Dist (double Arg1, double Arg2, double Arg3, bool Arg4);
Public Function Binom_Dist (Arg1 As Double, Arg2 As Double, Arg3 As Double, Arg4 As Boolean) As Double

参数

Arg1
Double

Number_s - 试验中成功的次数。

Arg2
Double

试验 - 独立试验的数量。

Arg3
Double

Probability_s - 每次试用成功的概率。

Arg4
Boolean

cumulative - 一个决定函数形式的逻辑值。 如果 cumulative 为 True,则 Binom_Dist(Double, Double, Double, Boolean) 该方法返回累积分布函数,即最多number_s成功的概率;如果 为 False,则返回概率质量函数,即number_s成功的概率。

返回

注解

当任何试验的结果仅包含成功或失败两种情况,当试验是独立试验,以及当整个试验过程中成功的概率固定不变时,Binom_Dist 方法适用于固定次数的检验或试验。 例如, Binom_Dist 方法可以计算接下来三个婴儿中两个是男性的概率。

  • Number_s 和 trials 将被截尾取整。
  • 如果number_s、试用或probability_s是非数值的, 则 Binom_Dist 方法将生成错误。
  • 如果number_s < 0 或number_s > 试用, Binom_Dist 方法将生成错误。
  • 如果probability_s < 0 或 probability_s > 1, 则 Binom_Dist 方法将生成错误。 二项式概率质量函数为:

其中:

图 2:公式

为 COMBIN (n,x) 。

累积二项式分布为:

图 3:累积二项式分布

适用于