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 ) {\displaystyle \textstyle \sigma (x)=1/(1+e^{-x})} ⁠, so the logit is defined as

logit ⁡ p = σ − 1 ( p ) = ln ⁡ p 1 − p for p ∈ ( 0 , 1 ) . {\displaystyle \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 p 1 − p {\textstyle {\frac {p}{1-p}}} where p is a probability. Thus, the logit is a type of function that maps probability values from ( 0 , 1 ) {\displaystyle (0,1)} to real numbers in ⁠ ( − ∞ , + ∞ ) {\displaystyle (-\infty ,+\infty )} ⁠, akin to the probit function.

Definition If p is a probability, then p 1 − p {\textstyle {\tfrac {p}{1-p}}} is the corresponding odds; the logit of the probability is the logarithm of the odds, i.e.:

logit ⁡ ( p ) = − ln ⁡ ( p 1 − p ) = ln ⁡ ( p ) − ln ⁡ ( 1 − p ) = − ln ⁡ ( 1 p − 1 ) = 2 atanh ⁡ ( 2 p − 1 ) . {\displaystyle {\begin{aligned}\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{aligned}}}

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 α {\displaystyle \alpha } is given by the inverse-logit:

logit − 1 ⁡ ( α ) = logistic ⁡ ( α ) = 1 1 + e − α = e α e α + 1 = tanh ⁡ ( α 2 ) + 1 2 {\displaystyle \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 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:

… excerpt ends here. Continue reading the full article.

Illustrations

Logit: Plot of logit(x) in the domain of (0, 1), where the base of the logarithm is e
Plot of 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.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

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