Question: I am working on a practice exercise and I want to make sure I understand the steps correctly It has to do with l inear

I am working on a practice exercise and I want to make sure I understand the steps correctly

It has to do with linear discriminant analysis and quadratic discriminant analysis.

the data set can be used in R using the following command

install.packages("ISLR")

library(ISLR)

data("Default")

details on this set of data can be viewed here: https://cran.r-project.org/web/packages/ISLR/ISLR.pdf

Instructions:

  1. Split the Default data to training and test. Fit a linear discriminant analysis to the training set. Use the fit model to predict the test set. Use the table() function to compute the confusion matrix and compute the accuracy of the predictions.
  2. Using quadratic discriminant analysis model repeat 1.
  3. While comparing the results of 1 and 2 explain the resultats and determine which model is more appropriate and why

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!