# T 检验函数

T 检验函数用于统计检查两个总体均值。双样本 T 检验检查两个样本是否不同，通常在两个正态分布具有未知方差和实验使用小样本时使用。

在以下各节中，根据应用于每个函数类型的学生检验样本对 T 检验统计检验函数分组。

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

[创建典型的 t-test 报告](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ttest/ttest_t_example.htm)

### 两个独立样本 T 检验

以下函数应用于两个独立学生样本 T 检验。

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

#### ttest\_conf

TTest\_conf 用于返回两个独立样本的聚合 T 检验置信区间值。

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

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

#### ttest\_df

TTest\_df() 用于返回两个独立值系列的聚合学生 T 检验值（自由度）。

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

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

#### ttest\_dif

TTest\_dif() 是一个数字函数，用于返回两个独立值系列的聚合学生 T 检验平均差。

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

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

#### ttest\_lower

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

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

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

#### ttest\_sig

TTest\_sig() 用于返回两个独立值系列的聚合学生 T 检验双尾级显著性。

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

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

#### ttest\_sterr

TTest\_sterr() 用于返回两个独立值系列的聚合学生 T 检验平均差标准误差。

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

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

#### ttest\_t

TTest\_t() 用于返回两个独立值系列的聚合 T 值。

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

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

#### ttest\_upper

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

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

### 两个独立加权样本 T 检验

以下函数应用于两个独立学生样本 T 检验，其中输入数据系列给定为加权两列格式。

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

#### ttestw\_conf

TTestw\_conf() 用于返回两个独立值系列的聚合 T 值。

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

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

#### ttestw\_df

TTestw\_df() 用于返回两个独立值系列的聚合学生 T 检验 df 值（自由度）。

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

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

#### ttestw\_dif

TTestw\_dif() 用于返回两个独立值系列的聚合学生 T 检验平均差。

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

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

#### ttestw\_lower

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

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

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

#### ttestw\_sig

TTestw\_sig() 用于返回两个独立值系列的聚合学生 T 检验双尾级显著性。

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

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

#### ttestw\_sterr

TTestw\_sterr() 用于返回两个独立值系列的聚合学生 T 检验平均差标准误差。

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

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

#### ttestw\_t

TTestw\_t() 用于返回两个独立值系列的聚合 T 值。

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

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

#### ttestw\_upper

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

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

### 一个样本 T 检验

以下函数应用于一个学生样本 T 检验。

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

#### ttest1\_conf

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

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

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

#### ttest1\_df

TTest1\_df() 用于返回值系列的聚合学生 T 检验 df 值（自由度）。

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

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

#### ttest1\_dif

TTest1\_dif() 用于返回值系列的聚合学生 T 检验平均差。

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

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

#### ttest1\_lower

TTest1\_lower() 用于返回值系列的置信区间底端的聚合值。

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

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

#### ttest1\_sig

TTest1\_sig() 用于返回值系列的聚合学生 T 检验双尾级显著性。

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

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

#### ttest1\_sterr

TTest1\_sterr() 用于返回值系列的聚合学生 T 检验平均差标准误差。

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

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

#### ttest1\_t

TTest1\_t() 用于返回值系列的聚合 T 值。

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

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

#### ttest1\_upper

TTest1\_upper() 用于返回值系列的置信区间顶端的聚合值。

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

### 一个加权样本 T 检验

以下函数应用于一个学生样本 T 检验，其中输入数据系列给定为加权两列格式。

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

#### ttest1w\_conf

TTest1w\_conf() 是一个数值函数，用于返回值系列的聚合置信区间值。

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

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

#### ttest1w\_df

TTest1w\_df() 用于返回值系列的聚合学生 T 检验 df 值（自由度）。

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

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

#### ttest1w\_dif

TTest1w\_dif() 用于返回值系列的聚合学生 T 检验平均差。

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

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

#### ttest1w\_lower

TTest1w\_lower() 用于返回值系列的置信区间底端的聚合值。

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

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

#### ttest1w\_sig

TTest1w\_sig() 用于返回值系列的聚合学生 T 检验双尾级显著性。

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

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

#### ttest1w\_sterr

TTest1w\_sterr() 用于返回值系列的聚合学生 T 检验平均差标准误差。

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

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

#### ttest1w\_t

TTest1w\_t() 用于返回值系列的聚合 T 值。

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

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

#### ttest1w\_upper

TTest1w\_upper() 用于返回值系列的置信区间顶端的聚合值。

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