There is a family of linear models, called generalized linear models (generalized linear model), that relate the dependent variable to the explanatory variables through a nonlinear function.
Logistic regression belongs to this class of models in the special case where the variable is dichotomous, that is, it can take only the values
or
.
This type of problem is particularly important in classification.
For binary problems, the probabilities of success and failure can be defined as
| (4.126) |
The response of a linear predictor of the form
| (4.127) |
| (4.128) |
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 is not equivalent to the least-squares method.
Assuming independent Bernoulli observations, the likelihood function is
| (4.131) |
| (4.132) |
Paolo medici