n
Null distribution
t with n-1 df
compare
How unusual is this test statistic?
P < 0.05
P > 0.05
Reject H
o
Fail to reject H
o
T-test
T-test determines the probability that the null
hypothesis concerning the means of two small
samples is correct
The probability that two samples are
representative of a single population
(supporting null hypothesis) OR two different
populations (rejecting null hypothesis)
The theory...
You have 2 samples which may be from 1
distribution or 2. To assess the likelihood, find
how many s.d.s the means of the 2 populations
are apart:
How many S.D.s?
Calculate t = (1 - 2) / pooled sd
1
2
The t test is a parametric test - it
assumes the data are normally
distributed.
(
(
+
+
+
=
2 1
2 1
2
2 1
2 2
2
1 1
2 1
2
) 1 ( ) 1 (
n n
n n
n n
s n s n
X X
t
Two Sample Difference of Means T-Test
2
2 1
2 2
2
1 1
2
) 1 ( ) 1 (
+
+
n n
s n s n
Sp2 =
Pooled variance of the two groups
(
+
2 1
2 1
n n
n n
= common standard deviation of two groups
The nominator of the equation captures difference in
means,
while the denominator captures the variation within
and between each group
Contoh
Test on verbal test scores by gender:
Females: mean = 50.9, variance = 47.553, n=6
Males: mean =41.5, variance = 49.544, n=10
(
+
+
+
=
) 10 ( 6
10 6
2 10 6
544 . 49 ) 1 10 ( 553 . 47 ) 1 6 (
5 . 41 9 . 50
t
| | ) 26667 (. 826 . 48
4 . 9
= t
02 . 13
4 . 9
= t 605 . 2
608 . 3
4 . 9
= = t
Now what do we do with this obtained
value?
Steps of Testing and Significance
1. Statement of null hypothesis: if there is not one then how can you be
wrong?
2. Set Alpha Level of Risk: .10, .05, .01
3. Selection of appropriate test statistic: T-test.
4. Computation of statistical value: get obtained value.
5. Compare obtained value to critical value:
6. Comparison of the obtained and critical values.
7. If obtained value is more extreme than critical value, you may reject
the null hypothesis. In other words, you have significant results.
8. If point seven above is not true, obtained is lower than critical, then
null is not rejected.
T table of values (5% = 0.05)
For example:
For 10 degrees of freedom
(2N-2)
The chart value to compare
your t value to is 2.228
If your calculated t value is
between
+2.228 and -2.228
Then accept the null
hypothesis the mean are
similar
If your t value falls outside
+2.228 and -2.228 (larger
than 2.228 or smaller than -
2.228)
Fail to reject the null
hypothesis (accept the
alternative hypothesis) there
is a significant difference.