Module 4 · Lesson 20 of 22
Binary response modelling concepts
Learning objectives
- Interpret probability and odds in a binary model.
- Fit a simple logistic relationship.
- Assess discrimination and calibration cautiously.
Binary modelling basics
Logistic regression models log-odds as a linear function of X. Report odds ratios with CIs and predicted probabilities that operators can act on.
Balance, non-linearity, interactions and threshold choice all matter, especially with imbalanced classes.
Garment-factory example
Estimate probability of seam failure from SPI, fabric stretch, needle age and thread type; translate the fitted model to a probability curve technicians can read.
Method
- Preserve unit-level binary data.
- Fit the model in a free tool.
- Convert coefficients to probabilities for communication.
- Validate on new data; check calibration.
Common mistakes
- Treating odds ratio as risk ratio.
- Choosing a threshold for maximum accuracy in imbalanced data.
Knowledge check
Pick one answer per question. Explanations appear after you submit.
1. Logistic regression models:
2. For imbalanced classes, threshold choice should consider:
Author: Sanjeewa Dehiwalage · Last reviewed: 2026-07-21