1. Write down the multiple linear regression model from the regression analysis result. 2. This model is able to explain % of the observed variability in using its linear relationship with the other variables. 3. Interpret the slope coefficient of facebook in context. 4. Interpret the intercept coefficient in context.

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
icon
Concept explainers
Question

In R [datarium package], the marketing dataset contains the impact of the
amount of money spent on three advertising medias (youtube, facebook and
newspaper) on sales. We want to build a model for estimating sales (y) based on the advertising budget invested in youtube (x1), facebook (x2) and newspaper (x3). Use the output provided to answer the questions below. After some trial and error, the following model was fit(Model 1 image).

1. Write down the multiple linear regression model from the regression analysis result.
2. This model is able to explain % of the observed variability in using its linear relationship with the other variables.
3. Interpret the slope coefficient of facebook in context.
4. Interpret the intercept coefficient in context.
5. Comment on the overall significance of the model, at a 0.05 significant level.
6. Design and conduct a hypothesis test to check if the variable
newspaper in the context is significant, at a 0.05 significant level. (State your null hypothesis, test statistic, critical value, decision rule, conclusion)

You may use the critical values as below:
t(0.025,196)= 1.972141, t(0.05,196)= 1.652665, t(0.025,3)= 3.182446,
t(0.025,3)= 2.353363.

 

Now we drop variable newspaper (x3) and introduce the interaction effects between youtube (x1) and facebook (x2), to fit a new multiple linear regression model. The output is shown as in Model 2 image.

7. Write down the new multiple linear regression model from the regression analysis result.
8. Interpret the slope coefficient of the interaction effects between youtube (x1) and facebook (x2) in context.
9. Which model would be a better fit? The old one or the new one? Why?

> model <- Im(sales - youtube + facebook + newspaper, data = marketing)
> summary(model)
Call:
ImCformula = sales - youtube + facebook + newspaper, data = marketing)
Residuals:
Min
10 Median
30
Маx
-10.5932 -1.0690 0.2902 1.4272 3.3951
Coefficients:
(Intercept) 3.526667
youtube
facebook
Estimate Std. Error t value Pr(>Itl)
0.374290
0.001395 32.809
0.008611 21.893
0.005871 -0.177
9.422 <2e-16 ***
<2e-16 ***
<2e-16 **.
0.86
0.045765
0.188530
-0.001037
newspaper
Signif. codes: 0 ***** 0.001 *** 0.01 '*' 0.05 '.' 0.1 ''1
Residual standard error: 2.023 on 196 degrees of freedom
Multiple R-squared: 0.8972,
F-statistic: 570.3 on 3 and 196 DF, p-value: < 2.2e-16
Adjusted R-squared: 0.8956
Transcribed Image Text:> model <- Im(sales - youtube + facebook + newspaper, data = marketing) > summary(model) Call: ImCformula = sales - youtube + facebook + newspaper, data = marketing) Residuals: Min 10 Median 30 Маx -10.5932 -1.0690 0.2902 1.4272 3.3951 Coefficients: (Intercept) 3.526667 youtube facebook Estimate Std. Error t value Pr(>Itl) 0.374290 0.001395 32.809 0.008611 21.893 0.005871 -0.177 9.422 <2e-16 *** <2e-16 *** <2e-16 **. 0.86 0.045765 0.188530 -0.001037 newspaper Signif. codes: 0 ***** 0.001 *** 0.01 '*' 0.05 '.' 0.1 ''1 Residual standard error: 2.023 on 196 degrees of freedom Multiple R-squared: 0.8972, F-statistic: 570.3 on 3 and 196 DF, p-value: < 2.2e-16 Adjusted R-squared: 0.8956
> model2 <- Im(sales - youtube + facebook + youtube:facebook, data = marketing)
> summary(model2)
Call:
LmCformula = sales - youtube + facebook + youtube:facebook, data = marketing)
Residuals:
Min
10 Median
3Q
Мax
-7.6039 -0.4833 0.2197 0.7137 1.8295
Coefficients:
Estimate Std. Error t value Pr(>Itl)
(Intercept)
8.100e+00 2.974e-01 27.233 <2e-16 ***
youtube
facebook
<2e-16 ***
0.0014 **
1.910e-02 1.504e-03 12.699
2.886e-02 8.905e-03
3.241
youtube: facebook 9.054e-04 4.368e-05 20.727
<2e-16 ***
Signif. codes: 0 ****' 0.001 **** 0.01 '*' 0.05 '.' 0.1 '' 1
Residual standard error: 1.132 on 196 degrees of freedom
Multiple R-squared: 0.9678,
F-statistic: 1963 on 3 and 196 DF, p-value: < 2.2e-16
Adjusted R-squared: 0.9673
Transcribed Image Text:> model2 <- Im(sales - youtube + facebook + youtube:facebook, data = marketing) > summary(model2) Call: LmCformula = sales - youtube + facebook + youtube:facebook, data = marketing) Residuals: Min 10 Median 3Q Мax -7.6039 -0.4833 0.2197 0.7137 1.8295 Coefficients: Estimate Std. Error t value Pr(>Itl) (Intercept) 8.100e+00 2.974e-01 27.233 <2e-16 *** youtube facebook <2e-16 *** 0.0014 ** 1.910e-02 1.504e-03 12.699 2.886e-02 8.905e-03 3.241 youtube: facebook 9.054e-04 4.368e-05 20.727 <2e-16 *** Signif. codes: 0 ****' 0.001 **** 0.01 '*' 0.05 '.' 0.1 '' 1 Residual standard error: 1.132 on 196 degrees of freedom Multiple R-squared: 0.9678, F-statistic: 1963 on 3 and 196 DF, p-value: < 2.2e-16 Adjusted R-squared: 0.9673
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Correlation, Regression, and Association
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman