You are on page 1of 20

Compare means z-Test: Two Sample for Means

A B
14.96584 33.5856 Var_A= 21.54989 A B
11.82501 25.89928 Var_B= 90.0927 Mean 11.21103 19.98047
7.416933 23.1039 Known Var 21.54989 90.0927
2.186144 14.55008 Observatio 50 40
6.623831 9.479791 Hypothesiz 0
13.93287 25.03305 z -5.35348
16.51594 26.46771 P(Z<=z) one4.31E-08
13.35746 33.19417 z Critical o 1.644854
20.71548 22.17988 P(Z<=z) two8.63E-08
7.659188 13.70403 z Critical t 1.959964
11.67495 19.173
16.93551 20.20277
8.297511 11.45541
12.48305 20.12909
8.970952 30.74852
9.932106 6.65272
16.8038 23.75027
17.34581 22.7165
17.33683 20.14149
12.60231 11.74908
15.12624 27.97087
6.333145 19.37193
9.667563 26.7773
8.798012 23.63942
11.46719 13.43744
10.5194 21.32842
15.79786 25.86944
12.28293 13.67057
17.14685 19.78759
10.75735 15.83793
2.642915 10.7249
3.703091 -7.87507
7.842866 0.109351
3.269785 6.340813
12.58001 28.46282
4.257973 26.14474
17.90731 36.81153
3.734241 34.27657
10.05183 28.28345
18.88326 14.33264
5.651569
9.747257
14.42657
8.01168
7.536406
13.35315
14.84515
12.33399
9.449051
14.84515
H0:mu_A=mu_B
H1:mu_A<mu_B

p-value= 4.313858E-08 <0.01

We reject H0 at 1% level of sig.


and conclude that mu_A<mu_B
Compare means t-Test: Two-Sample Assuming Equal Variances
A B
14.66034 16.72675 A B
22.1716 15.17334 stdev_A= 8.887735 Mean 24.47062 21.2735
19.01596 15.79421 stdev_B= 7.054694 Variance 78.99184 49.76871
41.72943 14.28639 Observatio 12 20
26.84244 15.33867 Assume: Populations variances are equal Pooled Var 60.48386
27.03199 16.30972 Assume Normal populations Hypothesiz 0
15.99244 37.77405 df 30
31.72803 23.51721 t Stat 1.125819
15.90682 30.57219 P(T<=t) one0.134584
19.06311 33.17604 t Critical o 1.697261
38.25699 21.86354 P(T<=t) two0.269168
21.24823 25.71866 t Critical t 2.042272
30.7051
13.35814
19.56644
18.15264
16.11414
20.38602
16.56291
24.37394
Assuming Equal Variances

H0:mu_A=mu_B
H1:mu_A>mu_B

p-value= 0.134584 >0.10


We can not reject H0 at 10% level of sig.
Compare means t-Test: Two-Sample Assuming Unequal Variances
A B
12.57346 37.37889 stdev_A= 7.180856 A B
26.75113 38.82383 stdev_B= 1.931356 Mean 22.43785 39.68224
26.7301 40.76396 Variance 51.5647 3.730134
31.68623 42.38731 Assume:population variances are unequal Observatio 12 5
18.00217 39.05718 Assume: Normal populations Hypothesiz 0
23.9487 df 14
24.95835 t Stat -7.67891
16.56925 P(T<=t) one 1.1E-06
8.664866 t Critical o 1.76131
20.96319 P(T<=t) two 2.2E-06
29.97118 t Critical t 2.144787
28.43562
Assuming Unequal Variances

H0:mu_A=mu_B
H1:mu_A<mu_B

p-value= 1.099452E-06 <0.01


We reject H0 at 1% level of sig.
Conclude that mu_A<mu_B
Compare means t-Test: Two-Sample Assuming Unequal Variances
Before and After data of 10 men who replaced breakfast by a protein shake
Before After Before After
63.96251 89.27409 Mean 70.45841 60.80147
71.13006 68.51187 Variance 37.54714 162.9538
76.90859 62.38902 Observatio 10 10
62.62479 69.33669 Hypothesiz 0
70.1379 49.90156 df 13
62.40188 45.67009 t Stat 2.156658
70.39764 48.66408 P(T<=t) one 0.02517
80.40266 56.77525 t Critical o 1.770933
75.77395 57.93018 P(T<=t) two 0.05034
70.84414 59.56191 t Critical t 2.160369
Assuming Unequal Variances

H0:mu_Before=mu_After
H1:mu_Before>mu_After

p-value= 0.02517 <0.05

We reject H0 at 5% level of significance

Conclude that mu_Before>mu_After


Comapre variances F-Test Two-Sample for Variances
A B
12.57346 37.37889 A B H0:sigma_A=sigma_B
26.75113 38.82383 Mean 22.43785 39.68224 H1:sigma_A>sigma_B
26.7301 40.76396 Variance 51.5647 3.730134
31.68623 42.38731 Observatio 12 5 p-value= 0.01087
18.00217 39.05718 df 11 4
23.9487 F 13.82382 We reject H0 at 5% level of sig
24.95835 P(F<=f) one 0.01087 Conclude that sig_A>sig_B
16.56925 F Critical o 5.935813
8.664866
20.96319 In Excel it is always right tailed test
29.97118
28.43562
_A=sigma_B
_A>sigma_B

<0.05

H0 at 5% level of sig
that sig_A>sig_B
Chi Square Independence of Attributes
Observed Freq
Prefer heat Prefer Rice No Preference Total
Northern Part 7 3 8 18
Southern Part 3 7 4 14
Eastern Part 4 4 2 10
Western Part 4 8 5 17
Central Part 1 11 8 20
Total 19 33 27 79

Chi Square Independence of Attributes


Expected Freq
Prefer heat Prefer Rice No Preference Total
Northern Part 4.32911392 7.51898734 6.1518987342 18
Southern Part 3.36708861 5.84810127 4.7848101266 14
Eastern Part 2.40506329 4.17721519 3.417721519 10
Western Part 4.08860759 7.10126582 5.8101265823 17
Central Part 4.81012658 8.35443038 6.835443038 20
Total 19 33 27 79

After pooling

10 7.69620253 0.68962358
8 6.58227848 0.3053554
5 8.89873418 1.70812251
3 7.51898734 2.71595704
7 5.84810127 0.22688914
8 7.10126582 0.11374354
11 8.35443038 0.83776371
8 6.15189873 0.55519092
6 8.20253165 0.59142053
5 5.81012658 0.11295883
8 6.83544304 0.198406
Chi Sq_C= 8.05543122
df= 4
alpha= 0.05
crit val= 9.48772904

H0: attributes are independent


H1: attributes are not independent

We can not reject H0.


Test Normality
56.68568 Bin Frequency Class f_o Prob f_e=Prob*100
49.2387 45 7 -inf - 45 7 0.067312 6.7311704072
63.10009 50 9 45 - 50 9 0.087732 8.7731827176
73.11096 55 13 50 - 55 13 0.14164 14.164015551
44.70348 60 18 55 - 60 18 0.182228 18.222770724
60.24061 65 20 60 - 65 20 0.186832 18.683249008
45.53421 70 15 65 - 70 15 0.152652 15.265164231
50.54555 75 10 70 - 75 10 0.099392 9.9392283068
59.82136 More 8 75 - inf 8 0.082212 8.2212190546
52.14156 100 1 100
72.77165 x_bar 60.54966
45.13281 s1= 10.39335 Computed Chi square=
45.44872 df=
60.37148 H0: data follows Normal Distribution alpha=
56.12994 H1: data does not follow Normal DistributiCrit value=
54.45149
70.8836 we can not reject H0 at 5% level of sig.
54.60256 conclusion: no proof against normality
44.76233
60.04093
62.70194
61.90129
65.31356
45.04677
65.03544
54.18358
66.84101
53.20821
64.13029
55.21655
57.94816
50.4071
58.46208
59.73031
83.82149
55.26624
77.70754
54.53519
63.00312
71.69064
55.05726
46.67463
71.07085
64.01226
43.75988
66.53486
84.29078
72.3131
74.00645
50.75048
55.51635
66.52254
59.84356
79.00908
64.38911
65.71704
43.34879
58.75253
47.95984
69.04147
51.61492
56.03991
51.63449
65.80465
61.12191
61.02804
68.68793
65.87631
72.69937
74.97665
64.58624
67.63844
55.95206
76.44958
31.09408
56.87983
65.27044
66.64988
77.51278
61.69448
62.6718
62.90962
62.77898
71.80965
69.32841
63.38067
43.97625
59.33052
85.33525
47.11514
54.29735
52.51327
57.83865
67.24392
62.29152
48.4536
44.9073
57.76263
79.37578
63.99486
(f_o-f_e)^2/f_e
0.0107365206
0.0058640155
0.0956601748
0.0027233397
0.0928014809
0.0046060474
0.000371578
0.0059526294
0.2187157863

mputed Chi square= 0.218716


5
0.05
11.0705
ANOVA One Way (with Critical Difference)
A B C D E Assumptions Anova: Single Factor
57.53298 53.33049 61.59572 97.25279 49.24552 Indepandant samples
49.93717 42.02539 44.55827 74.31672 70.59759 Normal populations SUMMARY
55.28163 27.23698 39.07342 68.38253 58.38075 Equal population variances Groups
55.33288 48.37919 49.34432 62.27317 59.34969 A
45.48833 59.59412 63.62887 82.11425 64.53023 H0: all treatments have same effect B
57.20511 56.68811 51.96053 70.97446 64.23213 H1: all treatments do not have same effectC
64.13278 60.75584 39.24279 87.97662 68.67678 D
70.30958 64.23236 57.30072 84.70622 72.37045 E
68.62672 37.39263 49.6997 64.15919 43.77416
54.88189 43.67958 47.00649 78.87665 76.6237
57.15496 49.12259 65.17671 66.38031 ANOVA
69.63175 52.9176 46.4717 61.13268 Source of Variation
62.91919 47.1462 69.95153 53.68706 Between G
69.13049 77.01202 54.01607 Within Gro
56.28367 81.40189 59.58948
67.0012 57.51722 Total
83.00301 65.39567
56.54353 42.71996 As p-value is less than 0.05, we
48.86913 Conclusion: All treatments are
77.54754
87.62943 Multiple comparison
72.30283 absolute diff crit diff
70.65043 A&B 10.25847 < 13.04879 =SQRT($M$16*(1/15+1/10)*(5
A &C 9.390157 < 12.11177
A&D 13.21847 > 10.60787
A&E 0.866694 < 11.17432
B&C 0.868315 < 13.4443
B&D 23.47694 > 12.10707
B&E 11.12517 < 12.60633
C&D 22.60863 > 11.09077
C&E 10.25685 < 11.63373
D&E 12.35178 > 10.0586

D is significantly different from others.


Anova: Single Factor

SUMMARY
Count Sum Average Variance
15 893.8491 59.58994 56.98682
10 493.3147 49.33147 138.3243
13 652.5972 50.19979 55.70498
23 1674.594 72.80841 153.5217
18 1088.219 60.45664 87.37239

SS df MS F P-value F crit
6116.738 4 1529.185 14.94053 0.00000001 2.495388
7574.003 74 102.3514

13690.74 78

As p-value is less than 0.05, we reject H0 at 5% level of sig,


Conclusion: All treatments are not the same

=SQRT($M$16*(1/15+1/10)*(5-1)*$P$15)
ANOVA Two Way (with Critical Differences) Anova: Two-Factor With Replication

Factor B SUMMARYB1
B1 B2 B3 B4 B5 A1
A1 61.91064 62.38745 62.50488 55.26367 87.28476 Count 3
A1 65.89723 43.25011 54.54228 72.60059 85.6523 Sum 189.4636
A1 61.65569 47.83092 55.3857 47.48524 102.9507 Average 63.15452
A2 55.18823 62.76785 62.10188 47.01803 77.85275 Variance 5.658094
A2 66.298 55.05294 60.57751 56.16866 65.99969
Factor A

A2 49.19629 58.65455 60.74693 65.15477 84.20036 A2


A3 58.23951 85.90532 60.18246 53.29275 78.73479 Count 3
A3 79.30621 44.649 50.81367 66.01965 70.74462 Sum 170.6825
A3 66.46869 50.85558 61.38174 58.1991 70.38282 Average 56.89417
A4 70.24465 81.86625 78.69083 75.44857 90.69602 Variance 75.29978
A4 74.38355 90.78729 81.19276 77.68962 86.89233
A4 68.76531 75.02612 78.86501 75.44264 88.95318 A3
Count 3
Sum 204.0144
Average 68.0048
Variance 112.7211

A4
Count 3
Sum 213.3935
Average 71.13117
Variance 8.480609

Total
Count 12
Sum 777.554
Average 64.79617
H_A0: Levels of factor A have the same effects Variance 68.27377
H_A1: Levels of factor A does not have the same effects
p-value<0.05
H_A0 rejected at 5% level of sig ANOVA
H_B0: Levels of factor A have the same effects Source of VariationSS
H_B1: Levels of factor A does not have the same effects Sample 3065.502
p-value<0.05 Columns 3470.232
H_B0 rejected at 5% level of sig Interaction 1466.885
H_AB0: No interaction present Within 2844.788
H_AB1: interection present
p-value>0.05 Total 10847.41
H_AB0 can not be rejected
wo-Factor With Replication

B2 B3 B4 B5 Total

3 3 3 3 15
153.4685 172.4329 175.3495 275.8878 966.6022
51.15616 57.47762 58.44983 91.9626 64.44015
99.85234 19.13286 165.309 91.22057 273.0168

3 3 3 3 15
176.4753 183.4263 168.3415 228.0528 926.9785
58.82511 61.14211 56.11382 76.0176 61.79856
14.90179 0.698046 82.23754 85.34194 94.31618

3 3 3 3 15
181.4099 172.3779 177.5115 219.8622 955.1759
60.46997 57.45929 59.1705 73.28741 63.67839
494.8483 33.48274 41.20121 22.28819 139.2938

3 3 3 3 15
247.6797 238.7486 228.5808 266.5415 1194.944
82.55989 79.58286 76.19361 88.84718 79.66294
62.46445 1.951401 1.678549 3.625439 49.22356

12 12 12 12
759.0334 766.9856 749.7833 990.3444
63.25278 63.91547 62.48194 82.5287
271.2233 101.7628 122.5647 106.8277

df MS F P-value F crit
3 1021.834 14.36781 0.000002 2.838745
4 867.558 12.19856 0.000001 2.605975
12 122.2404 1.718798 0.099003 2.003459
40 71.1197

59

You might also like