Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Chapter 3 (Exercies 14) This problem focuses on the collinearity problem. (a) Perform the following commands in R: > get . seed (1) >

image text in transcribed
3. Chapter 3 (Exercies 14) This problem focuses on the collinearity problem. (a) Perform the following commands in R: > get . seed (1) > x1=runif (100) > x2=0. 5*x1+rnorm (100) /10 > y=2+2*x1+0 .3. x2+rnorm (100) The last line corresponds to creating a linear model in which y is a function of x1 and x2. Write out the form of the linear model. What are the regression coefficients? (b) What is the correlation between x1 and x2? Create a scatterplot displaying the relationship between the variables. (c) Using this data, fit a least squares regression to predict y using x1 and x2. Describe the results obtained. What are Bo, B1, and 32? How do these relate to the true Bo, B1, and 82? Can you reject the null hypothesis Ho : 31 = 0? How about the mull hypothesis Ho : 32 = 0? (d) Now fit a least squares regression to predict y using only x1. Comment on your results. Can you reject the null hypothesis Ho : 81 = 0? (e) Now fit a least squares regression to predict y using only x2. Comment on your results. Can you reject the null hypothesis Ho : 81 = 0? ([) Do the results obtained in (c)-(e) contradict each other? Explain your answer. (g) Now suppose we obtain one additional observation, which was unfortunately mismeasured. > x1=c(x1 , 0.1) > x2=c(x2, 0.8) > y=c (y , 6) Ro-fit the linear models from (c) to (c) using this new data. What effect does this new observation have on the each of the models? In each model, is this observation an outlier? A high-leverage point? Both? Explain your answers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

Calculus With Applications, Version

Authors: Margaret L Lial, Raymond N Greenwell, Nathan P Ritchey

10th Edition

032183111X, 9780321831118

More Books

Students also viewed these Mathematics questions

Question

Explain the importance of setting goals.

Answered: 1 week ago

Question

6. How can hidden knowledge guide our actions?

Answered: 1 week ago

Question

7. How can the models we use have a detrimental effect on others?

Answered: 1 week ago