Question

In: Statistics and Probability

what regression model code is better to identify wine quality in r

what regression model code is better to identify wine quality in r

Solutions

Expert Solution

Logistic Regression model can be used to identify the wine quality.

Logistic regression model is used when the depenedent variable is dichotomous. Here wine quality can be considered as dichotomous variable.

We can define 0 if quality of wine is 'bad' and 1 if quality of wine is 'good'. If there is only one independent variable that define the quality of wine then it is simple logistic regression and if there are more than one variables that define the quality of wine then it is multiple logistic regression.

# Function available in R for logistic regression is 'glm'.

example: let x1, x2 and x3 are the independent variables that defines the quality of wine. Then glm in R can be used as-

> model <- glm(wine_quality~ x1+x2+x3, data=wine_data, family="binomial")

here wine_quality is dependent variable, wine_data is name of the data set and family ="binomial" will tell R to perform logistic regression.


Related Solutions

What approach you recommend to identify wine quality, classification or regression models? Explain the reasons why?
What approach you recommend to identify wine quality, classification or regression models? Explain the reasons why?
1. Why is a multivariate regression model usually better to use than a univariate regression model?...
1. Why is a multivariate regression model usually better to use than a univariate regression model? Define both and discuss at least two reasons.
The following is a regression summary from R for a linear regression model between an explanatory...
The following is a regression summary from R for a linear regression model between an explanatory variable x and a response variable y. The data contain n = 50 points. Assume that all the conditions for SLR are satisfied. Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -1.1016 0.4082 -2.699 -------** x 2.2606 0.0981 ---- < 2e-16 *** (a) Write the equation for the least squares regression line. (b) R performs a t-test to test whether the slope is significantly...
Determine the regression equatoin for this multiple regression model. Also calculate the adjusted R squared and...
Determine the regression equatoin for this multiple regression model. Also calculate the adjusted R squared and P value. Pedictor Variables/Data Length (inches) Braking (ft from 60 mph) Engine Displacement (liters) GHG 154 133 1.6 6.6 167 132 1.6 6.1 177 136 1.8 6.3 177 138 2 6.6 179 137 2 6.4 188 135 2 8.0 177 126 2 7.7 191 136 2.3 8.0 194 140 2.4 7.7 189 137 2.4 7.3 180 135 2.5 8.3 190 136 2.5 7.1 180...
Build all classification & regression models you learned so far for wine quality prediction. No data...
Build all classification & regression models you learned so far for wine quality prediction. No data partition is needed. Please don’t modify the original categories of wine quality. 2: Which approach will you recommend, classification or regression models? Explain the reasons, why?
Econometric Explain why it is dangerous to judge the quality of a regression model by maximizing...
Econometric Explain why it is dangerous to judge the quality of a regression model by maximizing R^2? You are encouraged to use a hypothetical example in answering this question. (Your answer should be more than 2 sentences long).
Econometric Explain why it is dangerous to judge the quality of a regression model by maximizing...
Econometric Explain why it is dangerous to judge the quality of a regression model by maximizing R^2? You are encouraged to use a hypothetical example in answering this question. (Your answer should be more than 2 sentences long). *short answer *hypothetical example
What are some ways to identify that a multiple regression model is needed (versus only one...
What are some ways to identify that a multiple regression model is needed (versus only one independent variable)? Provide an example of a situation that would require multiple regression.
Astringency is the quality in a wine that makes the wine drinker’s mouth feel slightly rough,...
Astringency is the quality in a wine that makes the wine drinker’s mouth feel slightly rough, dry, and puckery. An investigation was conducted to assess the relationshipbetween perceived astringency (?) and tannin concentration (?) using various analytic methods. The data is provided in the “wine” worksheet where ?=tannin concentration by protein precipitation and ?=perceived astringency as determined by a panel of tasters. a)Produce a scatterplot of the data. Does it appear that a simple linear regression model will be an...
1.A quality manager is developing a regression model to predict the total number of defects as...
1.A quality manager is developing a regression model to predict the total number of defects as a function of the day of week the item is produced. Production runs are done 10 hours a day, 7 days a week. The dependent variable is ______. b) number of production runs c) number of defects d) production run e) percentage of defects 2) In the equation y = m x + b, which represents a straight lime, b is the __________. a)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT