Lecture8-Two Sample T Tests
Lecture8-Two Sample T Tests
•••••••••••••••••••••••••••••
•••••
When the means of two groups are to be
compared (where each group consists of
subjects that are not related) then the excel
two-sample t-test procedure is used
to perform these calculations.
NOTE: If your observations are related
across “group” as paired or repeated
measurements, this in an INCORRECT
version of the t-test. For that case, see the
tutorial on the Paired t-test.
Assumptions:
Subjects are randomly assigned to one of two groups.
The distribution of the means by group is normal with
equal variances.
Sample sizes between groups do not have to be equal.
Test:
The hypotheses for the comparison of means from
two independent groups are:
Ho: m1 = m2 (means of the two groups are equal)
Ha: m1 ¹ m2 (means are not equal)
1. In Excel,
F-Test
Two
Data
Select Sample
Analysi
Tools for
s
Varianc
e
2. In the F-Test Two Sample for Variance
dialog box:
For the Input
Range for
Variable 1, For the input
range for Leave the
highlight the
Variable 2, other items
seven values
highlight the at their
of Score in
eight values of default
group 1
Score in group selections.
(values from
20 to 27.5). 2 (values from
25 to 47.5).
This dialog box is shown below. Click
OK.
3. The following results are produced by Excel:
F-Test Two-Sample
for Variances
Notice the highlighted
probability p=0.01937.
Variable 1 Variable 2
This is a one-tail p-value
Mean 25.64285714 43.8125 associated with the test
Variance 15.22619048 96.42410714 for equality of variance.
Observations 7 8
Generally, if this value is
less than 0.05 you
df 6 7
assume that the
F 0.157908545 variances are NOT equal.
P(F<=f) one-tail 0.019378053