T-Tests & Chi2
T-Tests & Chi2
T-Tests & Chi2
CI Y t / 2 ( S y / N 1)
Independent Samples
T-Tests of Independence
• Used to test whether there is a significant
difference between the means of two
samples.
Null is μ1= μ2
After one group watches the commercials, but not
the other, we measure Twinkie in-take. We find that
indeed the group exposed to political commercials
indeed ate more Twinkies. We thus conclude that
political advertising leads to obesity.
Two Sample Difference of Means T-Test
X1 X 2
t
2 2
( n1 1) s1 ( n 2 1) s 2 n1 n 2
n1 n2 2 n1n2
(n 1) ΣD = sum differences
between groups, plus it is
squared.
n = number of paired
groups
Paired T-Tests
• Unlike a test for independence, this test
requires that the two groups/samples being
evaluated are dependent upon each other.
Std. Error
Mean N Std. Deviation Mean
Pair TESTSCR1 409.69 16 200.459 50.115
1 TESTSCR2 448.88 16 152.679 38.170
N Correlation Sig.
Pair 1 TESTSCR1 & TESTSCR2 16 .959 .000
Paired Differences
95% Confidence
Interval of the
Std. Error Difference
Mean Std. Deviation Mean Lower Upper t df Sig. (2-tailed)
Pair 1 TESTSCR1 - TESTSCR2 -39.19 69.155 17.289 -76.04 -2.34 -2.267 15 .039
E
O observedfrequency
E exp ectedfrequ ecy
Nonparametric Test of Chi2
• The null hypothesis we are testing here
is that the proportion of occurrences in
each category are equal to each other.
Our research hypothesis is that they are
not equal.
Count
gender (past, present)
Fem Male Total
Party Affiliation Dem 5 6 11
GOP 5 8 13
Total 10 14 24
Chi-Square Tests