Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Use the rnorm function in R to generate n = 100 samples of X ~ N(3,0), o = 3 (for help use ?rnorm).

 

1. Use the rnorm function in R to generate n = 100 samples of X ~ N(3,0), o = 3 (for help use ?rnorm). Draw, simulate Y, from the simple linear regression model Y = 2.5-1.5X +&; where &; ~ - N(0,0), = 2 and are independent and identically distributed. (This is true regression line) (a) Show the scatter plots of Y versus X, along with the true regression line. (Paste the output) (b) Estimate the regression line based on the generated sample. Interpret the results. (Paste the output) (c) Construct the 95% confidence interval for the slope of the true regression line . (Paste the output) (d) Find the 95% prediction intervals and confidence intervals for X = {4,5,6}. Compare the prediction intervals and confidence intervals. Discuss the differences. (Report the results from the output) Coding hint: Pil

Step by Step Solution

3.36 Rating (149 Votes )

There are 3 Steps involved in it

Step: 1

To complete this task in R ... 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

Applied Statistics And Probability For Engineers

Authors: Douglas C. Montgomery, George C. Runger

6th Edition

1118539710, 978-1118539712

More Books

Students also viewed these Programming questions

Question

Consider the following inverse of the model matrix:

Answered: 1 week ago