Two-Sample T-Test
April 12, 2026
Problem
Group A: mean=85, s=5, n=20. Group B: mean=80, s=6, n=25. Are they significantly different?
Explanation
When to use a two-sample t-test
Use when comparing means of two independent groups with unknown population standard deviations.
Step-by-step
Hypotheses: , (two-tailed).
Step 1 — Compute the test statistic:
Step 2 — Degrees of freedom (Welch's approximation):
Step 3 — Critical value at , : .
Step 4 — Decision: . Reject .
Try it in the visualization
Two bell curves for each group are drawn. The overlap (or lack thereof) shows how different the groups are. The t-statistic and rejection region are marked.
Interactive Visualization
Parameters
85.00
5.00
20.00
80.00
6.00
25.00
Your turn
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.
Sign Up Free to Try It30 free visualizations every day