Question: Red wine quality Dataset The given dataset, RedWine.txt , is used to model wine quality based on physicochemical tests. The dataset provides the 1

Red wine quality Dataset The given dataset, "RedWine.txt", is used to model wine quality based on physicochemical tests. The dataset provides the 1,599 red wine samples from the north of Portugal. It is a modified version of the data used in the study [1]. This dataset includes 5 variables, denoted as X1, X2, X3, X4, X5, and Y, described as follows: X1- citric acid X2- chlorides X3- total sulfur dioxide X4- pH X5 alcohol Y - quality (score between 0 and 10)[1] P. Cortez, A. Cerdeira, F. Almeida, T. Matos and J. Reis. Modeling wine preferences by data mining from physicochemical properties. In Decision Support Systems, Elsevier, 47(4):547-553, The provided zip file contains the data file [RedWine.txt] and the R code [AggWaFit718.R] to use with the following tasks, include these in your R working directory. You can use the R script [template.R] to organise your code. Clarification and related resources are provided on https://d2l.deakin.edu.au/d2l/le/content/1422222/viewContent/7266544/View 2009. Assignment Tasks 1. Understand the data (i) Import the txt file (RedWine.txt) and save it to your R working directory. (ii) Assign the data to a matrix, e.g. using the.data <- as.matrix(read.table("RedWine.txt "))(iii) The variable of interest is quality (Y). To investigate Y, generate a subset of 500 data, e.g. using: my.data <- the.data[sample(1:1599,500),c(1:6)][The following tasks are based on the 500 sample data](iv) Using scatter plots and histograms to understand the relationship between each of the variables X1, X2, X3, X4, X5 and the variable of interest Y.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!