When does SciPy's default Yates continuity correction apply in a contingency test?
StatisticsLevel: IntermediateBinary and categorical inference
When does SciPy's default Yates continuity correction apply in a contingency test?
Hints
- Check the degrees of freedom.
- It adjusts discrete counts toward a continuous approximation.
Answer
When degrees of freedom equal one and correction is enabled. It moves observed counts toward expected counts by up to 0.5, capped by their absolute difference, before calculating the statistic.
Source and licence: SciPy — contingency tables · BSD-3-Clause · answer: Quantoros editorial