Professional Documents
Culture Documents
Guide ECON306 Solution HW 10
Guide ECON306 Solution HW 10
Guide ECON306 Solution HW 10
27 29 34 34 28 28
31 28 36 34 28 26 Step 2.
26 37 34 43 26 29
32 24 41 44 35 25 Step 3.
39 35 30 40 31 35
37 40 44 47 30 34 Step 4.
38 40 44 34 34 37
39 31 32 31 34 28
30 30 32 45 26 21
28 25 31 28 20 28
27 29 41 26
27 25 21
34
Y X2 X3 X4 X5 X6
27 0 0 0 0 0
31 0 0 0 0 0
26 0 0 0 0 0
32 0 0 0 0 0
39 0 0 0 0 0
37 0 0 0 0 0
38 0 0 0 0 0 Group 1
39 0 0 0 0 0
30 0 0 0 0 0
28 0 0 0 0 0
27 0 0 0 0 0
27 0 0 0 0 0
34 0 0 0 0 0
29 1 0 0 0 0
28 1 0 0 0 0
37 1 0 0 0 0
24 1 0 0 0 0
35 1 0 0 0 0
40 1 0 0 0 0
40 1 0 0 0 0
31 1 0 0 0 0
30 1 0 0 0 0
25 1 0 0 0 0
29 1 0 0 0 0
25 1 0 0 0 0
34 0 1 0 0 0
36 0 1 0 0 0
34 0 1 0 0 0
41 0 1 0 0 0
30 0 1 0 0 0
44 0 1 0 0 0
44 0 1 0 0 0
32 0 1 0 0 0
32 0 1 0 0 0
31 0 1 0 0 0
34 0 0 1 0 0
34 0 0 1 0 0
43 0 0 1 0 0
44 0 0 1 0 0
40 0 0 1 0 0
47 0 0 1 0 0
34 0 0 1 0 0
31 0 0 1 0 0
45 0 0 1 0 0
28 0 0 1 0 0
28 0 0 0 1 0
28 0 0 0 1 0
26 0 0 0 1 0
35 0 0 0 1 0
31 0 0 0 1 0
30 0 0 0 1 0
34 0 0 0 1 0
34 0 0 0 1 0
26 0 0 0 1 0
20 0 0 0 1 0
41 0 0 0 1 0
21 0 0 0 1 0
28 0 0 0 0 1
26 0 0 0 0 1
29 0 0 0 0 1
25 0 0 0 0 1
35 0 0 0 0 1
34 0 0 0 0 1
37 0 0 0 0 1
28 0 0 0 0 1
21 0 0 0 0 1
28 0 0 0 0 1
26 0 0 0 0 1
H0: mu_1 = mu_2 = … = mu_6
Alpha = 5%
SUMMARY
Groups Count Sum Average Variance
Group 1 13 415 31.92307692308 24.5769231
Group 2 12 373 31.08333333333 32.0833333
Group 3 10 358 35.8 28.1777778
Group 4 10 380 38 43.5555556
Group 5 12 354 29.5 36.0909091
Group 6 11 317 28.81818181818 22.5636364
ANOVA
Source of Variation SS df MS F P-value
Between Groups 694.438598656247 5 138.8877197312 4.49410052 0.00147093775
Within Groups 1916.07610722611 62 30.90445334236
Total 2610.51470588235 67
Regression Statistics
0.515767359223086 0.5157673592231 0.515767359223
0.266015968839956 0.26601596884 0.26601596884
0.206823708262533 0.2068237082625 0.206823708263
5.55917739799303 5.559177397993 5.559177397993
68 68 68
ANOVA
df SS MS F
Regression 5 694.4385986562 138.88772 4.4941005166
Residual 62 1916.076107226 30.9044533
Total 67 2610.514705882
X3
X4
X2
X5
Question E.
Alpha: 5%
Test Statistic:
SUMMARY OUTPUT
Regression Statistics
Multiple R 0.5157673592231
R Square 0.26601596884
Adjusted R Square 0.2068237082625
Standard Error 5.559177397993
Observations 68
ANOVA
df SS MS F
Regression 5 694.4385986562 138.88772 4.4941005166
Residual 62 1916.076107226 30.9044533
Total 67 2610.514705882
X4
X5
X6
Alpha: 5%
Test Statistic:
Significance F
0.00147093775064663
Meaning.
The intercept is different from 0, hence, the Mean of Group 6 (reference level) is different from 0.
MSE= 30.9
Significance F
0.00147093775064664
Meaning.
The intercept is different from 0, hence, the Mean of Group 1 (reference level) is different from 0.
MSE= 30.9044533423566
20
15
10
5
0
0 20 40 60
Sample Percentile
Different from 0?
Mean of Group 6
Mean of Group 1 - Mean of Group 6
Mean of Group 2 - Mean of Group 6
Mean of Group 3 - Mean of Group 6
Mean of Group 4 - Mean of Group 6
Mean of Group 5 - Mean of Group 6
) is different from 0.
Reject
(I-1)*F(alpha, I-1,H0
n- if S-stat > (I-1)*F(alpha, I-1, n-I)
11.8156417097617 We do not reject H0
11.8156417097617 We do not reject H0
11.8156417097617 We do not reject H0
11.8156417097617 We reject H0
11.8156417097617 We do not reject H0
Different from 0?
YES
NO
NO
YES
NO
NO
) is different from 0.
Reject H0 if S-stat > (I-1)*F(alpha, I-1, n-I)
We do not reject H0
We do not reject H0
We do not reject H0
We do not reject H0
We do not reject H0
PROBABILITY OUTPUT
Normal Probability Plot
Percentile Y
0.735294 20
2.205882 21
3.676471 21
5.147059 24
6.617647 25
8.088235 25
9.558824 25
11.02941 26
12.5 26
13.97059 26
15.44118 26
16.91176 26
20 40 60 80 100 120 18.38235 27
Sample Percentile 19.85294 27
21.32353 27
22.79412 28
24.26471 28
25.73529 28
27.20588 28
28.67647 28
30.14706 28
31.61765 28
33.08824 28
34.55882 29
36.02941 29
37.5 29
38.97059 30
40.44118 30
41.91176 30
43.38235 30
44.85294 31
46.32353 31
47.79412 31
49.26471 31
50.73529 31
52.20588 32
53.67647 32
55.14706 32
56.61765 34
58.08824 34
59.55882 34
61.02941 34
62.5 34
63.97059 34
65.44118 34
66.91176 34
68.38235 34
69.85294 35
71.32353 35
72.79412 35
74.26471 36
75.73529 37
77.20588 37
78.67647 37
80.14706 38
81.61765 39
83.08824 39
84.55882 40
86.02941 40
87.5 40
88.97059 41
90.44118 41
91.91176 43
93.38235 44
94.85294 44
96.32353 44
97.79412 45
99.26471 47
Solution.
First, we need to rearrange the data in the format that we can use two-factor ANOVA
We use row for factor "Promotion Frequency" and column for "Percent Discount"
What are recorded are the values of the expected prices ($)
Total
Count
Sum
Average
Variance
ANOVA
Source of Variation
Sample (Promotion)
Columns (Discount)
Interaction
Within
Total
Decision.
Step 5. Conclusion.
Percent Discount
Promotion
Z
4.1
4.5
4.47
4.42
4.56
4.69
4.42
4.17
4.31
4.59
4.94
4.59
4.58
4.48
4.55
4.53
4.59
4.66
4.73
5.24
4.07
4.13
4.25
4.23
4.57
4.33
4.17
4.47
4.6
4.02
4.88
4.8
4.46
4.73
3.96
4.42
4.3
4.68
4.45
4.56
ere is no effect of Prmomotion Frequency on the Expected Prices that clients will pay
ere is no effect of Percent Discount on the Expected Prices that clients will pay
here is no effect of interaction between the Prmomotion Frequency and Percent Discount on the Expected Prices that clients w
ere is effect of Prmomotion Frequency on the Expected Prices that clients will pay
re is effect of Percent Discount on the Expected Prices that clients will pay
here is effect of interaction between the Prmomotion Frequency and Percent Discount on the Expected Prices that clients will
5%
40 20 Total
10 10 20
44.23 46.89 91.12
4.423 4.689 4.556
0.03413444 0.05432111 0.06052
10 10 20
42.84 45.24 88.08
4.284 4.524 4.404
0.04162667 0.07329333 0.06959368
20 20
87.07 92.13
4.3535 4.6065
0.04097132 0.06761342
2.7032 39
40 20
Coding Coding
X Y
1 1 Discount 40 1
3 0 20 0
1 1 1 df SS
1 1 1 Regression 3 0.872820000000001
1 0 0 Residual 36 1.83038
1 0 0 Total 39 2.7032
1 0 0
1 0 0 Coefficients Standard Error
1 0 0 Intercept 4.524 0.0713049008756684
1 0 0 X 0.165 0.100840357882039
1 0 0 Y -0.24 0.100840357882039
1 0 0 X*Y -0.026 0.142609801751337
1 0 0
1 0 0
0 1 0
RESIDUAL OUTPUT
0 1 0
0 1 0
0 1 0 Observation Predicted Z Residuals
0 1 0 1 4.423 -0.323
0 1 0 2 4.423 0.0770000000000009
0 1 0 3 4.423 0.0470000000000006
0 1 0 4 4.423 -0.00299999999999923
0 1 0 5 4.423 0.137
0 1 0 6 4.423 0.267000000000001
0 0 0 7 4.423 -0.00299999999999923
0 0 0 8 4.423 -0.252999999999999
0 0 0 9 4.423 -0.113
0 0 0 10 4.423 0.167000000000001
0 0 0 11 4.689 0.251
0 0 0 12 4.689 -0.0990000000000002
0 0 0 13 4.689 -0.109
0 0 0 14 4.689 -0.209
0 0 0 15 4.689 -0.139
0 0 0 16 4.689 -0.159
17 4.689 -0.0990000000000002
18 4.689 -0.0289999999999999
19 4.689 0.0410000000000004
20 4.689 0.551
21 4.284 -0.214
22 4.284 -0.154
23 4.284 -0.0339999999999998
24 4.284 -0.0539999999999994
25 4.284 0.286000000000001
26 4.284 0.0460000000000003
27 4.284 -0.114
28 4.284 0.186
29 4.284 0.316
30 4.284 -0.264
31 4.524 0.356
32 4.524 0.276
33 4.524 -0.0640000000000001
34 4.524 0.206
35 4.524 -0.564
36 4.524 -0.104
37 4.524 -0.224
38 4.524 0.156
39 4.524 -0.0739999999999998
40 4.524 0.0359999999999996
Expected Prices that clients will pay
4.524
4.284
20
PROBABI
LITY
OUTPUT
Percentile Z
1.25 3.96
3.75 4.02
6.25 4.07
8.75 4.1
11.25 4.13
13.75 4.17
16.25 4.17
18.75 4.23 Normal Probability Plot
21.25 4.25 6
23.75 4.3 5
26.25 4.31 4
28.75 4.33 3
Z
31.25 4.42 2
33.75 4.42 1
36.25 4.42 0
38.75 4.45 0 20 40 60 80 100 120
41.25 4.46 Sample Percentile
43.75 4.47
46.25 4.47
48.75 4.48
51.25 4.5
53.75 4.53
56.25 4.55
58.75 4.56
61.25 4.56
63.75 4.57
66.25 4.58
68.75 4.59
71.25 4.59
73.75 4.59
76.25 4.6
78.75 4.66
81.25 4.68
83.75 4.69
86.25 4.73
88.75 4.73
91.25 4.8
93.75 4.88
96.25 4.94
98.75 5.24
Regression Analysis Model: Z = beta_0 + beta_1 X + beta_2 Y + E
SUMMA
RY
Regression Statistics
Multiple R 0.56767843
R Square 0.3222588
Adjusted R 0.28562415
Square
Standard 0.22252057
Error
Observation 40
s
ANOVA
df SS MS F
Plot
80 100 120
eta_1 X + beta_2 Y + Error
Significance
F
0.001