0% found this document useful (0 votes)
34 views13 pages

S056 - Aliasger - Prac2

The document appears to contain numerical ratings of wine across several quality dimensions including quality, clarity, aroma, body, flavor, oakiness, and region. There are 38 observations total with ratings on a scale of 0-16 for most dimensions. A regression analysis was performed to predict quality based on the other dimensions. The regression found clarity, aroma, flavor, and oakiness to be significant predictors of quality while body and region were not significant. The regression equation for predicting quality is: Quality = 3.98 + 2.35*clarity + 0.50*aroma + 1.17*flavor - 0.69*oakiness

Uploaded by

Kitr Kuli
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views13 pages

S056 - Aliasger - Prac2

The document appears to contain numerical ratings of wine across several quality dimensions including quality, clarity, aroma, body, flavor, oakiness, and region. There are 38 observations total with ratings on a scale of 0-16 for most dimensions. A regression analysis was performed to predict quality based on the other dimensions. The regression found clarity, aroma, flavor, and oakiness to be significant predictors of quality while body and region were not significant. The regression equation for predicting quality is: Quality = 3.98 + 2.35*clarity + 0.50*aroma + 1.17*flavor - 0.69*oakiness

Uploaded by

Kitr Kuli
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Quality Clarity Aroma Body Flavor Oakiness Region

9.8 1 3.3 2.8 3.1 4.1 1


12.6 1 4.4 4.9 3.5 3.9 1
11.9 1 3.9 5.3 4.8 4.7 1
11.1 1 3.9 2.6 3.1 3.6 1
13.3 1 5.6 5.1 5.5 5.1 1
12.8 1 4.6 4.7 5 4.1 1
12.8 1 4.8 4.8 4.8 3.3 1
12 1 5.3 4.5 4.3 5.2 1
13.6 1 4.3 4.3 3.9 2.9 3
13.9 1 4.3 3.9 4.7 3.9 1
14.4 1 5.1 4.3 4.5 3.6 3
12.3 0.5 3.3 5.4 4.3 3.6 2
16.1 0.8 5.9 5.7 7 4.1 3
16.1 0.7 7.7 6.6 6.7 3.7 3
15.5 1 7.1 4.4 5.8 4.1 3
15.5 0.9 5.5 5.6 5.6 4.4 3
13.8 1 6.3 5.4 4.8 4.6 3
13.8 1 5 5.5 5.5 4.1 3
11.3 1 4.6 4.1 4.3 3.1 1
7.9 0.9 3.4 5 3.4 3.4 2
15.1 0.9 6.4 5.4 6.6 4.8 3
13.5 1 5.5 5.3 5.3 3.8 3
10.8 0.7 4.7 4.1 5 3.7 2
9.5 0.7 4.1 4 4.1 4 2
12.7 1 6 5.4 5.7 4.7 3
11.6 1 4.3 4.6 4.7 4.9 2
11.7 1 3.9 4 5.1 5.1 1
11.9 1 5.1 4.9 5 5.1 2
10.8 1 3.9 4.4 5 4.4 2
8.5 1 4.5 3.7 2.9 3.9 2
10.7 1 5.2 4.3 5 6 2
9.1 0.8 4.2 3.8 3 4.7 1
12.1 1 3.3 3.5 4.3 4.5 1
14.9 1 6.8 5 6 5.2 3
13.5 0.8 5 5.7 5.5 4.8 1
12.2 0.8 3.5 4.7 4.2 3.3 1
10.3 0.8 4.3 5.5 3.5 5.8 1
13.2 0.8 5.2 4.8 5.7 3.5 1
SUMMARY OUTPUT

Regression Statistics
Quality
Multiple R 0.8489505465374
R Square 0.7207170304662
Adjusted R Square 0.6666622621693
Standard Error 1.1808931813842
Observations 38

ANOVA
df SS MS F
Regression 6 111.5586511716 18.593108528601 13.333088886961
Residual 31 43.229769881028 1.3945087058396
Total 37 154.78842105263

Coefficients Standard Error t Stat P-value


Intercept 3.9843271540092 2.2696521987679 1.7554791682057 0.0890559096898
Clarity 2.34751213975 1.7636229448337 1.3310737120011 0.1928719384563
Aroma 0.4973072815604 0.3053554151135 1.6286178562631 0.1135159525394
Body 0.2784100311707 0.3409147125102 0.8166559580862 0.4203568321182
Flavor 1.1698726482046 0.3095839376363 3.778854475257 0.0006727250425
Oakiness -0.69229034315 0.2848312377524 -2.4305281562965 0.0210578923383
Region -0.0338122554466 0.2956787647834 -0.1143546966295 0.9096940795968

RESIDUAL OUTPUT

Observation Predicted Quality Residuals


1 9.5069039572593 0.2930960427407
2 11.245010160346 1.354989839654
3 12.07472270018 -0.1747227001801
4 10.095751491536 1.0042485084636
5 13.406457789082 -0.1064577890819
6 12.905140514101 -0.1051405141009
7 13.352300718409 -0.5523007184091
8 11.617143373751 0.3828566262492
9 12.120848305026 1.4791516949738
10 12.320716578865 1.5792834211352
11 12.736014478992 1.6639855210077
12 10.773194062402 1.526805937598
13 15.632668368866 0.467331631134
14 16.469593632552 -0.369593632552
15 14.933159316321 0.5668406836789
16 13.795146856668 1.7048531433316
17 13.297705702464 0.5022942975361
18 13.844103264871 -0.0441032648707
19 12.611473984805 -1.3114739848052
20 10.736138319236 -2.8361383192356
21 15.079997914783 0.0200020852168
22 14.010787472721 -0.5107874727208
23 12.326675463443 -1.5266754634429
24 10.739877605061 -1.2398776050604
25 14.132169867065 -1.4321698670649
26 11.789501002088 -0.1895010020877
27 11.78683531686 -0.0868353168596
28 12.483373562519 -0.5833735625186
29 12.232003049266 -1.4320030492658
30 10.224913006728 -1.7249130067279
31 11.742996963137 -1.0429969631373
32 9.2310266431739 -0.1310266431739
33 10.828722019664 1.2712779803357
34 14.423468302731 0.4765316972686
35 13.013304113843 0.486695886157
36 11.506534232391 0.6934657676093
37 9.5774713709575 0.7225286290425
38 13.996148517837 -0.7961485178374
Quality = 3.98 + 2.35*claritry + 0.50*aroma + 0.28*body + 1.17*flavor - 0.69*oakiness - 0.03*region

Significance F
2.0373999355E-07

Lower 95% Upper 95% Lower 95.0% Upper 95.0%


-0.6446590240211 8.61331333203956 -0.6446590240211 8.6133133320396
-1.2494205706116 5.94444485011163 -1.2494205706116 5.9444448501116
-0.1254691934935 1.12008375661426 -0.1254691934935 1.1200837566143
-0.4168901090682 0.97371017140958 -0.4168901090682 0.9737101714096
0.538472044607 1.80127325180214 0.538472044607 1.8012732518021
-1.2732074824997 -0.111373203800238 -1.2732074824997 -0.1113732038002
-0.6368530720362 0.569228561143 -0.6368530720362 0.569228561143

H0: model is not significant


H1: model is significant
Therefore, we reject H0 in this case
oakiness - 0.03*region

at 90% CI
(0.644967267,1.694778029)
y x1 x2
476 111 68 1 111
457 92 46 1 92
540 90 50 1 90
551 107 59 1 107
575 98 50 1 98
698 150 66 1 150
545 118 54 X= 1 118
574 110 51 1 110
645 117 59 1 117
556 94 97 1 94
634 130 57 1 130
637 118 51 1 118
390 91 44 1 91
562 118 61 1 118
560 109 66 1 109

X' 1 1 1 1 1
111 92 90 107 98
68 46 50 59 50

β=(x'x)-1*x'y=
68 476
46 457
50 540
59 551
50 575
66 698
54 Y= 545
51 574
59 645
97 556
57 634
51 637
44 390
61 562
66 560

1 1 1 1 1 1 1
150 118 110 117 94 130 118
66 54 51 59 97 57 51

124.0641189
3.512036508
0.834632387
1 1 1
91 118 109
44 61 66
SUMMARY OUTPUT

Regression Statistics
y = 124.0641+3.5120x
Multiple R 0.7636296305815
R Square 0.583130212702
Adjusted R Square 0.513651914819
Standard Error 54.463170780986
Observations 15

ANOVA
df SS MS F
Regression 2 49791.156341774 24895.578170887 8.3929835714168
Residual 12 35594.843658226 2966.2369715189
Total 14 85386

Coefficients Standard Error t Stat P-value


Intercept 124.06411891806 113.24221021144 1.0955642660667 0.2947706249439
x1 3.5120365079673 0.8974658829643 3.913281356576 0.0020599891709
x2 0.8346323874392 1.1346437633172 0.7355898074997 0.4761127265308

Since, p value for x1 < 0.0


RESIDUAL OUTPUT p value for x2 > 0.05, w

Observation Predicted y Residuals


1 570.6551736483 -94.6551736483
2 485.56456747326 -28.56456747326
3 481.87902400708 58.120975992917
4 549.09533612948 1.9046638705197
5 509.97531607082 65.024683929179
6 705.95533268415 -7.955332684149
7 583.55457577993 -38.55457577992
8 552.95438655387 21.045613446132
9 584.21570120915 60.784298790847
10 535.1548922486 20.845107751403
11 628.20291103785 5.7970889621503
12 581.05067861761 55.949321382393
13 480.38326619042 -90.38326619041
14 589.397002492 -27.397002492
15 561.96183585749 -1.96183585749
y = 124.0641+3.5120x1+0.8346x2

Significance F
0.0052481051059

Lower 95% Upper 95% Lower 95.0% Upper 95.0%


-122.6694615505 370.79769938662 -122.6694615505 370.79769938662
1.556626327976 5.4674466879586 1.556626327976 5.4674466879586
-1.637544001178 3.3068087760566 -1.637544001178 3.3068087760566

Since, p value for x1 < 0.05, we reject H0


p value for x2 > 0.05, we accept H0
y x1 x2 x3 x4
78.5 7 26 6 60
74.3 1 29 15 52
104.3 11 56 8 20
87.6 11 31 8 47
95.9 7 52 6 33
109.2 11 55 9 22
102.7 3 71 17 6
72.5 1 31 22 44
93.1 2 54 18 22
115.9 21 47 4 26
83.8 1 40 23 34
113.3 11 66 9 12
109.4 10 68 8 12
SUMMARY OUTPUT
x1 x2
Regression Statistics x1 1
Multiple R 0.99114863689 x2 0.22857947 1
R Square 0.98237562041 x3 -0.824133764 -0.139242376
Adjusted R Squar 0.97356343061 x4 -0.245445107 -0.972954999
Standard Error 2.44600795559
Observations 13 x3, x1 and x4, x2 are highly negatively correlated.

ANOVA
df SS MS F Significance F
Regression 4 2667.89943757 666.974859393 111.479171821 4.75618175E-07
Residual 8 47.8636393505 5.98295491881
Total 12 2715.76307692

Coefficients Standard Error t Stat P-value Lower 95%


Intercept 62.4053692999 70.0709592085 0.89060246934 0.39913356339 -99.1785523927
x1 1.55110264751 0.74476986713 2.08266031692 0.07082168743 -0.16633974587
x2 0.51016757968 0.72378800184 0.70485774618 0.50090110347 -1.15889054556
x3 0.10190940358 0.75470904505 0.13503137964 0.89592269051 -1.63845277518
x4 -0.14406102907 0.70905206345 -0.20317412006 0.84407147329 -1.77913801945

RESIDUAL OUTPUT

Observation Predicted y Residuals


1 78.4952395815 0.0047604185
2 72.7887993003 1.51120069971
3 105.970937532 -1.67093753208
4 89.327100255 -1.72710025504
5 95.6492444382 0.25075556177
6 105.274557298 3.92544270216
7 104.148669087 -1.4486690865
8 75.6749885173 -3.17498851729
9 91.7216505228 1.37834947721
10 115.618452001 0.28154799874
11 81.8090164287 1.99098357126
12 112.327010965 0.97298903492
13 111.694334073 -2.29433407336
x3 x4

1
0.029537003 1

y = 62.41+1.55x1+0.51x2+0.10x3-0.14x4

Upper 95% Lower 95.0% Upper 95.0%


223.989290993 -99.1785523927 223.989290993
3.26854504089 -0.16633974587 3.26854504089
2.17922570493 -1.15889054556 2.17922570493
1.84227158234 -1.63845277518 1.84227158234
1.49101596131 -1.77913801945 1.49101596131

You might also like