Cochran's Q test
Cochran's test is a
Background
Cochran's Q test assumes that there are k > 2 experimental treatments and that the observations are arranged in b blocks; that is,
Treatment 1 | Treatment 2 | Treatment k | ||
---|---|---|---|---|
Block 1 | X11 | X12 | X1k | |
Block 2 | X21 | X22 | X2k | |
Block 3 | X31 | X32 | X3k | |
Block b | Xb1 | Xb2 | Xbk |
The "blocks" here might be individual people or other organisms.[5] For example, if b respondents in a survey had each been asked k Yes/No questions, the Q test could be used to test the null hypothesis that all questions were equally likely to elicit the answer "Yes".
Description
Cochran's Q test is
- Null hypothesis (H0): the treatments are equally effective.
- Alternative hypothesis (Ha): there is a difference in effectiveness between treatments.
The Cochran's Q test statistic is
where
- k is the number of treatments
- X• j is the column total for the jth treatment
- b is the number of blocks
- Xi • is the row total for the ith block
- N is the grand total
Critical region
For
where Χ21 − α,k − 1 is the (1 − α)-
The exact distribution of the T statistic may be computed for small samples. This allows obtaining an exact critical region. A first algorithm had been suggested in 1975 by Patil[6] and a second one has been made available by Fahmy and Bellétoile[7] in 2017.
Assumptions
Cochran's Q test is based on the following assumptions:
- If the large sample approximation is used (and not the exact distribution), b is required to be "large".
- The blocks were randomly selected from the population of all possible blocks.
- The outcomes of the treatments can be coded as binary responses (i.e., a "0" or "1") in a way that is common to all treatments within each block.
Related tests
- The Friedman test or Durbin test can be used when the response is not binary but ordinal or continuous.
- When there are exactly two treatments the Cochran Q test is equivalent to McNemar's test, which is itself equivalent to a two-tailed sign test.
References
- JSTOR 2332378.
- ISBN 9780471160687.
- ^ National Institute of Standards and Technology. Cochran Test
- OCLC 61365784.
- ISBN 9780716724117.
- JSTOR 2285400.
- doi:10.1145/3095076.
This article incorporates public domain material from the National Institute of Standards and Technology