There is a family of linear models that relate the dependent variable to the explanatory variables through a nonlinear function, known as generalized linear models (generalized linear model).
Logistic regression belongs to this class of models when the variable is dichotomous, that is, when it can take only the values
or
.
By its nature, this type of problem is particularly important in classification problems.
For binary problems, it is possible to define the probabilities of success and failure:
| (4.118) |
The response of a linear predictor of the form
| (4.119) |
| (4.120) |
A widely used model for the function is the logit function, defined as:
Its inverse exists and is given by
In this case, the maximum-likelihood method does not coincide with the least-squares method but with
| (4.123) |
| (4.124) |
Paolo medici