A two-sample t test
compares the mean of the first sample minus the mean of the second
sample to a given number, the null hypothesis difference.
To compare means from
two independent samples with
n1 and
n2 observations
to a value
m, use
. In this example,
s2 is
the pooled variance
, and
s21 and
s22 are
the sample variances of the two groups. The use of this
t statistic
depends on the assumption that
, where
and
are the population variances of the two groups.
To run a two-sample t test,
open the t Tests task. From the t test drop-down
list, select Two-sample test.