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:
- 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.
- Using quadratic discriminant analysis model repeat 1.
- 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
Get step-by-step solutions from verified subject matter experts
