Question: redwine.txt Assignment Tasks 1 . Understand the data ( i ) Import the txt file ( RedWine . txt ) and save it to your
redwine.txt
Assignment Tasks
Understand the data
i Import the txt file RedWinetxt and save it to your R working directory.
ii Assign the data to a matrix, eg using
the.data asmatrixreadtableRedWinetxt
iii The variable of interest is quality Y To investigate Y generate a subset of data,
eg using:
mydata the.datasample:c:
The following tasks are based on the sample data
iv Using scatter plots and histograms to understand the relationship between each of the
variables X X X X X and the variable of interest Y
Transform the data
Choose any four from the five variables X X X Make appropriate
transformations to the chosen four variables and the variable of interest Y individually, so
that the values can be aggregated in order to predict the variable of interest.
Assign your transformed data along with your transformed variable of interest to an array.
All the following tasks are based on the saved transformed data
Build models and investigate the importance of each variable
i Import AggWaFitR file to your working directory and load into the R workspace
using, sourceAggWaFitR
ii Evaluating the following fitting functions on the transformed data:
A weighted arithmetic mean WAM
Weighted power means WPM with P and P
An ordered weighted averaging function OWA
Use your model for prediction
Using your best fitting model based on Q predict the wine quality for the input: X;
X; X; X; X
Apply the same preprocess as Q for the new input
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
