Skip to main content
Log in

A chi-square goodness-of-fit test for continuous distributions against a known alternative

  • Original paper
  • Published:
Computational Statistics Aims and scope Submit manuscript

Abstract

The chi square goodness-of-fit test is among the oldest known statistical tests, first proposed by Pearson in 1900 for the multinomial distribution. It has been in use in many fields ever since. However, various studies have shown that when applied to data from a continuous distribution it is generally inferior to other methods such as the Kolmogorov-Smirnov or Anderson-Darling tests. However, the performance, that is the power, of the chi square test depends crucially on the way the data is binned. In this paper we describe a method that automatically finds a binning that is very good against a specific alternative. We show that then the chi square test is generally competitive and sometimes even superior to other standard tests.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

References

  • Berkson J (1980) Minimum chi-square, not maximum likelihood. Ann Math Stat 8(3):457–487

    MathSciNet  MATH  Google Scholar 

  • Bickel PJ, Doksum KA (2015) Mathematical statistics, vol 1 and 2. CRC Press, Boca Raton

    Book  Google Scholar 

  • Birnbaum ZW (1952) Numerical tabulation of the distribution of Kolmogorov’s statistic for finite sample size. J Acoust Soc Am 47:425–441

    MathSciNet  MATH  Google Scholar 

  • Bogdan M (1995) Data driven version of Pearson’s chi-square test for uniformity. J Stat Comput Simul 52:217–237

    Article  MathSciNet  Google Scholar 

  • Casella G, Berger R (2002) Statistical inference. Duxbury advanced series in statistics and decision sciences. Thomson Learning, Boston

    MATH  Google Scholar 

  • Cressie N, Read TRC (1989) Pearson’s X2 and the loglikelihood ratio statistic G: a comparative review. Int Stat Rev 57:19–43

    Article  Google Scholar 

  • D’Agostini RB, Stephens MA (1986) Goodness-of-fit techniques, statistics: textbooks and monographs. Marcel Dekker, New York

    Google Scholar 

  • Dahiya RC, Gurland J (1973) How many classes in the Pearson chi-square test? J Am Stat Assoc 68:707–712

    MathSciNet  MATH  Google Scholar 

  • Fisher RA (1922) On the interpretation of chi-square of contingency tables and the calculation of P. J R Stat Soc 85:87–94

    Article  Google Scholar 

  • Goodman LA (1954) Kolmogorov–Smirnov tests for psychological research. Psychol Bull 51:160–168

    Article  Google Scholar 

  • Greenwood PE, Nikulin MS (1996) A guide to chi-square testing. Wiley, Hoboken

    MATH  Google Scholar 

  • Harrison RH (1985) Choosing the optimum number of classes in the chi-square test for arbitrary power levels. Indian J Stat 47(3):319–324

    MathSciNet  MATH  Google Scholar 

  • Kallenberg W (1985) On moderate and large deviations in multinomial distributions. Ann Stat 13:1554–1580

    Article  MathSciNet  Google Scholar 

  • Kallenberg W, Ooosterhoff J, Schriever B (1985) The number of classes in chi-squared goodness-of-fit tests. J Am Stat Assoc 80:959–968

    Article  MathSciNet  Google Scholar 

  • Koehler K, Gann F (1990) Chi-squared goodness-of-fit tests: cell selection and power. Commun Stat Simul 19:1265–1278

    Article  Google Scholar 

  • Mann H, Wald A (1942) On the choice of the number and width of classes for the chi-square test of goodness of fit. Ann Math Stat 13:306–317

    Article  Google Scholar 

  • Massey FJ (1951) The Kolmogorov–Smirnov test for goodness-of-fit. J Acoust Soc Am 46:68–78

    MATH  Google Scholar 

  • Mineo A (1979) A new grouping method for the right evaluation of the chi-square test of goodness-of-fit. Scand J Stat 6(4):145–153

    MATH  Google Scholar 

  • Ooosterhoff J (1985) The choice of cells in chi-square tests. Stat Neerl 39:115–128

    Article  MathSciNet  Google Scholar 

  • Quine M, Robinson J (1985) Efficiencies of chi-square and likelihoodratio goodness-of-fit tests. Ann Stat 13:727–742

    Article  Google Scholar 

  • Raynor JC, Thas O, Best DJ (2009) Smooth tests of goodness of fit using R, Wiley&Sons

  • Sturges H (1926) The choice of a class-interval. J Am Stat Assoc 21:65–66

    Article  Google Scholar 

  • Thas O (2010) Continuous distributions, Springer series in statistics. Springer, Cham

    Google Scholar 

  • Voinov NB, Nikulin M (2013) Chi-square goodness of fit test with applications. Academic Press, New York

    MATH  Google Scholar 

  • Watson GS (1958) On chi-square goodness-of-fit tests for continuous distributions. J R Stat Soc Ser B 20:44–72

    MathSciNet  MATH  Google Scholar 

  • Williams CA (1950) On the choice of the number and width of classes for the chi-square test of goodness of fit. J Acoust Soc Am 45:77–86

    MATH  Google Scholar 

  • Zhang J (2002) Powerful goodness-of-fit tests based on likelihood ratio. J R Stat Soc Ser B 64:281–294

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Wolfgang Rolke.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Rolke, W., Gongora, C.G. A chi-square goodness-of-fit test for continuous distributions against a known alternative. Comput Stat 36, 1885–1900 (2021). https://doi.org/10.1007/s00180-020-00997-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00180-020-00997-x

Keywords

Navigation