Logit

Uses your system voice; voice and rate in settings.

Snapshot

≈ 4 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

In statistics, the logit (logistic unit) or log-odds 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 , so the logit is defined as \operatorname{logit} p = \sigma^{-1}(p) = \ln \frac{p}{1-p} \quad \text{for} \quad p \in (0,1). Because of this, the logit is also called the log-odds since it is equal to the logarithm of the odds \frac{p}{1-p} where is a probability. Thus, the logit is a type of function that maps probability values from (0, 1) to real numbers in , akin to the probit function.

In statistics, the logit (logistic unit) or log-odds 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 , so the logit is defined as \operatorname{logit} p = \sigma^{-1}(p) = \ln \frac{p}{1-p} \quad \text{for} \quad p \in (0,1). Because of this, the logit is also called the log-odds since it is equal to the logarithm of the odds \frac{p}{1-p} where is a probability. Thus, the logit is a type of function that maps probability values from (0, 1) to real numbers in , akin to the probit function. If is a probability, then \tfrac{p}{1-p} is the corresponding odds; the of the probability is the logarithm of the odds, i.e.: \begin{align} \operatorname{logit}(p) &= \hphantom{-} \ln\left( \frac{p}{1-p} \right) = \ln(p)-\ln(1-p) \\ &= -\ln\left( \frac{1}{p}-1\right) = 2\operatorname{atanh}(2p-1). \end{align} 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 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  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 \alpha is given by the inverse- : \operatorname{logit}^{-1}(\alpha) = \operatorname{logistic}(\alpha) = \frac{1}{1 + e^{-\alpha}} = \frac{e^\alpha}{ e^\alpha + 1} = \frac{\tanh(\frac{\alpha}{2})+1}{2} The difference between the s of two probabilities is the logarithm of the odds ratio ( ), thus providing a shorthand for writing the correct combination of odds ratios only by adding and subtracting: \begin{align} \ln(R) &= \ln\left( \frac{\tfrac{p_1}{1-p_1}}{\tfrac{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)\,. \end{align} The Taylor series for the logit function is given by: \operatorname{logit}(x)=2\sum_{n=0}^\infty \frac{(2x-1)^{2n+1}}{2n+1}. \operatorname{\Phi}(x) = \frac{1}{\sqrt{2\pi}}\int_{-\infty}^x e^{-y^2/2} dy. As shown in the graph on the right, the and functions are extremely similar when the function is scaled, so that its slope at matches the slope of the . As a result, probit models are sometimes used in place of logit models because for certain applications (e.g., in item response theory) the implementation is easier.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1363780870 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

9 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.