Professional Documents
Culture Documents
10 Anova
10 Anova
10 Anova
ANOVA
1
9/3/2018
2
9/3/2018
3
9/3/2018
4
9/3/2018
Example
• One experiment call examining learning
performance under three temperature
condition. The dependent variable is the number
of problem solved correctly.
Temperature conditions Is there any
50o 70o 90o significant
0 4 1 different
between three
1 3 2
groups at alpha
3 6 2
0.05?
1 3 0
0 4 0
5
9/3/2018
Steps
1. State the hypothesis
Ho: µ1= µ2= µ3
H1: At least one of the treatment means is different.
2. Find the critical value with α = 0.05 and F(between, within)
4. Make decision
Example 1
Temperature conditions
50o 70o 90o
0 4 1
1 3 2
3 6 2
1 3 0
0 4 0
6
9/3/2018
Example
Temperature conditions
50o 70o 90o
0 4 1
1 3 2 G=30
3 6 2 N=15
1 3 0 k=3
0 4 0
T1=5 T2=20 T3=5
SS1=6 SS2=6 SS3=4
n1=5 n2=5 n3=5
Source SS df MS F
Between SSbetween dfbetween
subject subject
Within SSwithin dfwithin
treatment
Total SStotal dftotal
7
9/3/2018
SPSS OUTPUT
ANOVA
ANSWER
Sum of Mean
Squares df Square F Sig.
Between
Groups
Within Groups
Total
SPSS OUTPUT
ANOVA
ANSWER
Sum of Mean
Squares df Square F Sig.
Between
Groups 30.00 2 15.00 11.25 .002
Within Groups
16.00 12 1.33
Total
46.00 14
8
9/3/2018
9
9/3/2018
POST -HOC
Multiple Comparisons
ANSWER
Tukey HSD
Mean 95% Confidence Interval
Difference (I- Lower Upper
(I) GROUP (J) GROUP J) Std. Error Sig. Bound Bound
50 70 -3.000* .730 .004 -4.95 -1.05
90 .000 .730 1.000 -1.95 1.95
70 50 3.000* .730 .004 1.05 4.95
90 3.000* .730 .004 1.05 4.95
90 50 .000 .730 1.000 -1.95 1.95
70 -3.000* .730 .004 -4.95 -1.05
*. The mean difference is significant at the 0.05 level.
10
9/3/2018
SSbetween treatments
η2 = ───────────
SStotal
30
η2 = ─────────── = 0.65
46
11
9/3/2018
Example 2
Treatment
A B C
2 3 7
6 7 5
2 6 4
6 4 8
Example 2
Treatment
A B C
2 3 7 G=60
6 7 5 N=12
2 6 4
k=3
6 4 8
T1=16 T2=20 T3=24
SS1=16 SS2=10 SS3=10
n1=4 n2=4 n3=4
12
9/3/2018
Source SS df MS F
Between SSbetween dfbetween
subject subject
Within SSwithin dfwithin
treatment
Total SStotal dftotal
13
9/3/2018
SPSS OUTPUT
ANOVA
ANSWER
Sum of Mean
Squares df Square F Sig.
Between
Groups
Within Groups
Total
SPSS OUTPUT
ANOVA
ANSWER
Sum of Mean
Squares df Square F Sig.
Between
Groups 8 2 4 1 0.405
Within Groups
36 9 4
Total
44 11
14
9/3/2018
ANOVA TABLE
ANSWER
Sum of Mean
Squares df Square F
Between
Groups
Within Groups
Total
15
9/3/2018
ANOVA TABLE
ANSWER
Sum of Mean
Squares df Square F
Between
Groups 468.7 2 234.35 28.53
Within Groups
345 42 8.21
Total
813.7 44
SPSS
ANOVA
Independent-measures
16
9/3/2018
17
9/3/2018
18
9/3/2018
19
9/3/2018
20
9/3/2018
SPSS
Non parametric
Independent-measured
Kruskal-Wallis Test
For ordinal data
www.utm.my innovative ● entrepreneurial ● global
Note
• Ratio or interval data can be ranked and can
consider as an ordinal data.
• When the data cannot satisfied the
requirement to run ANOVA, go for non
parametric.
21
9/3/2018
SPSS
22
9/3/2018
23
9/3/2018
24
9/3/2018
ANOVA
Repeated-Measures
25
9/3/2018
26
9/3/2018
27
9/3/2018
28
9/3/2018
Example 1
29
9/3/2018
Steps
1. State the hypothesis
Ho: µ1= µ2= µ3
H1: At least one of the treatment means is different.
2. Find the critical value with α = 0.05
4. Make decision
30
9/3/2018
Example 1
31
9/3/2018
ANOVA table
Source SS df MS F
Between SSbetween dfbetween
ANOVA table
Source SS df MS F
Between
Within
Between Subject
Error
Total
32
9/3/2018
ANOVA table
Source SS df MS F
Between 70 2 35 70
Within 40 12
Between Subject 36 4
Error 4 8 0.5
Total 110 14
SPSS
Measure:MEASURE_1
33
9/3/2018
Example 2
Depression Scores
Sample Before Therapy After Therapy 6 Month
Follow up
A 71 53 55
B 62 45 44
C 82 56 61
D 77 50 46
E 81 54 55
Example 2
Depression Scores
Sample Before Therapy After Therapy 6 Month Person
Follow up Total
A 71 53 55 179 n=5
B 62 45 44 151 K=3
C 82 56 61 199 N=15
D 77 50 46 173 G=892
E 81 54 55 190
T=373 T=258 T=261
SS=273.2 SS=73.2 SS=198.8
34
9/3/2018
ANOVA table
Source SS df MS F
Between SSbetween dfbetween
ANOVA table
Source SS df MS
Between
Within
Between Subject
Error
Total
35
9/3/2018
ANOVA table
Source SS df MS
Between 1718.5 2 859.25 69.6
Within 545.2 12
Between Subject 446.4 4
Error 98.8 8 12.35
Total 2263.7 14
36
9/3/2018
SPSS
ANOVA
Repeated-Measures
37
9/3/2018
38
9/3/2018
39
9/3/2018
40
9/3/2018
SPSS-Ordinal data
SPSS
Non Parametric
Repeated-Measures
Friedman Test
41
9/3/2018
Data
42
9/3/2018
Ranks
Mean Rank
SUM OF FI FOR JAN 2.75
SUM OF FI FOR JUN 1.63
SUM OF FI FOR DEC 1.62
Test Statisticsa
N 42
Chi-Square 38.662
df 2
Asymp. Sig. .000
a. Friedman Test
43
9/3/2018
FACTOR A
YES NO
LOW M1 M3
FACTOR B
HIGH M2 M4
• M = mean
www.utm.my innovative ● entrepreneurial ● global
44
9/3/2018
FACTOR A
YES NO
LOW M1 M3
FACTOR B
HIGH M2 M4
45
9/3/2018
46
9/3/2018
47
9/3/2018
48
9/3/2018
49