Inferences for μ1 − μ2 (Independent Samples, σ1 and σ2 Unknown and Unequal)
Use this calculator to build a confidence interval or run a hypothesis test about the difference between two population means,
μ1 − μ2, when the two samples are independent and the population standard deviations are
unknown and not assumed equal (Welch’s t method).
When it is appropriate
- Independent samples (two separate groups; no pairing/matching).
- σ1, σ2 unknown and not assumed equal.
-
If samples are small, it is best if each population is approximately normal; for large samples, the method is typically robust.
How to use the calculator
-
Choose an input mode:
- Summary statistics: enter n1, x̄1, s1 and n2, x̄2, s2.
-
Raw data / CSV: paste values (one column per group) or upload/ paste CSV as the calculator supports.
Make sure missing cells are removed (blank lines can be ignored depending on the parser).
-
Select the task:
- Confidence interval: pick the confidence level (for example, 95%).
-
Hypothesis test: set H0: μ1 − μ2 = Δ0 (usually 0), choose the alternative
(≠, <, or >), and choose α (significance level).
- Click Calculate to see the interval/test results and the visualization.
What the calculator computes
For Welch’s method (unequal variances), the key quantities are:
How to read the output
- Confidence interval: if 0 is inside the interval, the data do not show a clear difference at that confidence level.
-
p-value decision: compare the p-value to α.
If p-value ≤ α, reject H0; otherwise, do not reject H0.
-
The visualization highlights where the computed t sits on the t distribution and which tail area corresponds to the p-value.
Quick checklist
- Use this calculator when variances are not assumed equal (Welch).
- If you are confident variances are equal, use the “equal variances (pooled)” version instead.
- Make sure groups are independent (not before/after on the same people).