Binary classification with gradient descent optimization
Maps any input z to probability [0, 1]
Output = 0.5 when z = 0
Diabetes Risk: Age vs Glucose
Fraud Detection: Time vs Amount
Exam Pass/Fail: Study Hours vs Score
XOR Pattern: Requires degree ≥ 2
Sigmoid: σ(z) = 1 / (1 + e^(-z))
Cost: Binary Cross-Entropy
Optimization: Gradient Descent
Decision Boundary:
• Degree 1: Straight line
• Degree 2+: Curved boundary
Complexity: O(n × d² × iter)
where d = polynomial degree