Logistic Regression Calculator

Run a simple binary logistic regression in your browser. Paste your dataset, train with gradient descent, see weights, intercept, predicted probabilities, and the logistic function. No Python or scikit-learn required.

Full original guide (expanded)

Logistic Regression Calculator

Compute logistic regression probabilities from coefficients and inputs.

1. Paste your dataset

Format: each row = 1 observation. Last column = target (0 or 1). Columns separated by comma, semicolon, tab, or space. First row can be a header.

2. Training parameters

3. Model output

No model trained yet.

4. Predict with the trained model

After training, we’ll show the feature list. Enter values in order and get the probability \( P(y=1 \mid x) \).

Logistic regression essentials

Logistic regression models the log-odds (logit) of the positive class as a linear combination of predictors:

logit(p) = ln( p / (1 − p) ) = β₀ + β₁x₁ + β₂x₂ + … + βₖxₖ p = 1 / (1 + e^(−(β₀ + β₁x₁ + ... + βₖxₖ)))

During training, we minimize the logistic loss (cross-entropy) over all observations. Here we do it with batch gradient descent.

Good to know

  • Features on wildly different scales can slow or destabilize training. Normalizing helps.
  • If your target isn’t 0/1, map it first.
  • This page does a basic, educational implementation—no regularization, no auto class-weight.

Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\\]
','\
Formula (extracted text)
logit(p) = ln( p / (1 − p) ) = β₀ + β₁x₁ + β₂x₂ + … + βₖxₖ p = 1 / (1 + e^(−(β₀ + β₁x₁ + ... + βₖxₖ)))
Variables and units
  • No variables provided in audit spec.
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
Formulas

(Formulas preserved from original page content, if present.)

Version 1.5.0
Citations

Add authoritative sources relevant to this calculator (standards bodies, manuals, official docs).

Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft (review required).