


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Because the covariance matrices are not equal, it follows from Eq. (12.2-26) that
d 1 ( x ) = ā
ln(0.25) ā
x T
x
ln(0.25) ā (x 21 + x 22 )
and
d 2 ( x ) = ā
ln(4.00) ā
x T
x
ln(4.00) ā
(x 21 + x 22 )
where the term lnP( Ļ j ) was not included because it is the same for both deci- sion functions in this case. The equation of the Bayes decision boundary is
d ( x ) = d 1 ( x ) ā d 2 ( x ) = 1.39 ā
(x 12 + x 22 ) = 0.
(b) Figure P12.8 shows a plot of the boundary.
From basic probability theory,
p (c ) =
x
p (c / x )p ( x ).
For any pattern belonging to class Ļ j , p (c / x ) = p ( Ļ j / x ). Therefore,
p (c ) =
x
p ( Ļ j / x )p ( x ).
Substituting into this equation the formula p ( Ļ j / x ) = p ( x /Ļ j )p ( Ļ j ) / p ( x ) gives
p (c ) =
x
p ( x /Ļ j )p ( Ļ j ).
Because the argument of the summation is positive, p (c ) is maximized by maxi- mizing p ( x /Ļ j )p ( Ļ j ) for each j. That is, if for each x we compute p ( x /Ļ j )p ( Ļ j ) for j = 1, 2, ..., W , and use the largest value each time as the basis for selecting the class from which x came, then p (c ) will be maximized. Since p (e ) = 1 ā p (c ), the probability of error is minimized by this procedure.
We start by taking the partial derivative of J with respect to w :
ā J ā w
y sgn( w T^ y ) ā y
where, by definition, sgn( w T^ y ) = 1 if w T^ y > 0, and sgn( w T^ y ) = ā1 otherwise. Substituting the partial derivative into the general expression given in the prob- lem statement gives
w (k + 1 ) = w (k ) + c 2
y ( k ) ā y ( k )sgn w ( k )T^ y ( k )
where y (k ) is the training pattern being considered at the k th iterative step. Sub- stituting the definition of the sgn function into this result yields
w (k + 1 ) = w (k ) + c
0 if w ( k )T^ y ( k ) y (k ) otherwise
where c > 0 and w ( 1 ) is arbitrary. This expression agrees with the formulation given in the problem statement.
The single decision function that implements a minimum distance classifier for two classes is of the form
d (^) i j ( x ) = x T^ ( m i ā m j ) ā
( m Ti m i ā m Tj m j ).
Thus, for a particular pattern vector x , when d (^) i j ( x ) > 0, x is assigned to class Ļ 1 and, when d (^) i j ( x ) < 0, x is assigned to class Ļ 2. Values of x for which d (^) i j ( x ) = 0 are on the boundary (hyperplane) separating the two classes. By letting w = ( m i ā m j ) and w (^) n + 1 = ā 12 ( m Ti m i ā m Tj m j ), we can express the above decision function in the form d ( x ) = w T^ x ā w (^) n + 1.
This is recognized as a linear decision function in n dimensions, which is imple- mented by a single layer neural network with coefficients
w (^) k = (m (^) i k ā m (^) j k ) k = 1, 2,... , n
and
Īø = w (^) n + 1 = ā
( m Ti m i ā m Tj m j ).
Figure P12.
as we move further down the tree). We prove that k (^) a c ℠min[k (^) ab , k (^) b c ] by con- tradiction. For k (^) a c ⤠min[k (^) ab , k (^) b c ] to hold, shape A has to separate from shape C before (1) shape A separates from shape B, and (2) before shape B separates from shape C , otherwise k (^) ab ⤠k (^) a c or k (^) b c ⤠k (^) a c , which automatically vio- lates the condition k (^) a c < min[k (^) ab , k (^) b c ]. But, if (1) has to hold, then Fig. P12. shows the only way that A can separate from C before separating from B. This, however, violates (2), which means that the condition k (^) a c < min[k (^) ab , k (^) b c ] is vi- olated (we can also see this in the figure by noting that k (^) a c = k (^) b c which, since k (^) b c < k (^) ab , violates the condition). We use a similar argument to show that if (2) holds then (1) is violated. Thus, we conclude that it is impossible for the condition k (^) a c < min[k (^) ab , k (^) b c ] to hold, thus proving that k (^) a c ℠min[k (^) ab , k (^) b c ] or, equivalently, that D(A,C ) ⤠max[D(A, B ), D(B,C )].