ArticleslgStudy

mathematics

Logit

Logit is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Logit rather than just read about it. In short: 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.

Logit — main illustration
Logit — illustration

Key takeaways

  • Logit belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Logit to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Logit from memory before moving on to harder problems.

Reference excerpt

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 ⁠σ(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.

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. 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. In 1944, Joseph Berkson used log of odds and called this function logit, an abbreviation of "logistic unit", following the analogy for probit. Log odds was used extensively by Charles Sanders Peirce in the late 19th century. G. A. Barnard in 1949 coined the commonly used term log-odds; the log-odds of an event is the logit of the probability of the event. Barnard also coined the term lods as an abstract form of "log-odds", but suggested that "in practice the term 'odds' should normally be used, since this is more familiar in everyday life".

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 Exponential family § Binomial 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. 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 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.

Comparison with probit

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 ⁠Φ−1(x)⁠, where ⁠Φ⁡(x)⁠ 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 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 item response theory) the implementation is easier.

See also Sigmoid function Discrete choice on binary logit, multinomial logit, conditional logit, nested logit, mixed logit, exploded logit, and ordered logit Limited dependent variable Logit analysis in marketing Multinomial logit Ogee, curve with similar shape Perceptron Probit, another function with the same domain and range as the logit Ridit scoring Data transformation (statistics) Arcsin (transformation) Rasch model

References

External links Which Link Function — Logit, Probit, or Cloglog? 12.04.2023

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

Illustrations

Logit: Plot of .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}logit(x) in the domain of (0, 1), where the base of the logarithm is e
Plot of .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}logit(x) in the domain of (0, 1), where the base of the logarithm is e
Logit: 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 y-origin.
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 y-origin.

Worked examples

Example 1 — a first encounter with Logit

Start with the simplest possible case. Write down what Logit claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Logit before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Logit ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Logit

In research
Logit appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Logit in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Logit is common in secondary-school and first-year university syllabi. It links to neighbouring topics Logarithms, Special functions, so understanding it makes those chapters shorter.
In everyday life
Look for Logit outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Logit” →

How to study Logit in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Logit means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Logit out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Logit in simple terms?

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.

Why does Logit matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Logit?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Logit.

Tags

  • Logarithms
  • Special functions

Keep exploring