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
| Input | Format / range | Example |
|---|---|---|
| x,binary y pairs — one per line | Follow the input format above | 0,0
1,0
2,1
3,0
4,1
5,1 |
| x for predicted probability | Number | 3 |
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.
