20.04.2014 Views

Combining Pattern Classifiers

Combining Pattern Classifiers

Combining Pattern Classifiers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16 FUNDAMENTALS OF PATTERN RECOGNITION<br />

counts needed for the calculation of x 2 in Eq. (1.11).<br />

From Eq. (1.11)<br />

N 11 ¼ 80 þ 2 ¼ 82 N 10 ¼ 0 þ 2 ¼ 2<br />

N 01 ¼ 9 þ 1 ¼ 10 N 00 ¼ 3 þ 3 ¼ 6<br />

x 2 ¼<br />

(j10 2j 1)2<br />

10 þ 2<br />

¼ 49 4:0833 (1:14)<br />

12<br />

Since the calculated x 2 is greater than the tabulated value of 3.841, we reject the<br />

null hypothesis and accept that LDC and 9-nn are significantly different. Applying<br />

the difference of proportions test to the same pair of classifiers gives p ¼<br />

(0:84 þ 0:92)=2 ¼ 0:88, and<br />

0:84 0:92<br />

z ¼ pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi<br />

1:7408 (1:15)<br />

(2 0:88 0:12)=(100) In this case jzj is smaller than the tabulated value of 1.96, so we cannot reject the null<br />

hypothesis and claim that LDC and 9-nn have significantly different accuracies.<br />

Which of the two decisions do we trust? The McNemar test takes into account the<br />

fact that the same testing set Z ts was used whereas the difference of proportions does<br />

not. Therefore, we can accept the decision of the McNemar test. (Would it not have<br />

been better if the two tests agreed?)<br />

1.4.2 Cochran’s Q Test and F-Test<br />

To compare L . 2 classifiers on the same testing data, the Cochran’s Q test or the<br />

F-test can be used.<br />

1.4.2.1 Cochran’s Q Test. Cochran’s Q test is proposed for measuring whether<br />

there are significant differences in L proportions measured on the same data [20].<br />

This test is used in Ref. [21] in the context of comparing classifier accuracies. Let<br />

p i denote the classification accuracy of classifier D i . We shall test the hypothesis<br />

for no difference between the classification accuracies (equal proportions):<br />

H 0 : p 1 ¼ p 2 ¼¼p L (1:16)<br />

If there is no difference, then the following statistic is distributed approximately as<br />

x 2 with L 1 degrees of freedom<br />

Q C ¼ (L<br />

1) L P L<br />

i¼1 G2 i T 2<br />

P<br />

LT<br />

Nts<br />

j¼1 (L (1:17)<br />

j) 2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!