Loading...
Loading...
Perform one-sample, independent two-sample (Welch's), and paired t-tests with step-by-step solutions and Python code.
Enter your data and click Run T-Test to see results.
Quick Reference:
Significance Levels:
The one-sample t-test assumes: (1) data are continuous, (2) observations are independent, (3) the sample is randomly selected, and (4) the population is approximately normally distributed (less critical for n > 30 by CLT). The test is robust to moderate violations of normality.
Use a t-test when the population standard deviation is unknown (almost always in practice). Use a z-test only when the population standard deviation is known. For large samples (n > 100), the results are virtually identical since the t-distribution converges to the normal.
Cohen's d measures the standardized difference between means. Guidelines: |d| = 0.2 is small, |d| = 0.5 is medium, |d| = 0.8 is large. However, context matters -- a small effect size in medicine can still be clinically significant.
The 95% confidence interval provides a range of plausible values for the true population mean. If the hypothesized value falls outside this interval, the test will be significant at the 5% level. It gives more information than just a p-value.