skip to main content

Algorithm 983: Fast Computation of the Non-Asymptotic Cochran’s Q Statistic for Heterogeneity Detection

Published:16 August 2017Publication History
Skip Abstract Section

Abstract

The detection of heterogeneity among objects (products, treatments, medical studies) assessed on a series of blocks (consumers, patients, methods, pathologists) is critical in numerous areas such as clinical research, cosmetic studies, or survey analysis. The Cochran’s Q test is the most widely used test for identifying heterogeneity on binary data (success vs. failure, cure vs. not cure, 1 vs. 0, etc.). For a large number of blocks, the Q distribution can be approximated by a χ2 distribution. Unfortunately, this does not hold for limited sample sizes or sparse tables. In such situations, one has to either run Monte Carlo simulations or compute the exact Q distribution to obtain an accurate and reliable result. However, the latter method is often disregarded in favor of the former due to computational expense considerations. The purpose of this article is to propose an extremely fast implementation of the exact Cochran’s Q test so one can benefit from its accuracy at virtually no cost regarding computation time. It is implemented as a part of the XLSTAT statistical software (Addinsoft 2015). After a short presentation of the Cochran’s Q test and the motivation for its exact version, we detail our approach and present its actual implementation. We then demonstrate the gain of this algorithm with performance evaluations and measurements. Comparisons against a well-established implementation have shown an increase of the computational velocity by a factor ranging from 100 up to 1× 106 in the most favorable cases.

Skip Supplemental Material Section

Supplemental Material

References

  1. Addinsoft. 2015. XLSTAT 2015: Data analysis and statistical solution for microsoft excel. ADDINSOFT Corporation (2015).Google ScholarGoogle Scholar
  2. Nils Blomqvist and others. 1951. Some tests based on dichotomization. Ann. Math. Stat. 22, 3 (1951), 362--371.Google ScholarGoogle ScholarCross RefCross Ref
  3. Brian S. Cade and Jon D. Richards. 2005. User manual for BLOSSOM statistical software. US Geological Survey Open-File Report 1353 (2005), 124.Google ScholarGoogle Scholar
  4. William G. Cochran. 1950. The comparison of percentages in matched samples. Biometrika (1950), 256--266.Google ScholarGoogle Scholar
  5. William Feller. 1950. An introduction to probability theory and its applications, John Wiley 8 Sons.Google ScholarGoogle Scholar
  6. Quinn McNemar. 1947. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika 12, 2 (1947), 153--157.Google ScholarGoogle ScholarCross RefCross Ref
  7. Cyrus Mehta and Nitin Ratilal Patel. 1992. StatXact: User Manual: Statistical Software for Exact Nonparametric Inference. CYTEL Software Corporation.Google ScholarGoogle Scholar
  8. Paul W. Mielke and Kenneth J. Berry. 1995. Nonasymptotic inferences based on Cochran’s Q test. Percept. Motor Skills 81, 1 (1995), 319--322.Google ScholarGoogle ScholarCross RefCross Ref
  9. Paul W. Mielke and Kenneth J. Berry. 2007. Permutation Methods: A Distance Function Approach. Springer Science 8 Business Media. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Kashinath D. Patil. 1975. Cochran’s Q test: Exact distribution. J. Am. Stat. Assoc. 70, 349 (1975), 186--189.Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. Algorithm 983: Fast Computation of the Non-Asymptotic Cochran’s Q Statistic for Heterogeneity Detection

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image ACM Transactions on Mathematical Software
      ACM Transactions on Mathematical Software  Volume 44, Issue 2
      June 2018
      242 pages
      ISSN:0098-3500
      EISSN:1557-7295
      DOI:10.1145/3132683
      Issue’s Table of Contents

      Copyright © 2017 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 16 August 2017
      • Accepted: 1 May 2017
      • Revised: 1 January 2017
      • Received: 1 April 2016
      Published in toms Volume 44, Issue 2

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article
      • Research
      • Refereed

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader