Answered step by step
Verified Expert Solution
Link Copied!

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:

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elementary Linear Algebra Applications Version

Authors: Howard Anton, Chris Rorres

11th Edition

1118879163, 9781118879160

More Books

Students also viewed these Mathematics questions

Question

easier because you can display the plaintext of any model

Answered: 1 week ago

Question

1. Build trust and share information with others.

Answered: 1 week ago