Continuity Correction Calculator
Calculate continuity correction for normal approximation of discrete distributions. Get corrected values, z-scores, and exact probabilities.
About
When approximating a discrete probability distribution (binomial, Poisson, hypergeometric) with a continuous normal curve, a systematic error arises at each integer boundary. The continuity correction adjusts the discrete value x by ±0.5 before computing the z-score, compensating for the area lost between histogram bars and the smooth curve. Without this adjustment, tail probabilities can deviate by 5 - 15% from exact values when n is small or p is far from 0.5. The correction is most critical when np or nq falls below 10.
This calculator applies the appropriate ±0.5 shift based on your inequality direction, computes the corrected z-score, and returns both corrected and uncorrected cumulative probabilities using the Abramowitz & Stegun rational approximation to the standard normal CDF (absolute error < 1.5 × 10−7). It handles six inequality types including point probability P(X = x). Note: the normal approximation itself degrades when the underlying distribution is highly skewed. Always verify that np ≥ 5 and nq ≥ 5 for binomial cases.
Formulas
The continuity correction modifies the observed discrete value x before standardization. The corrected z-score depends on the inequality direction.
For P(X ≤ x), add 0.5 to x. For P(X ≥ x), subtract 0.5. For point probability P(X = x), compute the area between x − 0.5 and x + 0.5.
where t = 11 + 0.2316419|z| and φ(z) is the standard normal PDF. Coefficients a1 through a5 are the Abramowitz & Stegun constants (Handbook of Mathematical Functions, formula 26.2.17). Absolute error is bounded by 1.5 × 10−7.
Where: x = observed discrete value, μ = population or distribution mean, σ = standard deviation, z = standardized score, Φ = cumulative distribution function of standard normal, n = number of trials (binomial), p = probability of success per trial.
Reference Data
| Inequality Type | Without Correction | With Correction | Direction of Shift |
|---|---|---|---|
| P(X = x) | 0 (continuous) | P(x − 0.5 ≤ Z ≤ x + 0.5) | Both ±0.5 |
| P(X ≤ x) | P(Z ≤ z) | P(Z ≤ z+0.5) | +0.5 |
| P(X < x) | P(Z < z) | P(Z < z−0.5) | −0.5 |
| P(X ≥ x) | P(Z ≥ z) | P(Z ≥ z−0.5) | −0.5 |
| P(X > x) | P(Z > z) | P(Z > z+0.5) | +0.5 |
| P(a ≤ X ≤ b) | P(za ≤ Z ≤ zb) | P(za−0.5 ≤ Z ≤ zb+0.5) | −0.5 / +0.5 |
| Distribution | Mean (μ) | Std Dev (σ) | Correction Rule of Thumb | Typical n Threshold |
|---|---|---|---|---|
| Binomial(n, p) | np | √npq | np ≥ 5 and nq ≥ 5 | n ≥ 20 |
| Poisson(λ) | λ | √λ | λ ≥ 5 | λ ≥ 10 |
| Hypergeometric | nKN | Complex formula | All expected counts ≥ 5 | n ≥ 20 |
| Negative Binomial | rp | √rqp | r ≥ 5 | r ≥ 10 |
| Chi-Square (Yates) | k | √2k | 2×2 tables, any cell < 5 | All cells ≥ 5 |
| Sign Test | 0.5n | 0.5√n | Always recommended | n ≥ 10 |
| Wilcoxon Signed-Rank | n(n+1)4 | Complex formula | Always recommended | n ≥ 10 |
| Mann-Whitney U | n1n22 | Complex formula | Always recommended | n1, n2 ≥ 10 |
| Geometric(p) | 1p | √qp | p < 0.1 | Large n |
| Multinomial (approx) | npi | √npi(1−pi) | All npi ≥ 5 | n ≥ 30 |