Published online by Cambridge University Press: 01 January 2025
Rapid computational routines are presented for calculating x2 from frequency data in the following cases: (1) test of goodness of fit between an observed and a theoretical distribution; (2) test of independence of distributions displayed in an r ✗ c table; (3) test of independence of distributions displayed in an r ✗ 2 table. A rapid method of computing the contingency coefficient also follows from the procedure used in the second of these cases.
* DuBois, P. H. Note on the calculation of the chi-square test for “goodness of fit.” Psychometrika, 1939, 4, 173–174.
* McNemar. Q. Psychological statistics. New York: Wiley, 1949.
† It can easily be shown that this formula, as well as formulas (2), (3), and (5), can be derived from the basic formula, .
* In this illustration we will use the first column, although the second column might be preferred by some computers. If the second column is used, Na and Nb are to be transposed.