Perform one-sample, two-sample, paired, and Welch's t-tests with p-value calculation and visualization
Select a test type and enter data to see results
A t-test is a statistical hypothesis test used to determine whether there is a significant difference between means. It's used when the population standard deviation is unknown and the sample size is small to moderate.
Tests whether a sample mean differs from a known population mean.
Where: x̄ = sample mean, μ₀ = population mean, s = sample standard deviation, n = sample size
Compares means of two independent groups assuming equal variances.
Where: sp = pooled standard deviation, df = n₁ + n₂ - 2
Compares means of two related groups (before/after, matched pairs).
Where: d̄ = mean of differences, sd = standard deviation of differences, df = n - 1
Compares means of two independent groups WITHOUT assuming equal variances.
Uses Welch-Satterthwaite equation for degrees of freedom.
| Component | Description |
|---|---|
| t-statistic | Measures how many standard errors the sample mean is from the population mean |
| p-value | Probability of observing this result if the null hypothesis is true |
| Degrees of Freedom (df) | Number of values free to vary: n-1 (one-sample), n₁+n₂-2 (two-sample) |
| Critical Value | Threshold t-value for rejecting the null hypothesis at significance level α |
| Confidence Interval | Range likely to contain the true population parameter |
Beyond statistical significance, consider Cohen's d to measure practical significance:
Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.
Use one‑sample to compare a mean to a known value, independent two‑sample for two groups, paired for before/after (same subjects), and Welch when variances are unequal.
Provide sample sizes, means, and standard deviations for each group (or raw data). Choose the tail (one‑ or two‑tailed) and the significance level α.
The p‑value is the probability of observing a result as extreme as your data if the null hypothesis is true. A small p‑value suggests evidence against the null.
Use Welch’s test when sample variances differ or sample sizes are quite unequal; it adjusts the degrees of freedom for robustness.