w is orthogonal to H: for y,y′∈H, w⋅(y−y′)=b−b=0. Write x=y+t⋅∥w∥w with y∈H the foot of the perpendicular and ∣t∣=dist(x,H). Then w⋅x−b=(w⋅y−b)+t∥w∥w⋅w=t∥w∥, so ∣t∣=∣w⋅x−b∣/∥w∥.
Bias as an extra component. Appending a constant 1 to x and −b to w gives w⋅x−b=(w,−b)⋅(x,1), a hyperplane through the origin in Rd+1. Logistic Regression uses this form (“bias term already included in X”).
w is the normal vector of H; the sign of w⋅x−b tells on which side x lies, ∥w∥w⋅x−b is the signed distance.
H contains the origin iff b=0, since w⋅0=0 (exam WS 22/23, Task 3.2).
Scaling invariance:(λw,λb) for λ>0 defines the same classifier and the same H.
XOR is not linearly separable. Points (1,1),(2,2) in class 0 and (2,1),(1,2) in class 1: a separating (w,b) would need w⋅(2,1)>b and w⋅(1,2)>b, so w⋅(3,3)>2b, and also w⋅(1,1)≤b, w⋅(2,2)≤b, so w⋅(3,3)≤2b. Contradiction. Hence no linear classifier reaches precision and recall 1 on both classes (exam WS 22/23, Task 3.3).
Classifiers that are linear:
the Perceptron learns (w,b) directly and finds a separating one if the data is linearly separable;