Vous êtes sur la page 1sur 16

Height

Bottom

Mean
Middle

Mean
Middle

Mean
Mean

Width
Reg
Wide
58.2
55.7
53.7
52.5
55.8
58.9
55.9
55.7
73.0
76.2
78.1
78.4
75.4
82.1
75.5
78.9
52.4
54.0
49.7
52.1
50.9
49.9
51.0
52.0
60.8
62.2

Mean
Reg
58.2
53.7
55.8
73.0
78.1
75.4
52.4
49.7
50.9

Bottom
55.8
Middle

77.2

Top

Wide
55.7
52.5
58.9
76.2
78.4
82.1
54.0
52.1
49.9

51.5
61.5
Anova: Two-Factor With Replication
SUMMARY

Reg

Wide

Total

Bottom

Count
Sum
Average
Variance

3
167.7
55.9
5.07

3
167.1
55.7
10.24

6
334.8
55.8
6.136

3
226.5
75.5
6.51

3
236.7
78.9
8.89

6
463.2
77.2
9.628

3
153
51
1.83

3
156
52
4.21

6
309
51.5
2.716

Middle

Count
Sum
Average
Variance
Top

Count
Sum
Average
Variance
Total

Count
Sum
Average
Variance

9
9
547.2
559.8
60.8
62.2
129.405 165.2775

ANOVA
Source of Variation
Sample
Columns
Interaction
Within

SS
2273.88
8.82
10.08
73.5

df
2
1
2
12

MS
1136.94
8.82
5.04
6.125

Total

2366.28

17

Height --> 3 level --> 2 dummy variabel


x1= 1 for bottom
x2=1 for middle
x1=x2=0 for top
width --> 2 level --> 1 dummy variabel
x3= 1 for reg
x3=0 for wide
The complete model:
y=bo + b1x1+b2x2+b3x3 +b4x1x3+b5x2x3
y
Reg

x1

x2

58.2
53.7
55.8
73.0
78.1
75.4
52.4
49.7
50.9
55.7
52.5
58.9
76.2
78.4
82.1
54.0
52.1
49.9

Wide

1
1
1
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0

x1*x3
0
0
0
1
1
1
0
0
0
0
0
0
1
1
1
0
0
0

1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

SS
2292.78
73.5
2366.28

MS
458.556
6.125

Regression for Complete model


SUMMARY OUTPUT
Regression Statistics
Multiple R
0.984347
R Square
0.968939
Adjusted R Square
0.955996
Standard Error
2.474874
Observations
18
ANOVA
df
Regression
Residual
Total

5
12
17

Intercept
x1
x2
x3
x1*x3
x2*x3

Coefficients
Standard Error t Stat
52 1.428869 36.39242
3.7 2.020726 1.831025
26.9 2.020726 13.31205
-1 2.020726 -0.494872
1.2 2.857738 0.419913
-2.4 2.857738 -0.839825

Examine the interaction,--> we ommite the b's for interaction --> reduce
y=bo + b1x1+b2x2+b3x3
Regression for reduced model:
SUMMARY OUTPUT
Regression Statistics
Multiple R
0.982181
R Square
0.964679
Adjusted R Square
0.95711
Standard Error
2.443358
Observations
18
ANOVA
df
Regression
Residual
Total

Intercept
x1
x2
x3

3
14
17

SS
2282.7
83.58
2366.28

MS
760.9
5.97

Coefficients
Standard Error t Stat
52.2 1.15181 45.31997
4.3 1.410674 3.048189
25.7 1.410674 18.21825
-1.4 1.15181 -1.215478

F-testing
Ho b4=b5=0
(no interaction)
Ha at least one of b4 or b5 =/= 0
(interaction exist)
F= finv(alfa, df1,df2)
F-critical
alpha=
0.05
df1= number beta tested= b4 and b5 =
df2= df of MSE_complete model=
F_critical=
3.885294
F_calculated for reduced model
SSEr=
83.58
SSEc=
73.5
MSEc=
6.125

2
12

F_cal=((SSEr-SSEc)/#b tested)/MSEc
F_cal=
0.822857
<
Conclusion: we failed to reject Ho ==> there is no interaction between "h

Testing the significance of factor 2


Reduced model= y=bo + b1x1 + b2x2
Regression:
SUMMARY OUTPUT
Regression Statistics
Multiple R
0.984025
R Square
0.968305
Adjusted R Square
0.958552
Standard Error
2.401922
Observations
18
ANOVA
df
Regression
Residual
Total

Intercept
x1
x2
x1*x3
x2*x3

4
13
17

SS
MS
2291.28
572.82
75 5.769231
2366.28

Coefficients
Standard Error t Stat
51.5 0.980581 52.5199
4.2 1.698416 2.472893
27.4 1.698416 16.13268
0.2 1.961161 0.10198
-3.4 1.961161 -1.733667

F_test
Ho= b3=0
Ha at least one of them =/= 0
F_critical=finv(alpha, df1; df2)
alpha=
0.05
df1= # b tested=
1
df2= df for MSE=
12
F_critical=
4.747225
F_cal=

0.244898 <

4.747225

1.44 0.253295 4.747225

SSEr=
SSEc=
MSEc=
df1=

89.5555
43.333
2.40741
4

df2=

18

F_calc=
4.800024 >
2.927744
F_crit=
2.927744
Prob for F=
0.008208 <
0.05
Ho= b5=b6=b7=b8=0 (no interaction)
ha at least on of them =/= 0 (there is an interaction)

F-Calc > F_crit ==> we reject Ho ==> there is interaction between Supp

F
P-value
F crit
185.6229 9.42E-010 3.885294 significant
1.44 0.253295 4.747225 non significant
0.822857 0.462498 3.885294 non significant

x2*x3

x3
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0

F Significance F
74.86629 1.26E-008

1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0

P-value Lower 95%Upper 95%


Lower 95,0%
Upper 95,0%
1.19E-013 48.88676 55.11324 48.88676 55.11324
0.092026 -0.702784 8.102784 -0.702784 8.102784
1.51E-008 22.49722 31.30278 22.49722 31.30278
0.629627 -5.402784 3.402784 -5.402784 3.402784
0.68197 -5.026476 7.426476 -5.026476 7.426476
0.417425 -8.626476 3.826476 -8.626476 3.826476

b's for interaction --> reduced model

F Significance F
127.4539 2.12E-010

P-value Lower 95%Upper 95%


Lower 95,0%
Upper 95,0%
1.37E-016 49.72961 54.67039 49.72961 54.67039
0.008681 1.274406 7.325594 1.274406 7.325594
3.79E-011 22.67441 28.72559 22.67441 28.72559
0.244284 -3.870387 1.070387 -3.870387 1.070387

(interaction exist)

3.885294
e is no interaction between "height" factor and "width" factor.

F Significance F
99.2888 1.32E-009

P-value Lower 95%Upper 95%


Lower 95,0%
Upper 95,0%
1.59E-016 49.38158 53.61842 49.38158 53.61842
0.027982 0.530796 7.869204 0.530796 7.869204
5.61E-010 23.7308 31.0692 23.7308 31.0692
0.920328 -4.036832 4.436832 -4.036832 4.436832
0.106612 -7.636832 0.836832 -7.636832 0.836832

factor 2 (width) is not significant

is interaction between Supply (S) and Ratio

x1=
x2=

Supply
ratio

complete model
y=bo + b1x1+b2x2+b3x1^2+b4x2^2+b5x1*x2+b6x1*x2^2+b7x1^2*x2+b8x1^2*x2^2
x1

x2
15
15
15
15
15
15
15
15
15
18
18
18
18
18
18
18
18
18
21
21
21
21
21
21
21
21
21

x1^2
0.5
0.5
0.5
1
1
1
2
2
2
0.5
0.5
0.5
1
1
1
2
2
2
0.5
0.5
0.5
1
1
1
2
2
2

Regression
SUMMARY OUTPUT
Regression Statistics
Multiple R 0.795467
R Square 0.632768
Adjusted R 0.469554
Standard E 1.551582

x2^2
225
225
225
225
225
225
225
225
225
324
324
324
324
324
324
324
324
324
441
441
441
441
441
441
441
441
441

x1*x2
0.25
0.25
0.25
1
1
1
4
4
4
0.25
0.25
0.25
1
1
1
4
4
4
0.25
0.25
0.25
1
1
1
4
4
4

7.5
7.5
7.5
15
15
15
30
30
30
9
9
9
18
18
18
36
36
36
10.5
10.5
10.5
21
21
21
42
42
42

x1*x2^2 x1^2*x2 x1^2*x2^2 y


3.75
112.5
56.25
3.75
112.5
56.25
3.75
112.5
56.25
15
225
225
15
225
225
15
225
225
60
450
900
60
450
900
60
450
900
4.5
162
81
4.5
162
81
4.5
162
81
18
324
324
18
324
324
18
324
324
72
648
1296
72
648
1296
72
648
1296
5.25
220.5
110.25
5.25
220.5
110.25
5.25
220.5
110.25
21
441
441
21
441
441
21
441
441
84
882
1764
84
882
1764
84
882
1764

23
20
21
22
20
19
18
18
16
22
19
20
24
25
22
21
23
20
19
18
21
20
19
22
20
22
24

Observatio

27

ANOVA
df
Regression
Residual
Total

Intercept
x1
x2
x1^2
x2^2
x1*x2
x1*x2^2
x1^2*x2
x1^2*x2^2

SS
MS
F Significance F
8 74.66667 9.333333 3.876923 0.00808
18 43.33333 2.407407
26
118

Coefficients
Standard Error t Stat
245.3333 130.4967 1.879997
-25.07407 14.71842 -1.703584
-534.3333 252.4553 -2.116546
0.679012 0.408373 1.662727
192.6667 97.17011 1.982777
60.55556 28.47387 2.126706
-22.14815 10.9596 -2.020891
-1.666667 0.790027 -2.109633
0.617284 0.304082 2.029995

P-value Lower 95%Upper 95%


Lower 95,0%
Upper 95,0%
0.076394 -28.82996 519.4966 -28.82996 519.4966
0.105661 -55.99633 5.848186 -55.99633 5.848186
0.04849 -1064.722 -3.944325 -1064.722 -3.944325
0.113681 -0.178947 1.536972 -0.178947 1.536972
0.062866 -11.48016 396.8135 -11.48016 396.8135
0.047531 0.734173 120.3769 0.734173 120.3769
0.058422 -45.17341 0.877113 -45.17341 0.877113
0.049153 -3.326452 -0.006882 -3.326452 -0.006882
0.057403 -0.021568 1.256136 -0.021568 1.256136

Reduced model for testing interaction:


y=bo + b1x1+b2x2+b3x1^2+b4x2^2
Regression:
SUMMARY OUTPUT
Regression Statistics
Multiple R 0.490973
R Square 0.241055
Adjusted R 0.103065
Standard E 2.017599
Observatio
27
ANOVA
df
Regression
Residual
Total

Intercept
x1
x2
x1^2
x2^2

SS
MS
F Significance F
4 28.44444 7.111111 1.746898 0.175711
22 89.55556 4.070707
26
118

Coefficients
Standard Error t Stat
-43.48148 29.32961 -1.482512
6.814815 3.298537 2.066011
5.666667 4.358513 1.300138
-0.185185 0.09152 -2.023436
-2.296296 1.677592 -1.368805

Ho b5=b6=b7=b8=0 (no interaction)


Ha at least one of them =/= 0
F_critical = finv(alpha; df1; df2)
alpha=
0.05
df1= #b tested=
4
df2= df of MSEc=
18
F_critical =
2.927744

P-value Lower 95%Upper 95%


Lower 95,0%
Upper 95,0%
0.152388 -104.3074 17.3444 -104.3074 17.3444
0.050801 -0.025932 13.65556 -0.025932 13.65556
0.207011 -3.372335 14.70567 -3.372335 14.70567
0.055344 -0.374986 0.004616 -0.374986 0.004616
0.184876 -5.77541 1.182817 -5.77541 1.182817

SSEr=
SSEc=
MSEc=
df1=
df2=
F_Calc=

89.55556
43.33333
2.407407
4
18
4.8 >
2.927744 ==> we reject Ho
there is significant interaction between S and R.

Upper 95,0%

Upper 95,0%

Vous aimerez peut-être aussi