In statistics, the logistic model (or logit model) is a widely used statistical model that, in its basic form, uses a logistic function to model a binary dependent variable; many more complex extensions exist. In regression analysis, logistic regression (or logit regression) is estimating the parameters of a logistic model; it is a form of binomial regression. Mathematically, a binary logistic model has a dependent variable with two possible values, such as pass/fail, win/lose, alive/dead or healthy/sick; these are represented by an indicator variable, where the two values are labeled "0" and "1". In the logistic model, the log-odds (the logarithm of the odds) for the value labeled "1" is a linear combination of one or more independent variables ("predictors"); the independent variables can each be a binary variable (two classes, coded by an indicator variable) or a continuous variable (any real value).
Category | Usage | Methematics | Application Field |
---|---|---|---|
Supervised Learning | Classification | Gradient Descent, Sigmoid | Many... |
(Heaviside) step function => can't be differential
Sigmoid => differentiable
Pseudocode
Start with the weights all set to 1
For each piece of data in the dataset:
Calculate the gradient of one piece of data
Update the weights vector by alpha*gradient
Return the weights vector
In logistic discrimination, we don't model the class-conditional densities, but rather their ratio. (Assume that the log likelihood ratio is linear)
Multinomial - Softmax Regression (SMR)
Softmax Regression (synonyms: Multinomial Logistic, Maximum Entropy Classifier, or just Multi-class Logistic Regression) is a generalization of logistic regression that we can use for multi-class classification (under the assumption that the classes are mutually exclusive)
Softmax
$$ \operatorname{softmax}(x)i = \frac{ e^{x_i} }{ \sum{j=1}^n e^{x_j} } $$
- Binary vs. Multi-Class Logistic Regression
- Google ML Crash Course - Multi-Class Neural Networks: Softmax
Machine Learning in Action
- Ch5 Logistic Regression
- Ch5.2.1 Gradient Ascent
- Ch5.2.4 Stochastic Gradient Ascent
Introduction to Machine Learning
- Ch10.7 Logistic Discrimination
- Ch10.7.2 Multiple Classes
- Youtube - Logistic Regression
- Lecture 6.7 — Logistic Regression | MultiClass Classification OneVsAll — [Andrew Ng]
- Youtube - Softmax Regression (C2W3L08) — [Andrew Ng]
- Logistic Regression
- Multinomial logistic regression - softmax regression
Binomial (sigmoid)
Multinomial (softmax)