Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started