Logit

From testwiki
Jump to navigation Jump to search

Template:Short description Template:About Template:Distinguish

Plot of Template:Math in the domain of Template:Math, where the base of the logarithm is Template:Mvar

In statistics, the logitTemplate:Efn (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 Template:Tmath, so the logit is defined as logit⁡p=σ−1(p)=ln⁡p1−pforp∈(0,1).

Because of this, the logit is also called the log-odds since it is equal to the logarithm of the odds p1−p where Template:Mvar is a probability. Thus, the logit is a type of function that maps probability values from (0,1) to real numbers in Template:Tmath,[1] akin to the probit function.

Definition

If Template:Mvar is a probability, then p1−p is the corresponding odds; the Template:Math of the probability is the logarithm of the odds, i.e.: logit⁡(p)=−ln⁡(p1−p)=ln⁡(p)−ln⁡(1−p)=−ln⁡(1p−1)=2atanh⁡(2p−1).

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 Template:Mvar 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 Template:Mvar 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 α is given by the inverse-Template:Math: logit−1(α)=logistic⁡(α)=11+e−α=eαeα+1=tanh⁡(α2)+12

The difference between the Template:Maths of two probabilities is the logarithm of the odds ratio (Template:Mvar), thus providing a shorthand for writing the correct combination of odds ratios only by adding and subtracting: ln⁡(R)=ln⁡(p11−p1p21−p2)=ln⁡(p11−p1)−ln⁡(p21−p2)=logit⁡(p1)−logit⁡(p2).

The Taylor series for the logit function is given by: logit⁡(x)=2∑n=0∞(2x−1)2n+12n+1.

History

Several approaches have been explored to adapt linear regression methods to a domain where the output is a probability value Template:Tmath, instead of any real number Template:Tmath. In many cases, such efforts have focused on modeling this problem by mapping the range Template:Tmath to Template:Tmath and then running the linear regression on these transformed values.[2]

In 1934, Chester Ittner Bliss used the cumulative normal distribution function to perform this mapping and called his model probit, an abbreviation of "probability unit". This is, however, computationally more expensive.[2] In 1944, Joseph Berkson used log of odds and called this function logit, an abbreviation of "logistic unit", following the analogy for probit.[3]

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

Uses and properties

Comparison with probit

Comparison of the logit function with a scaled probit (i.e. the inverse CDF of the normal distribution), comparing Template:Math vs. Template:Math, which makes the slopes the same at the Template:Mvar-origin.

Closely related to the Template:Math function (and logit model) are the probit function and probit model. The Template:Math and Template:Math are both sigmoid functions with a domain between 0 and 1, which makes them both quantile functionsTemplate:Snd i.e., inverses of the cumulative distribution function (CDF) of a probability distribution. In fact, the Template:Math is the quantile function of the logistic distribution, while the Template:Math is the quantile function of the normal distribution. The Template:Math function is denoted Template:Tmath, where Template:Tmath is the CDF of the standard normal distribution, as just mentioned: Φ⁡(x)=12π∫−∞xe−y2/2dy.

As shown in the graph on the right, the Template:Math and Template:Math functions are extremely similar when the Template:Math function is scaled, so that its slope at Template:Math matches the slope of the Template:Math. 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.[11]

See also

References

Template:More footnotes needed Template:Notelist Template:Reflist

Template:Refbegin

Template:Refend

Further reading

  1. ↑ Template:Cite web
  2. ↑ 2.0 2.1 Template:Cite web
  3. ↑ Template:Harvnb: "I use this term [logit] for ln⁡p/q following Bliss, who called the analogous function which is linear on Template:Tmath for the normal curve 'probit'."
  4. ↑ Template:Cite book
  5. ↑ Template:Cite book.
  6. ↑ Template:Cite book.
  7. ↑ Template:Cite web
  8. ↑ Template:Cite journal
  9. ↑ Template:Cite web
  10. ↑ Template:Cite journal
  11. ↑ Template:Cite book