Why a Welch t Statistic Is Needed
When two independent groups are compared, their sample means will usually differ, even if their population means are equal. A Welch t statistic measures the observed difference relative to the amount of sampling variation expected for that difference. The statistic is then compared with a t distribution whose degrees of freedom are estimated from the two groups.
The comparison depends on both the null difference being considered and the uncertainty in the estimated difference. For example, a sample difference of 3 minutes has a different meaning if its standard error is 1 minute than if its standard error is 10 minutes. The Welch t statistic puts the difference and its estimated standard error on the same scale.
Model, Assumptions, and Reference Distribution
The comparison concerns two population means, \(\mu_1\) and \(\mu_2\), and their difference \(\mu_1-\mu_2\). The null hypothesis specifies a value \(\Delta_0\) for that difference; it need not be zero. The Welch procedure is intended for two independent groups, and it does not require the two population variances to be equal.
Before using the statistic, the data should reasonably support inference about two population means. The observations should be independent within each group, and the two groups should be independent of one another. The samples should come from populations relevant to the question, for example through appropriate random sampling or a suitable study design. The population distributions should be approximately normal, particularly for small samples; with larger samples, the sampling distributions of the means are often better approximated by normal distributions. Detailed checks of these conditions are a separate part of two-sample inference.
Under the null hypothesis, the difference \((\bar{x}_1-\bar{x}_2)-\Delta_0\) is centered at zero. Its estimated standard error measures its sampling variation. Dividing by that standard error expresses the observed difference in estimated standard-error units. Because the population variances are unknown and are estimated separately, the resulting statistic is generally compared with an approximate t distribution rather than treated as having an exact t distribution.
The degrees of freedom are approximated using the Welch–Satterthwaite formula. Define the two estimated variance contributions as \(A=s_1^2/n_1\) and \(B=s_2^2/n_2\). Then
The result can be a non-integer. Use that value as the degrees of freedom for the reference t distribution; do not round it to an integer merely because some tables list only integer degrees of freedom. Statistical software can calculate probabilities using the non-integer value.
Why These Degrees of Freedom Are Used
The Welch–Satterthwaite formula gives an approximate degrees of freedom by matching the variability of the estimated standard error to a scaled chi-square distribution. This explains why both variance contributions and both sample sizes affect the reference distribution. The following moment-matching argument supplies the justification.
For independent samples from normal populations, the sample variances are independent, and the variance of each sample variance is \(2\sigma_i^4/(n_i-1)\). Treating the estimated variance contributions \(A\) and \(B\) as observed estimates, the sum \(A+B\) has estimated variance approximately
Approximate this sum by \(c\chi^2_\nu\), where \(\chi^2_\nu\) has mean \(\nu\) and variance \(2\nu\). Matching the mean and variance gives \(c\nu=A+B\) and \(2c^2\nu=2\left(A^2/(n_1-1)+B^2/(n_2-1)\right)\). Substituting \(c=(A+B)/\nu\) into the variance equation and solving for \(\nu\) gives
This is the Welch–Satterthwaite degrees of freedom. It is an approximation: the estimated variance sum is not generally exactly a scaled chi-square variable. The t distribution with this approximate degrees of freedom accounts for the uncertainty from estimating the two variances separately. As the degrees of freedom increase, the t distribution becomes closer to the standard normal distribution.
Worked Calculations
Worked Example: Testing a Zero Difference
Hypothetical data. Suppose two independent groups have measurements in minutes. Group 1 has \(n_1=12\), \(\bar{x}_1=18.4\) minutes, and \(s_1=4.2\) minutes. Group 2 has \(n_2=10\), \(\bar{x}_2=15.1\) minutes, and \(s_2=3.0\) minutes. Consider the null difference \(\Delta_0=0\) minutes. Assume the sampling and distribution conditions described above are reasonable for these data.
The observed difference is \(18.4-15.1=3.3\) minutes. The two estimated variance contributions are
Thus the Welch standard error is \(\sqrt{1.47+0.900}=\sqrt{2.37}=1.539\) minutes, and the statistic is
For the reference distribution,
The statistic is about 2.144 standard errors above the null difference, and it is referenced to a t distribution with approximately 19.61 degrees of freedom. The units of the mean difference and its standard error are minutes, so their ratio has no units.
Worked Example: A Nonzero Null Difference
Hypothetical data. Suppose group 1 has \(n_1=16\), a mean of 42.6 units, and a standard deviation of 7.2 units. Group 2 has \(n_2=20\), a mean of 45.0 units, and a standard deviation of 5.0 units. Consider the null difference \(\Delta_0=-2.0\) units, meaning \(\mu_1-\mu_2=-2.0\). Assume independent observations and that the sampling conditions are adequate.
Here the observed difference is \(42.6-45.0=-2.4\) units. The variance contributions are
The standard error is \(\sqrt{3.24+1.25}=\sqrt{4.49}=2.119\) units. The numerator must subtract the specified null difference, not zero:
The degrees of freedom are
The negative statistic indicates that the observed difference is below the specified null difference, by about 0.189 standard errors. It is compared with a t distribution with approximately 25.78 degrees of freedom. This example illustrates why the null value must be included explicitly: using zero instead would answer a different question.
Worked Example: Unequal Variance Contributions
Hypothetical data. Group 1 has \(n_1=10\), \(\bar{x}_1=7.8\) hours, and \(s_1=1.5\) hours. Group 2 has \(n_2=8\), \(\bar{x}_2=6.9\) hours, and \(s_2=2.0\) hours. Suppose the null difference is \(\Delta_0=0\) hours. Assume independent observations and sufficiently well-behaved sampling distributions for the mean comparison.
The estimated difference is \(7.8-6.9=0.9\) hours. The estimated variance contributions are
The Welch standard error and statistic are
The degrees of freedom calculation is
More precisely, the degrees of freedom are approximately 12.7149. The denominator contribution \(0.500^2/7\) is \(0.0357143\), so retaining the unrounded value is important before calculating the final ratio. The statistic is about 1.057 standard errors above the zero-difference null, and its reference distribution is a t distribution with approximately 12.71 degrees of freedom.
How to Read the Statistic
The sign of \(t_W\) records the direction of the observed difference relative to the null difference. A positive value means that \(\bar{x}_1-\bar{x}_2\) exceeds \(\Delta_0\); a negative value means it falls below \(\Delta_0\). The absolute value \(|t_W|\) records how many estimated standard errors separate the observed difference from the null value.
The degrees of freedom determine the shape of the reference t distribution. Smaller degrees of freedom give heavier tails, reflecting greater uncertainty from estimating variability with limited data. Consequently, the same numerical t statistic can correspond to a different tail area under t distributions with different degrees of freedom. When judging how unusual a statistic is under a null hypothesis, compare it with the appropriate t distribution, not automatically with the standard normal distribution.
This tutorial focuses on constructing the statistic and identifying its reference distribution. A t statistic alone is not a complete conclusion: the direction of the alternative hypothesis and the relevant tail area also matter. In applied reporting, keep the group order clear, state the null difference, include the degrees of freedom, and retain the measurement units when describing the estimated difference and standard error.
Common Mistakes
- Using the wrong null difference. The numerator is \((\bar{x}_1-\bar{x}_2)-\Delta_0\). Subtracting zero when the null specifies another value changes the statistic and the question being tested.
- Using a pooled standard error by default. The Welch standard error uses \(s_1^2/n_1+s_2^2/n_2\), keeping the two variance contributions separate. It does not assume equal population variances.
- Using the wrong degrees of freedom. Welch–Satterthwaite degrees of freedom are calculated from both variance contributions and are often non-integer. They are not automatically \(n_1+n_2-2\).
- Calling the statistic a probability. A value such as \(t_W=2.144\) is a standardized difference, not a probability. Probabilities are found from the reference distribution.
- Forgetting the group order. Reversing groups changes the sign of the difference and statistic. It does not change the estimated standard error or degrees of freedom.
Check Your Understanding
Use the definitions and examples above to answer these questions.
- In the Welch t statistic, what does the numerator measure when the null difference is \(\Delta_0\)?
- Why can the Welch–Satterthwaite degrees of freedom be non-integer?
- If \(t_W\) is negative, what does that say about the observed difference relative to the specified null difference?
- Two groups have sample means 14 and 11, and the null difference \(\Delta_0\) is 1. What is the numerator of the Welch t statistic, using group 1 minus group 2?
- Why is it not generally appropriate to compare a Welch statistic automatically with a standard normal distribution?