Professional Documents
Culture Documents
A rule
d k =( x K )T k 1 ( x K )
%
%
Choose 1 if
f k pk
P( 1 | x) P ( 2 | x), whereP ( k | x)
.
%
%
% f1 p1 f 2 p2
1
exp( d k ) pk
2
Specially, when 1 2 , P( k | x)
.
1
1
% exp( d ) p exp( d ) p
1
1
2
2
2
2
%
f 2 (x) C (2 |1) p1
%
R 2 : else.
fi ( x)
e
p/2
1/ 2
% (2 ) | |
R1 :
f1 (x) C (1| 2) p2
%
f 2 (x) C (2 |1) p1
%
1
1
( x 1 )T 1 ( x 1 ) ( x 2 )T 1 ( x 2 )
%
%
2 %
2 %
R1 : e
1
( x i )T 1 ( x i )
%
2 %
C (1| 2) p2
C (2 |1) p1
1
( x i )T 1 ( x i ) ln pi C ( j | i)
%
2 %
or
1
1
R1 : xT 1 1 1T 1 1 ln p1C (2 |1) xT 1 2 2T 1 2 ln p2C (1| 2)
%
%
2
2
LDA
1
fi ( x)
e
p/2
1/ 2
% (2 ) | i |
1
( x i )T i 1 ( x i )
%
2 %
f1 (x) C (1| 2) p2
%
f 2 (x) C (2 |1) p1
% 1
1
1/ 2
( x 1 )T 11 ( x 1 ) ( x 2 )T 2 1 ( x 2 )
| 2 |
C (1| 2) p2
%
%
2 %
2 %
R1 :
e
1/ 2
| 1 |
C (2 |1) p1
R1 :
QDA
1
1
( x i )T i 1 ( x i ) ln | i | ln pi C ( j | i )
%
2 %
2
Example 2
We have four groups of wheat kernels. Groups 1 and 2 were
grown in one location and groups 3 and 4 were grown in another
location. In addition, groups 1 and 3 were of a variety called
Arkan while groups 2 and 3 were of a variety called Arthur.
Arkan has a higher level of protein and thus has a higher
market value.
There is some concern about whether an unscrupulous person
might try mixing Arthur with Arkan, and then try to sell the
combination of the two varieties as being all Arkan to get higher
price.
We want to use physical measurements of wheat kernels to
try to discriminate among groups of kernels. We have taken
measurements of area, perimeter, length, and breadth of each
kernel.