We uses a logistic regression to be able to use our simple linear regression methods against categorical data.
In a linear regression, the data we are trying to predict might look like: