Anova Detailed Example

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 19

Subject Placebo Product # 1 Product # 2

1 -3.1 2.8 5.6


2 -7.9 1.2 5.5
3 -0.3 3.6 6.2
4 4.8 -15.5 9.1
5 4.4 -2.7 -2.3
6 7.1 0.2 4.3
7 -12.5 3.7 -1.9
8 -2.7 -5.9 5.1
9 3.9 -1 -6.6
10 -7 13.7 -3.9
11 -5 0.9 1.1
12 -10 8.4 3.7
13 -10.8 0.1 -1.9
14 -6.4 -2.9 5.5
15 -5.4 -1.4 15.7
16 -12.1 -2.5 5.4
17 -4.4 -0.2 -2
18 -3.6 6.7 7.3
19 -0.9 5.3 -2.9
20 -3.4 6.1 9.6
21 -3.2 -4.4 3.8
22 -3.4 2.6 2.8
23 5.2 2.3 -5.2
24 -2 -1.2 -0.9
25 -2.5 6.9 8.5
26 -4.1 0.1 -0.3
27 8.3 -0.4 5.3
28 2.8 2.3 -1.4
29 10.3 0.8 4.4
30 -4.8 -0.6 -0.1
31 6.8 -0.8 6.1
32 -9.6 -4.3 6.9
33 1.1 7.2 5.7
34 3 7.6 -2.4
35 8 4.9 3.3
36 -2 5.9 8.6
37 -4.2 5.2 -2.4
38 1.8 1.5 3.8
39 -3.5 8.5 -1.9
40 2.2 8.5 10.5
41 -8.8 4.9 10.3
42 -5.8 10.4 3.2
43 -9.2 6.7 0.6
44 -3.4 -2.5 5.7
45 -1.7 9.2 -0.7
46 -1.4 5.7 -0.4
47 -3.2 -0.5 -2.2
48 9.4 10.8 11.1
49 -10.3 0.2 9.5
50 -5.2 5.3 8.9
51 -14.4 2.6 3.8
52 5.7 0 -3.1
53 -7.9 2.9 -2.5
54 -4.8 1.2 -4.8
55 2.2 4 3.1
56 0.8 4.8 0.1
57 2.8 3.6 -0.2
58 1.4 5.6 -1.7
59 -8.4 7.3 2.3
60 -7.1 -0.2 3.6
61 1.9 8.5 -5
62 0.1 8.8 6.1
63 -6.2 -1.2 2.3
64 -2.8 6.5 4.8
65 -0.9 8 7.7
66 1.2 -7.6 -1.3
67 -0.9 -0.3 5.1
68 -6.1 5.1 -1.8
69 7.9 5.9 -1.2
70 0.9 4 -2.4
71 -1.2 0.5 9.9
72 2.6 -2.2 1.9
73 2.8 3 3.4
74 -4.7 -7.6 -4.6
75 -6.2 5.1 2.4
76 4 0.8 2.1
77 -7.6 -6.9 -1.9
78 -9.3 0.9 1.7
79 2 7.6 -2.7
80 1.6 1.5 -3.4
81 9.5 0.1 17.1
82 5.7 1.7 2.3
83 5 6.7 7.7
84 -1 -6.7
85 -1.5 6.8
86 0.7 -1.4
87 -1.7 4.5
88 -6.8 0.9
89 -10.4 3.5
90 3.5
91 8
Hydronics Weight Loss Programs

File: Hydronics.xls

Column A: Subject Number


Column B: Weight lost on the Placebo (data are in number of pounds) Positive Values Indica
Column C: Weight Loss on Program 1
Column D: Weight loss on Program 2
ounds) Positive Values Indicate Weight Gain
Placebo

Mean -1.750561798
Standard Error 0.5947165306
Median -2
Mode -0.9
Standard Deviation 5.6105445287 5.610545 sample standard deviation
Sample Variance 31.478209908
Kurtosis -0.55309519
Skewness 0.0835603249
Range 24.7
Minimum -14.4
Maximum 10.3
Sum -155.8
Count 89
Placebo x-mean (x-mean)^2
-3.1 -1.34943820224719 1.82098346168
-7.9 -6.14943820224719 37.81559020326
-0.3 1.45056179775281 2.10412952910
4.8 6.55056179775281 42.90985986618
4.4 6.15056179775281 37.82941042798
7.1 8.85056179775281 78.33244413584
-12.5 -10.74943820224720 115.55042166393
-2.7 -0.94943820224719 0.90143289989
3.9 5.65056179775281 31.92884863022
-7 -5.24943820224719 27.55660143921
-5 -3.24943820224719 10.55884863022
-10 -8.24943820224719 68.05323065270
-10.8 -9.04943820224719 81.89233177629
-6.4 -4.64943820224719 21.61727559652
-5.4 -3.64943820224719 13.31839919202
-12.1 -10.34943820224720 107.11087110213
-4.4 -2.64943820224719 7.01952278753
-3.6 -1.84943820224719 3.42042166393
-0.9 0.85056179775281 0.72345537180
-3.4 -1.64943820224719 2.72064638303
-3.2 -1.44943820224719 2.10087110213
-3.4 -1.64943820224719 2.72064638303
5.2 6.95056179775281 48.31030930438
-2 -0.24943820224719 0.06221941674
-2.5 -0.74943820224719 0.56165761899
-4.1 -2.34943820224719 5.51985986618
8.3 10.05056179775280 101.01379245045
2.8 4.55056179775281 20.70761267517
10.3 12.05056179775280 145.21603964146
-4.8 -3.04943820224719 9.29907334932
6.8 8.55056179775281 73.11210705719
-9.6 -7.84943820224719 61.61368009090
1.1 2.85056179775281 8.12570256281
3 4.75056179775281 22.56783739427
8 9.75056179775281 95.07345537180
-2 -0.24943820224719 0.06221941674
-4.2 -2.44943820224719 5.99974750663
1.8 3.55056179775281 12.60648907966
-3.5 -1.74943820224719 3.06053402348
2.2 3.95056179775281 15.60693851786
-8.8 -7.04943820224719 49.69457896730
-5.8 -4.04943820224719 16.39794975382
-9.2 -7.44943820224719 55.49412952910
-3.4 -1.64943820224719 2.72064638303
-1.7 0.05056179775281 0.00255649539
-1.4 0.35056179775281 0.12289357404
-3.2 -1.44943820224719 2.10087110213
9.4 11.15056179775280 124.33502840551
-10.3 -8.54943820224719 73.09289357404
-5.2 -3.44943820224719 11.89862391112
-14.4 -12.64943820224720 160.00828683247
5.7 7.45056179775281 55.51087110213
-7.9 -6.14943820224719 37.81559020326
-4.8 -3.04943820224719 9.29907334932
2.2 3.95056179775281 15.60693851786
0.8 2.55056179775281 6.50536548416
2.8 4.55056179775281 20.70761267517
1.4 3.15056179775281 9.92603964146
-8.4 -6.64943820224719 44.21502840550
-7.1 -5.34943820224719 28.61648907966
1.9 3.65056179775281 13.32660143921
0.1 1.85056179775281 3.42457896730
-6.2 -4.44943820224719 19.79750031562
-2.8 -1.04943820224719 1.10132054034
-0.9 0.85056179775281 0.72345537180
1.2 2.95056179775281 8.70581492236
-0.9 0.85056179775281 0.72345537180
-6.1 -4.34943820224719 18.91761267517
7.9 9.65056179775281 93.13334301225
0.9 2.65056179775281 7.02547784371
-1.2 0.55056179775281 0.30311829314
2.6 4.35056179775281 18.92738795607
2.8 4.55056179775281 20.70761267517
-4.7 -2.94943820224719 8.69918570888
-6.2 -4.44943820224719 19.79750031562
4 5.75056179775281 33.06896098977
-7.6 -5.84943820224719 34.21592728191
-9.3 -7.54943820224719 56.99401716955
2 3.75056179775281 14.06671379876
1.6 3.35056179775281 11.22626436056
9.5 11.25056179775280 126.57514076506
5.7 7.45056179775281 55.51087110213
5 6.75056179775281 45.57008458528
-1 0.75056179775281 0.56334301225
-1.5 0.25056179775281 0.06278121449
0.7 2.45056179775281 6.00525312461
-1.7 0.05056179775281 0.00255649539
-6.8 -5.04943820224719 25.49682615831
-10.4 -8.64943820224719 74.81278121449

sum
-1.75056 using =average 2770.08247191011

31.12452215629 divide by N using =count


89
5.57893557556 sqrt root using =sqrt

31.47820990807 divide by n-1


5.61054452866 sqrt

5.57893557556 using stdevp this is population standard deviation

5.61054452866 using stdev this is sample standard deviation


pulation standard deviation

mple standard deviation


Anova: Single Factor

SUMMARY
Groups Count Sum Average Variance Standart Deviation
Placebo 89 -155.8 -1.7505617978 31.478209908 5.6105445286594
Product # 1 91 223.2 2.4527472527 22.824742369
Product # 2 83 214.5 2.5843373494 24.184507787

ANOVA
Source of Variation SS df MS F P-value F crit
Between Groups 1072.3728634 2 536.18643171 20.478842896 0.00000000551 3.0305159142
Within Groups 6807.4389237 260 26.182457399

Total 7879.8117871 262

Is calculated "F", the test statistic > critical value ---- YES, Reject H0

Ho: mean1 = mean 2 = mean3 reject Ho


H1: at least one mean does not equal the other means
3.030516
Subject Placebo Product # 1 Product # 2
1 -3.1 2.8 5.6
2 -7.9 1.2 5.5
3 -0.3 3.6 6.2
4 4.8 -15.5 9.1
5 4.4 -2.7 -2.3
6 7.1 0.2 4.3
7 -12.5 3.7 -1.9
8 -2.7 -5.9 5.1
9 3.9 -1 -6.6
10 -7 13.7 -3.9
11 -5 0.9 1.1
12 -10 8.4 3.7
13 -10.8 0.1 -1.9
14 -6.4 -2.9 5.5
15 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1 -6.7
85 -1.5 6.8
86 0.7 -1.4
87 -1.7 4.5
88 -6.8 0.9
89 -10.4 3.5
90 3.5
91 8
mean -1.7506 2.4527 2.5843
variance 31.4782099080695 22.8247423687424 24.1845077872465
count 89 91 83 263
Overall mean
1.0719

1.0955 mean of sample means


To calculate SSB To calculate SSB To calculate SSB Sum
deviation -2.8224 1.3809 1.5125
sq dev 7.9660824043325 1.9068409939537 2.2875783010328
n * sq dev 708.981333985593 173.522530449787 189.868998985721 1072.3728634

NOTE:
In the basic calculation of sample variance and
sample standard deviation, we use (n-1) in the denominator
to adjust for the fact that the sample is an approximation of
the population rather than an exact photograph of the population

When calculating MSW, we have (n-3) degrees of freedom:


Placebo group has (n-1) degrees of freedom = 88
Product #1 has (n-1) degrees of freedom = 90
Product #2 has (n-1) degrees of freedom = 82
Total d.f. = 260
Placebo sq dev #1 sq dev #2 sq dev
17.4 3.0 20.5
80.5 0.0 19.6
1.9 6.4 26.3
13.9 274.6 64.5
11.1 14.2 11.4
36.3 0.8 10.4
184.2 6.9 8.8
14.2 48.6 16.2
8.0 4.3 58.9
65.2 159.5 24.7
36.9 0.0 0.0
122.6 53.7 6.9
140.9 0.9 8.8
55.8 15.8 19.6
41.9 6.1 214.0
173.5 12.8 18.7
29.9 1.6 9.4
21.8 31.7 38.8
3.9 17.9 15.8
20.0 25.3 72.7
18.2 29.9 7.4
20.0 2.3 3.0
17.0 1.5 39.3
9.4 5.2 3.9
12.8 34.0 55.2
26.7 0.9 1.9
52.2 2.2 17.9
3.0 1.5 6.1
85.2 0.1 11.1
34.5 2.8 1.4
32.8 3.5 25.3
113.9 28.9 34.0
0.0 37.6 21.4
3.7 42.6 12.1
48.0 14.7 5.0
9.4 23.3 56.7
27.8 17.0 12.1
0.5 0.2 7.4
20.9 55.2 8.8
1.3 55.2 88.9
97.5 14.7 85.2
47.2 87.0 4.5
105.5 31.7 0.2
20.0 12.8 21.4
7.7 66.1 3.1
6.1 21.4 2.2
18.2 2.5 10.7
69.4 94.6 100.6
129.3 0.8 71.0
39.3 17.9 61.3
239.4 2.3 7.4
21.4 1.1 17.4
80.5 3.3 12.8
34.5 0.0 34.5
1.3 8.6 4.1
0.1 13.9 0.9
3.0 6.4 1.6
0.1 20.5 7.7
89.7 38.8 1.5
66.8 1.6 6.4
0.7 55.2 36.9
0.9 59.7 25.3
52.9 5.2 1.5
15.0 29.5 13.9
3.9 48.0 43.9
0.0 75.2 5.6
3.9 1.9 16.2
51.4 16.2 8.2
46.6 23.3 5.2
0.0 8.6 12.1
5.2 0.3 77.9
2.3 10.7 0.7
3.0 3.7 5.4
33.3 75.2 32.2
52.9 16.2 1.8
8.6 0.1 1.1
75.2 63.6 8.8
107.6 0.0 0.4
0.9 42.6 14.2
0.3 0.2 20.0
71.0 0.9 256.9
21.4 0.4 1.5
15.4 31.7 43.9
4.3 60.4
6.6 32.8
0.1 6.1
7.7 11.8
62.0 0.0
131.6 5.9
5.9
48.0

Total for TSS


7879.8

SSW = TTS - SSB = 6807.4


Mean sq between
MSB = SSB / (k-1) where k is the number of groups
536.186431710551

Mean sq within
MSW = SSW / (n-k) where n is the sample size
26.1824573986582 (n-k) = 263-3 = 260

F statistic
MSB/ MSW
20.4788428964666

critical value
3.03051591418455 using =FINV
df #1: k-1
ff #2: n-k
Anova: Single Factor

SUMMARY
Groups Count Sum Average Variance
Product # 1 91 223.2 2.4527472527 22.824742369
Product # 2 83 214.5 2.5843373494 24.184507787

ANOVA
Source of Variation SS df MS F P-value F crit
Between Groups 0.7516517072 1 0.7516517072 0.0320219666 0.8581900674 3.8960922321
Within Groups 4037.3564517 172 23.473002626

Total 4038.1081034 173

Is 0.03 > 3.86? NO

Ho: mean1 = mean 2 DO NOT REJECT reject Ho


H1: mean1 ≠ mean 2

You might also like