Compare two groups: t test
Change values in both groups and see how the mean difference, within-group variability and sample size affect the P value.
Compare the distributions
Curves are smoothed sample density estimates; dashed lines show group means.
Each dot represents one observation. Value →
How should we interpret this?
When sample means are close and distributions overlap, the P value may be large. Small samples or large within-group variability can also produce a non-significant result; it does not prove the populations are identical or equivalent.
The P value is the probability of results at least as extreme as these under equal population means and the test assumptions; it is not the probability that the groups are equal.
Independent-samples, two-sided Welch t test (equal variances are not required). Observations should be independent; small samples with severe skew or outliers can make the result unreliable.
For education; not a substitute for a complete statistical analysis.
NIST: two-sample t test ↗