Академический Документы
Профессиональный Документы
Культура Документы
1
When to use the paired t-test
• In many research designs, it is helpful to measure
the same people more than once.
• A common example is testing for performance
improvements (or decrements) over time.
• However, in any circumstance where multiple
measurements are made on the same person (or
“experimental unit”), it may be useful to observe if
there are mean differences between these
measurements.
• The paired t-test will show whether the
differences observed in the 2 measures will
be found reliably in repeated samples.
2
Example
• In this example, we will look at the throwing
distance for junior varsity javelin toss (in
meters).
• Five players are selected at random from
the entire league.
• We are interested in the following research
question:
• Do players improve on their distance
between the pre and post season?
• The average throwing distance, in both pre
and post season, is recorded in columns
1 and 2 (see next slide) for each of 5
people (P1-P5):
3
Player Pre Post
P1 1 2
P2 2 4.5
P3 2 3
P4 2 4.5
P5 3 6
4
Hypothesis
• Ho: mean throwing distance are equal
before and after
• Ha: Mean throwing distance are different
5
Choose significance level
• Two-tail test
α=1%; α=5%; α=10%
6
Calculating t-value
1 2
t , df = n-1
S S 2rx1x2 S x1 S x2
2
x1
2
x2
n 1
7
Example
Column 1 Column 2 Column 3 Column 4
X1 : X2 :
Pre-season Post-season ( 1 1 ) 2 ( 2 2 ) 2
P1: 1 2 1 4
P2: 2 4.5 0 0.25
P3: 2 3 0 1
P4: 2 4.5 0 0.25
P5: 3 6 1 4
1 2 2 4
s x2
( ) 2
0.4 1.9
n 8
Example
• Second, we need to find the correlation
between the pre and post-season distances
( rx x ), or likewise columns 2 and 3.
1 2
• rx1x2=0.9177.
9
Example 4.1 (cont.)
24
t -4.78, df = 4
.4 1.9 2(.9177)(.6325)(1.3784)
5 1
10
Conclusion
• The C.V. t(4), α=.05 = 2.132, therefore we reject
the null hypothesis because the absolute
value of our “t” at 4.78 is greater than the
critical value.
11
INDEPENDENT SAMPLES T-
TEST (OR 2-SAMPLE T-TEST)
12
WHEN TO USE THE
INDEPENDENT SAMPLES T-TEST
• The independent samples t-test is probably the
single most widely used test in statistics.
• It is used to compare differences between
separate groups.
• In Psychology, these groups are often composed
by randomly assigning research participants to
conditions.
• However, this test can also be used to explore
differences in naturally occurring groups.
• For example, we may be interested in
differences of emotional intelligence between
13
males and females.
WHEN TO USE THE
INDEPENDENT SAMPLES T-TEST
(CONT.)
• Any differences between groups can be
explored with the independent t-test, as long
as the tested members of each group are
reasonably representative of the population.
[1]
15
EXAMPLE 3.1 (CONT.)
• α =5%
18
FORMULA
The formula for
the independent samples t-test is:
1 2
t , df = (n1-1) + (n2-1)
2 2
S x1 S x2
n1 1 n2 1
19
EXAMPLE
Column 3 Column 4
X1 : Banku X2 : Fufu ( 1 1 ) 2 ( 2 2 ) 2
1 3 1 1
2 4 0 0
2 4 0 0
2 4 0 0
3 5 1 1
1 2 2 4
s x2
( ) 2
0.4 0.4
n 20
EXAMPLE 3.1 (CONT.)
• From the calculations previously, we have
everything that is needed to find the “t.”
24
t 4.47, df = (5-1) + (5-1) = 8
.4 .4
4 4
After calculating the “t” value, we need to know
if it is large enough to reject the null hypothesis.
21
EXAMPLE
• The calculated t-value of 4.47 is larger in
magnitude than the C.V. of 2.31, therefore we
can reject the null hypothesis.
22
ONE-WAY ANOVA
ONE-WAY ANALYSIS OF VARIANCE
ONE-WAY ANOVA
• Conditions or Assumptions
• The data are randomly sampled
• The variances of each sample are assumed equal
• The residuals are normally distributed
ONE-WAY ANOVA
• Variation
• Variation is the sum of the squares of the deviations
between a value and the mean of the value
• Sum of Squares is abbreviated by SS and often followed
by a variable in parentheses such as SS(B) or SS(W) so
we know which sum of squares we’re talking about
ONE-WAY ANOVA
Source SS df MS F p
Between
Within
Total
ONE-WAY ANOVA
• Grand Mean k
n x n x n x
x 1 1 2 2 k k
n n n1 2 k
ONE-WAY ANOVA
i i
i 1
SS B n x x n x x n x x
2 2 2
1 1 2 2 k k
ONE-WAY ANOVA
SS B 1900.8376 1902
SS W df s
k
2
i i
i 1
SS W df s df s df s
2
1 1 2
2
2 k
2
k
ONE-WAY ANOVA
Source SS df MS F p
Between 1902
Within 3386
Total 5288
ONE-WAY ANOVA
• Degrees of Freedom, df
• A degree of freedom occurs for each value that can
vary before the rest of the values are predetermined
• For example, if you had six numbers that had an
average of 40, you would know that the total had to
be 240. Five of the six numbers could be anything,
but once the first five are known, the last one is fixed
so the sum is 240. The df would be 6-1=5
• The df is often one less than the number of values
ONE-WAY ANOVA
Source SS df MS F p
Between 1902 2
Within 3386 21
Total 5288 23
ONE-WAY ANOVA
• Variances
• The variances are also called the Mean of the Squares and
abbreviated by MS, often with an accompanying variable
MS(B) or MS(W)
• They are an average squared deviation from the mean and
are found by dividing the variation by the degrees of
freedom
• MS = SS / df
Variation
Variance
df
ONE-WAY ANOVA
Source SS df MS F p
• Special Variances
• The MS(Within) is also known as the pooled
estimate of the variance since it is a weighted
average of the individualsvariances
2
p
• Sometimes abbreviated
• The MS(Total) is the variance of the response
variable.
• Not technically part of ANOVA table, but useful none the
less
ONE-WAY ANOVA
• F test statistic
• An F test statistic is the ratio of two sample variances
• The MS(B) and MS(W) are two sample variances and
that’s what we divide to find F.
• F = MS(B) / MS(W)
• For our data, F = 951.0 / 161.2 = 5.9
ONE-WAY ANOVA
Source SS df MS F p
Source SS df MS F p
HYPOTHESES
Effect of brand of car (Factor A) and tire (Factor B) on
gas mileage (dependent variable).
Source of Sum of
Variation Squares df Mean Square F-ratio F-critical
MSE = SSE
ab(n-1)