There is a family of linear models that relate the dependent variable to the explanatory variables through a nonlinear function, called generalized linear models (generalized linear model).
Logistic regression belongs to this class of models in the particular case where the variable is dichotomous, that is, 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.113) |
The response of a linear predictor of the form
| (4.114) |
| (4.115) |
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.118) |
| (4.119) |
Paolo medici