Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 2: Logistic Regression] (75 points) The quality of each wine scored as integer between 0 and 10. We label wines with quality score 7
Part 2: Logistic Regression] (75 points) The quality of each wine scored as integer between 0 and 10. We label wines with quality score 7 as premium. We want to build logistic regression models to predict if each wine is premium or not, given the feature values. Let X be a vector of the independent variables except the Type, i.e., [fixed acidity, volatile acidity, citric acid, residual sugar, chlorides, free sulfur dioxide, bound dioxide, density, pH, sulphates], and Z be a binary variable s.t. Z = 1 if the type of the wine is red, and Z = 0 if the type of the wine is white. Let Y = 1 indicate the wine is premium, and Y = 0 otherwise. a) (15 points) Train a logistic regression model to predict the wine quality score. Pr(Y = 1 | X, Z) = 1 1 exp((0 1 X 2Z)) . Use the same training data and test data as in Part 1. Please do feature selection and provide reasonable explanation for your choice of features. Note that not using the i-th feature of X, Xi, means you are setting i-th value of 1 as zero, i.e., 1,i = 0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started