Two-Sample t-Test & Effect Size Foundations

Pooled Standard Deviation Calculator

Calculate pooled standard deviation (sp), pooled variance (sp²), degrees of freedom, two-sample t-test statistics, and Cohen's d effect size with step-by-step proofs.

Group Data Format
Group 1 (e.g. Treatment)
Group 2 (e.g. Control)
Weighted Variance Proof:

sp = √[ (14 × 6.80² + 11 × 7.20²) ÷ 25 ] = √[ (647.36 + 570.24) ÷ 25 ] = 6.9788

Pooled Standard Deviation (sp)
6.9788
Common population standard deviation estimate
N1 = 15, N2 = 12 (Total N = 27)
Pooled Variance (sp²) 48.7040 Weighted Mean Square
Degrees of Freedom 25 (df1=14, df2=11) n1 + n2 − 2
Cohen's d Effect +0.931 Large Effect (|d| ≥ 0.8)
Diff Standard Error 2.7032 sp × √(1/n1 + 1/n2)
Two-Sample t-Test: t = 2.404 (p ≈ 0.0239)
Independent samples Student's t-test with equal variances assumed.
Homoscedasticity Note

Pooled standard deviation assumes both populations share equal variance. If Levene's test indicates substantially unequal variances, use Welch's unpooled t-test instead.

Two-Sample Hypothesis Testing & Effect Size

Critical Problems This Pooled Standard Deviation Calculator Solves

When comparing treatment groups in randomized clinical trials, A/B test experiments, or educational cohorts, estimating a single common variance is required for Student's t-tests. Our pooled standard deviation calculator eliminates statistical obstacles:

Weighting Variances by Unequal Sample Sizes

A naive simple average of two standard deviations ignores sample sizes. If Group 1 has 100 subjects and Group 2 has 10 subjects, Group 1 provides 10 times more statistical information. The tool weights each variance by its degrees of freedom (\(n - 1\)).

Powering Cohen's d Standardized Effect Size

Statistical significance (\(p\)-value) only proves an effect exists; it does not measure how big it is. Dividing the raw mean difference by the pooled standard deviation produces Cohen's \(d\), standardizing treatment magnitude.

Supplying the Independent t-Test Denominator

The standard error of the difference between two sample means requires the pooled variance: \(\text{SE} = s_p \sqrt{1/n_1 + 1/n_2}\). The calculator derives both the standard error and the resulting \(t\)-statistic automatically.

Direct Equivalence to ANOVA MSE

In Analysis of Variance (ANOVA), the Within-Groups Mean Square Error (\(\text{MS}_{\text{within}}\)) is mathematically identical to the pooled variance across groups. The tool bridges the gap between t-tests and ANOVA.

Features Available in the Pooled Standard Deviation Calculator

Pooled SD & Variance

Derives pooled standard deviation (\(s_p\)) and pooled variance (\(s_p^2\)) with decimal precision.

Cohen's d Effect Size

Calculates standardized effect size \(d\) with small (0.2), medium (0.5), and large (0.8) classifications.

Two-Sample t-Test Engine

Computes degrees of freedom (\(n_1 + n_2 - 2\)), standard error of difference, and p-value.

Dual Input Architecture

Enter summary statistics (\(n, \bar{x}, s\)) directly or paste raw observations for both groups.

How to Use the Pooled Standard Deviation Calculator

1

Select Input Format

Choose "Summary Stats" or "Raw Data Paste" using the top toggle tabs.

2

Enter Group 1 Data

Input sample size \(n_1\), mean \(\bar{x}_1\), and standard deviation \(s_1\).

3

Enter Group 2 Data

Input matching parameters \(n_2\), \(\bar{x}_2\), and \(s_2\) for comparison.

4

Review Pooled SD (sp)

Inspect the calculated common standard deviation in the primary card.

5

Audit Effect Size

Review Cohen's d to quantify the real-world magnitude of group separation.

6

Export Summary

Copy the complete pooled SD audit report directly to your clipboard.

Mathematical Pooled Standard Deviation Formulations

Given two independent random samples of sizes \(n_1\) and \(n_2\) with sample standard deviations \(s_1\) and \(s_2\):

$$s_p = \sqrt{\frac{(n_1 - 1)s_1^2 + (n_2 - 1)s_2^2}{n_1 + n_2 - 2}} \quad,\quad df = n_1 + n_2 - 2$$

Standard Error of the Difference and Independent Two-Sample \(t\)-Statistic:

$$\text{SE}_{\text{diff}} = s_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}} \quad,\quad t = \frac{\bar{x}_1 - \bar{x}_2}{\text{SE}_{\text{diff}}}$$

Jacob Cohen's Standardized Effect Size (\(d\)):

$$d = \frac{\bar{x}_1 - \bar{x}_2}{s_p}$$

Worked Case Study: Clinical Trial Pharmaceutical Efficacy vs. Placebo

Scenario: A clinical trial compares a novel hypertension medication against standard control:

  • Treatment Group 1: \(n_1 = 15\), \(\bar{x}_1 = 82.50\,\text{mmHg}\), \(s_1 = 6.80\,\text{mmHg}\)
  • Control Group 2: \(n_2 = 12\), \(\bar{x}_2 = 76.00\,\text{mmHg}\), \(s_2 = 7.20\,\text{mmHg}\)
  • Degrees of Freedom: \(df = (15 - 1) + (12 - 1) = 14 + 11 = \mathbf{25}\).
  • Weighted Sum of Squares: $$\text{SS}_1 = 14 \times (6.80)^2 = 14 \times 46.24 = 647.36$$ $$\text{SS}_2 = 11 \times (7.20)^2 = 11 \times 51.84 = 570.24$$
  • Pooled Variance (\(s_p^2\)): \(s_p^2 = \frac{647.36 + 570.24}{25} = \frac{1,217.60}{25} = \mathbf{48.704}\).
  • Pooled Standard Deviation (\(s_p\)): \(s_p = \sqrt{48.704} = \mathbf{6.979\,\text{mmHg}}\).
  • Standard Error of Difference: \(\text{SE} = 6.979 \sqrt{\frac{1}{15} + \frac{1}{12}} = 6.979 \times 0.3873 = \mathbf{2.703\,\text{mmHg}}\).
  • Cohen's d Effect Size: \(d = \frac{82.50 - 76.00}{6.979} = \mathbf{+0.931}\) (classified as a large clinical treatment effect).

Pooled Standard Deviation Best Practices

Test for Homogeneity of Variances

Pooling variances is only mathematically valid if both groups originate from populations with equal variance (\(\sigma_1^2 = \sigma_2^2\)). Run Levene's test or Bartlett's test to verify this assumption before pooling.

When to Use Welch's Unpooled t-Test

If group variances differ by more than a 2:1 ratio (especially with unequal sample sizes), Student's pooled t-test produces inflated Type I error rates. Switch to Welch's t-test with separate unpooled variances.

Equal Sample Size Simplification

When \(n_1 = n_2\), the pooled variance simplifies to the exact arithmetic midpoint: \(s_p^2 = (s_1^2 + s_2^2) / 2\). Designing balanced experiments simplifies computation and maximizes statistical power.

Report Effect Size Alongside p-Values

With large samples (e.g. \(N = 10,000\)), tiny trivial differences achieve \(p < 0.001\). Always report Cohen's \(d\) to communicate whether the practical magnitude is meaningful.

Cohen's d Effect Size Benchmark Matrix

Cohen's d Value Effect Magnitude % Non-Overlap (U3) Real-World Scientific Context
d ≥ 0.80 Large Effect ≥ 79% non-overlap Immediately noticeable difference (e.g. adult height gender gap)
0.50 ≤ d < 0.80 Medium Effect ≥ 67% non-overlap Visible to a careful observer; typical good educational intervention
0.20 ≤ d < 0.50 Small Effect ≥ 58% non-overlap Subtle difference requiring statistical testing to identify reliably
d < 0.20 Negligible Effect < 58% non-overlap Limited practical or clinical importance despite statistical significance

Pooled Statistics Glossary

Pooled Variance

A method for estimating variance of several different populations when the mean of each population may be different, but variance is assumed equal.

Cohen's d

An effect size used to indicate the standardized difference between two means, expressed in units of pooled standard deviation.

Homoscedasticity

The assumption in parametric analysis of variance and t-tests that all comparison groups possess approximately equal population variances.

Standard Error of Difference

The standard deviation of the sampling distribution of the difference between two sample means, used as the t-statistic denominator.

Frequently Asked Questions

What is the pooled standard deviation?
Pooled standard deviation (sp) is a weighted average of standard deviations from two or more independent sample groups, assuming both groups share a common population variance.
When should you use pooled standard deviation?
Use pooled standard deviation when conducting a two-sample Student's t-test with equal variances assumed (homoscedasticity) and when calculating Cohen's d standardized effect size.
What is the formula for pooled standard deviation?
sp = sqrt( [ (n1 - 1)*s1² + (n2 - 1)*s2² ] / (n1 + n2 - 2) ), where n1, n2 are sample sizes and s1, s2 are sample standard deviations.
Why weight by degrees of freedom (n - 1)?
Weighting by degrees of freedom ensures that larger samples with greater statistical precision contribute proportionally more to the estimated common variance.
What happens if sample sizes are equal (n1 = n2)?
When sample sizes are equal, pooled variance simplifies to the exact arithmetic average of the two group variances: sp² = (s1² + s2²) / 2.
What is Cohen's d effect size?
Cohen's d measures the standardized difference between two group means divided by pooled standard deviation: d = (x̄1 - x̄2) / sp.
How do you interpret Cohen's d magnitudes?
According to Jacob Cohen: d = 0.2 is a small effect, d = 0.5 is a medium effect, and d = 0.8 or higher is a large practical effect.
What should you do if group variances are unequal?
If Levene's test reveals unequal variances (heteroscedasticity), do not use pooled standard deviation; use Welch's t-test with unpooled separate variances instead.
What is the standard error of difference between two means?
Using pooled SD, standard error equals: SE(diff) = sp * sqrt(1/n1 + 1/n2). This forms the denominator of the two-sample independent t-test.
Can pooled standard deviation be calculated for 3 or more groups?
Yes. The formula generalizes to k groups by summing (ni - 1)*si² across all groups and dividing by total degrees of freedom sum(ni - 1). This equals the square root of Mean Square Error (MSE) in ANOVA.
How is pooled SD related to ANOVA?
In a one-way ANOVA, the Within-Groups Mean Square (MS_within or MSE) is mathematically identical to the pooled variance across all treatment groups: sp = sqrt(MSE).
Can pooled SD be smaller than both individual standard deviations?
No. Because pooled variance is a weighted average of individual variances, sp will always fall between min(s1, s2) and max(s1, s2).