Lably
Skip to content

Logit

Function in statistics

  • 3 min read
  • 4 chapters

Related on Lably

Through Statistics, Data analysis and Machine learning

Mathematically, the logit is the inverse of the standard logistic function ⁠σ(x)=1/(1+e−x)⁠, 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 p 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.

Definition

If p is a probability, then p1−p is the corresponding odds; the logit 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 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 α is given by the inverse-logit: logit−1⁡(α)=logistic⁡(α)=11+e−α=eαeα+1=tanh⁡(α2)+12

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: 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.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Topics in mathematics