Max believes that the sales of coffee at his coffee shop depend upon the weather. He has taken a sample of 5 days. Below you are given the results of the sample.
Cups of Coffee Sold Temperature
350 50
200 60
210 70
100 80
60 90
40 100
A. Which variable is the dependent variable?
B. Compute the least squares estimated line.
C. Compute the correlation coefficient between temperature and the sales of coffee.
D. Predict sales of a 90 degree day.

Respuesta :

Answer:

1. cups of coffee sold

2.Y = 605.7 - 5.943x

3. -0.952

4. 70.84

Step-by-step explanation:

1. the dependent variable in this question is the cups of coffee sold

2. least square estimation line

Y = a+bx

we have y as the cups of coffee sold

x as temperature.

first we will have to solve for a and then b

∑X = 450

∑Y = 960

∑XY = 61600

∑X² = 35500

∑Y² = 221800

a = ∑y∑x²-∑x∑xy/n∑x²-(∑x)²

a = 960 * 35500-450*61600/6*35500-450²

a = 6360000/10500

= 605.7

b = n∑xy - ∑x∑y/n∑x²-(∑x)²

= 6*61600 - 450*960/6*35500 - 450²

= -5.943

the regression line

Y = a + bx

Y = 605.7 - 5.943x

3. we are to find correlation coefficient

r = n∑xy - ∑x∑y multiplied by√(n∑x²-(∑x)² * (n∑y² - (∑y)²)

= 6*61600 -960*450/√(6*35500 - 450²)*(6*221800 - 960²)

=-62400/√4296600000

= -62400/65548.5

= -0.952

4. we have to predict sales of a 90 degree day fro the regression line

Y = 605.7 - 5.943x

y = 605.7 - 5.943(90)

y = 605.7 - 534.87

= 70.84