2.2.11 · D3Linear & Logistic Regression

Worked examples — Decision boundaries

2,941 words13 min readBack to topic

First, one reminder of the machinery so no symbol arrives unexplained.


The scenario matrix

Every worked example below is tagged with the cell it covers. Together they fill the table.

Cell What makes it different Example
A. Positive score point on the class-1 side, Ex 1
B. Negative score point on the class-0 side, Ex 1
C. Exactly on boundary , perfect tie, Ex 2
D. Solve boundary in 1D boundary is a single point Ex 3
E. Solve boundary in 2D boundary is a line; find its geometry Ex 4
F. Non-default threshold shifts the line Ex 5
G. Scaling boundary must NOT move Ex 6
H. Curved boundary (features) circle/ellipse via terms Ex 7
I. Degenerate / zero model : boundary disappears Ex 8
J. Real-world word problem translate words → → decision Ex 9
K. Exam twist recover from two known points Ex 10

Worked examples











Recall Self-check: name the cell

Point with ::: Cell B, class 0. ::: Cell C, exactly on the boundary, . ::: Cell H, an ellipse boundary. ::: Cell I, constant classifier, always class 1, empty boundary. Threshold raised to ::: Cell F, line slides parallel by . Multiply by 10 ::: Cell G, same boundary, sharper confidence.


Connections

  • Decision boundaries — the parent rule () this page exercises.
  • Logistic Regression — source of the score .
  • Sigmoid Function — why and how thresholds invert.
  • Feature Engineering — Ex 7's ellipse from squared features.
  • Linear Regression — same , different output layer.
  • Support Vector Machines — the max-margin cousin of Ex 4's hyperplane.
  • Softmax Classification — many boundaries at once for multi-class.