# Z 檢定函數

兩個母體平均數的統計檢查。雙樣本 z 檢定會檢查兩個樣本是否不同，以及是否通常在兩個常態分佈都具有已知變異數且試驗使用大型樣本時使用。

Z 檢定統計檢定函數會根據套用到函數的輸入資料序列類型加以分組。

如果該函數在資料載入指令碼中使用，則值會在由 group by 子句所定義的若干記錄上反覆運算。

如果函數在圖表運算式中使用，則值會在圖表維度上反覆運算。

[z-test 函數使用方式範例](https://help.qlik.com/zh-TW/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-TW/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-TW/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-TW/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-TW/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-TW/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-TW/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-TW/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-TW/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-TW/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-TW/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-TW/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-TW/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-TW/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-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/ztestw_z.htm) (weight, value [, sigma])