Logit

From Wikipedia, the free encyclopedia
(Redirected from Logit function)
Jump to navigation Jump to search

Template:Short description Script error: No such module "about". Script error: No such module "Distinguish".

File:Logit.svg
Plot of logit(x) in the domain of 0 to 1, where the base of the logarithm is e.

In statistics, the logit (Template:IPAc-en Template:Respell) 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 σ(x)=1/(1+ex), so the logit is defined as

logitp=σ1(p)=lnp1pforp(0,1).

Because of this, the logit is also called the log-odds since it is equal to the logarithm of the odds p1p 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 (,+),[1] akin to the probit function.

Definition

If Template:Mvar is a probability, then p/(1 − p) Script error: No such module "Check for unknown parameters". is the corresponding odds; the logitScript error: No such module "Check for unknown parameters". of the probability is the logarithm of the odds, i.e.:

logit(p)=ln(p1p)=ln(p)ln(1p)=ln(1p1)=2atanh(2p1).

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-logitScript error: No such module "Check for unknown parameters".:

logit1(α)=logistic(α)=11+exp(α)=exp(α)exp(α)+1=tanh(α2)+12

The difference between the logitScript error: No such module "Check for unknown parameters".s 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(p1/(1p1)p2/(1p2))=ln(p11p1)ln(p21p2)=logit(p1)logit(p2).

The Taylor series for the logit function is given by:

logit(x)=2n=0(2x1)2n+12n+1.

History

Several approaches have been explored to adapt linear regression methods to a domain where the output is a probability value (0,1), instead of any real number (,+). In many cases, such efforts have focused on modeling this problem by mapping the range (0,1) to (,+) 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 for "probability unit". This is, however, computationally more expensive.[2]

In 1944, Joseph Berkson used log of odds and called this function logit, an abbreviation for "logistic unit", following the analogy for probit: Template:Quote

Log odds was used extensively by Charles Sanders Peirce (late 19th century).[3] G. A. Barnard in 1949 coined the commonly used term log-odds;[4]Template:Sfn the log-odds of an event is the logit of the probability of the event.[5] 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

  • 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.
  • More abstractly, the logit is the natural parameter for the binomial distribution; see Template:Slink.
  • 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.[6]
  • In plant disease epidemiology, the logistic, Gompertz, and monomolecular models are collectively known as the Richards family models.
  • The log-odds function of probabilities is often used in state estimation algorithms[7] 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.[8][9]

Comparison with probit

File:Logit-probit.svg
Comparison of the logit function with a scaled probit (i.e. the inverse CDF of the normal distribution), comparing logit(x) vs. Φ1(x)π/8, which makes the slopes the same at the Template:Mvar-origin.

Closely related to the logitScript error: No such module "Check for unknown parameters". function (and logit model) are the probit function and probit model. The logitScript error: No such module "Check for unknown parameters". and probitScript error: No such module "Check for unknown parameters". 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 logitScript error: No such module "Check for unknown parameters". is the quantile function of the logistic distribution, while the probitScript error: No such module "Check for unknown parameters". is the quantile function of the normal distribution. The probitScript error: No such module "Check for unknown parameters". function is denoted Φ1(x), where Φ(x) is the CDF of the standard normal distribution, as just mentioned:

Φ(x)=12πxey2/2dy.

As shown in the graph on the right, the logitScript error: No such module "Check for unknown parameters". and probitScript error: No such module "Check for unknown parameters". functions are extremely similar when the probitScript error: No such module "Check for unknown parameters". function is scaled, so that its slope at y = 0Script error: No such module "Check for unknown parameters". matches the slope of the logitScript error: No such module "Check for unknown parameters".. 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.[10]

See also

References

Script error: No such module "Unsubst".

<templatestyles src="Reflist/styles.css" />

  1. Script error: No such module "citation/CS1".
  2. a b Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1"..
  5. Script error: No such module "citation/CS1"..
  6. Script error: No such module "citation/CS1".
  7. Script error: No such module "Citation/CS1".
  8. Script error: No such module "citation/CS1".
  9. Script error: No such module "Citation/CS1".
  10. Script error: No such module "citation/CS1".

Script error: No such module "Check for unknown parameters". <templatestyles src="Refbegin/styles.css" />

  • Script error: No such module "Citation/CS1".
  • Script error: No such module "Citation/CS1".

External links

Further reading

  • Script error: No such module "citation/CS1".