Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please include the R code thank you We have seen that adding useless predictors to a regression model will increase R2. Here, let's examine what

image text in transcribed

Please include the R code thank you

We have seen that adding useless predictors to a regression model will increase R2. Here, let's examine what our inference methods say if the predictors are intact useless. Suppose the true/pop fit is y = Mie., no x at all), and so a possible sample from the population could be the following: set.seed(123) # Use this line to make sure we all get the same answes. n 20 y=1+ rnorm(n,0,1) a) Write code to make data on 10 useless predictors(and no useful predictors), fit the model y= alpha + beta 1 x1+ + beta10 x10, perform the test of model utility, and perform t-tests on each of the 10 coefficients to see if they are zero. Show/turn-in your R code b) According to the F-test of model utility, are any of the predictors useful at alpha-0.1? c) According to the t-tests, are any of the predictors useful at alpha = 0.1 ? See the solns to make sure you understand the moral of this exercise. We have seen that adding useless predictors to a regression model will increase R2. Here, let's examine what our inference methods say if the predictors are intact useless. Suppose the true/pop fit is y = Mie., no x at all), and so a possible sample from the population could be the following: set.seed(123) # Use this line to make sure we all get the same answes. n 20 y=1+ rnorm(n,0,1) a) Write code to make data on 10 useless predictors(and no useful predictors), fit the model y= alpha + beta 1 x1+ + beta10 x10, perform the test of model utility, and perform t-tests on each of the 10 coefficients to see if they are zero. Show/turn-in your R code b) According to the F-test of model utility, are any of the predictors useful at alpha-0.1? c) According to the t-tests, are any of the predictors useful at alpha = 0.1 ? See the solns to make sure you understand the moral of this exercise

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

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

List behaviors to improve effective leadership in meetings

Answered: 1 week ago