The logistic regression probability calculator gives the predicted probability, the log-odds, the odds and the odds ratios from the coefficients of a fitted model and the values of two predictors.
How the calculation works
- Enter the intercept and the coefficients of the model.
- Enter the values of the two predictors for the case you want to score.
- The calculator gives the probability, the log-odds, the odds, the two odds ratios and the value of predictor 1 for a probability of 50 %.
Example
With an intercept of −4.2, coefficients of 0.05 and 0.8, and values of 60 and 1, the log-odds are −4.2 + 0.05 × 60 + 0.8 × 1 = -0.400. The odds are 0.670, the probability is 1 / (1 + e^0.4) = 40.13 % and each extra unit of predictor 1 multiplies the odds by 1.0513. The probability reaches 50 % when predictor 1 equals 68.00.
Why it matters
The calculator helps students, analysts and researchers to use the output of a logistic regression, for example the risk of an event from an age and a risk factor, or the chance that a customer buys.
Good to know
Take the coefficients from your software output, with the same coding of the variables as in the fit, since a variable in years and one in months have different coefficients. A coefficient of zero leaves the probability unchanged, and a positive one raises it. The curve of the probability is an S shape, so the same increase of the log-odds changes the probability a lot near 50 % and very little near 0 % or 100 %. If your model has only one predictor, set the second coefficient to zero. To compare two cases, compute both probabilities and take their ratio or difference. Check the fit of the model with a calibration plot or a Hosmer-Lemeshow test.
Related tools
The odds calculator converts odds and probabilities, the sigmoid function calculator describes the S curve, the probability calculator handles basic events and the four-parameter logistic calculator fits assay curves.