Question

Using R and the data in the table below, perform the regression of D on C...

Using R and the data in the table below, perform the regression of D on C (i.e., report the regression equation).

Hint: The code to enter the vectors C and D into R is: C <- c(3, 6, 8, 9, 1, 3) D <- c(2, 7, 5, 4, 0, 4)

C

D

3

2

6

7

8

5

9

4

1

0

3

4

You must figure out how to obtain the regression equation from R. Enter the code below and write the regression equation using the output provided by R.

Code:

Regression equation (remember to use a hat when it is appropriate):

2. Plot the data and line of best fit in R and paste it into this document

Code:

Plot:

3. Using the predict function in R, find each of the following predicted values of D, for the given value of C regardless of whether or not it is appropriate to do so. In real life you should not calculate for predictions when it is not appropriate, but this is just for practice.

Find when C = 6 Find when C = 4 Find when C = 15

Code:

Predicted values:

Homework Answers

Answer #1

R code along with output is attached herewith.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
C D 3 2 6 7 8 5 9 4 1 0 3 4 Using the...
C D 3 2 6 7 8 5 9 4 1 0 3 4 Using the predict function in R, find each of the following predicted values of D, for the given value of C regardless of whether or not it is appropriate to do so. In real life you should not calculate for predictions when it is not appropriate, but this is just for practice. Find when C = 6 Find when C = 4 Find when C =...
7. For the data in the table below, find the sum of the absolute deviations for...
7. For the data in the table below, find the sum of the absolute deviations for the predicted values given by the median-median line, y = 3.6x-0.4. x y 1 3 2 7 3 9 4 14 5 15 6 21 7 25
Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line.​ (Each pair of variables has a significant​ correlation.) Then use the regression equation to predict the value of y for each of the given​ x-values, if meaningful. The caloric content and the sodium content​ (in milligrams) for 6 beef hot dogs are shown in the table below. (a) x=170 Calories (B )x=100 calories (C) x=140 Calories...
The following data were used in a regression study. Observation 1 2 3 4 5 6...
The following data were used in a regression study. Observation 1 2 3 4 5 6 7 8 9 xi 2 3 4 5 7 7 7 8 9 yi 3 5 4 7 4 6 9 5 11 a) Develop an estimated regression equation for these data. (Round your numerical values to two decimal places.) ŷ = b) Do the assumptions about the error term seem to be satisfied? a) The plot suggests a generally horizontal band of residual...
Music MogulsNicole, Aleenaand Shaked, aka N.A.S.!compiled the followingdata shown in the table. The table shows the...
Music MogulsNicole, Aleenaand Shaked, aka N.A.S.!compiled the followingdata shown in the table. The table shows the predicted number of cd’s sold for a song, based on audience impressions, in hundreds ofmillions. Note: Number of cd’s sold are in hundreds of millions. Impressions(x): 28 13 14 24 20 18 14 24 17 Cd’s sold (y): 19 7 7 20 6 4 5 25 12 a. Draw a scatter plot using the data from the table. (4pts.) b. Find “y-hat” (linear regression...
Homework to be checked and reviewed for correctness. The following data was collected for linear regression...
Homework to be checked and reviewed for correctness. The following data was collected for linear regression analysis. Becky wants to use shoe size to predict a person's GPA. Shoe Size 6 11 5 10 8 9 12 6.5 7.5 GPA 2.1 2.9 4 3 1.5 2.4 3.5 1.98 3.88 A. Find r, using your calculator. B) Do a hypothesis test on whether there is significant linear correlation?    a = 0.01 When you find the test statistic, find it by hand...
A residual is: The difference between a data point and the regression line. A value that...
A residual is: The difference between a data point and the regression line. A value that can be 1 or zero. A value that is always negative because it is a difference The difference between two different lines. The properties of r include: r is sensitive to very high quantities The value of r is not affected if the values of either variable are converted into a different scale You must define the independent and dependent variables All of the...
Would like to see it done in EXCEL Vehicle Sales: Consider the data below ( in...
Would like to see it done in EXCEL Vehicle Sales: Consider the data below ( in thousands of units):   year Quarter 1 Quarter 2 Quarter 3 Quarter 4 2016: 4072 4521 4452 4418 2017: 4010 4392 4399 4334 2018: 4092 4484 4277     4360 Obtain the seasonal factors and enter them into the appropriate yellow cells below: Quarter 1 Quarter 2 Quarter 3 Quarter 4 Seasonal Factor Using the columns Year and Total (Annual Sales) below, obtain the regression equation...
Match the statistics term with its BEST definition. Question 2 options: A key requirement for using...
Match the statistics term with its BEST definition. Question 2 options: A key requirement for using correlation and regression models is to collect this type of data. With bivariate data, the result of MINIMIZING the sum of squared distances between the observed and predicted values (residuals) for a linear model. This quantity is computed by subtracting the observed response variable from the predicted response variable. With bivariate data, when one variable increases a second variable decrease implies this relationship. A...
Using the data below find the slope of the regression line. x y xy x2 y2...
Using the data below find the slope of the regression line. x y xy x2 y2 3 4 12 9 16 4 6 24 16 36 5 7 35 25 49 7 12 84 49 144 8 14 112 64 196 27 43 267 163 441