Mathematics
Mathematics, 16.06.2020 17:57, fayvetteville

We have seen hat adding useless predictors to a regression model will increase R2. Here, let's examine what our inference methods say if the predictors are infact useless. Suppose the true/pop fit is y 1(i. e, 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! 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.17
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

answer
Answers: 3

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 20:30, oliwia0765
Solve each quadratic equation by factoring and using the zero product property. x^2 + 18x = 9x
Answers: 2
image
Mathematics, 21.06.2019 22:10, alishadautreuil
In which direction does the left side of the graph of this function point? a(x) = 3x - x2 + 4x - 2
Answers: 3
image
Mathematics, 21.06.2019 23:30, drakkeo
Sam opened a money-market account that pays 3% simple interest. he started the account with $7,000 and made no further deposits. when he closed the account, he had earned $420 in interest. how long did he keep his account open?
Answers: 1
image
Mathematics, 22.06.2019 00:10, hdkdkdbx
If sr is 4.5cm and tr is 3cm, what is the measure in degrees of angle s? a. 56.3 b. 33.7 c. 41.8 d. 48.2
Answers: 3
Do you know the correct answer?
We have seen hat adding useless predictors to a regression model will increase R2. Here, let's exami...

Questions in other subjects:

Konu
Mathematics, 16.04.2021 22:00
Konu
Mathematics, 16.04.2021 22:00