Adapted from an appendix of my MS thesis.
Logistic Regression
Expressiveness Delineation
The logistic regression model arises from the desire to model the posterior probabilities of classes via linear function in , while at the same time ensuring that they sum to one and remain in . The model has the following form. It is specified in terms of log-odds or logit transformations, reflecting the constraint that the probabilities sum to one. Although the model uses the last class as the denominator in the odds-ratios, the choice of denominator is arbitrary in that the estimates are equivalent under this choice [1].
A reformulation shows the following [1].
To emphasize the dependence on the entire parameter set , we can denote the probabilities . When the model is especially simple since there is only a single linear function. Logistic regression models are usually fit by maximum likelihood, using the conditional likelihood of given . Since completely specifies the conditional distribution, the multinomial distribution is appropriate. The log-likelihood for observations is as follows where [1].
It is convenient to code the two-class via a 0/1 response , where when , and when . Let , and . The log-likelihood can be written as the following where , and we assume that the vector of inputs includes the constant term 1 to accommodate the intercept [1].
To maximize the log-likelihood, we set its derivatives to zero, where these score equations are nonlinear in [1].
In the companion LDA post we find that the log-posterior odds of linear discriminant analysis (LDA) between two classes and are linear functions of , where this linearity is a consequence of the Gaussian assumption for the class densities, as well as the assumption of a common covariance matrix [1].
The linear logistic model by construction has linear logits [1].
It seems that the models are the same. Although they have exactly the same form, the difference lies in the way the linear coefficients are estimated. The logistic regression model is more general, in that it makes less assumptions. We can write the joint density of and as follows where denotes the marginal density of the inputs [1].
For both LDA and logistic regression, the second term on the right has the following logit-linear form where the last class has again been arbitrarily chosen as the reference [1].
The logistic regression model leaves the marginal density of as an arbitrary density function , and fits the parameters of by maximizing the conditional likelihood. That is, the multinomial likelihood with probabilities . Although is totally ignored, we can think of this marginal density as being estimated nonparametrically, using the empirical distribution function which places mass at each observation [1].
With LDA we fit the parameters by maximizing the full log-likelihood based on the joint density as follows where is the Gaussian density function [1].
Standard normal theory leads to the estimates , , and given in the LDA post. Since the linear parameters of the logistic form are functions of the Gaussian parameters, we get their maximum-likelihood estimates by plugging in the corresponding estimates. However, unlike in the conditional case, the marginal density does play a role. It is a mixture density which also involves the parameters [1].
The question is what role can this additional restriction play. By relying on the additional model assumptions, we have more information about the parameters, and hence can estimate them more efficiently with lower variance. For example, observations far from the decision boundary which are down-weighted by logistic regression play a role in estimating the common covariance matrix. This means that LDA is not robust to gross outliers [1].
References
- Trevor Hastie, Robert Tibshirani, Jerome Friedman (2009) The Elements of Statistical Learning. Springer New York.

Top comments (0)