Logistic Regression

Logistic regression is used when the response variable can have one of two values, e.g. True or False. ORIE 5260: Machine Learning will go into more detail as to how logistic regression works and when you would want to use it, but for our purposes we will use it to decide whether a flower is an iris setosa or not. We will create a logistic regression model for the iris.sqlite data set.

The model

Our response variable will be a binary variable, where a value of True indicates that the given flower is an iris setosa. Our predictor variables will be petal length, petal width, sepal length, and sepal width.