T Test
T Test
• Critical value
decreases if N is
increased.
• Critical value
decreases if alpha
is increased.
• Differences
between the
means will not
have to be as
large to find sig if
N is large or alpha
is increased.
Stating the Conclusion
6. State the conclusion. We reject the null
hypothesis that the bulbs were drawn from
a population in which the average life is
1000 hrs. The difference between our
sample mean (867) and the mean of the
population (1000) is SO different that it is
unlikely that our sample could have been
drawn from a population with an average
life of 1000 hours.
SPSS Results
One-Sample Statistics
Std. Error
N Mean Std. Deviation Mean
BULBLIFE 10 867.0000 96.7299 30.5887
One-Sample Test
Dependent
Samples t-test
Independent Samples t-test
• Used when we have two independent
samples, e.g., treatment and control
groups. X1 X 2
• Formula is: t X1 X 2
SEdiff
• Terms in the numerator are the sample
means.
• Term in the denominator is the standard
error of the difference between means.
Independent samples t-test
Std. Error
GROUP N Mean Std. Deviation Mean
TIME experimental group 5 12.0000 3.1623 1.4142
control group 4 18.0000 2.8284 1.4142
D
tXD
SDD
n pairs
Dependent Samples t
example
Difference Placebo Painfree Person
(time in
sec)
5 55 60 1
15 20 35 2
10 60 70 3
5 45 50 4
0 60 60 5
7 48 55 M
D 55 48 7
t 2.75
SEdiff 2.55 2.55
Dependent Samples t
Example (3)
4. Determine the critical value of t.
Alpha =.05, tails=2
df = N(pairs)-1 =5-1=4.
Critical value is 2.776
5. Decision rule: is absolute value of
sample value larger than critical value?
6. Conclusion. Not (quite) significant.
Painfree does not have an effect.
Using SPSS for dependent t-
test
• Open SPSS
• Open file “SPSS Examples” (same as
before)
• Go to:
– “Analyze” then “Compare Means”
– Choose “Paired samples t-test”
– Choose the two IV conditions you are
comparing. Put in “paired variables
box.”
Dependent t- SPSS output
Paired Samples Statistics
Std. Error
Mean N Std. Deviation Mean
Pair PAINFREE 55.0000 5 13.2288 5.9161
1 PLACEBO 48.0000 5 16.8077 7.5166
N Correlation Sig.
Pair 1 PAINFREE & PLACEBO 5 .956 .011
Paired Differences
95% Confidence
Interval of the
Std. Error Difference
Mean Std. Deviation Mean Lower Upper t df Sig. (2-tailed)
Pair 1 PAINFREE - PLACEBO 7.0000 5.7009 2.5495 -7.86E-02 14.0786 2.746 4 .052
Relationship between t Statistic and Power
• To increase power:
– Increase the difference
between the means.
– Reduce the variance
– Increase N
– Increase α from α = .01
to α = .05
To Increase Power
• Increase alpha, Power for α = .10 is
greater than power for α = .05
• Increase the difference between
means.
• Decrease the sd’s of the groups.
• Increase N.
Calculation of Power
In this
example
Power (1 - β )
= 70.5%
Calculation of
Sample Size to
Produce a Given
Power
Be sure to
enter value Grouping variable GROUP, the level of
labels. measurement is Nominal.
Independent t-Test
Independent t-Test: Independent &
Dependent Variables
Independent t-Test: Define
Groups
Independent t-Test: Options
Group Statistics
Independent t-Test:
Group N Mean Std. Deviation
Std. Error
Mean
Output
Ab_Error Active 10 2.2820 1.24438 .39351
Passive 10 1.9660 1.50606 .47626
N Correlation Sig.
Pair 1 Pre & Post 10 .968 .000
Paired Differences
95% Confidence
Interval of the
Std. Error Difference
Mean Std. Deviation Mean Lower Upper t df Sig. (2-tailed)
Pair 1 Pre - Post -1.50000 .97183 .30732 -2.19520 -.80480 -4.881 9 .001