Skip to content

Advertisement
Advertisement unavailable offline
The page content remains available.

Logistic regression calculator

Paste predictor X and binary outcome Y coded as 0 or 1. The model contains an intercept and one predictor.

P-value for the X coefficient: —

Fill in the fields above — the result is computed on this page.

Intercept β₀
—
Coefficient β₁
—
Odds ratio e^β₁
—
Coefficient SE
—
z statistic
—
Observations
—
Iterations
—

Model fit

Row X Y Predicted P(Y=1)
Fill in the fields above — the result is computed on this page.
What do these numbers mean?
  • The odds ratio refers to exactly one unit of X.
  • A p-value does not describe classification quality or causality.

The calculator supports one numeric predictor and complete unweighted data. Class separation can prevent a finite estimate; research use also requires diagnostics and confidence intervals.

How do I use this page?
  1. Paste X and binary Y in matching order.
  2. Check convergence and coefficients.
  3. Interpret e^β₁ and fitted probabilities.

What this page does not do: The calculator supports one numeric predictor and complete unweighted data. Class separation can prevent a finite estimate; research use also requires diagnostics and confidence intervals.

Further reading

Theory — what is logistic regression?

Simple logistic regression models the log odds of a binary outcome Y=1 as a linear function of a predictor X, with an intercept and one predictor term. The coefficient β₁ shows the change in log odds when X increases by one unit, and e^β₁ is the corresponding odds ratio — an odds ratio of 1.5 means the odds of Y=1 are multiplied by 1.5. Parameters are estimated via maximum likelihood from the pasted X and Y values coded as 0 or 1.

Frequently asked questions

What does an odds ratio of 1.5 mean?
The odds of Y=1 are multiplied by 1.5 for a one-unit increase in X.
Why does a perfectly separated sample fail?
With complete separation, standard maximum likelihood coefficients diverge toward infinity.

See also

← All calculators

Advertisement
Advertisement unavailable offline
The page content remains available.
Offline app and draw notifications

My saved selections

Selections saved only in this browser. Numbers are shown exactly as saved; this is not a lottery ticket.

Open the My saved selections hub
Restore with preview

Restore in the hub: review the file and confirm first. Both old backups and the complete selections + journal backup are supported. Nothing is uploaded.