PQStat PQStat User Guide Polski pqstat.pl

The Chi-square tests

When to use these tests:

The Chi-square tests check whether there is a dependence between two features gathered in a contingency table (e.g. whether sex is related to exam passing). Depending on the size of the table, we speak of the \(2\times 2\) chi-square test (two categories per feature) or the \(R\times C\) chi-square test (more categories):

Assumptions

Note! The \(p\) value of the test is always compared with the assumed significance level \(\alpha\): when \(p \le \alpha\), we conclude that the analysed features are related; when \(p > \alpha\), there is no reason to claim that such a dependence exists.

Additionally

FOR THOSE INTERESTED

Hypotheses (general form):

\[ \begin{array}{cl} \mathcal{H}_0: & O_{ij}=E_{ij} \text{ for all categories,}\\ \mathcal{H}_1: & O_{ij} \neq E_{ij} \text{ for at least one category,} \end{array} \]

where \(O_{ij}\) – observed frequencies in a contingency table, \(E_{ij}\) – expected frequencies in a contingency table.

Hypotheses (independence test form):

\[ \begin{array}{cl} \mathcal{H}_0: & \text{there is no dependence between the analysed features of the population (both}\\ & \text{classifications, according to feature }X\text{ and feature }Y\text{, are statistically independent),}\\ \mathcal{H}_1: & \text{there is a dependence between the analysed features of the population.} \end{array} \]