Question

2. Let the following data be given where X is the independent variable and Y is the dependent variable Find the correlation c
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a. The correlation coefficient between is 0.6744533.

cor(x,y)
[1] 0.6744533

b. The regression coefficients are Bo = 0.7143 and B1 = 1.5714.

summary(fit)

Call:
lm(formula = y ~ x)

Residuals:
1 2 3 4 5
-2.2857 0.1429 1.2857 -0.2857 1.1429

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.7143 1.4046 0.509 0.646
x 1.5714 0.9932 1.582 0.212

Residual standard error: 1.662 on 3 degrees of freedom
Multiple R-squared: 0.4549,   Adjusted R-squared: 0.2732
F-statistic: 2.503 on 1 and 3 DF, p-value: 0.2117

c. The regression line equation is Y^= B0^ + B1^ * X. = 0.7143 + 1.5714*X.

d.The value of Y when X=8 is 13.28571.

predict(fit,data.frame(x=8),interval = "confidence")
fit lwr upper
1 13.28571 -8.336957 34.90839

Add a comment
Know the answer?
Add Answer to:
2. Let the following data be given where X is the independent variable and Y is the dependent variable Find the correlation coefficient r a. a and B,onpfrom the sample for the model: b. Estimate...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT