Logit

From HandWiki - Reading time: 5 min

Short description: Function in statistics
Plot of logit(x) in the domain of 0 to 1, where the base of the logarithm is e.

In statistics, the logit (/ˈlɪt/ LOH-jit) function is the quantile function associated with the standard logistic distribution. It has many uses in data analysis and machine learning, especially in data transformations.

Mathematically, the logit is the inverse of the standard logistic function [math]\displaystyle{ \sigma(x) = 1/(1+e^{-x}) }[/math], so the logit is defined as

[math]\displaystyle{ \operatorname{logit} p = \sigma^{-1}(p) = \ln \frac{p}{1-p} \quad \text{for} \quad p \in (0,1). }[/math]

Because of this, the logit is also called the log-odds since it is equal to the logarithm of the odds [math]\displaystyle{ \frac{p}{1-p} }[/math] where p is a probability. Thus, the logit is a type of function that maps probability values from [math]\displaystyle{ (0, 1) }[/math] to real numbers in [math]\displaystyle{ (-\infty, +\infty) }[/math],[1] akin to the probit function.

Definition

If p is a probability, then p/(1 − p) is the corresponding odds; the logit of the probability is the logarithm of the odds, i.e.:

[math]\displaystyle{ \operatorname{logit}(p)=\ln\left( \frac{p}{1-p} \right) =\ln(p)-\ln(1-p)=-\ln\left( \frac{1}{p}-1\right)=2\operatorname{atanh}(2p-1). }[/math]

The base of the logarithm function used is of little importance in the present article, as long as it is greater than 1, but the natural logarithm with base e is the one most often used. The choice of base corresponds to the choice of logarithmic unit for the value: base 2 corresponds to a shannon, base e to a “nat”, and base 10 to a hartley; these units are particularly used in information-theoretic interpretations. For each choice of base, the logit function takes values between negative and positive infinity.

The “logistic” function of any number [math]\displaystyle{ \alpha }[/math] is given by the inverse-logit:

[math]\displaystyle{ \operatorname{logit}^{-1}(\alpha) = \operatorname{logistic}(\alpha) = \frac{1}{1 + \exp(-\alpha)} = \frac{\exp(\alpha)}{ \exp(\alpha) + 1} = \frac{\tanh(\frac{\alpha}{2})+1}{2} }[/math]

The difference between the logits of two probabilities is the logarithm of the odds ratio (R), thus providing a shorthand for writing the correct combination of odds ratios only by adding and subtracting:

[math]\displaystyle{ \ln(R)=\ln\left( \frac{p_1/(1-p_1)}{p_2/(1-p_2)} \right) =\ln\left( \frac{p_1}{1-p_1} \right) - \ln\left(\frac{p_2}{1-p_2}\right) = \operatorname{logit}(p_1)-\operatorname{logit}(p_2)\,. }[/math]

History

There have been several efforts to adapt linear regression methods to a domain where the output is a probability value, [math]\displaystyle{ (0, 1) }[/math], instead of any real number [math]\displaystyle{ (-\infty, +\infty) }[/math]. In many cases, such efforts have focused on modeling this problem by mapping the range [math]\displaystyle{ (0, 1) }[/math] to [math]\displaystyle{ (-\infty, +\infty) }[/math] and then running the linear regression on these transformed values. In 1934 Chester Ittner Bliss used the cumulative normal distribution function to perform this mapping and called his model probit an abbreviation for "probability unit";.[2] However, this is computationally more expensive. In 1944, Joseph Berkson used log of odds and called this function logit, abbreviation for "logistic unit" following the analogy for probit:[3]

I use this term [logit] for [math]\displaystyle{ \ln p/q }[/math] following Bliss, who called the analogous function which is linear on [math]\displaystyle{ x }[/math] for the normal curve "probit."

Log odds was used extensively by Charles Sanders Peirce (late 19th century).[4] G. A. Barnard in 1949 coined the commonly used term log-odds;[5][6] the log-odds of an event is the logit of the probability of the event.[7] Barnard also coined the term lods as an abstract form of "log-odds",[8] but suggested that "in practice the term 'odds' should normally be used, since this is more familiar in everyday life".[9]

Uses and properties

  • The logit in logistic regression is a special case of a link function in a generalized linear model: it is the canonical link function for the Bernoulli distribution.
  • The logit function is the negative of the derivative of the binary entropy function.
  • The logit is also central to the probabilistic Rasch model for measurement, which has applications in psychological and educational assessment, among other areas.
  • The inverse-logit function (i.e., the logistic function) is also sometimes referred to as the expit function.[10]
  • In plant disease epidemiology the logit is used to fit the data to a logistic model. With the Gompertz and Monomolecular models all three are known as Richards family models.
  • The log-odds function of probabilities is often used in state estimation algorithms[11] because of its numerical advantages in the case of small probabilities. Instead of multiplying very small floating point numbers, log-odds probabilities can just be summed up to calculate the (log-odds) joint probability.[12][13]

Comparison with probit

Comparison of the logit function with a scaled probit (i.e. the inverse CDF of the normal distribution), comparing [math]\displaystyle{ \operatorname{logit}(x) }[/math] vs. [math]\displaystyle{ \tfrac{\Phi^{-1}(x)}{\,\sqrt{\pi/8\,}\,} }[/math], which makes the slopes the same at the y-origin.

Closely related to the logit function (and logit model) are the probit function and probit model. The logit and probit are both sigmoid functions with a domain between 0 and 1, which makes them both quantile functions – i.e., inverses of the cumulative distribution function (CDF) of a probability distribution. In fact, the logit is the quantile function of the logistic distribution, while the probit is the quantile function of the normal distribution. The probit function is denoted [math]\displaystyle{ \Phi^{-1}(x) }[/math], where [math]\displaystyle{ \Phi(x) }[/math] is the CDF of the standard normal distribution, as just mentioned:

[math]\displaystyle{ \Phi(x) = \frac 1 {\sqrt{2\pi}}\int_{-\infty}^x e^{-y^2/2} dy. }[/math]

As shown in the graph on the right, the logit and probit functions are extremely similar when the probit function is scaled, so that its slope at y = 0 matches the slope of the logit. As a result, probit models are sometimes used in place of logit models because for certain applications (e.g., in Bayesian statistics) the implementation is easier.

See also

References

  1. "Logit/Probit". http://www.columbia.edu/~so33/SusDev/Lecture_9.pdf. 
  2. J. S. Cramer (2003). "The origins and development of the logit model". Cambridge UP. http://www.cambridge.org/resources/0521815886/1208_default.pdf. 
  3. Berkson 1944, p. 361, footnote 2.
  4. Stigler, Stephen M. (1986). The history of statistics : the measurement of uncertainty before 1900. Cambridge, Massachusetts: Belknap Press of Harvard University Press. ISBN 978-0-674-40340-6. https://archive.org/details/historyofstatist00stig. 
  5. Hilbe, Joseph M. (2009), Logistic Regression Models, CRC Press, p. 3, ISBN 9781420075779, https://books.google.com/books?id=tmHMBQAAQBAJ&pg=PA3 .
  6. Barnard 1949, p. 120.
  7. Cramer, J. S. (2003), Logit Models from Economics and Other Fields, Cambridge University Press, p. 13, ISBN 9781139438193, https://books.google.com/books?id=1Od2d72pPXUC&pg=PA13 .
  8. Barnard 1949, p. 120,128.
  9. Barnard 1949, p. 136.
  10. "R: Inverse logit function". http://www.stat.ucl.ac.be/ISdidactique/Rhelp/library/msm/html/expit.html. 
  11. Thrun, Sebastian (2003). "Learning Occupancy Grid Maps with Forward Sensor Models" (in en). Autonomous Robots 15 (2): 111–127. doi:10.1023/A:1025584807625. ISSN 0929-5593. 
  12. Styler, Alex (2012). "Statistical Techniques in Robotics". p. 2. https://www.cs.cmu.edu/~16831-f12/notes/F12/16831_lecture05_vh.pdf. 
  13. Dickmann, J.; Appenrodt, N.; Klappstein, J.; Bloecher, H. L.; Muntzinger, M.; Sailer, A.; Hahn, M.; Brenk, C. (2015-01-01). "Making Bertha See Even More: Radar Contribution". IEEE Access 3: 1233–1247. doi:10.1109/ACCESS.2015.2454533. ISSN 2169-3536. 

External links

Further reading

  • Ashton, Winifred D. (1972). The Logit Transformation: with special reference to its uses in Bioassay. Griffin's Statistical Monographs & Courses. 32. Charles Griffin. ISBN 978-0-85264-212-2. 




Licensed under CC BY-SA 3.0 | Source: https://handwiki.org/wiki/Logit
35 views | Status: cached on July 27 2024 10:57:17
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF