Navigation

Operators and Keywords

Function List:

C++ API

: [pval, chisq, df] = chisquare_test_independence (x)

Perform a chi-square test for independence based on the contingency table x.

Under the null hypothesis of independence, chisq approximately has a chi-square distribution with df degrees of freedom.

The p-value (1 minus the CDF of this distribution at chisq) of the test is returned in pval.

If no output argument is given, the p-value is displayed.

Package: octave