Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1 You have to use R to complete this exercise. [In your R document, type comments (lines that start with #) to both

image text in transcribed

Problem 1 You have to use R to complete this exercise. [In your R document, type comments (lines that start with #) to both (i) explain what your R commands do, and (ii) answer questions in the problem below.] A random sample of data for 7 days of operation produced the following (price, quantity) data values: Price per Gallon Quantity Sold, Y of Paint, X 11 200 9 250 6 415 5 430 10 220 8.5 220 7.2 340 a. Prepare a scatter plot of the data. b. Using formulae given in class compute and interpret b. c. Using formulae given in class compute and interpret bo Problem 2 Compute the coefficients for a least squares regression equation and write the equation, given the following sample statistics: x=34, y=230, s=15, s = 30, r=0.2, n=40. Problem 3 xy You have to use R to complete this exercise. [In your R document, type comments (lines that start with #) to both (i) explain what your R commands do, and (ii) answer questions in the problem below.] Sal 420 380 350 400 440 380 450 420 es Pri 320 345 390 310 290 330 280 300 ce a. Estimate the linear regression of sales on price using lm() and report the coefficients of the regression. b. Graph the data and the regression line together using plot() and abline(). c. What effect would you expect a $30 increase in price to have on sales? Page 1 of 2

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

Elementary Linear Algebra with Applications

Authors: Bernard Kolman, David Hill

9th edition

132296543, 978-0132296540

More Books

Students also viewed these Mathematics questions