HW10 Final

You might also like

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

A) 1 2 3 4 5 6

27 29 34 34 28 28
31 28 36 34 28 26
26 37 34 43 26 29
32 24 41 44 35 25
39 35 30 40 31 35
37 40 44 47 30 34
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

B) step 1 H0 mean Puolse rate of the individual of 6 group are equal


H1 mean pulse rate of the individual of 6 group are not eqaul

step2 level og significant 5%

step 3 test stat: f test single factor anova

Anova: Single Factor

SUMMARY
Groups Count Sum Average Variance
1 13 415 31.92308 24.57692
2 12 373 31.08333 32.08333
3 10 358 35.8 28.17778
4 10 380 38 43.55556
5 12 354 29.5 36.09091
6 11 317 28.81818 22.56364

ANOVA
Source of Variation SS df MS F P-value F crit
Between Groups 694.4386 5 138.8877 4.494101 0.001471 2.363128
Within Groups 1916.076 62 30.90445

Total 2610.515 67

step 4 decision . We reject H0 when 0 value is smaller than alpha


since p value is 0.001<0.05 we reject H0 so we can conclude that the mean pulse rate of the
C) dummy coding
variable
group x1 x2 x3 x4 x5
group 1 1 0 0 0 0
group 2 0 1 0 0 0
group 3 0 0 1 0 0
group 4 0 0 0 1 0
group 5 0 0 0 0 1
group 6 0 0 0 0 0

pulse rates
Y X1 X2 X3 X4 X5
27 1 0 0 0 0
31 1 0 0 0 0
26 1 0 0 0 0
32 1 0 0 0 0
39 1 0 0 0 0
37 1 0 0 0 0
38 1 0 0 0 0
39 1 0 0 0 0
30 1 0 0 0 0
28 1 0 0 0 0
27 1 0 0 0 0
27 1 0 0 0 0
34 1 0 0 0 0
29 0 1 0 0 0
28 0 1 0 0 0
37 0 1 0 0 0
24 0 1 0 0 0
35 0 1 0 0 0
40 0 1 0 0 0
40 0 1 0 0 0
31 0 1 0 0 0
30 0 1 0 0 0
25 0 1 0 0 0
29 0 1 0 0 0
25 0 1 0 0 0
34 0 0 1 0 0
36 0 0 1 0 0
34 0 0 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 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
t the mean pulse rate of the individual of 6 group are not equal.
SUMMARY OUTPUT

Regression Statistics
Multiple R 0.515767
R Square 0.266016
Adjusted R 0.206824
Standard E 5.559177
Observatio 68

ANOVA
df SS MS F Significance F
Regression 5 694.4386 138.8877 4.4941005166 0.001471
Residual 62 1916.076 30.90445
Total 67 2610.515
question D
Coefficients
Standard Error t Stat P-value Lower 95%Upper 95% Significant?
Intercept 28.818 1.676 17.193 0.000 25.468 32.169 yes
X1 3.105 2.277 1.363 0.178 -1.448 7.657 no
X2 2.265 2.321 0.976 0.333 -2.374 6.904 no
X3 6.982 2.429 2.874 0.006 2.126 11.837 yes
X4 9.182 2.429 3.780 0.000 4.326 14.037 yes
X5 0.682 2.321 0.294 0.770 -3.957 5.320 no
SUMMARY OUTPUT

Regression Statistics
Multiple R 0.515767
R Square 0.266016
Adjusted R 0.206824
Standard E 5.559177
Observatio 68

ANOVA
df SS MS F Significance F
Regression 5 694.4386 138.8877 4.4941005166 0.001471
Residual 62 1916.076 30.90445
Total 67 2610.515

Coefficients
Standard Error t Stat P-value Lower 95%Upper 95% significant?
Intercept 31.923 1.542 20.705 0.000 28.841 35.005 YES
x2 -0.840 2.225 -0.377 0.707 -5.288 3.609 YES
x3 3.877 2.338 1.658 0.102 -0.797 8.551 YES
x4 6.077 2.338 2.599 0.012 1.403 10.751 YES
x5 -2.423 2.225 -1.089 0.280 -6.872 2.026 YES
x6 -3.105 2.277 -1.363 0.178 -7.657 1.448 YES
question E
meaning
significance. Mean of pulse rate of group 6 is different from 0
indiffernece
indifferent
significance. Difference between Mean of pulse rate of group 3 and group 6 is different from 0
significance. Difference between Mean of pulse rate of group 4 and group 6 is different from 0
indifferent
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
Number of pronotions Percent discount Expec
1 40 4.10 4.50
1 20 4.94 4.59
3 40 4.07 4.13
3 20 4.88 4.80

percent discount 20 percent discount 40


N1 4.94 4.10
4.59 4.50
4.58 4.47
4.48 4.42
4.55 4.56
4.53 4.69
4.59 4.42
4.66 4.17
4.73 4.31
5.24 4.59
N3 4.88 4.07
4.80 4.13
4.46 4.25
4.73 4.23
3.96 4.57
4.42 4.33
4.30 4.17
4.68 4.47
4.45 4.60
4.56 4.02
Percent discount 20 percent discount 40
N1 4.69 4.42
N3 4.52 4.28
percent discount 20 percent discount 40
N1 4.94 4.10
4.59 4.50
4.58 4.47
4.48 4.42
4.55 4.56
4.53 4.69
4.59 4.42
4.66 4.17
4.73 4.31
5.24 4.59
N3 4.88 4.07
4.80 4.13
4.46 4.25
4.73 4.23
3.96 4.57
4.42 4.33
4.30 4.17
4.68 4.47
4.45 4.60
4.56 4.02
Expected price (S)
4.47 4.42 4.56 4.69 4.42 4.17 4.31
4.58 4.48 4.55 4.53 4.59 4.66 4.73
4.25 4.23 4.57 4.33 4.17 4.47 4.60
4.46 4.73 3.96 4.42 4.30 4.68 4.45

a)
step 1 H0A there is NO promotion effect on satisfacion rate
H0B there is NO promotion effect on percent discount
H0AB there is NO interaction effect of promotion and discount on satisfaction rate

H1A there is promotion effect on satisfacion rate


H1B there is promotion effect on percent discount
H1AB there is interaction effect of promotion and discount on satisfaction rate

step2 level og significant 5%

step3 test stat: f test two factor ANOVA with replication

Anova: Two-Factor With Replication

SUMMARY percent discount 20 percent di Total


N1
Count 10 10 20
Sum 46.89 44.23 91.12
Average 4.689 4.423 4.556
Variance 0.0543211111111111 0.034134 0.06052

N3
Count 10 10 20
Sum 45.24 42.84 88.08
Average 4.524 4.284 4.404
Variance 0.0732933333333333 0.041627 0.069594

Total
Count 20 20
Sum 92.13 87.07
Average 4.6065 4.3535
Variance 0.0676134210526316 0.040971
ANOVA
Source of Variation SS df MS F P-value F crit
Sample 0.231040000000001 1 0.23104 4.544106 0.039928 4.113165
Columns 0.640090000000002 1 0.64009 12.58932 0.0011 4.113165
Interaction 0.00168999999999908 1 0.00169 0.033239 0.856358 4.113165
Within 1.83038 36 0.050844

Total 2.7032 39

there is no interaction effect

b) plot the grah of the mena levels of these two factors using horizontal axis for promotion

Graph of percent discount vs number of promotion

4.8
4.7
4.6
4.5
4.4
4.3
4.2
4.1
4
Percent discount 20 percent discount 40

N1 N3

c) test the effect of promotion frequency


Dummy coding
N1
N1 1
N3 0

Percent discount 20
percentdiscount 20 4.69
percentdiscount 20 4.52
interation
y20
N1 N1*Y20

rating N1 Y20 N1*y20


4.94 1 1 1
4.59 1 1 1
4.58 1 1 1
4.48 1 1 1
4.55 1 1 1
4.53 1 1 1
4.59 1 1 1
4.66 1 1 1
4.73 1 1 1
5.24 1 1 1
4.10 1 0 0
4.50 1 0 0
4.47 1 0 0
4.42 1 0 0
4.56 1 0 0
4.69 1 0 0
4.42 1 0 0
4.17 1 0 0
4.31 1 0 0
4.59 1 0 0
4.88 0 1 0
4.80 0 1 0
4.46 0 1 0
4.73 0 1 0
3.96 0 1 0
4.42 0 1 0
4.30 0 1 0
4.68 0 1 0
4.45 0 1 0
4.56 0 1 0
4.07 0 0 0
4.13 0 0 0
4.25 0 0 0
4.23 0 0 0
4.57 0 0 0
4.33 0 0 0
4.17 0 0 0
4.47 0 0 0
4.60 0 0 0
4.02 0 0 0
SUMMARY OUTPUT

Regression Statistics
Multiple R 0.568228817771468
R Square 0.32288398934596
Adjusted R Square 0.26645765512479
Standard Error 0.225485895099647
Observations 40

ANOVA
df SS MS F Significance F
Regression 3 0.87282 0.29094 5.722222 0.002616
Residual 36 1.83038 0.050844
Total 39 2.7032

Coefficients Standard Error t Stat P-value Lower 95%Upper 95%


Intercept 4.28 0.07 60.08 0.00 4.14 4.43
N1 0.14 0.10 1.38 0.18 -0.07 0.34
Y20 0.24 0.10 2.38 0.02 0.04 0.44
N1*y20 0.03 0.14 0.18 0.86 -0.26 0.32
4.59
5.24
4.02
4.56

satisfaction rate

faction rate
significant?
yes
yes
No
significant?
yes
no
yes
no

You might also like