Core ML Models · Module 2

Logistic Regression

Classification with a smooth probability curve and a decision threshold.

Problem

Pass or fail? Given study hours, predict whether a student passes (score ≥ 60).

P(pass) = σ(mx + b)    σ(z) = 1 / (1 + e^(−z))

Diagram — Sigmoid decision boundary

0.5 threshold Pass Fail hours →
Remember: Logistic regression outputs a probability; you choose the cut-off (often 0.5).