Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Import to R the following fiel: http://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-white.csv (The dataset is related to white Portuguese Vinho Verde wine. For more info: https://archive.ics.uci.edu/ml/datasets/Wine+Quality) What is the

1. Import to R the following fiel: http://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-white.csv (The dataset is related to white Portuguese "Vinho Verde" wine. For more info: https://archive.ics.uci.edu/ml/datasets/Wine+Quality)

What is the correlation between the attributes other than Quality?

Graph the frequency distribution of wine quality by using Quality

Reduce the levels of rating for quality to three levels as high, medium and low. Assign the levels of 3 and 4 to level 0; 5 and 6 to level 1; and 7,8 and 9 to level 2.

Normalize the data set by using the following function:

Divide the dataset to training and test sets.

Use the KNN algorithm to predict the quality of wine using its attributes.

Display the confusion matrix to evaluate the model performance.

Evaluate the model performance by computing Accuracy, Sensitivity and Specificity.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

International Marketing And Export Management

Authors: Gerald Albaum , Alexander Josiassen , Edwin Duerr

8th Edition

1292016922, 978-1292016924

Students also viewed these Mathematics questions