Chi-square test
Assess associations between categorical variables using contingency-table counts.
Data requirements
Use categorical columns of individual observations, rather than a pre-aggregated count matrix. Select one variable for goodness of fit or two for independence.
Upload UTF-8 CSV or TSV with unique column names in the first row. Blank, NA, N/A, NaN and NULL entries are treated as missing. Files support up to 2 MiB, 10,000 rows, 60 columns and 200,000 cells; module-specific limits also apply.
Parameters
Names match the analysis form. Starting values describe a newly loaded form; column selections depend on your uploaded data. Matching example column names may be preselected. Review every selection before running.
“Optional / conditional” fields may be required by a particular mode or method. The explanation states when each field takes effect. Hold Ctrl / Command to select multiple columns.
Measurement
ColumnCategorical variable supplying table rows or goodness-of-fit counts. Categories are sorted alphabetically.
Grouping variable
ColumnOptional second categorical variable. Selecting it runs independence testing; blank runs goodness of fit.
Correction
CheckboxRequest Yates continuity correction for an independence table with one degree of freedom. Ignored for goodness of fit or larger degrees of freedom.
Probabilities
TextGoodness of fit only: positive comma-separated probabilities summing to 1, one per observed category in alphabetical order. Blank means equal probabilities. Small rounding deviations are normalized to sum to one. Hidden and ignored for independence.
Example settings
Load the bundled example in the analysis workspace, or upload the example CSV linked above, then use these settings. These are illustrative choices for the synthetic data.
| Parameter | Setting |
|---|---|
| Measurement | category |
| Grouping variable | group |
| Correction | Checked |
| Probabilities | Blank |
Results
Test and count tables report chi-square, degrees of freedom and p. Independence tests also export expected counts and count expected cells below 5. Goodness-of-fit tests export the actual normalized probabilities and expected counts. Additional downloadable analysis-summary and diagnostics tables describe the analysis scope and method checks. Selected-variable missingness is reported where applicable. Diagnostics do not establish external validity or verify untested assumptions.
Review the reported method, observation count and notes alongside the estimates. Result tables can be downloaded as CSV and the figure as PNG.
Notes & limitations
- Selected variables must be distinct. Tables support at most 30 levels per dimension; independence requires at least two levels in both. Missing selected values are excluded.