Answer Key for CS 591Q/791V Pattern Recognition Quiz 2 - Prof. Arun Ross, Quizzes of Computer Science

The answers and explanations for practice quiz 2 of the pattern recognition course (cs 591q/791v) at the university of x. It covers topics such as exhaustive search, sequential forward selection (sfs), sequential backward selection (sbs), and fisher's criterion. Students can use this document to check their understanding of these concepts and prepare for exams.

Typology: Quizzes

Pre 2010

Uploaded on 07/30/2009

koofers-user-zga
koofers-user-zga ๐Ÿ‡บ๐Ÿ‡ธ

9 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Answer Key for Practice Quiz 2
CS 591Q/791V - Pattern Recognition
Posted on April 15, 2009
1. (a) Exhaustive search: The algorithm will consider all possible subsets of cardinality less than or equal to
10. Thus, the number of subsets considered =
10
X
i=1 ๎˜’15
i๎˜“.
(b) SFS: The algorithm begins with an empty set of features. It then successively adds features to this
set. The following table lists the number of feature subsets that will be considered (i.e., the number of
subsets for which the J() value will be computed) at each iteration.
Cardinality of set of selected features Number of subsets considered
1 15
2 14
3 13
4 12
5 11
6 10
7 9
8 8
9 7
10 6
Total 105
(c) SBS: The algorithm begins with a set consisting of all 15 features. It then successively drops features
from this set. The following table lists the number of feature subsets that will be considered (i.e., the
number of subsets for which the J() value will be computed) at each iteration.
Cardinality of set of selected features Number of subsets considered
14 15
13 14
12 13
11 12
10 11
9 10
8 9
7 8
6 7
5 6
4 5
3 4
2 3
1 2
Total 119
1
pf2

Partial preview of the text

Download Answer Key for CS 591Q/791V Pattern Recognition Quiz 2 - Prof. Arun Ross and more Quizzes Computer Science in PDF only on Docsity!

Answer Key for Practice Quiz 2

CS 591Q/791V - Pattern Recognition

Posted on April 15, 2009

  1. (a) Exhaustive search: The algorithm will consider all possible subsets of cardinality less than or equal to
    1. Thus, the number of subsets considered =

โˆ‘^10

i=

i

(b) SFS: The algorithm begins with an empty set of features. It then successively adds features to this set. The following table lists the number of feature subsets that will be considered (i.e., the number of subsets for which the J() value will be computed) at each iteration. Cardinality of set of selected features Number of subsets considered 1 15 2 14 3 13 4 12 5 11 6 10 7 9 8 8 9 7 10 6 Total 105 (c) SBS: The algorithm begins with a set consisting of all 15 features. It then successively drops features from this set. The following table lists the number of feature subsets that will be considered (i.e., the number of subsets for which the J() value will be computed) at each iteration. Cardinality of set of selected features Number of subsets considered 14 15 13 14 12 13 11 12 10 11 9 10 8 9 7 8 6 7 5 6 4 5 3 4 2 3 1 2 Total 119

  1. (a)

C 1 (t = +1) C 2 (t = โˆ’1) y 1 = (1,3,4) y 4 = (1,1,1) y 2 = (1,3,5) y 5 = (1,1,2) y 3 = (1,4,4) y 6 = (1,2,1) (b) โ€ข w = (โˆ’ 12 , 8 , 10)T^. Input vector [yi] Linear discrimimant function [ti(wT^ yi)] Correctly classified? y 1 52 Yes y 2 62 Yes y 3 60 Yes y 4 -6 No y 5 -16 No y 6 -14 No

The weight vector is updated based on the misclassified samples. So, w = (โˆ’ 12 , 8 , 10)T^ + (โˆ’ 1 , โˆ’ 1 , โˆ’1)T

  • (โˆ’ 1 , โˆ’ 1 , โˆ’2)T^ + (โˆ’ 1 , โˆ’ 2 , โˆ’1)T^ = (โˆ’ 15 , 4 , 6)T^.
  • w = (โˆ’ 15 , 4 , 6)T^. Input vector [yi] Linear discrimimant function [ti(wT^ yi)] Correctly classified? y 1 21 Yes y 2 27 Yes y 3 25 Yes y 4 5 Yes y 5 -1 No y 6 1 Yes

The weight vector is updated based on the misclassified samples. So, w = (โˆ’ 15 , 4 , 6)T^ + (โˆ’ 1 , โˆ’ 1 , โˆ’2)T = (โˆ’ 16 , 3 , 4)T^.

  • w = (โˆ’ 16 , 3 , 4)T^. Input vector [yi] Linear discrimimant function [ti(wT^ yi)] Correctly classified? y 1 9 Yes y 2 13 Yes y 3 12 Yes y 4 9 Yes y 5 5 Yes y 6 6 Yes

Since all the samples are correctly classified by w = (โˆ’ 16 , 3 , 4)T^ , no further modification of the weight vector is necessary.

  1. Fisherโ€™s criterion tries to maximize the distance between multiple classes while minimizing the scatter within each class by computing a suitable projection matrix/vector. In other words, this criterion maximizes inter- class variations while simultaneously minimizing intra-class variations.