Perform hypothesis testing accurately. Compute t-statistic, degrees of freedom, p-value (two-tailed), Cohen's d, and 95% confidence interval. Visualize the t-distribution, critical values, and observed t-score. Supports equal variance (pooled) and Welch's t-test for independent samples.
The Student's t-test is a statistical hypothesis test used to determine whether there is a significant difference between the means of groups. Developed by William Sealy Gosset (under the pseudonym "Student") in 1908, it remains a cornerstone of inferential statistics. This tool implements three common variants: one‑sample t-test (comparing sample mean to a known value), independent two‑sample t-test with pooled variance (assumes equal variances), and Welch's t-test (does not assume equal variances). All calculations follow the formulas in standard references (Zar, 2010; Snedecor & Cochran, 1989).
One-sample t: t = (x̄ - μ₀) / (s / √n) | Pooled two-sample: t = (x̄₁ - x̄₂) / (sp·√(1/n₁+1/n₂)) | Welch: t = (x̄₁ - x̄₂) / √(s₁²/n₁ + s₂²/n₂)
Degrees of freedom: pooled (n₁+n₂-2); Welch's formula using Satterthwaite approximation.
If the p-value ≤ α, we reject the null hypothesis (H₀) and conclude a statistically significant difference. The effect size Cohen's d quantifies the magnitude: |d| = 0.2 (small), 0.5 (medium), ≥0.8 (large). The confidence interval provides a range of plausible values for the true parameter (mean difference or population mean).
Two groups of patients received either a new drug or placebo. Summary: Drug group (n=30, mean=22.4, SD=4.2), Placebo (n=28, mean=19.8, SD=5.1). Using Welch's t-test (unequal variance), t=2.14, df=53.2, p=0.037 (α=0.05). We reject H₀: the drug significantly reduces symptoms. Cohen's d = 0.55 (moderate effect). The 95% CI for mean difference is [0.16, 5.04]. This calculator reproduces such analysis interactively.