Harman Patil (Editor)

Yates's correction for continuity

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In statistics, Yates' correction for continuity (or Yates' chi-squared test) is used in certain situations when testing for independence in a contingency table. In some cases, Yates' correction may adjust too far, and so its current use is limited.

Contents

Correction for approximation error

Using the chi-squared distribution to interpret Pearson's chi-squared statistic requires one to assume that the discrete probability of observed binomial frequencies in the table can be approximated by the continuous chi-squared distribution. This assumption is not quite correct, and introduces some error.

To reduce the error in approximation, Frank Yates, an English statistician, suggested a correction for continuity that adjusts the formula for Pearson's chi-squared test by subtracting 0.5 from the difference between each observed value and its expected value in a 2 × 2 contingency table. This reduces the chi-squared value obtained and thus increases its p-value.

The effect of Yates' correction is to prevent overestimation of statistical significance for small data. This formula is chiefly used when at least one cell of the table has an expected count smaller than 5. Unfortunately, Yates' correction may tend to overcorrect. This can result in an overly conservative result that fails to reject the null hypothesis when it should (a type II error). So it is suggested that Yates' correction is unnecessary even with quite low sample sizes, such as:

i = 1 N O i = 20

The following is Yates' corrected version of Pearson's chi-squared statistics:

χ Yates 2 = i = 1 N ( | O i E i | 0.5 ) 2 E i

where:

Oi = an observed frequencyEi = an expected (theoretical) frequency, asserted by the null hypothesisN = number of distinct events

2 × 2 table

As a short-cut, for a 2 × 2 table with the following entries:

we can write

χ Yates 2 = N ( | a d b c | N / 2 ) 2 N S N F N A N B .

In some cases, this is better.

χ Yates 2 = N ( max ( 0 , | a d b c | N / 2 ) ) 2 N S N F N A N B .

References

Yates's correction for continuity Wikipedia


Similar Topics