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
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...
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...
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...
Six Data Tables (A, B, C, D, E, F) are shown below. For each Table, decide...
Six Data Tables (A, B, C, D, E, F) are shown below. For each Table, decide which of two methods (table only  or   equation, graph, or table) can be used to represent the data. For the purposes of this question, assume that we only know and can use two graph forms / equations:   x= c t + d (straight line graph) and    x = b t2+ c t + d (quadratic curve graph). A    t x    0 4...
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...
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...
The table below gives the age and bone density for five randomly selected women. Using this...
The table below gives the age and bone density for five randomly selected women. Using this data, consider the equation of the regression line, yˆ=b0+b1xy^=b0+b1x, for predicting a woman's bone density based on her age. Keep in mind, the correlation coefficient may or may not be statistically significant for the data given. Remember, in practice, it would not be appropriate to use the regression line to make a prediction if the correlation coefficient is not statistically significant. Age 3535 4545...
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            
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT