Docsity

7 Problems for Midterm Exam - Pattern Recognition | CAP 5638, Exams of Computer Science

Toggle sidebar
bg1
Midterm – CAP 5638 (Spring 2004) Initials: __________
1/7
Midterm – CAP 5638: Pattern Recognition
Department of Computer Science, Florida State University, Spring 2004
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Problem 1. (10 points, 2 points each) True/False. For each statement, write ‘T’ at the end if the
statement is true and write ‘F’ if the statement is false.
1) In a two-category case, if p(x|ω1) and p(x|ω2) are normal distributions with the same
mean but different variances, there exists a linear discriminant function which gives the
same decision for all inputs as the minimum error rate classifier ....…………... [ ]
2) A maximum likelihood solution is always of the assumed parametric form; but not so
for the solution using Bayesian parameter estimation …….………………….…. [ ]
3) If there are infinite number of training samples, Parzen window estimation will
converge to the true underlying distribution regardless of the window width ….. [ ]
4) In the case of an infinite number of training samples, the error rate of the nearest
neighbor classifier is always less than or equal to two times of the Bayes error ... [ ]
5) The fixed increment perceptron learning algorithm will terminate in a finite number of
iterations regardless whether training samples are linearly separable or not ...…. [ ]
Problem 2. (27 points, 3 points each) Short answers.
1) Define and explain the Bayes formula.
2) Briefly describe the major components in a typical pattern recognition system.
3) Given three different discriminant functions for two-category minimum-error rate
classification.
4) Explain the issue of generalization in the context of pattern recognition and argue why
it is important.
Name: _________________________ Last Four of SSN: _________________
pf3
pf4
pf5

Partial preview of the text

Download 7 Problems for Midterm Exam - Pattern Recognition | CAP 5638 and more Exams Computer Science in PDF only on Docsity!

Midterm – CAP 5638 (Spring 2004) Initials: __________

Midterm – CAP 5638: Pattern Recognition

Department of Computer Science, Florida State University, Spring 2004

Problem 1. (10 points, 2 points each) True/False. For each statement, write ‘T’ at the end if the

statement is true and write ‘F’ if the statement is false.

1) In a two-category case, if p(x|ω 1 ) and p(x|ω 2 ) are normal distributions with the same

mean but different variances, there exists a linear discriminant function which gives the

same decision for all inputs as the minimum error rate classifier ....…………... [ ]

2) A maximum likelihood solution is always of the assumed parametric form; but not so

for the solution using Bayesian parameter estimation …….………………….…. [ ]

3) If there are infinite number of training samples, Parzen window estimation will

converge to the true underlying distribution regardless of the window width ….. [ ]

4) In the case of an infinite number of training samples, the error rate of the nearest

neighbor classifier is always less than or equal to two times of the Bayes error ... [ ]

5) The fixed increment perceptron learning algorithm will terminate in a finite number of

iterations regardless whether training samples are linearly separable or not ...…. [ ]

Problem 2. (27 points, 3 points each) Short answers.

1) Define and explain the Bayes formula.

2) Briefly describe the major components in a typical pattern recognition system.

3) Given three different discriminant functions for two-category minimum-error rate

classification.

4) Explain the issue of generalization in the context of pattern recognition and argue why

it is important.

Name: _________________________ Last Four of SSN: _________________

5) Explain the key differences between maximum-likelihood parameter estimation and

Bayesian parameter estimation techniques.

6) Suppose the training set is D={4, 1, 3, 3,

2} and the hypercube (defined as

otherwise

u u 0

ϕ ) is used as the window

function with h 5 = 2, sketch the Parzen

window estimate of the underlying

distribution in the given diagram.

7) Derive the recursive Bayesian parameter estimation using

∫

= θ θ θ

θ θ θ pD p d

pD p p D ( | ) ( )

( | ) ( )

8) Suppose we have two training examples [2, 0] and [2, -2] for

class ω 1 and two training examples [0, 2] and [2, 2] for class

ω 2 in the augmented space. State if the problem is linearly

separable. If it is, mark the solution region (i.e., all the weight

vectors that classify all the training examples correctly) in the

given diagram.

9) For a radar detection problem, two different features, x1, and x

give two different ROC curves shown in the right figure. Which

feature, x1 or x2, gives a lower Bayesian error with the same hit

rate? Justify your answer.

−2 −1 0 1 2

−

−

0

1

2

x (^1)

x^2

Problem 4. (13 points) In pattern classification problems one has the option either to assign the

input pattern to one of the c classes or to reject it (i.e., to assign it to class c+1) as being

unrecognizable. Let the loss function be given by

otherwise.

s

i j r i c

i j i j c

λ

λα ω λ

L

Answer the following questions

1) ( 4 points ) Under the minimum risk criterion, when should an input pattern be rejected,

i.e., assigned to class c+1?

2) ( 6 points ) Show the following discriminant functions are optimal according to the

Bayesian decision rule using the given loss function.

=

1

px P i c

px P i c

g x

c

j

j j s

s r

i i

i (^) ω ω λ

λ λ

ω ω L

3) ( 3 points ) What happens if λr = 0? What happens if λr > λs?

Problem 5. (16 points) Suppose there are three classes, class 1 is represented by two training

examples [–1, –1] and [1, –1], class 2 is represented by two training examples [–1, 1], and [1, 1],

and class 3 is represented by one training example [0, 0]. Note each training example is given by

[x 1 , x 2 ]. Here the classification is done using a (k, l)-nearest neighbor rule, which is identical to

the k-nearest neighbor rule except that it classifies an input as rejection when the number of its

neighbors from the most representative class is less than l. If ties occur in a region, label the

region as ties.

1) ( 4 points ) Draw the decision boundaries and decision

regions using the (1,0)- nearest neighbor rule in the

given diagram.

2) ( 6 points ) Draw the decision boundaries and decision

regions using the (2,0)- nearest neighbor rule in the

given diagram.

3) ( 6 points ) Draw the decision boundaries and decision

regions using the (2,1)- nearest neighbor rule in the

given diagram.

−4 −3 −2 −1 0 1 2 3 4

−

−

−

−

0

1

2

3

4

x 1

x^2

−4 −4 −3 −2 −1 0 1 2 3 4

−

−

−

0

1

2

3

4

x 1

x^2

−4 −3 −2 −1 0 1 2 3 4

−

−

−

−

0

1

2

3

4

x 1

x^2

Problem 7 ( 15 points, 5 points each ) Given a training set D={x 1 , …, x n }, derive the maximum

likelihood estimate for the following models.

0 otherwize

1 θ if 0 x θ θ

p ( x | )

−

0 otherwize

ifx 0

(^4 3 22) x^2 x px

θ θ θ (^) π

e ( | )

/

2 ( ) ( | ) exp

θ

π

θ

x px

End of Questions