An Introduction To T-Test: Presented by
An Introduction To T-Test: Presented by
Presented by:
P.N.V.Sriram 2010231
Swati Jain 2010238
Tushar Manghrani 2010243
Udit Gupta 2010245
Ashikaben Patel 2010270
Suppose we conducted a study to compare two strategies
for teaching spelling.
Group A had a mean score of 19. The range of scores was 16
to 22, and the standard deviation was 1.5.
10
9
8
7
6
5
4
3
2
1
12 13 14 15 16 17 18 19 20 21 22 23 24 25
2 t-test 12/8/21
Spelling Test Scores
A t-test allows us to compare the means of two groups and
determine how likely the difference between the two means
occurred by chance.
10
9
8
7
6
5
4
3
2
1
12 13 14 15 16 17 18 19 20 21 22 23 24 25
3 t-test 12/8/21
Spelling Test Scores
All other factors being equal, large differences between
means are less likely to occur by chance
than small differences.
10
9
8
7
6
5
4
3
2
1
12 13 14 15 16 17 18 19 20 21 22 23 24 25
Spelling Test Scores
10
9
8
7
6
5
4
3
2
1
12 13 14 15 16 17 18 19 20 21 22 23 24 25
4 t-test 12/8/21
Spelling Test Scores
The size of the standard deviation also influences the
outcome of a t-test.
Given the same difference in means, groups withare more
smaller
likely
standard
to report adeviations
significant difference than groups with larger
standard deviations.
10
9
8
7
6
5
4
3
2
1
12 13 14 15 16 17 18 19 20 21 22 23 24 25
Spelling Test Scores
10
9
8
7
6
5
4
3
2
1
12 13 14 15 16 17 18 19 20 21 22 23 24 25
5 t-test 12/8/21
Spelling Test Scores
From a practical standpoint, we can see that smaller
standard
than larger
deviations Less overlap
standardproduce
deviations. would
less overlap indicate
between thethat the
groups
groups are more different from each other.
10
9
8
7
6
5
4
3
2
1
12 13 14 15 16 17 18 19 20 21 22 23 24 25
Spelling Test Scores
10
9
8
7
6
5
4
3
2
1
12 13 14 15 16 17 18 19 20 21 22 23 24 25
6 t-test 12/8/21
Spelling Test Scores
The size of our sample is also important. The more
subjects that are involved in a study,
the more confident we can be that the differences we find
between our groups did not occur by chance.
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
12 13 14 15 16 17 18 19 20 21 22 23 24 25
Spelling Test Scores
10
9
8
7
6
5
4
3
2
1
12 13 14 15 16 17 18 19 20 21 22 23 24 25
7 t-test 12/8/21
Spelling Test Scores
Once we calculate the outcome of
the t-test(which produces a
t-value), we check that value
with the appropriate degrees of
freedom on a critical value table to
determine how likely the
difference between the means
occurred by chance.
8 t-test 12/8/21
There are three types of t-tests and each is calculated slightly
differently.
10 t-test 12/8/21
Overview
11 t-test 12/8/21
Comparing Two Populations
Until this point, all the inferential statistics we have considered
involve using one sample as the basis for drawing conclusion
about one population.
12 t-test 12/8/21
Two kinds of studies
13 t-test 12/8/21
How do we Are the scores for the two means
from the same subject (or related
determine which t- subjects)?
test to use…
Yes No
Paired t-test (Dependent Are there the same
t-test; Correlated t-test) number of people in the
two groups?
No
Yes
Equal Variance Are the variances of the
Independent t-test two groups different?
(Pooled Variance
Independent t-test)
Yes
No (Significance Level for
(Significance Level for Levene (or F-Max) is p
Equal Variance Levene (or F-Max) is p <.05
Independent t-test >.05
(Pooled Variance Unequal Variance
Independent t-test) Independent t-test
(Separate Variance
12/8/21 t-test Independent t-test)
Part I
15 t-test 12/8/21
Paired T-Test for Within-Subjects Designs
Our hypotheses:
Ho: D = 0
HA: D 0
Paired Samples t
s
t = D - D sD =
16 t-test sD n 12/8/21
Confidence Intervals for Paired Samples
General formula
X t (SE)
Paired Samples t
D t (sD)
17 t-test 12/8/21
Effect Size for Dependent Samples
One Sample d
ˆ X H0
d
s
Paired Samples d
ˆ D
d
sD
18 t-test 12/8/21
Example
In Everitt’s study (1994), 17 girls being treated for
anorexia were weighed before and after treatment.
Difference scores were calculated for each participant.
Change in Weight
n = 17
D = 7.26
sD = 7.16
7.16
T-test SE 1.74
17
7.26 0
t (16) 4.17
1.74
p .01
20 t-test 12/8/21
Part II
21 t-test 12/8/21
T-Test for Independent Samples
The goal of a between-subjects research study is to evaluate
the mean difference between two populations (or between
two treatment conditions).
Ho: 1 = 2
HA: 1 2
22 t-test 12/8/21
T-Test for Independent Samples
23 t-test 12/8/21
T-Test for Independent Samples
General t formula
t = sample statistic - hypothesized population parameter
estimated standard error
One Sample t
XH0
ttest
sX
Independent samples t
(X
X
t 1 2
)
( 1
2) s X1 X 2 ?
sX
1
X2
24 t-test 12/8/21
T-Test for Independent Samples
Standard Error for a Difference in Means
s X1 X 2
25 t-test 12/8/21
T-Test for Independent Samples
Standard Error for a Difference in Means
s12 s22
s X1 X 2
n1 n2
Each of the two sample means represents its own population mean, but
in each case there is some error.
The amount of error associated with each sample mean can be measured
by computing the standard errors.
To calculate the total amount of error involved in using two sample
means to approximate two population means, we will find the error from
each sample separately and then add the two errors together.
26 t-test 12/8/21
T-Test for Independent Samples
Standard Error for a Difference in Means
s12 s22
s X1 X 2
n1 n2
But…
This formula only works when n1 = n2. When the two
samples are different sizes, this formula is biased.
This comes from the fact that the formula above treats the
two sample variances equally. But we know that the
statistics obtained from large samples are better estimates,
so we need to give larger sample more weight in our
t-test 12/8/21
27
estimated standard error.
T-Test for Independent Samples
Standard Error for a Difference in Means
s 2p s 2p
s X1 X 2
n1 n2
We are going to change the formula slightly so that we use
the pooled sample variance instead of the individual sample
variances.
Independent Samples T
1. Calculate X1-X2
SS1 SS2
2. Calculate pooled variance s2p
2 2
df1 df 2
s
p s p
3. Calculate standard error
n1 n2
(X
X) (
)
4. Calculate T and d.f. t1 2 1 2
sx
1x
2
d.f. = (n1 - 1) + (n2 - 1)
5. Use the Table
29 t-test 12/8/21
Illustration
A developmental psychologist would like to examine the
difference in verbal skills for 8-year-old boys versus 8-
year-old girls. A sample of 10 boys and 10 girls is
obtained, and each child is given a standardized verbal
abilities test. The data for this experiment are as follows:
Girls Boys
n1 = 10 n2 = 10
X1 = 37 X 2 = 31
SS1 = 150 SS2 = 210
30 t-test 12/8/21
Girls Boys
Illustration
n1 = 10 n2 = 10
X1 = 37 X 2 = 31
SS1 = 150 SS2 = 210
X1 X 2 6
31 t-test 12/8/21
Girls Boys
Illustration
n1 = 10 n2 = 10
X1 = 37 X 2 = 31
SS1 = 150 SS2 = 210
32 t-test 12/8/21
Girls Boys
Illustration
n1 = 10 n2 = 10
X1 = 37 X 2 = 31
SS1 = 150 SS2 = 210
2 2
sp sp 20 20
SE 4 2
n1 n2 10 10
33 t-test 12/8/21
Girls Boys
Illustration
n1 = 10 n2 = 10
X1 = 37 X 2 = 31
SS1 = 150 SS2 = 210
34 t-test 12/8/21
Girls Boys
Illustration
n1 = 10 n2 = 10
X1 = 37 X 2 = 31
SS1 = 150 SS2 = 210
General formula
X t (SE)
One Sample t
X t (sx)
Independent Sample t
(X1-X2) t (sx1-x2)
36 t-test 12/8/21
Sample Hypothesized Sample Estimated t-statistic
Data Population Variance Standard
Parameter Error
One sample
SS s2 X
2
X s t
t-statistic df sx
n
Paired
samples t- SS
s D
2 s2 D D
statistic D D df t
n sD
Independent SS SS2
1 2
2 2
samples X1 X 2 s 1
2 sp sp
p
df1 df 2
t-statistic n1 n2
(X1 X 2 ) (1 2 )
t
37 t-test sx1 x212/8/21
Questions??????