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