MATH 456 Homework 09

Due 2026-04-30 by 11:59pm

Use the penguins data set (with associated metadata to answer the questions below. Please push the data set into your GitHub repository for this homework.

  1. Use the library glmnet to fit a cross-validated regularized family = multinomial model model that predicts which island each penguin is from.

  2. Calculate the predicted probabilities for each island. For any one penguin, display and interpret the three predicted probabilities.

  3. Calculate the training accuracy of your model. What proportion of your predictions are correct?