Glossary

Chi-square test

Definition

The chi-square test works with category counts. The test of independence in a contingency table checks whether two categorical variables are related (gender × product choice); the goodness-of-fit test compares observed counts with expected ones (e.g. a uniform distribution). It measures how much observed frequencies deviate from expected ones.

Statistical tests

The test requires independent observations and sufficient expected counts (rule of thumb: at least 5 per cell). For small 2×2 tables use Fisher's exact test; for paired categories (before/after on the same people) McNemar's test.

A significant result says that an association exists, not how strong it is — strength is expressed by coefficients such as Cramér's V or the odds ratio. For more than two variables or to control for other influences move on to logistic regression or log-linear models.

In Statistica

Contingency tables with the chi-square test, Fisher's exact test, McNemar's test and measures of association (phi, Cramér's V, contingency coefficient) are in Statistics → Basic Statistics/Tables → Tables and banners / Crosstabulation; a 3D histogram or an interaction plot of frequencies complements the table.

Related terms

Knowledgebase guides

FAQ

What if my table has small counts?
Fisher's exact test for 2×2 tables, merging sparse categories for larger ones. Statistica warns about low expected counts.
How do I express the strength of the association?
With Cramér's V (0 = none, 1 = complete dependence) or, for 2×2 tables, the odds ratio with a confidence interval.

Try it on your own data

Statistica free for 30 days

Full version, no credit card. Or get a pricing estimate in a minute.

We'll prepare a tailored quote. Free and with no obligation.

Tell us how many users and what analyses you need — we'll get back to you with a concrete license quote, usually within a few business days.

Try for free first
Statistica.pro

Official Statistica partner for the European Union, based in Prague, Czech Republic. Operated by DataBon s.r.o.

On the market since 1995, formerly as StatSoft CR s.r.o.

Contact

DataBon s.r.o.
Korunní 2569/108, 101 00 Prague 10, Czech Republic
+420 602 284 038
Company ID 09743804 · VAT ID CZ09743804

University licence users: please contact the licence administrator at your institution first.

© 2026 DataBon · statistica.pro · Personal data processing (GDPR) ·