Skip to content

spec: add logistic-regression specification#3552

Merged
github-actions[bot] merged 1 commit intomainfrom
specification/logistic-regression
Jan 9, 2026
Merged

spec: add logistic-regression specification#3552
github-actions[bot] merged 1 commit intomainfrom
specification/logistic-regression

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Jan 9, 2026

New Specification: logistic-regression

Related to #3550


specification.md

logistic-regression: Logistic Regression Curve Plot

Description

A logistic regression visualization showing the characteristic S-shaped (sigmoid) probability curve for binary classification. The plot displays data points colored by their binary class, the fitted logistic curve representing predicted probabilities, confidence intervals around the curve, and an optional decision threshold line. This visualization is essential for understanding how a logistic model maps continuous input features to class probabilities.

Applications

  • Visualizing credit risk scoring models where the probability of default varies with income or credit score
  • Analyzing medical diagnostic thresholds where probability of disease changes with biomarker levels
  • Understanding marketing conversion rates as a function of customer engagement metrics or ad spend
  • Demonstrating the decision boundary in binary classification problems for educational purposes

Data

  • x (numeric) - Continuous independent variable (predictor/feature) plotted on the horizontal axis
  • y (binary) - Binary outcome variable (0 or 1) plotted as data points
  • probability (numeric) - Predicted probability from the logistic model (0 to 1) for the fitted curve
  • Size: 50-500 data points recommended for clear visualization of both the curve and underlying data
  • Example: Binary classification data where the outcome probability follows a sigmoidal relationship with the predictor

Notes

  • Data points should be jittered slightly on the y-axis (around 0 and 1) for visibility when overlapping
  • Use distinct colors for the two classes (e.g., blue for class 0, orange for class 1)
  • The logistic curve should be smooth and prominently displayed (solid line, ~2px width)
  • Include 95% confidence interval band around the fitted curve with semi-transparent shading
  • Add a horizontal dashed line at probability = 0.5 to indicate the default decision threshold
  • Label axes clearly: x-axis with the predictor name, y-axis as "Probability" (0 to 1)
  • Consider displaying model coefficients or accuracy metrics as annotations
  • Points should have moderate transparency (alpha ~0.6) to show density patterns

Next: Add approved label to the issue to merge this PR.


🤖 spec-create workflow

@github-actions github-actions bot merged commit ac01a09 into main Jan 9, 2026
4 checks passed
@github-actions github-actions bot deleted the specification/logistic-regression branch January 9, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants