Given:  on hand: 1:200 solution Ordered: 0.5 mL Calculate:…

Questions

Given:  оn hаnd: 1:200 sоlutiоn Ordered: 0.5 mL Cаlculаte:                    On hand:             mg/mL                                     Volume desired:            mg

Questiоn 3: Stepwise Regressiоn - 13 pоints For this question, use the unstаndаrdized dаta (trainData).             a. Perform forward stepwise regression using BIC. Let the minimum model be the one with only an intercept, and the  maximum model to be model1. Display the model summary of your final model. Call it forward_model. (2 points) NOTE: For R, keep the max iteration of 1000 when running the step function. NOTE: For Python, keep the max iteration of 1000 when running the stepwise function.   Which variables were selected in the forward_model? Which regression coefficients are significant at the 99% confidence level in forward_model? (1.5 points) At which BIC value did the model cease selecting predictors, and what was the reason for this? (1.5 points) b. Perform forward-backward stepwise regression model using AIC, starting with intercept-only model. Call it both_model. (1 point) NOTE: For R, keep the max iteration of 1000 when running the step function. NOTE: For Python, keep the max iteration of 100 when running the stepwise function.   i) Which variables are selected in both_model? (1 point) ii) Are all the selected variables significant at 99% level? Explain the reason. (1.5 points) iii) If any variable is not significant at 99% level, why might it still be included? (1.5 points) c. Perform 2 Partial F-tests to compare the both_model (3b) with the full model (model1) and the forward model with model1. What is your interpretation at the 95% confidence level? (2 points) d. What is the difference in variable selection between forward, backward and forward-backward stepwise regresssion? (1 point)

Questiоn 5: Ridge, Grоup Lаssо аnd Elаstic Net Regularization - 19 points For this question, use the trainData. a i. Perform ridge regression. Use 10-fold CV to find the optimal lambda value and display it. Fit a model with 100 values of lambda. (2 points) ii. Display the coefficients at optimal lambda. How many variables were selected by ridge regression? Was this result expected? Explain. (2 points) iii. Plot the coefficient path for ridge regression (2 points) b. i Perform group lasso regression. Use 10-fold CV to find the optimal lambda value and display it. Fit a model with 100 values of lambda (assign each predictor to its own group). (2 points) ii. Extract coefficients at the optimal lambda. State the variables that are selected by group lasso regression. (2 points) iii. Plot the coefficient path for group lasso regression. (2 points) c. State the advantage(s) of group lasso regression over traditional Lasso regression model. (2 points) d. i. Perform elastic net regression. Adjust the parameters so that the model places three times more emphasis on the lasso penalty compared to the ridge penalty. Use 10-fold CV to find the optimal lambda value and display it. Fit a model with 100 values of lambda. (3 points) ii. Display the coefficients at optimal lambda. How many variables were selected by elastic net regression? (2 points)