Академический Документы
Профессиональный Документы
Культура Документы
the t Statistic
Different Types of t-tests
• t-test for single sample
• t-test for independent samples
• t-test for dependent (related) samples, or
paired samples t-test
s2 SS
= ----------
N-1
• SS = Sum of squared deviations
• s = Standard deviation of the sample
• s2 = Variance of the sample
The t Statistic Formula
s
sM = ----------- μ = Population Mean (Hypothesize Mean)
√n s = Sample standard deviation
s2 = Sample Variance
s 2
sM = -----
√ n
sM = Estimated Standard error bet. M and μ
n = sample size
Comparing z and t Formulas
M–μ M–μ
zobt = --------- = -------------
σM √ σ2 / n
M–μ M–μ
tobt = --------- = -------------
sM √ s2 / n
Calculating tobt from
Original Scores
• When the original scores are available, the t
can be calculated directly without first having
to calculate s.
M–μ
tobt = -----------
√ SS
--------
N(N-1)
Exercise
• You have a technique that you believe will affect
the age at which children begin speaking. In your
locale, the average age of first word utterance is
13.0 months; the standard deviation is unknown.
You apply your technique to a random sample 15
children
– What is the nondirectional alternative hypothesis?
– What is the null hypothesis?
– Did the technique work? Use α = 0.052 tail
Age (Month) X Computation of X2
8
9
10
15
18
17
12
11
7
8
10
11
9
8
12
ΣX= M= ΣX2 =
The t Distribution
• Used instead of the normal distribution
• The shape of the t distribution changes with the degree
of freedom.
• It becomes more approximate to the normal
distribution as the Degrees of Freedom (n – 1)
increases
• Degrees of freedom describe the number of score in a
sample that are free to vary. Because the sample mean
places a restriction on the value of one score in the
sample, there are n- 1 degrees of freedom for the
sample; will be basis for determining the tcrit
The t Distribution
Decision
• If the tobt is greater than or equal to the tcrit,
reject the H0
• If the p value is equal to or less than the
alpha, reject the H0
Effect Size
Mean difference
Cohen’s d = ----------------------------
Sample Standard
deviation
T-TEST FOR
INDEPENDENT SAMPLES
Overview
• Most research studies require the comparison
of two or more set of data.
– The two set of data could come from to
completely separate samples – Independent
measures ; Between-subjects design
– The two sets of data could both come from the
same sample – Repeated-measure; Within-
Subjects Design
Independent-Measures
• The goal of independent-measures design is
to evaluate the differences in means between
two populations or two treatment conditions.
Sample mean – hypothesized population mean
t = --------------------------------------------
Estimated standard error between M and μ
(M – M ) – (μ – μ )
1 2 1 2
t = --------------------
S(M1 – M2)
(M1 – M2)
t= ------------
S (M1 – M2)
s 2p s2p
s(M1 – M2) = √ -----
n1 + -----
n2
Where s2p – Pooled or weighted variance
SS1 + SS2
s2p = ----------------------
df1 + df2
Summary of
• Important formulas
(Σ X) 2
SS = ΣX2 - ----------
n
SS1 + SS2
s2p = ----------------------
df1 + df2
s2 p s 2p
s(M1 – M2) = √ -----
n1 + -----
n2
(M – M )
1 2
t = ------------
S (M1 – M2)
Sample Problem
Experiment on the effect of mental imagery on memory
18 24
19 23
23 16
29 17
30 29
31 13
29 17
26 20
21 15
24 26
ΣX1 = ΣX12 = ΣX2 = ΣX22 =
M1 = M2 =
n1 = n2 =
Step 1
• State the Hypotheses, and select the alpha
level
H0: μ1 – μ2 = 0
H1: μ1 – μ2 ≠ 0
(Σ X) 2
SS = ΣX2 - ---------- SS1 + SS2
s2p = ----------------------
n df1 + df2
s 2p s 2p
s(M1 – M2) = √ -----
n1 + -----
n2 tobt =
(M1 – M2)
------------
S (M1 – M2)
tobt =
Step 4
• Make a decision
• OmG! CR PaLA!
• OnLine CA Pa GA?
Effect Size
Difference in means
Cohen’s d = ----------------------------
(pooled) Standard
deviation
Assumptions Underlying the
Independent-Measures t Formula
1. The observations within each sample must
be independent
2. The two populations from which the samples
are selected must be normal
3. The two populations from which the samples
are selected must have equal variances.
T-TEST FOR TWO
RELATED SAMPLES
Related Samples
• Repeated measures design
• Two sets of data are obtained form the same sample of
individuals.
• i.e.: before and after (treatment) measurements
• Testing the same sample under different conditions
• Match subjects – each individual in one sample is
matched with a subject in the other sample. The
matching is done so that the two individual are
equivalent (or nearly equivalent) with respect to a
specific variable that the researcher would like to
control
t Statistic for Related Samples
• H0 = μD = 0
• H1 = μD ≠ 0
t Statistic for Related Samples
• H0 = μD = 0
• H1 = μD ≠ 0
t Statistic for Related Samples
(Σ D) 2
SS = ΣD2 - ----------
N
SS
s2 = -------
df
s 2
sMD = √ ------
n
MD – μD
t = ------------
SMD
Sample Problem
• A researcher in behavioral medicine believes that
stress often makes asthma symptoms worse for people
who suffer from this respiratory disorder. Because of
the suspected role of stress, the investigator decides to
examine the effects of relaxation training on the
severity of asthma symptoms. A sample of 5 patients is
selected for the study. During the week before the
treatment, the investigator records the severity of their
symptoms by measuring how many doses of
medication are needed for asthma attacks. The he
patients receive relaxation training. For the week
following training, the researcher once again records
the number of doses required by each patient.
Sample Problem
Patient Week Week After D D2
Before Training
Training
A 9 4
B 4 1
C 5 5
D 4 0
E 5 1
ΣD = ΣD2 =
Step 1
• State the Hypothesis, and select the alpha
level
• OmG! CR PaLA!
• OnLine CA Pa GA?
Effect Size