Σ
SDCalc
AvançadoFormulas·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

How to Read This Article

A statistics tutorial is a practical interpretation guide, not just a formula dump. It refers to the assumptions, notation, and reporting language that analysts need when they explain a result to a teacher, manager, client, or reviewer. The article body covers the specific topic, while the sections below create a common interpretation frame that readers can reuse across related metrics.

Reading goalWhat to focus onCommon mistake
DefinitionWhat the metric is and what quantity it summarizesTreating the formula as self-explanatory
Formula choiceSample versus population assumptions and notationUsing n when n-1 is required or vice versa
InterpretationWhether the result indicates concentration, spread, or riskCalling a large value good or bad without context

Frequently Asked Questions

How should I interpret a high standard deviation?

A high standard deviation means the observations are spread farther from the mean on average. Whether that spread is acceptable depends on the context: wide dispersion might signal risk in finance, instability in manufacturing, or genuine natural variation in scientific data.

Why do some articles mention n while others mention n-1?

The denominator reflects the difference between population and sample formulas. Population variance and population standard deviation use N because the full dataset is known. Sample variance and sample standard deviation often use n-1 because Bessel’s correction reduces bias when estimating population spread from a sample.

What is a statistical interpretation guide?

A statistical interpretation guide is a page that moves beyond arithmetic and explains meaning. It tells you what a metric is, when the formula applies, and how to describe the result in plain English without overstating certainty.

Can I cite this article in a report?

You should cite the underlying authoritative reference for formal work whenever possible. This page is best used as an explanatory bridge that helps you understand the concept before quoting the original standard or handbook.

Why include direct citations on every article page?

Direct citations give readers a route to verify the definition, notation, and assumptions. That improves trust and reduces the chance that a simplified explanation is mistaken for the entire technical standard.

Authoritative References

These sources define the concepts referenced most often across our articles. Bessel's correction is a sample adjustment, variance is a squared measure of spread, and standard deviation is the square root of variance expressed in the same units as the data.