1 of 8

Correlation & Regression

Problem 2

2 of 8

PROBLEM: The Le Fancy Schmancy Wine Company is introducing a new wine. Jane Smythe, their top data scientist, was asked to determine whether there is a relationship between price and quantity demanded as well as how a change in the price per bottle might affect quantity demanded. The data is below.

Answer the following, using MS Excel:

​

  1. Is the regression significant?
  2. Find the correlation coefficient, r. Determine if it is significant.
  3. Find the coefficient of determination, R2. Explain.
  4. Find the regression coefficients and state the regression equation.
  5. What are the meanings of the regression coefficients?
  6. Using the regression model,
    • What is your predicted demand if price = 0?
    • What is your predicted demand if price = 20?
  7. Explain the residuals.

This is the problem you got via email.

Price ($Xi)

Quantity Demanded (Yi)

12

1200

13

1150

14

1100

15

1000

17

997

18

879

19

790

21

800

22

840

24

650

25

635

30

600

40

554

50

420

75

246

3 of 8

SUMMARY OUTPUT

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

Regression Statistics

​

​

​

​

​

​

​

Multiple R

0.8914

​

​

​

​

​

​

​

R Square

0.7946

​

​

​

​

​

​

​

Adjusted R Square

0.7788

​

​

​

​

​

​

​

Standard Error

129.3980

​

​

​

​

​

​

​

Observations

15.0000

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

ANOVA

​

​

​

​

​

​

​

​

 

df

SS

MS

F

Significance F

​

​

​

Regression

1.0000

841849.0404

841849.0404

50.2781

8.1624197 E-06

​

​

​

Residual

13.0000

217669.8929

16743.8379

​

​

​

​

​

Total

14.0000

1059518.9333

 

 

 

​

​

​

​

​

​

​

​

​

​

​

​

 

Coefficients

Standard Error

t Stat

P-value

Lower 95%

Upper 95%

Lower 95.0%

Upper 95.0%

Intercept

1170.0506

63.0711

18.5513

0.0000

1033.7937

1306.3075

1033.7937

1306.3075

X Variable 1

-14.4045

2.0315

-7.0907

0.0000

-18.7931

-10.0158

-18.7931

-10.0158

The Le Fancy Schmancy Wine Company is introducing a new wine. Jane Smythe, their top data scientist, was asked to determine whether there is a relationship between price and quantity demanded as well as how a change in the price per bottle might affect quantity demanded.

a) Yes, the regression is significant. p-value= .00000816

r= .8914 What is the sign? + or - ?

R2 = 79.46%

If the slope is negative, the correlation coefficient must be negative.

b0

b1

4 of 8

  1. Is the regression significant? See the p-value on the Excel output above.

Yes. A p-value of .000008 is significant. X may be used to predict Y. In this case, Price can be used to Predict Q-demanded.

​

​

b) Find the correlation coefficient, r. Determine if it is significant.

​

Answer. r = -.8914

Let AI test r for significance. Here’s the prompt to use:

What is the p-value, given n=15, r=.925, 2-tail test?

​

Answer returned: 0.000008 (p<.01)

​

c) Find the coefficient of determination, R2. Explain.

​

R2 = 79.46% This is the percent variation in Quantity-Demanded explained by the regression (i.e., by Price per bottle).

The Le Fancy Schmancy Wine Company is introducing a new wine. Jane Smythe, their top data scientist, was asked to determine whether there is a relationship between price and quantity demanded as well as how a change in the price per bottle might affect quantity demanded.

5 of 8

d) Find the regression coefficients and state the regression equation.

​

b0 = 1170.05 and b1= -14.40

​

​

​

​

e) What are the meanings of the regression coefficients?

​

b0 , the Y-intercept, represents (theoretical) Quantity-Demanded when the Price is 0.

​

b1 , the slope, is the predicted change in Quantity-Demanded for each additional $1 in Price.

The Le Fancy Schmancy Wine Company is introducing a new wine. Jane Smythe, their top data scientist, was asked to determine whether there is a relationship between price and quantity demanded as well as how a change in the price per bottle might affect quantity demanded.

 

6 of 8

f) Using the regression model,

    • What is your predicted demand if price is 0?
    • What is your predicted demand if price per bottle is $10?

 

 

The Le Fancy Schmancy Wine Company is introducing a new wine. Jane Smythe, their top data scientist, was asked to determine whether there is a relationship between price and quantity demanded as well as how a change in the price per bottle might affect quantity demanded.

 

7 of 8

 

The Le Fancy Schmancy Wine Company is introducing a new wine. Jane Smythe, their top data scientist, was asked to determine whether there is a relationship between price and quantity demanded as well as how a change in the price per bottle might affect quantity demanded.

RESIDUAL OUTPUT

​

​

​

​

​

Observation

Predicted Y

Residuals

1

997.1972

202.8028

2

982.7927

167.2073

3

968.3883

131.6117

4

953.9838

46.0162

5

925.1749

71.8251

6

910.7704

-31.7704

7

896.3660

-106.3660

8

867.5571

-67.5571

9

853.1526

-13.1526

10

824.3437

-174.3437

11

809.9393

-174.9393

12

737.9170

-137.9170

13

593.8725

-39.8725

14

449.8279

-29.8279

15

89.7166

156.2834

 

Actual Yi

Predicted Yi

8 of 8

Any Questions?

​

​

Correlation & Regression