Meaning and conditions
The logistic model concerns binary outcome Y and the conditional probability of Y=1. This calculator uses an already fixed single normalized predictor model, not fitting raw data. Inputs must match model units and coding; prediction is neither validation nor causal evidence.[1][2]
An odds ratio compares odds, while a relative risk compares probabilities. ROC AUC instead evaluates ranking separation and does not answer whether a particular p is calibrated.[1][2]
Derivation and relations
Model log odds linearly and solve the relationship algebraically for probability.[1][2]
- Define Y=1 as the labeled target event and p=P(Y=1|x). Odds are p/(1−p) when 0<p<1.
- Model log odds as the linear predictor η=β0+β1x. Multiple predictors would be summed; this calculator uses exactly one already specified predictor.
- Exponentiation gives p/(1−p)=exp(η). Solve for p: p=exp(η)/(1+exp(η))=1/(1+exp(−η)).
- For a target probability invert to x=[ln(p/(1−p))−β0]/β1. This requires β1≠0 and 0<p<1; a zero slope cannot provide a unique inverse.
See the model
A fixed logit becomes a probability
Free with a Quanta account. Your download stays ready after registration.
Two complete worked examples
Predict using supplied coefficients
- Given
- A fictional fixed model has β0=−2,β1=0.5 and normalized predictor x=6.
- Find
- Find log odds, odds and model probability.
Form the linear predictor.
Exponentiate for odds.
Convert odds to probability.
Result: η=1, O≈2.7183 and p≈0.7311 are different representations of the same model.
Check: The logit of p returns 1 and p lies strictly between 0 and 1. Coefficients are authored values, not estimated effects from measurements.
Invert a target value
- Given
- A different fixed model has β0=−1,β1=0.4 and target model probability p=0.8.
- Find
- Calculate the normalized predictor corresponding to that target.
Calculate target odds and their logarithm.
Isolate x.
Substitute back into the model.
Result: x≈5.9657 in the explicitly normalized predictor units.
Check: The inverse describes only the specified curve; it is not a dosing or intervention instruction.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Units, interpretation and limits
p, odds and logit are dimensionless. Here x is explicitly normalized to a common predictor unit; for measured x,β1 has the corresponding inverse unit. The numeric calculator bounds |β0|,|β1| and |x| to 106 and |η| to 30.[1][2]
Actual fitting would raise issues such as likelihood, separation and uncertainty. Inserting a coefficient into a prediction formula does not validate it afterward; model performance needs suitable data.[1][2]
Five exercises with distinct learning goals
Calculate · Foundation
For β0=0,β1=1, x=0, calculate η, odds and p.
Show hint
exp(0)=1.
Learning goal: Recognize a zero logit
Show solution and calculation
η=0+1·0=0.
Odds=exp(0)=1 and p=1/(1+1)=0.5.
Zero log odds means even odds, not zero event probability.
Rearrange · Application
Find x for p=0.5 with β0=−1 and β1=0.5.
Show hint
At p=0.5, logit(p)=0.
Learning goal: Invert the 50% threshold
Show solution and calculation
0=−1+0.5x, giving x=2.
Check: η=0 yields p=0.5. Since β1≠0, the crossing of this target probability is unique.
Interpret · Application
What does β1=0.5 mean for increasing x by 1? Is p also multiplied by exp(0.5)?
Show hint
Compare exp(η+β1) with exp(η).
Learning goal: Understand an odds multiplier
Show solution and calculation
Odds are multiplied by exp(0.5)≈1.648721.
Probability is not multiplied by that fixed factor because O/(1+O) is nonlinear.
The same coefficient produces different absolute probability changes at different baseline risks.
Error analysis · Application
A model gives η=2. Someone reports 200% event probability. Correct this.
Show hint
η represents log odds, not yet probability.
Learning goal: Do not report the linear predictor as p
Show solution and calculation
p=1/(1+exp(−2))≈0.880797, or about 88.08%.
Log odds η=2 may exceed 1.
The logistic transformation keeps the resulting probability within the unit interval.
Transfer · Challenge
For β0=1,β1=−0.5, compare p at x=2 and x=4.
Show hint
The corresponding logits are 0 and−1.
Learning goal: Check a negative slope at two inputs
Show solution and calculation
At x=2,η=0 and p=0.5; at x=4,η=−1 and p≈0.268941.
The negative coefficient reduces modeled odds as x increases.
This alone does not establish a causal effect of changing x.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 9, 2026
- Keith Levin, University of Wisconsin: STAT340 Lecture 10 — logistic regression
- statsmodels: Logit.cdf — The logistic cumulative distribution function
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added a full article with explicit validity conditions, two authored examples, five checked exercises and an original native data graphic.
Cite this reference page
Quanta. Logistic regression. Updated November 9, 2026. https://quanta-study.de/en/formula-sheet/logistische-regression
When citing a specific scientific statement, also cite the specialist source linked to that statement.