Follow the transformation
Fit coefficients by minimising classification log loss, usually with regularisation.
Inspect predicted probabilities, not only hard classes.
Choose thresholds using validation data and decision costs.
Logistic regression is a linear probabilistic classifier.
Logistic regression is a linear probabilistic classifier. A weighted feature score is transformed by the sigmoid function into a probability between 0 and 1, then a separate decision threshold can convert that probability into a class label.
Learning goal: explain why Logistic Regression behaves this way, apply it to a small example, and verify the result independently. Begin by being able to justify this first step: Fit coefficients by minimising classification log loss, usually with regularisation.
Treat this as a sequence of observable decisions rather than one opaque command. Stage 1: Fit coefficients by minimising classification log loss, usually with regularisation. Stage 2: Inspect predicted probabilities, not only hard classes. Stage 3: Choose thresholds using validation data and decision costs. Final checkpoint: Scale/encode features inside the pipeline when required.
Fit coefficients by minimising classification log loss, usually with regularisation.
Inspect predicted probabilities, not only hard classes.
Choose thresholds using validation data and decision costs.
Fit coefficients by minimising classification log loss, usually with regularisation. At this stage of Logistic Regression, keep the incoming data or object separate from the learned parameter, transformed object, or statistic so the change can be reproduced and independently checked.
Probability = 0.72; threshold = 0.50 → positive.
Same probability; threshold = 0.80 → negative.The fitted probability and the operational threshold are distinct parts of the system.
For Logistic Regression, connect the result to the fitted state, held-out data or prediction rule that produced it and independently check one prediction, split or metric component.
Training evidenceInformation allowed to influence fitted state.Held-out evidenceIndependent observations used to estimate generalisation.InterpretationWhat the result supports, with assumptions and limitations.Use Logistic Regression when it answers a defined question in Predictive Modelling and its inputs/assumptions match the current data or program state.
Reconsider Logistic Regression when the required information is unavailable, the operation would violate a validation/data boundary, or a simpler operation answers the question more transparently.
Construct a tiny example of Logistic Regression. First fit coefficients by minimising classification log loss, usually with regularisation. Then inspect predicted probabilities, not only hard classes. Predict the result before execution and explain one boundary or failure case.
Which approach best demonstrates understanding of Logistic Regression?
Step 1Fit coefficients by minimising classification log loss, usually with regularisation.Step 2Inspect predicted probabilities, not only hard classes.Step 3Choose thresholds using validation data and decision costs.Step 4Evaluate discrimination and calibration separately.