Model binary outcomes with priors, Laplace updates, and prediction intervals. Compare coefficients, probabilities, and uncertainty. Build stronger classification insight from structured evidence every day.
Results are based on a Gaussian prior and a Laplace approximation around the MAP estimate.
| Parameter | Intercept | Slope |
|---|
Enter binary data, prior settings, and a target predictor value for posterior prediction.
This example reflects a binary outcome becoming more likely as the predictor increases.
| Observation | x | y | Comment |
|---|---|---|---|
| 1 | -2.0 | 0 | Low predictor, negative class observed |
| 2 | -1.5 | 0 | Negative outcome remains likely |
| 3 | -1.0 | 0 | Still below decision shift |
| 4 | -0.2 | 0 | Borderline but negative |
| 5 | 0.6 | 1 | Positive outcome begins to appear |
| 6 | 1.1 | 0 | One noisy exception |
| 7 | 1.8 | 1 | Positive class more common |
| 8 | 2.2 | 1 | Higher x supports positive class |
| 9 | 2.9 | 1 | Strong signal at higher x |
| 10 | 3.4 | 1 | Very likely positive outcome |
Bayesian logistic regression is useful when you want a probability model with explicit prior assumptions. Priors stabilize estimates in small samples, noisy data, or cases with partial separation. The posterior output adds uncertainty ranges around coefficients and predictions instead of returning only one fitted line. This calculator uses a practical Laplace approximation, which is fast for web use and informative for exploratory analysis, planning, quality checks, and educational demonstrations.
It estimates the posterior mode for an intercept and one slope in a binary logistic model, then approximates posterior uncertainty with a covariance matrix.
The tool uses independent normal priors for the intercept and slope. You set their means and variances directly in the form.
The full posterior is not integrated exactly. Instead, the calculator uses a Laplace approximation around the MAP estimate for speed and clarity.
Yes. Paste one observation per line using x,y format. The tool validates that y is binary and x is numeric.
It is the estimated probability that y equals 1 at your chosen predictor value, summarized from the approximate posterior distribution.
Try increasing prior strength, lowering the predictor scale, checking data quality, or raising the maximum iteration setting.
This page is designed for one predictor plus an intercept so the results remain transparent and easy to verify manually.
Use it when prior knowledge matters, sample sizes are modest, or uncertainty communication is more valuable than a single point estimate.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.