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.
Correlation
Correlation defines a relationship between two independent variables. It tells the degree to which variables move in relation to each other. When two sets of data are related to each other, there is a correlation between them.
Linear Correlation
A correlation is used to determine the relationships between numerical and categorical variables. In other words, it is an indicator of how things are connected to one another. The correlation analysis is the study of how variables are related.
Regression Analysis
Regression analysis is a statistical method in which it estimates the relationship between a dependent variable and one or more independent variable. In simple terms dependent variable is called as outcome variable and independent variable is called as predictors. Regression analysis is one of the methods to find the trends in data. The independent variable used in Regression analysis is named Predictor variable. It offers data of an associated dependent variable regarding a particular outcome.
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
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fcd47fc74-543c-4cb2-8f0b-bdd7214f9b84%2F2f92dada-012d-4b02-a793-bb00b1922c35%2F3uulgbf_processed.png&w=3840&q=75)
![> 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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fcd47fc74-543c-4cb2-8f0b-bdd7214f9b84%2F2f92dada-012d-4b02-a793-bb00b1922c35%2Fr4jpi1_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![MATLAB: An Introduction with Applications](https://www.bartleby.com/isbn_cover_images/9781119256830/9781119256830_smallCoverImage.gif)
![Probability and Statistics for Engineering and th…](https://www.bartleby.com/isbn_cover_images/9781305251809/9781305251809_smallCoverImage.gif)
![Statistics for The Behavioral Sciences (MindTap C…](https://www.bartleby.com/isbn_cover_images/9781305504912/9781305504912_smallCoverImage.gif)
![MATLAB: An Introduction with Applications](https://www.bartleby.com/isbn_cover_images/9781119256830/9781119256830_smallCoverImage.gif)
![Probability and Statistics for Engineering and th…](https://www.bartleby.com/isbn_cover_images/9781305251809/9781305251809_smallCoverImage.gif)
![Statistics for The Behavioral Sciences (MindTap C…](https://www.bartleby.com/isbn_cover_images/9781305504912/9781305504912_smallCoverImage.gif)
![Elementary Statistics: Picturing the World (7th E…](https://www.bartleby.com/isbn_cover_images/9780134683416/9780134683416_smallCoverImage.gif)
![The Basic Practice of Statistics](https://www.bartleby.com/isbn_cover_images/9781319042578/9781319042578_smallCoverImage.gif)
![Introduction to the Practice of Statistics](https://www.bartleby.com/isbn_cover_images/9781319013387/9781319013387_smallCoverImage.gif)