Skip to main content
MedCalc
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
working
Close
Download our user-friendly MedCalc statistical software for your Windows desktop. Download

Other calculators ...

Free statistical calculators

Two-way Chi-squared test

Classification A - number of levels:
Classification B - number of levels:
 Cat. B.1Cat. B.2
Cat. A.1
Cat. A.2
Chi-squared test for trend

Description

The two-way Chi-squared test allows to test the relationship between two classification factors (e.g. gender and profession)..

Required input

First, select the number of different categories for the two classification factors.

Next, enter the number of cases for each pair of categories.

Optionally, you can select a Chi-squared test for trend. The Cochran-Armitage test for trend (Cochran, 1954; Armitage, 1955) provides a more powerful test than the unordered test, but this test is only applicable if your classification table has 2 columns and 3 or more rows (or 2 rows and 3 or more columns), and if the data originate from ordered categories.

Interpretation

The results section contains the Chi-squared value, the Degrees of Freedom and associated P-value.

If the calculated P-value is small (<0.05), then there is a statistically significant relationship between the two classifications.

Literature

  • Armitage P (1955) Tests for linear trends in proportions and frequencies. Biometrics 11:375-386.
  • Cochran WG (1954) Some methods for strengthening the common chi-squared tests. Biometrics 10:417-451.

How to cite this page

  • MedCalc Software Ltd. Two-way Chi-squared test. https://www.medcalc.org/calc/chisquared-2way.php (Version 23.0.8; accessed November 13, 2024)