Σ
SDCalc
AdvancedFormulas·10 min

Sheppard's Correction for Grouped Data Standard Deviation

Learn when Sheppard's correction adjusts grouped-data variance, how to apply h squared over 12, and when the correction should not be used.

By Standard Deviation Calculator Team · Data Science Team·Published

What Sheppard's Correction Fixes

Sheppard's correction is an adjustment for variance and standard deviation estimates calculated from grouped continuous data. It is used when values have been binned into equal-width class intervals and each class is represented by its midpoint.

The midpoint method is practical, but it treats every observation in a class as if it fell exactly at the center. For a smooth continuous distribution, that grouping process tends to add about h² / 12 of artificial variance, where h is the class width. Sheppard's correction subtracts that amount before taking the square root.

This is a correction to variance, not directly to SD

Apply Sheppard's correction to the grouped-data variance first. Then take the square root to get the corrected standard deviation.

If you need the basic midpoint workflow first, start with Standard Deviation from a Frequency Table. If your problem is about simplifying by-hand grouped calculations, read Assumed Mean Method for Standard Deviation.

TermMeaningWhy it matters
hCommon class widthThe correction is h² / 12
Grouped varianceVariance computed from class midpointsThis is the value adjusted by the correction
Corrected varianceGrouped variance minus h² / 12Take the square root of this value for corrected SD
Raw-data varianceVariance computed from original observationsNo Sheppard correction is needed

The Formula

For equal-width grouped data, first compute the standard grouped-data variance using class midpoints mᵢ and frequencies fᵢ.

Population grouped variance

σ²_grouped = Σfᵢ(mᵢ - μ_grouped)² / N

Sample grouped variance

s²_grouped = Σfᵢ(mᵢ - x̄_grouped)² / (n - 1)

Then subtract Sheppard's correction term:

Sheppard-corrected variance

corrected variance = grouped variance - h² / 12

Sheppard-corrected standard deviation

corrected SD = √(grouped variance - h² / 12)

Do not confuse corrections

Bessel's correction changes the denominator from n to n - 1 for sample variance. Sheppard's correction subtracts h² / 12 because of grouping. They answer different problems and can both appear in the same grouped-data calculation.

For the sample-versus-population denominator choice, see Sample vs Population. For the ungrouped formula behind these calculations, see Standard Deviation Formula Explained.

Worked Example

Suppose delivery times are only available as grouped class intervals. The class width is h = 10 minutes.

Class intervalFrequency fMidpoint mf × mf × m²
10-19214.529.0420.5
20-29524.5122.53001.25
30-39734.5241.58331.75
40-49444.5178.07921.0
50-59254.5109.05940.5
Total20-680.025615.0
1

Compute the grouped mean

x̄_grouped = 680 / 20 = 34.0.
2

Compute the midpoint-based population variance

σ²_grouped = 25615 / 20 - 34² = 124.75.
3

Compute Sheppard's correction term

h² / 12 = 10² / 12 = 8.3333.
4

Subtract before taking the square root

corrected variance = 124.75 - 8.3333 = 116.4167.
5

Convert variance to standard deviation

corrected SD = √116.4167 ≈ 10.79 minutes.

Sample version of the same example

If the grouped table is a sample, use the sample grouped variance first: s²_grouped = (25615 - 20 × 34²) / 19 ≈ 131.32. Then subtract 8.3333, giving corrected sample variance ≈ 122.99 and corrected sample SD ≈ 11.09.

You can compare the uncorrected midpoint calculation with the site's variance calculator, sample standard deviation calculator, or population standard deviation calculator by expanding the midpoint values according to their frequencies.

When to Use It

Sheppard's correction is most defensible when grouping is an artificial reporting step applied to an underlying continuous variable. For example, measurements might be rounded into equal 10-minute, 5-point, or 0.1-unit bins even though the original variable is continuous.

Good fit

Equal-width class intervals, continuous measurements, many observations, and a distribution that is fairly smooth within each class.

Weak fit

Unequal classes, small samples, discrete scores with only a few possible values, or bins that were chosen because of real thresholds.

The correction is usually small when class widths are narrow compared with the standard deviation. It becomes more important when bins are wide enough that the grouping itself contributes visible spread.

When Not to Use It

  • Raw data are available:Use the original observations instead. Sheppard's correction is only an approximation for information lost through grouping.
  • Class widths differ:The simple **h² / 12** correction assumes one common class width.
  • Classes are open-ended:A class such as **60 and above** has no natural midpoint or width for this correction.
  • The corrected variance is negative:That means the assumptions are not compatible with the grouped variance. Do not report an imaginary standard deviation.
  • The data are inherently discrete:Counts, Likert ratings, and small integer scales may not behave like continuous values uniformly spread inside each bin.

Report the method

When you use this adjustment, label the result as a Sheppard-corrected grouped-data estimate. That tells readers the raw observations were not available.

Grouped-Data Correction Checklist

  • Confirm that the table uses equal-width class intervals.
  • Compute the standard grouped-data variance from class midpoints first.
  • Use the correct denominator: N for a population or n - 1 for a sample.
  • Calculate h² / 12 from the common class width.
  • Subtract the correction from variance, not from standard deviation.
  • Take the square root only after the variance has been corrected.
  • Avoid the correction for open-ended, unequal-width, highly skewed, or very small grouped tables.
  • Use raw observations with the descriptive statistics calculator whenever the original data can be recovered.

Sheppard's correction is not a magic way to reconstruct raw data. It is a specific adjustment for a specific source of bias: extra variance introduced by replacing continuous observations with equal-width class midpoints.

Further Reading

Sources

References and further authoritative reading used in preparing this article.

  1. Sheppard's CorrectionWolfram MathWorld
  2. Sheppard's correction
  3. Grouped data variance methodsR Project