Professional Documents
Culture Documents
1
HYPOTHESIS TESTING FOR THREE OR
MORE MEANS
2
Example:
Test Scores and Socioeconomic Status
■ A researcher hypothesized that women of different
socioeconomic backgrounds would perform differently on an
anxiety rating scale.
■ They administered the test to a sample of 37 women ( 13 of
low SES, 12 of medium and 12 of high) and obtained a mean of
40.23 ± 25.17 for the low group, 15.60 ± 6.42 for the medium
and 18.06 ± 9.97 for the high. Do these results confirm this
hypothesis?
Analysis of Variance (ANOVA)
• Compares 3 or more means
• Allows us to
determine whether the samples come from the
same population
• Independent samples
5
Null and Alternate
Hypotheses
•H0: µ1 = µ2 = µ3
•H1: µ1 ≠ µ2 or µ1 ≠ µ3 or µ2 ≠ µ3
9
Example
10
■ Procedures for hypothesis testing
à Setting up hypothesis and determine level of
significance
H0: µ1=µ2=µ3=µ4
H1:All means are not equal
α=0.05
ANOVA table
Source Mean
Sum of squares Degrees of
of squares F
(SS) freedom (df)
variation (MS)
Between
SSB = å nj ( X j - X ) 2
groups SSB MSB
k-1 MSB = F=
k -1 MSW
Within
SSW = åå ( X - X j )2
groups N-k SSW
MSW =
N -k
Total
SST = åå ( X - X )2 N-1
■ Procedures for hypothesis testing
à Complete the ANOVA table: Variability between groups
SSB = å nj ( X j - X ) 2
1. Square the differences between each group mean X!j and the overall mean X
!
2. For each group, multiply each squared difference by the sample size
3. Sum the squared differences
ANOVA table
Source of Degrees of Mean
Sum of squares (SS) F
variation freedom (df) squares (MS)
Between SSB=75.8 k-1= 4-1 MSB=75.8/3=
groups 25.3
Within
N-k
groups
Total N-1
■ Procedures for hypothesis testing
à Complete the ANOVA table: Variability within groups
SSW = åå ( X - X j ) 2
1. In every group, square the differences between each observation X and its group
mean X!j
2. Sum the differences
1. In every group, square the differences between each observation X and its group
mean X!j
2. Sum the differences
ANOVA table
Source Sum of squares (SS) Degrees of Mean F
of freedom (df) squares
variation (MS)
Between SSB=75.8 k-1= 4-1=3 MSB=75.8/3
groups =25.3
Within SSW=47.4 N-k=20-4=16 MSW=47.4/1
groups 6=3
Total N-1
18
■ Procedures for hypothesis testing
à Complete the ANOVA table
ANOVA table
Source Mean
Sum of squares Degrees of
of squares F
(SS) freedom (df)
variation (MS)
Between SSB=75.8 k-1= 4-1=3 MSB=75.8/3
groups =25.3
Within SSW=47.4 N-k=20-4=16 MSW=47.4/1
groups 6=3
Total SSB+SSW=123.2 N-1=20-1=19
19
■ Procedures for hypothesis testing
à Complete the ANOVA table
ANOVA table
Source
Sum of squares Degrees of Mean squares
of F
(SS) freedom (df) (MS)
variation
Between SSB=75.8 MSB=75.8/3=25.3 MSB/MSW=
k-1= 4-1=3
groups 25.3/3=8.43
Within SSW=47.4 MSW=47.4/16=3
N-k=20-4=16
groups
Total SSB+SSW=123.2 N-1=20-1=19
20
■ Procedures for hypothesis
testing
à Determine critical value
à df1=k-1 =3
à df2=N-k=20-4=16
21
■ Procedures for hypothesis testing
à Set up the decision rule
Reject Ho if F ≥ Fcritical
àIf F ≥ 3.24
22