Logistic Regression
1. Model
Linear score squashed to probability via sigmoid:
as , as , .
2. Training (cross-entropy)
Minimize negative log-likelihood:
Convex — gradient descent finds global optimum. Gradient: .
3. Prediction
Boundary ⟺ (linear). Outputs are calibrated probabilities, not just labels.
4. Worked
(confident positive). (likely negative). Weight means feature pushes toward class 1.
5. Exam Points
- Write sigmoid + loss — 7 marks, very frequent.
- Why convex + probabilistic beats perceptron — 3 marks, frequent.
- Threshold 0.5 rule — 2 marks.