What is T-Test Calculator?
Evaluates whether the difference between two sample means is statistically significant or attributable to sampling variation.
How to Use This Calculator
- Enter mean, standard deviation, and sample size for both groups.
- View t-statistic, degrees of freedom, and p-value.
The Mathematical Formula & Variables
t = (Mean1 - Mean2) / sqrt(s1^2/n1 + s2^2/n2)
Step-by-Step Worked Example
Scenario: Sample 1 mean 105 (n=10) vs Sample 2 mean 95 (n=10).
- Mean difference = 10.
- Pooled variance standard error ≈ 4.0.
- t = 10 / 4.0 = 2.50 with df = 18.
Result: t = 2.500, p = 0.0223
Frequently Asked Questions
When should you use a t-test instead of a z-test?
Use a t-test when the population standard deviation is unknown and the sample size is relatively small (typically n < 30).