T-Test Visualization with Statistic, Critical Regions, and p-value
4 20
4 20
0 5
0 5
0.1 3
−4−202400.050.10.150.20.250.30.350.40.45
Distribution 1 (mean=0, s=1)Distribution 2 (mean=1, s=1)Overlap Areat-distribution (df=28)Critical RegionObserved t-statistic = -2.582T-Test Visualization: Distributions and Critical RegionsValueDensity
Sample size Group 1
Sample size Group 2
Difference between the two means
Pooled standard deviation (σp)
t-test statistic
Degrees of freedom (df)
Two-tailed p-value
One-tailed p-value
Test result
Understanding the T-Test

The t-distribution is a probability distribution used when estimating the mean of a normally distributed population in situations where the sample size is small and population standard deviation is unknown. It is similar to the normal distribution but has heavier tails, which accounts for the extra uncertainty.

The t-statistic measures how many standard errors the difference between two sample means is away from zero (the null hypothesis value). It is calculated based on the difference between sample means, the pooled standard deviation, and the sample sizes.

The critical region represents the range of t-values for which the null hypothesis is rejected at a chosen significance level (a). If the observed t-statistic falls inside this region (beyond the critical values), it suggests that the difference between means is statistically significant.

This visualization shows the two normal distributions, the t-distribution, the critical regions shaded in red, and the observed t-statistic as a dashed line. Adjust the parameters to see how these elements change.