JESUS CHRIST IS THE ONLY TRUE GOD
Statistics calculator

Logistic Regression Calculator

Fit a one-predictor binary logistic regression by iteratively reweighted least squares.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for Predicted probability. The example starts with x for predicted probability = 3.

Logistic Regression Calculator formula

log[p/(1−p)]=β₀+β₁x. Newton/IRLS updates solve the two-parameter likelihood score equations.

Inputs and units

Inputs and example values for Logistic Regression Calculator
InputFormat / rangeExample
x,binary y pairs — one per lineFollow the input format above0,0 1,0 2,1 3,0 4,1 5,1
x for predicted probabilityNumber3

Worked example

The values listed in Inputs and units give 0.647259307311 for Predicted probability.

Predicted probability
0.647259307311
Intercept β₀
-3.035068964629
Slope β₁
1.214027585851
Odds ratio per x unit
3.367018335629

Results and assumptions

Change x for predicted probability from 3 to 3.3 and keep the other example inputs fixed. The updated answer is 0.725363014975 (Predicted probability).

Fix an input or unexpected result

x for predicted probability is required. Enter x for predicted probability using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.

See how to check a result or report an issue.