Skip to main content
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
Show menu

Cochran's Q test

Next selectCrosstabs
Next selectCochran's Q test


Cochran's Q test is an extension to the McNemar test for related samples that provides a method for testing for differences between three or more matched sets of frequencies or proportions.

Example: 12 subjects are asked to perform 3 tasks. The outcome of each task is a dichotomous value, success or failure.

How to enter the data in the spreadsheet

The results are coded 0 for failure and 1 for success. In the example, subject 1 was successful in task 2 but failed tasks 1 and 3.

How to enter data for Cochran

Required input





This table gives the frequencies of the values coded 0 (meaning absence or failure) and 1 (meaning presence or success) in the different variables, the proportion (expressed as a percentage) of values coded 1

Since Cochran's Q test is for related samples, cases with missing observations for one or more of the variables are excluded from the analysis, and the number of cases is the same for each variable.

Cochran's Q test

The null hypothesis for the Cochran's Q test is that there are no differences between the variables (Sheskin, 2011). If the calculated probability is low (P less than the selected significance level) the null-hypothesis is rejected and it can be concluded that the proportions in at least 2 of the variables are significantly different from each other.

Multiple comparisons

When the Cochran's Q test is positive (P less than the selected significance level) then a minimum required difference for a significant difference between two proportions is calculated (Sheskin, 2011) and a table is displayed showing which of the proportions are significantly different from which other proportions.


See also

External links