# カイ二乗検定関数

通常は質的変数の調査に使用します。一元度数表で観測度数と期待度数を比較したり、分割表で 2 つの変数の関係を調べることができます。Chi-squared test functions are used to determine whether there is a statistically significant difference between the expected frequencies and the observed frequencies in one or more groups. Often a histogram is used, and the different bins are compared to an expected distribution.

各関数のドロップダウンを使用すると、その関数の簡単な説明や構文を確認できます。詳細を表示するには、構文の説明にある関数名をクリックします。

関数がデータ ロード スクリプトでが使用される場合、値は group by 句で定義されたレコードで反復処理されます。

関数がチャート式で使用される場合、値はチャート軸に対して反復処理されます。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2_tests.htm)

#### Chi2Test\_chi2

Chi2Test\_chi2() は、1 つまたは 2 つの一連の値に対して集計されたカイ 2 乗検定の値を返します。

[**chi2test_chi2**](https://help.qlik.com/ja-JP/sense/May2026/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2test_chi2.htm)(col, row, actual\_value[, expected\_value])

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2_tests.htm)

#### Chi2Test\_df

Chi2Test\_df() は、1 つまたは 2 つの一連の値に対して集計されたカイ二乗検定の df 値 (自由度) を返します。

[**chi2test_df**](https://help.qlik.com/ja-JP/sense/May2026/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2test_df.htm)(col, row, actual\_value[, expected\_value])

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2_tests.htm)

#### Chi2Test\_p

Chi2Test\_p() は、1 つまたは 2 つの一連の値に対して集計されたカイ二乗検定の p 値 (有意性) を返します。

[**chi2test_p**](https://help.qlik.com/ja-JP/sense/May2026/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/chi2-tests/chi2test_p.htm)(col, row, actual\_value[, expected\_value])

## 詳細を見る

* [t 検定関数](https://help.qlik.com/ja-JP/sense/May2026/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ttest/t_tests.htm)
* [z 検定関数](https://help.qlik.com/ja-JP/sense/May2026/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StatisticalTestFunctions/ztest/z_tests.htm)