Enter the observed and expected frequencies for two cells into the calculator to determine the Yates correction for continuity. This correction is used in chi-squared tests for 2x2 contingency tables when sample sizes are small.

Yates Correction Formula

The following formula is used to calculate the Yates correction for continuity in a 2x2 contingency table.

YC = ((|O1 - E1| - 0.5)² / E1) + ((|O2 - E2| - 0.5)² / E2)

Variables:

  • YC is the Yates correction for continuity
  • O1 is the observed frequency for cell 1
  • E1 is the expected frequency for cell 1
  • O2 is the observed frequency for cell 2
  • E2 is the expected frequency for cell 2

To calculate the Yates correction, subtract 0.5 from the absolute difference between the observed and expected frequencies for each cell, square the result, and then divide by the expected frequency for that cell. Sum the results for both cells to get the Yates correction.

What is Yates Correction?

Yates correction, also known as Yates' chi-squared test, is a statistical procedure that corrects the chi-squared value for continuity. This correction is applied to a 2x2 contingency table when the sample size is small (usually less than 20). It is designed to prevent overestimation of statistical significance for small discrete distributions.

How to Calculate Yates Correction?

The following steps outline how to calculate the Yates Correction.


  1. First, determine the observed frequency for cell 1 (O1).
  2. Next, determine the expected frequency for cell 1 (E1).
  3. Then, determine the observed frequency for cell 2 (O2).
  4. After that, determine the expected frequency for cell 2 (E2).
  5. Use the formula to calculate the Yates correction (YC).
  6. Finally, check your answer with the calculator above.

Example Problem : 

Use the following variables as an example problem to test your knowledge.

Observed frequency for cell 1 (O1) = 10

Expected frequency for cell 1 (E1) = 8

Observed frequency for cell 2 (O2) = 12

Expected frequency for cell 2 (E2) = 14