# Regression with a binary response

#### Predicting a yes/no type (binary) response given a continuous predictor.

The instance below illustrates regression several common generalized linear regression models (GLMs) with a continuous predictor $X$ and binary response $Y$. The most important example is that of logistic regression, which uses the logit link function in the GLM. The logit function is defined $\mbox{logit}(x) = \log\left(\frac{x}{1-x}\right)$.