HyperGeometric 命令
- HyperGeometric( <Population Size>, <Number of Successes>, <Sample Size>)
-
返回一个 超几何分布 条形图。
参数:
-
总体大小 :罐中的球数
-
成功次数 :罐中的白球数
-
样本大小 :从罐中抽取的球数
从罐中重复抽取随机样本,不放回。
HyperGeometric(100, 50, 5)
生成一个条形图,显示样本中白球数量的概率分布。
- HyperGeometric( <Population Size>, <Number of Successes>, <Sample Size>, <Boolean Cumulative> )
-
当 Cumulative = false 返回超几何分布的条形图,否则返回累积超几何分布函数的图像。 前三个参数与上述相同。
- HyperGeometric( <Population Size>, <Number of Successes>, <Sample Size>, <Variable Value>, <Boolean Cumulative> )
-
设 X 为超几何随机变量,v 为变量值。前三个参数与上述相同。
-
当 Cumulative = false 它返回 P( X = v )
-
当 Cumulative = true 它返回 P( X ≤ v )
-
假设您从十个球中不放回地抽取两个球,其中有两个是白球。
-
HyperGeometric(10, 2, 2, 0, false)得出 \(\frac{28}{45}\),即抽到零个白球的概率, -
HyperGeometric(10, 2, 2, 1, false)得出 \(\frac{16}{45}\),即抽到一个白球的概率, -
HyperGeometric(10, 2, 2, 2, false)得出 \(\frac{1}{45}\),即抽到两个白球的概率, -
HyperGeometric(10, 2, 2, 3, false)得出 0 ,即抽到三个白球的概率。 -
HyperGeometric(10, 2, 2, 0, true)得出 \(\frac{28}{45}\),即抽到零个(或更少) 白球的概率, -
HyperGeometric(10, 2, 2, 1, true)得出 \(\frac{44}{45}\),即抽到一个或更少白 球的概率, -
HyperGeometric(10, 2, 2, 2, true)得出 1 ,即抽到两个或更少白球的概率,并且 -
HyperGeometric(10, 2, 2, 3, true)得出 1 ,即抽到三个或更少白球的概率。
CAS 语法
在
CAS_View
中,您只能使用
以下语法:
- HyperGeometric( <Population Size>, <Number of Successes>, <Sample Size>, <Variable Value>, <Boolean Cumulative> )
-
设 X 为超几何随机变量,v 为变量值。前三个参数与上述相同。
-
当 Cumulative = false 它返回 P( X = v )
-
当 Cumulative = true 它返回 P( X ≤ v )
-