GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

Question 8: Wine Data – Prediction (8a) 6 pts – Using model3…

Question 8: Wine Data – Prediction (8a) 6 pts – Using model3, all_subsets_model, stepwise_model, and ridge_model, give a binary classification to each of the rows in wine_data_test, with 1 indicating a good quality wine. Use 0.5 as your classification threshold.  (8b) 2 pts – For each model, display its accuracy. Hint: Remember that accuracy is the proportion of all responses in the test set that are correctly classified. (8c) 1 pt – Based on 8b, which model performed the best?  (8d) 1.5 pt – If you were to consider other metrics such as sensitivity or specificity, should sensitivity or specificity matter more in the context of this problem? Explain. Note: Don’t calculate these metrics. Hint: Remember that sensitivity is the proportion of all 1s in the test set that are correctly classified as 1s, while specificity is the proportion of all 0s in the test set that are correctly classified as 0s.

Read Details

Question 7: Wine Data – Regularized Regression (7a) Using wi…

Question 7: Wine Data – Regularized Regression (7a) Using wine_data_train, conduct ridge regression with quality as the binary response variable and all other variables in wine_data_train as the predicting variables. (7a.1) 3 pts – Use 10-fold cross validation on the misclassification error to select the optimal lambda value. What optimal lambda value did you obtain? Hint: Make sure to set type.measure=”class” in order to perform cross validation on the misclassification error. If needed, you can take a look at the help file by typing ?cv.glmnet. (7a.2) 1.5 pts – Fit a glmnet object with nlambda = 100. Call it ridge_model.  (7a.3) 1 pt – Display the estimated coefficients at the optimal lambda value.

Read Details

the spinal cord is anterior to the bodies of the vertebrae

the spinal cord is anterior to the bodies of the vertebrae

Read Details

Question 6: Wine Data – Variable Selection (6a) 3 pts – Usin…

Question 6: Wine Data – Variable Selection (6a) 3 pts – Using wine_data_train, conduct a complete search to find the submodel with the smallest BIC. Fit this model. Include an intercept. Call it all_subsets_model. Display the summary table for the model.  Note: Remember to set family to binomial. (6a.1) 0.5 pts – Which variables are in your all_subsets_model?(6a.2) 1 pt – What is the BIC of all_subsets_model? (6b) 3 pts – Conduct backward stepwise regression on wine_data_train using AIC. Allow the minimum model to be a logistic model with quality as the response variable and only an intercept, and the full model to be model3. Call it stepwise_model. Display the summary table for the model. Note: Remember to set family to binomial. (6b.1) 0.5 pts – Which variables are in your stepwise_model? (6b.2) 0.5 pts – What is the AIC of stepwise_model?

Read Details

The bone markings with green stickers is the:        

The bone markings with green stickers is the:        

Read Details

match each brain structure with the information that best de…

match each brain structure with the information that best describes it

Read Details

Match each region with its function

Match each region with its function

Read Details

the _______ matter contains cell bodies and dendrites and un…

the _______ matter contains cell bodies and dendrites and unmyelinated axons.

Read Details

The _______ nervous system is made up of the brain and spina…

The _______ nervous system is made up of the brain and spinal cord.  The _______ nervous system is further divided into the sensory division and the motor divisions.  

Read Details

Part A of Medicare includes coverage for home health care se…

Part A of Medicare includes coverage for home health care services under medical supervision, provided that

Read Details

Posts pagination

Newer posts 1 … 51,086 51,087 51,088 51,089 51,090 … 73,057 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top