Z.TEST函数返回z检验的单尾P值。对于给定的假设总体均值x,Z.TEST返回概率为样本均值大于数据集(数组)中观察值的平均值,即观察到的样本均值。
Z.TEST (array,x,[sigma])
Argument | 描述 | Required/Optional |
---|---|---|
Array | The array or range of data against which to test x. | Required |
x | The value to test | Required |
Sigma |
总体(已知)标准偏差。 如果省略,则使用样本标准偏差。 |
Optional |
Z.TEST计算如下-
当不忽略sigma时-Z.TEST(array,x,sigma)= 1- Norm.S.Dist((Average(array)-x)/(sigma/$\sqrt {n} $),TRUE)。
当省略sigma时-1- Norm.S.Dist((Average(array)-x)/(STDEV(array)/$\sqrt {n} $),TRUE)。
其中x是样本均值AVERAGE(数组),n是COUNT(数组)。
如果数组为空,则Z.TEST返回错误值#N/A。
Z.TEST represents the probability that the sample mean would be greater than the observed value AVERAGE(array), when the underlying population mean is μ0. From the symmetry of the Normal distribution, if AVERAGE(array) < x, Z.TEST will return a value greater than 0.5
当基础总体均值为x时,您可以计算出两次均值的概率,即样本均值比x(沿任一方向)比AVERAGE(array)距x更远-
= 2 * MIN(Z.TEST(阵列,x,sigma),1-Z.TEST(阵列,x,sigma))。
如果提供的数组为空,则Z.TEST返回错误值#N/A。
如果提供了sigma参数且该参数等于零,则Z.TEST返回#NUM!。错误值。
如果未提供sigma参数,并且提供的数组的标准偏差为零,则Z.TEST返回#DIV/0!错误值。
如果提供的数组仅包含一个值,则Z.TEST返回#DIV/0!错误值。
如果提供的x或提供的sigma是非数字的,则Z.TEST返回#VALUE!。错误值。
Excel 2010,Excel 2013,Excel 2016
来源:LearnFk无涯教程网
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)