Tutorials › VEE Mathematical Statistics › Welch Intervals For Unequal Variances

VEE Mathematical Statistics · Intervals for Means · Tutorial 555 of 880

Welch Intervals For Unequal Variances

Use separate sample variance estimates and the Welch–Satterthwaite approximation to quantify uncertainty in a difference between two independent means.

Intermediate 10 min read

What You'll Learn

  • State the parameter and assumptions for a Welch interval.
  • Calculate the standard error using each sample’s own variance estimate.
  • Apply the Welch–Satterthwaite formula for approximate degrees of freedom.
  • Select the correct Student t critical value for a confidence level.
  • Interpret why the Welch interval is approximate, including when population variances happen to be equal.
  • Recognize common errors involving pooled variances, degrees of freedom, and rounding.

Why Use a Welch Interval?

A confidence interval for the difference between two independent population means must account for sampling variation in both samples. When the population variances are known, the variance of the difference can be calculated directly. In practice, those variances are often unknown and estimated from the samples. If the two population variances may differ, the Welch interval uses a separate estimate from each sample rather than imposing a common variance.

This method is useful when comparing two distinct populations, such as hypothetical claim-processing times under two independent workflows. The target is the difference in population means, not the difference between individual paired observations. The method is aligned with the SOA VEE Mathematical Statistics syllabus.

Definition: Let \(X_1,\ldots,X_{n_1}\) be an independent random sample from a population with mean \(\mu_1\) and variance \(\sigma_1^2\), and let \(Y_1,\ldots,Y_{n_2}\) be an independent random sample from a second population with mean \(\mu_2\) and variance \(\sigma_2^2\). Assume the two samples are independent of each other. The parameter of interest is \(\mu_1-\mu_2\). Write the sample means as \(\bar X,\bar Y\), and the unbiased sample variances as \(s_1^2,s_2^2\).

For the usual Welch interval, both population variances are unknown and are not assumed equal. The sample sizes need not be equal. If both populations are normal, the sample means and sample variances have the standard normal-sampling properties used to motivate the method. With nonnormal populations, the interval is an approximation; its reliability depends on the sample sizes and the population shapes. Small samples with strong skewness or influential outliers can make the approximation unreliable.

The Welch Interval

The estimated standard error of \(\bar X-\bar Y\) is obtained by adding the two estimated contributions to variance. The approximate degrees of freedom account for the fact that the two contributions are estimated with different amounts of information.

Theorem: For independent samples with unknown, potentially unequal population variances, the two-sided approximate \(100(1-\alpha)\%\) Welch confidence interval for \(\mu_1-\mu_2\) is
$$ (\bar X-\bar Y)\ \pm\ t_{1-\alpha/2,\,\widehat{\nu}} \sqrt{\frac{s_1^2}{n_1}+\frac{s_2^2}{n_2}}, $$

where \(t_{1-\alpha/2,\,\widehat{\nu}}\) is the \(1-\alpha/2\) quantile of the Student \(t\) distribution with \(\widehat{\nu}\) degrees of freedom, and

$$ \widehat{\nu} = \frac{\left(\dfrac{s_1^2}{n_1}+\dfrac{s_2^2}{n_2}\right)^2} {\dfrac{\left(s_1^2/n_1\right)^2}{n_1-1} +\dfrac{\left(s_2^2/n_2\right)^2}{n_2-1}}. $$

The two variance contributions \(s_1^2/n_1\) and \(s_2^2/n_2\) remain separate throughout the calculation. In particular, the formula does not pool \(s_1^2\) and \(s_2^2\) into one common estimate.

Why the Degrees of Freedom Have This Form

Under normal sampling, each sample variance is related to a chi-square random variable: \((n_j-1)s_j^2/\sigma_j^2\) has a chi-square distribution with \(n_j-1\) degrees of freedom, for \(j=1,2\). The two sample variances are independent. Thus, the estimated variance of the difference is a sum of two scaled chi-square quantities, not generally one scaled chi-square quantity.

The Satterthwaite approximation replaces this sum by a single scaled chi-square variable whose mean and variance match those of the sum. To see the resulting degrees of freedom, write \(a_j=s_j^2/n_j\). The estimated variance is \(a_1+a_2\); approximating its distribution by a scaled chi-square gives the moment-matching degrees of freedom \((a_1+a_2)^2/[a_1^2/(n_1-1)+a_2^2/(n_2-1)]\), which is the stated formula. Because the two chi-square contributions generally have different scales, their sum is not exactly a scaled chi-square. Consequently, the Welch \(t\) statistic is generally approximate, even for normal populations.

This distinction matters when the population variances happen to be equal. Under normality and equal population variances, the pooled two-sample \(t\) procedure is exact. The Welch procedure remains an approximation in general; equal population variances alone do not turn its data-dependent degrees of freedom into an exact \(t\) pivot.

1
Set the order of the difference.
Write the parameter as \(\mu_1-\mu_2\), and calculate \(\bar X-\bar Y\) in the same order.
2
Calculate the separate variance contributions.
Find \(a_1=s_1^2/n_1\) and \(a_2=s_2^2/n_2\), then calculate \(SE_W=\sqrt{a_1+a_2}\).
3
Approximate the degrees of freedom.
Substitute \(a_1,a_2,n_1,n_2\) in the Welch–Satterthwaite formula. Do not replace the result by a pooled degrees-of-freedom count.
4
Choose the critical value and form the endpoints.
For a two-sided confidence level \(1-\alpha\), use \(t_{1-\alpha/2,\widehat{\nu}}\), then add and subtract the margin of error from \(\bar X-\bar Y\).

Worked Calculations

Worked Example: Comparing Two Independent Processing Times

A hypothetical insurer compares two independent claim-file workflows. A random sample of 10 files processed by Workflow A has mean processing time 18 hours and sample standard deviation 3 hours. An independent random sample of 10 files processed by Workflow B has mean 14 hours and sample standard deviation 4 hours. Construct a 95% Welch interval for the difference in population mean processing times, \(\mu_A-\mu_B\). Assume the two population distributions are normal with unknown, potentially unequal variances. No interest rate or mortality assumption is involved.

Method and estimate. Use the Welch interval, keeping the two sample variance estimates separate. The observed difference is

$$ \bar X-\bar Y=18-14=4\text{ hours}. $$

Standard error. The two contributions are \(a_1=3^2/10=9/10=0.9\) and \(a_2=4^2/10=16/10=1.6\). Therefore,

$$ SE_W=\sqrt{0.9+1.6}=\sqrt{2.5}=1.5811\text{ hours}. $$

Degrees of freedom. Substituting the two contributions gives

$$ \widehat{\nu} =\frac{(0.9+1.6)^2}{0.9^2/9+1.6^2/9} =\frac{6.25}{0.09+0.284444\ldots} \approx 16.69. $$

At 95% confidence, the critical value is approximately \(t_{0.975,16.69}=2.113\). The margin of error is \(2.113(1.5811)\approx3.341\) hours. Thus the interval is \(4\pm3.341\), or approximately \((0.66,7.34)\) hours, rounding the endpoints to two decimal places.

Check and common mistake. The midpoint of the reported interval is 4 hours, as it should be, and its half-width is approximately 3.34 hours. A common mistake is to pool the two sample variances because the sample sizes are equal. Equal sample sizes do not establish equal population variances; the Welch calculation uses \(9/10\) and \(16/10\) separately.

Worked Example: Unequal Sample Sizes and a Positive Estimate

In a hypothetical study of two independent methods for reviewing policy applications, Method 1 is applied to 8 randomly selected applications and Method 2 to 12 different randomly selected applications. The sample means are 27.4 and 24.9 minutes, and the sample standard deviations are 2 and 3 minutes, respectively. Construct a 95% Welch interval for \(\mu_1-\mu_2\). Assume independent normal populations with unknown, potentially unequal variances. No interest rate or mortality assumption is involved.

Method and estimate. The sample mean difference is \(27.4-24.9=2.5\) minutes. The separate estimated variance contributions are \(a_1=2^2/8=0.5\) and \(a_2=3^2/12=0.75\). Hence

$$ SE_W=\sqrt{0.5+0.75}=\sqrt{1.25}=1.1180\text{ minutes}. $$

The degrees of freedom are

$$ \widehat{\nu} =\frac{1.25^2}{0.5^2/7+0.75^2/11} =\frac{1.5625}{0.0357143+0.0511364} \approx17.99. $$

The 95% critical value is approximately \(t_{0.975,17.99}=2.101\). The margin of error is \(2.101(1.1180)\approx2.349\) minutes. The interval is \(2.5\pm2.349\), which gives approximately \((0.15,4.85)\) minutes, to two decimal places.

Check and common mistake. The estimate is positive and the interval is centered at 2.5. It includes only positive values at the displayed precision. Do not use \(n_1+n_2-2=18\) as the Welch degrees of freedom merely because that is the familiar pooled count; here the Welch calculation happens to give approximately 17.99, but that is a result of the inputs, not a rule.

Worked Example: A Small Sample with Different Variability

A hypothetical laboratory compares measurement times for two independent procedures. Six randomly selected measurements using Procedure 1 have mean 31 minutes and sample standard deviation 5 minutes. Nine different measurements using Procedure 2 have mean 26 minutes and sample standard deviation 2.5 minutes. Construct a 90% Welch interval for \(\mu_1-\mu_2\). Assume independent normal populations with unknown, potentially unequal variances. No interest rate or mortality assumption is involved.

Method and estimate. The estimated difference is \(31-26=5\) minutes. The variance contributions are

$$ a_1=\frac{5^2}{6}=\frac{25}{6}=4.166667,\qquad a_2=\frac{2.5^2}{9}=\frac{6.25}{9}=0.694444. $$

Therefore, \(SE_W=\sqrt{4.166667+0.694444}=\sqrt{4.861111}\approx2.2048\) minutes. The approximate degrees of freedom are

$$ \widehat{\nu} =\frac{(4.861111)^2}{4.166667^2/5+0.694444^2/8} =\frac{23.6304}{3.472222+0.060282} \approx6.69. $$

For a 90% two-sided interval, the critical value is approximately \(t_{0.95,6.69}=1.910\). The margin of error is \(1.910(2.2048)\approx4.211\) minutes. Thus the interval is \(5\pm4.211\), or approximately \((0.79,9.21)\) minutes, with endpoints rounded to two decimal places.

Check and common mistake. The estimate of 5 is the midpoint, and the interval is wider than the point estimate’s standard error because it uses a \(t\) critical value. A common error is to round the degrees of freedom down to 6 before selecting the critical value without stating that convention. Using the unrounded approximation, or a stated conservative table convention, is preferable; the calculation above uses approximately 6.69 degrees of freedom.

Interpretation and Exam Traps

A 95% Welch confidence procedure has 95% long-run coverage under its assumptions and approximation. It does not mean that the fixed parameter \(\mu_1-\mu_2\) has a 95% probability of lying in the particular interval after the data have been observed. A confidence interval reports a range of parameter values compatible with the observed difference and its estimated uncertainty.

The interval’s direction follows the order chosen for the difference. If the parameter is \(\mu_1-\mu_2\), reversing the order reverses the signs of the estimate and both endpoints. A positive interval indicates that the first population mean exceeds the second under that stated order; an interval containing zero does not establish a nonzero difference at the corresponding two-sided confidence level.

Common errorCorrection
Using a pooled variance despite possible unequal population variancesUse \(s_1^2/n_1+s_2^2/n_2\) and the Welch degrees-of-freedom formula.
Using \(n_1+n_2-2\) degrees of freedom by habitThat count belongs to the pooled procedure; calculate \(\widehat{\nu}\) for Welch.
Putting \(s_j/n_j\) into the standard errorUse the sample variance contribution \(s_j^2/n_j\), then take the square root of their sum.
Using \(t_{1-\alpha}\) for a two-sided intervalSplit the excluded probability between both tails and use \(t_{1-\alpha/2,\widehat{\nu}}\).
Claiming the Welch interval is exact for equal population variancesThe pooled \(t\) interval is exact under normality and equal variances; Welch’s procedure is generally approximate.

Keep sufficient precision in the standard error and degrees of freedom until the critical value and margin of error have been found. Rounding an intermediate value can move an endpoint, especially in a small-sample calculation. State the order of the means, confidence level, approximate degrees of freedom, and units in a complete answer.

Key takeaway: Welch’s method estimates the variance of the difference by adding two separate sample-based contributions, then uses a moment-matched degrees-of-freedom approximation. It is the appropriate two-independent-sample \(t\) interval when equal population variances should not be assumed.

Check Your Understanding

For each problem, state the interval for the first population mean minus the second. Unless a problem says otherwise, assume independent normal populations with unknown, potentially unequal variances. No interest rate or mortality assumption is involved.

  1. Two independent samples each have size 10. Their sample means are 12 and 9, and their sample standard deviations are both 2. Find a 95% Welch interval. (Answer: approximately \((1.12,4.88)\).)
  2. For two independent samples, \(n_1=8,\ n_2=8,\ \bar X=15.5,\ \bar Y=14.0,\ s_1=2,\ s_2=4\). Find a 90% Welch interval. (Answer: approximately \((-1.36,4.36)\).)
  3. Two independent samples have \(n_1=n_2=12\), sample means 44 and 40, and sample standard deviations 3 and 4. Find a 95% Welch interval. (Answer: approximately \((0.99,7.01)\).)
  4. Two independent samples have \(n_1=6,\ n_2=10,\ \bar X=8,\ \bar Y=6,\ s_1=2,\ s_2=3\). Find a 99% Welch interval. (Answer: approximately \((-1.74,5.74)\).)
  5. A review compares two independent populations. Sample 1 has \(n_1=5,\ \bar X=42,\ s_1=1\); Sample 2 has \(n_2=20,\ \bar Y=39,\ s_2=5\). Find a 90% Welch interval and state whether it contains zero. (Answer: approximately \((0.94,5.06)\); it does not contain zero.)
Clinical Biostats