Calculate the standard error of the difference between two means from each sample’s SD and size, or for paired samples or correlated estimates.

For unrelated samples; use the same units for both SDs.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Independent sample meansFinds the standard error of the difference between the means of two unrelated samplesRequires the standard deviation and the size of each sample
Paired differencesFinds the standard error of the mean difference for matched pairsRequires the standard deviation of the within-pair differences and the number of pairs
Known SEs with correlationFinds the standard error of the difference between two estimates that are correlatedRequires the standard error of each estimate and the correlation between them

Every result also gives the variance of the difference. The first two functions add 1.96 × SE as a normal 95% reference. Known SEs with correlation adds the standard error the same inputs would give with no correlation. Both spreads must be in the same units.

Standard Error of Difference Formulas

SE = √(s₁² ÷ n₁ + s₂² ÷ n₂) [1]
SEStandard error of the difference between the two sample means
s₁, s₂Sample standard deviations
n₁, n₂Sample sizes, each at least 2

Independent sample means

This is the denominator of the two-sample t statistic when the two variances are not assumed equal [1]. Standard deviations of 5 and 4 with sample sizes of 30 and 40 give √(25 ÷ 30 + 16 ÷ 40) = 1.11056. The result also shows how much of the variance each sample contributes.

Paired differences

SE = sd ÷ √n [2]

sd is the standard deviation of the differences, one per pair, and n is the number of pairs, not the number of measurements [2]. A difference SD of 2.619 over 9 pairs gives 2.619 ÷ 3 = 0.873.

Known SEs with correlation

SE = √(SE₁² + SE₂² −
2 × r × SE₁ × SE₂) [3]

The variance of a difference is the sum of the two variances minus twice the covariance, and the covariance is r times the two standard errors [3]. Standard errors of 3 and 4 with r = 0.5 give √(9 + 16 − 12) = 3.6056. With r = 0 the same inputs give 5. A positive correlation lowers the result and a negative one raises it.

Limits of This Estimate

  • A standard error is not a confidence interval or a test. Both also need the observed difference between the means.
  • The 1.96 × SE reference assumes a normal distribution. With small samples and estimated standard deviations, a t value with the right degrees of freedom is used instead: Welch–Satterthwaite for independent samples [1] and n − 1 for pairs [2].
  • Independent sample means does not pool the two variances. A pooled, equal-variance standard error is a different formula [1].
  • In Known SEs with correlation, r is the correlation between the two estimates, which is not always the correlation between individual observations.

Sources

  1. NIST/SEMATECH e-Handbook of Statistical Methods, Section 1.3.5.3, Two-Sample t-Test for Equal Means: standard error for independent samples, pooled alternative and degrees of freedom
  2. Penn State, STAT 200, Lesson 8, Section 8.3 Paired Means: standard error and degrees of freedom for paired differences
  3. University of Washington, STAT 512, Lecture 3: Expectation: variance of a difference and the definition of correlation