1 of 9

Correlation & Regression

2 of 9

PROBLEM: A company is interested in studying the relationship between the number of ads placed and sales (in millions of dollars). The data below shows the results in 15 equivalent markets.

Compute each of the following using the formulas. When you are finished, check your work using MS Excel.

  1. Find the correlation coefficient, r.
  2. Find the coefficient of determination, R2.

c) Compute the regression coefficients and state the regression equation.

d) Using the regression model,

    • What is your predicted sales if no ads are placed?
    • What is your predicted sales if you place 10 ads?
  • What are the meanings of the regression coefficients?
  • From the MS Excel output, is the regression significant?
  • Explain the value of R2.

​

Xi (# ads) Yi (sales in millions

5 7

6 9

4 8

5 8

6 7

3 6

7 10

4 7

7 14

9 15

8 11

6 9

10 20

2 4

1 2

 

This is the problem you got via email.

3 of 9

A company is interested in studying the relationship between the number of ads placed and sales (in millions of dollars). The data below shows the results in 15 equivalent markets.

a) Find the correlation coefficient.

b) Find the coefficient of determination, R2.

​

R2 = (.925)2 = .8555 OR 85.55%

Of course, these must be tested for significance.

Here’s how to do it with AI.

Ask for the p-value given:

n=15

r=.925

2-tail test

You will see that it is way below .05

Check the regression with MS Excel to compare.

4 of 9

A company is interested in studying the relationship between the number of ads placed and sales (in millions of dollars). The data below shows the results in 15 equivalent markets.

c) Compute the regression coefficients and state the regression equation.

 

5 of 9

A company is interested in studying the relationship between the number of ads placed and sales (in millions of dollars). The data below shows the results in 15 equivalent markets.

d) Using the regression model,

    • What is your predicted sales if no ads are placed?
    • What is your predicted sales if you place 10 ads?

 

 

 

6 of 9

A company is interested in studying the relationship between the number of ads placed and sales (in millions of dollars). The data below shows the results in 15 equivalent markets.

 

e) What are the meanings of the regression coefficients?

​

b0 we have already seen. That is the Y-intercept, the value of Y (sales) when X (# ads) = 0)

​

Meaning of slope term (b1) – for every additional ad you place, the sales increase by $1.663 million

7 of 9

A company is interested in studying the relationship between the number of ads placed and sales (in millions of dollars). The data shows the results in 15 equivalent markets.

 

From MS Excel:

8 of 9

A company is interested in studying the relationship between the number of ads placed and sales (in millions of dollars). The data shows the results in 15 equivalent markets.

 

From MS Excel:

SUMMARY OUTPUT

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

Regression Statistics

​

​

​

​

​

​

​

Multiple R

0.924947339

​

​

​

​

​

​

​

R Square

0.85552758

​

​

​

​

​

​

​

Adjusted R Square

0.844414317

​

​

​

​

​

​

​

Standard Error

1.775726099

​

​

​

​

​

​

​

Observations

15

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

ANOVA

​

​

​

​

​

​

​

​

 

df

SS

MS

F

Significance F

​

​

​

Regression

1

242.741692

242.741692

76.98257237

8.02295E-07

​

​

​

Residual

13

40.99164134

3.15320318

​

​

​

​

​

Total

14

283.7333333

 

 

 

​

​

​

​

​

​

​

​

​

​

​

​

 

Coefficients

Standard Error

t Stat

P-value

Lower 95%

Upper 95%

Lower 95.0%

Upper 95.0%

Intercept

-0.070668693

1.144831832

-0.061728449

0.951718042

-2.5439275

2.402590114

-2.5439275

2.402590114

X Variable 1

1.66337386

0.189580499

8.7739713

8.02295E-07

1.253810092

2.072937629

1.253810092

2.072937629

f) From the MS Excel output, is the regression significant? Yes (p=0.000000802295)

g) Explain R2: 85.55% of the variation in sales is explained by the regression.

9 of 9

Any Questions?

​

​

Correlation & Regression