# Z 检验函数

两个总体均值的统计检测手段。双样本 Z 检验检查两个样本是否不同，通常在两个正态分布具有已知方差和实验使用大样本时使用。

根据应用于函数的输入数据系列类型对 Z 检验统计检验函数分组。

如果在数据加载脚本中使用此函数，则值会迭代于 group by 子句定义的大量记录。

如果在图表表达式中使用此函数，则值迭代于图表维度。

[如何使用 z-test 函数的示例](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztest-example.htm)

使用每个函数的下拉列表可查看每个函数的简短描述和语法。单击语法描述中的函数名称可了解更多信息。

### 一列格式函数

以下函数适用于具有简单输入数据系列的 z 检验。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztest\_conf

ZTest\_conf() 用于返回值系列的聚合 Z 值。

[**ztest_conf**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztest_conf.htm) (value [, sigma [, sig ])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztest\_dif

ZTest\_dif() 用于返回值系列的聚合 Z 检验平均差。

[**ztest_dif**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztest_dif.htm) (value [, sigma])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztest\_sig

ZTest\_sig() 用于返回值系列的聚合 Z 检验双尾级显著性。

[**ztest_sig**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztest_sig.htm) (value [, sigma])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztest\_sterr

ZTest\_sterr() 用于返回值系列的聚合 Z 检验平均差标准误差。

[**ztest_sterr**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztest_sterr.htm) (value [, sigma])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztest\_z

ZTest\_z() 用于返回值系列的聚合 Z 值。

[**ztest_z**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztest_z.htm) (value [, sigma])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztest\_lower

ZTest\_lower() 用于返回两个独立值系列的置信区间底端的聚合值。

[**ztest_lower**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztest_lower.htm) (grp, value [, sig [, eq\_var]])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztest\_upper

ZTest\_upper() 用于返回两个独立值系列的置信区间顶端的聚合值。

[**ztest_upper**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztest_upper.htm) (grp, value [, sig [, eq\_var]])

### 加权两列格式函数

以下函数适用于 z 检验，其中输入数据系列给定为加权两列格式。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztestw\_conf

ZTestw\_conf() 用于返回值系列的聚合 Z 置信区间值。

[**ztestw_conf**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztestw_conf.htm) (weight, value [, sigma [, sig]])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztestw\_dif

ZTestw\_dif() 用于返回值系列的聚合 Z 检验平均差。

[**ztestw_dif**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztestw_dif.htm) (weight, value [, sigma])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztestw\_lower

ZTestw\_lower() 用于返回两个独立值系列的置信区间底端的聚合值。

[**ztestw_lower**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztestw_lower.htm) (weight, value [, sigma])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztestw\_sig

ZTestw\_sig() 用于返回值系列的聚合 Z 检验双尾级显著性。

[**ztestw_sig**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztestw_sig.htm) (weight, value [, sigma])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztestw\_sterr

ZTestw\_sterr() 用于返回值系列的聚合 Z 检验平均差标准误差。

[**ztestw_sterr**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztestw_sterr.htm) (weight, value [, sigma])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztestw\_upper

ZTestw\_upper() 用于返回两个独立值系列的置信区间顶端的聚合值。

[**ztestw_upper**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztestw_upper.htm) (weight, value [, sigma])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)

#### ztestw\_z

ZTestw\_z() 用于返回值系列的聚合 Z 值。

[**ztestw_z**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztestw_z.htm) (weight, value [, sigma])