Multinomial logistic regression is the network with no hidden layer: followed by softmax. Binary logistic classification uses one logit followed by the sigmoid function.
A generalized linear model assumes that the independent responses have distributions in an exponential family, with means , and that
The invertible function is the link function; it connects the mean to the linear predictor.
For binomial regression, write independently, so . The logistic regression link is
while probit regression uses
where is the standard-normal distribution function. The logit is the canonical link function for the binomial family.
The successful hard-margin fit proves that the transformed observations are separable. This creates complete separation in unpenalized logistic regression: scaling a separating coefficient vector continually raises the likelihood, so no finite maximum-likelihood estimate exists. The nearly singular observed information produces the enormous reported standard errors.
A ridge-penalized logistic regression, or equivalently a Bayesian logistic model with a proper Gaussian prior, gives finite, stable coefficients. Firth bias reduction is another standard remedy.
For the one-layer softmax fit, write its class logits as . Then
Thus an equivalent logistic regression classifier predicts a click exactly when
Using one reference class removes the common-logit-shift non-identifiability. Subject to the usual full-rank and no-separation conditions, the logistic parameter is identifiable. It uses four effective parameters rather than an eight-parameter redundant softmax representation, has a convex loss, and gives directly interpretable log-odds coefficients, so it is preferable for this binary linear classifier.
A binary logistic regression sets
and classifies by the sign of . Its unpenalized maximum-likelihood estimator minimizes the empirical logistic loss
The plotted data are complete separation data: there is a vector with every signed margin . For every finite , increasing strictly decreases each term of , and as . No finite parameter attains zero, so the unpenalized optimization has no solution.
Adding an penalty with , constraining , or using a finite stopping rule makes the problem attain a finite approximate solution. The penalized option is preferable because cross-validation can select the strength of regularization.
The usual Akaike information criterion correction assumes a regular maximum-likelihood fit with a meaningful fixed parameter dimension. Here stochastic optimization stopped after five epochs need not attain the maximum likelihood estimator, and neural-network symmetries, inactive units, and heavy overparameterization make the raw count a poor effective dimension. Either failure invalidates a direct AIC comparison with an ordinary logistic regression.
Logistic regression assumes independent with
For the binomial exponential family, , so the mean is and the canonical parameter is its logit. It may be fitted by iteratively reweighted least squares.
Under LDA, Bayes' rule gives
which is a logistic model with an intercept.
Quasibinomial regression 2026-10-05
The logit mean model with working variance function has the same coefficient estimates as ordinary binomial logistic regression, but estimates dispersion from residuals. For an actual individual binary random variable, forces variance , so a nonunit dispersion is a working specification rather than a new independent binary distribution.
Regression model 2026-10-07
A regression model specifies features of the conditional distribution of a response given predictor covariates, often a conditional mean or a full parametric density. Linear regression specifies a linear conditional mean; logistic regression specifies a logit-linear conditional probability for a binary response. The conditional comparison represented by a coefficient depends on which covariates are included.