Question

Problem 8. We are interested in fitting a straight line to the following data: x=c(1, 1,...

Problem 8. We are interested in fitting a straight line to the following data:

x=c(1, 1, 2, 2, 4, 4, 7, 8, 8, 9, 9, 9, 11, 11, 12, 12, 12, 13, 15, 20)

y=c(-1.5, -2.2, 6.5, 2.2, 7.4, 0.3, 10.7, 11.9, 9.4, 16.1, 16.1, 16.0, 19.6, 18.5, 22.0, 22.8, 15.5, 31.2, 27.6, 33.1)

  1. Determine the estimates of the coefficients of the regression line.

  1. Do the scatter-plot and superimpose on it the regression line.

Homework Answers

Answer #1

(a)

Following is the r script to get regression and coefficient:

Folloiwng is the output generated by R:

Answers: slope = 1.940, constant = -2.326

(b)

Following is the output to generate the scatter plot and regression line:

Following is the output:

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
Suppose that a researcher collected the following set of data on years of education (X) and...
Suppose that a researcher collected the following set of data on years of education (X) and number of children for a sample of married adults:                  X                  Y                     12                  2                 14                  1                 17                  0                 10                  3                  8                   5                  9                   3                 12                  4                 14                  2                 18                  0                 16                  2     Draw a scatter plot of the data. Write out the regression equation, then calculate and interpret the meaning of the...
BODYFAT HEIGHT 12.9 67.75 6 72.25 25.5 66.25 10.6 72.25 28.1 71.25 20 74.75 19.2 69.75...
BODYFAT HEIGHT 12.9 67.75 6 72.25 25.5 66.25 10.6 72.25 28.1 71.25 20 74.75 19.2 69.75 11.9 72.5 4.3 74 12.9 73.5 7.6 74.5 8.3 76 20.4 69.5 19.8 71.25 22.2 69.5 20.9 66 28 71 23 71 15.6 67.75 16.9 73.5 18.5 68 15.5 69.75 14.7 68.25 18 70 13.6 67.75 4.3 71.5 8 67.5 22.4 67.5 4.4 64.75 8.9 69 13.2 73.75 6.3 71.25 12.6 71.25 21 71 31.9 73.5 39.1 65 23.2 70 26.6 68.25 34.3 72.25...