Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Organize responses in an Rmd file 1. Install / load the gclus library and run data (wine) to load the 13-variable Italian red wine data

Organize responses in an Rmd file

image text in transcribed
1. Install / load the gclus library and run data (wine) to load the 13-variable Italian red wine data set. (a) Perform principal component analysis using the preamp function on the scaled numeric predictors (everything but \"Class\"). Provide a summary of the prcomp object and a biplot. (b) How many principal components should be kept... i. according to the Kaiser criterion? (optional). Since we didn't really talk about this one in lecture feel free to skip. It is however not hard to do once you realize that the A that is referenced are the eigenvalues which are found using the following code: pea. out$sdev'2 ii. if we wish to retain at least 90% of the variance in the data? iii. according to the scree plot? (c) Retain the components suggested by the scree plot, and perform LDA (with built-in leave-oneout cross-validation) for the wine \"Class\" using the retained scores as the predictors. What is the cross-validated logloss of this model

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

Theory And Applications Of Partial Functional Differential Equations

Authors: Abrar A Khan

1st Edition

9353141915, 9789353141912

More Books

Students also viewed these Mathematics questions

Question

What is regret ? (p. 2 49)

Answered: 1 week ago