Linear Discriminant Analysis
Linear Discriminant Analysis
+1
x g
−1
For a new sample x and a given discriminant
function, we can decide on x belongs to Class
1 if g(x) > 0, otherwise it’s Class 2.
−4 0 3
2
Lecture 5
g(x1) = g(x2) = 0
wT x1 + w0 = wT x2 + w0 = 0
wT (x1 − x2) = 0
This means that w is normal to any vector
lying in the hyperplane ( (x1 − x2) is a vector
lying on the the decision surface as it starts
from x2, ends at x1).
x
w
g>0
xp
g=0
g<0
3
Lecture 5
Write
w
x = xp + r
kw k
where xp is the projection of x on the hyper-
plane. r is the distance from x to the hyper-
plane.
g(x) = wT x + w0
w
= wT [xp + r ] + w0
kw k
T wT w
= w xp + r + w0
kw k
= wT xp + w0 +rkwk
| {z }
0
= rkwk
x
w
|w 0 |
||w|| |g(x) | g>0
||w||
g=0
g<0
5
Lecture 5
150
100
1
4
3
2 g(x)>0 Accept
50
g(x)<0 Reject
0
0 50 100 150
8
Lecture 5