0% found this document useful (0 votes)
61 views

Worksheet 7 Solution

The document discusses two examples of simple linear regression analysis: 1) Energy drink consumption and exam scores for 10 college students showed a poor positive relationship (r=0.145) and the linear relationship was classified as weak. The coefficient of determination (r^2) was 0.021, meaning 2.1% of variability in exam scores was explained by energy drink consumption. 2) Candy bar sales data from 6 cities with varying prices showed a strong negative relationship between price and sales (r=-0.8854). The estimated slope was -48.19, meaning sales were estimated to decrease by $48.19 if price increased by $1. The line of best fit equation was estimated to be

Uploaded by

khadijah shaban
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

Worksheet 7 Solution

The document discusses two examples of simple linear regression analysis: 1) Energy drink consumption and exam scores for 10 college students showed a poor positive relationship (r=0.145) and the linear relationship was classified as weak. The coefficient of determination (r^2) was 0.021, meaning 2.1% of variability in exam scores was explained by energy drink consumption. 2) Candy bar sales data from 6 cities with varying prices showed a strong negative relationship between price and sales (r=-0.8854). The estimated slope was -48.19, meaning sales were estimated to decrease by $48.19 if price increased by $1. The line of best fit equation was estimated to be

Uploaded by

khadijah shaban
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

College of Engineering and Architecture

Chapter 10
Work Sheet # 7

1) Energy drink consumption has continued to gain in popularity since the


1997 debut of Red Bull, the current leader in the energy drink market.
Given below are the exam scores and the number of 12-ounce energy drinks
consumed within a week prior to the exam of 10 college students.

Exam ScoresY Number of Drinks X X2 Y2 XY


75 5 25 5625 375
92 3 9 8464 276
84 2 4 7056 168
64 4 16 4096 256
64 2 4 4096 128
86 7 49 7396 602
81 3 9 6561 243
61 0 0 3721 0
73 1 1 5329 73
93 0 0 8649 0
773 27 117 60993 2121
Referring to the previous table , what is the sample correlation coefficient
between the exam scores and the number of energy drinks consumed?‫ــــــــــــــــــــــــ‬

(∑ 𝑥)2 272
𝑆𝑆𝑥 = ∑ 𝑥 2 − 𝑛
= 117 − 10
= 44.1
2
(𝑦) 7732
𝑆𝑆𝑦 = ∑ 𝑦 2 − = 60993 − = 1240.1
𝑛 10
∑𝑥∑𝑦 27 × 773
𝑆𝑆𝑥𝑦 = ∑ 𝑥𝑦 − = 2121 − = 33.9
𝑛 10
𝑠𝑠𝑥𝑦 33.9
𝑟= = = 0.145 𝑃𝑜𝑜𝑟 𝑎𝑛𝑑 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒 𝑟𝑒𝑙𝑎𝑡𝑖𝑜𝑛𝑠ℎ𝑖𝑝
√𝑠𝑠𝑥 𝑠𝑠𝑦 √44.1 × 1240.1

Collage of Engineering and Architecture

Ms. Jumana Shaath


College of Engineering and Architecture

a. Referring to the previous table , how will you classify the linear relationship
between the exam scores and the number of energy drinks consumed?
i. Weak
ii. Strong
iii. Moderate
iv. No relationship

b. Referring to the previous table , what is the coefficient of determination


interpret the result ?‫ 𝑟 ــــــــــــــــــــــــ‬2 = 0.1452 =
0.021, 2.1% 𝑜𝑓 𝑣𝑎𝑟𝑖𝑎𝑣𝑖𝑙𝑖𝑡𝑦 𝑖𝑛 𝑦 𝑖𝑠 𝑒𝑥𝑝𝑙𝑎𝑖𝑛𝑒𝑑 𝑏𝑦 𝑥

2) A candy bar manufacturer is interested in trying to estimate how sales are


influenced by the price of their product. To do this, the company randomly
chooses 6 small cities and offers the candy bar at different prices. Using
candy bar sales as the dependent variable, the company will conduct a
simple linear regression on the data below:

City Price($) X Sales Y X2 Y2 XY


River Falls 1.3 100 1.69 10000 130
Hudson 1.6 90 2.56 8100 144
Ellsworth 1.8 90 3.24 8100 162
Prescott 2 40 4 1600 80
Rock Elm 2.4 38 5.76 1444 91.2
Stillwater 2.9 32 8.41 1024 92.8
Total 12 390 25.66 30268 700

Collage of Engineering and Architecture

Ms. Jumana Shaath


College of Engineering and Architecture
a. Referring to the previous table , what is the estimated slope for the
candy bar price and sales data?

(∑ 𝑥)2 122
𝑆𝑆𝑥 = ∑ 𝑥 2 − 𝑛
= 25.66 − 6
= 1.66
(𝑦)2 3902
𝑆𝑆𝑦 = ∑ 𝑦 2 − = 30268 − = 4918
𝑛 6
∑𝑥∑𝑦 12 × 390
𝑆𝑆𝑥𝑦 = ∑ 𝑥𝑦 − = 700 − = −80
𝑛 10

𝑆𝑆𝑥𝑦 −80
𝐵̂1 = = = −48.19
𝑆𝑆𝑥𝑥 1.66

b. Find the equation of the line of best fit.

𝛽̂0 = 𝑦̄ − 𝛽̂1 𝑥̄ = 65 − (−48.19)(2) = 161.39

𝑦̂ = 161.39 − 48.19𝑥

c. Referring to the previous table, what is the estimated mean change in


the sales of the candy bar if price goes up by $1.00?
The sales will decrease by $48.19

Collage of Engineering and Architecture

Ms. Jumana Shaath


College of Engineering and Architecture

d. Referring to the previous table, what is the coefficient of correlation


for these data?
𝑠𝑠𝑥𝑦 −80
𝑟= = = −0.8854 𝑁𝑒𝑔𝑎𝑡𝑖𝑣𝑒 𝑎𝑛𝑑 𝑠𝑡𝑟𝑜𝑛𝑔 𝑟𝑒𝑙𝑡𝑖𝑜𝑛𝑠ℎ𝑖𝑝
√𝑠𝑠𝑥 𝑠𝑠𝑦 √1.66 × 4918

Collage of Engineering and Architecture

Ms. Jumana Shaath

You might also like