Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question #4-Hypothesis Testing (5 marks) Download the dataset advertising,csy . This dataset includes sales data, as well as the budget for TV, Radio and Newspaper

image text in transcribed

Question #4-Hypothesis Testing (5 marks) Download the dataset advertising,csy . This dataset includes sales data, as well as the budget for TV, Radio and Newspaper advertising. We are interested in predicting sales given a certain budget. Read in the dataset into a dataframe called advertising. (0.5 mark) Display the last 15 elements of the dataframe. (0.5 mark) Create three graphs, showing the relationship of Sales with the other 3 variables. Use plot). Example: plot(Radio, Sales) (1.5 marks) Create a linear model using TV to explain Sales. (2 marks) Print out the summary table of the linear model. (0.5 marks) Plot the linear model onto the graph of Sales and TV. Make the colour of the line red. (1 mark) Sample of geom_point for graph e Sample Output Residuals -8. 3860 -1.9545 -0.1913 2.0671 7.2124 Coefficients: Min 1Q Median 3Q Max Estimate Std. Error t value Pr ltl) (Intercept) 7.032594 0.457843 15. 36

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

=+3 In what ways can an MNE improve or change its approach to IHRM?

Answered: 1 week ago