Docsity

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

Toggle sidebar
bg1
Midterm – CAP 5638 (Fall 2005) Initials: __________
1/9
Midterm – CAP 5638: Pattern Recognition
Department of Computer Science, Florida State University, Fall 2005
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Problem 1. (48 points, 6 points each) Short answers.
1) Explain the issue of generalization in the context of pattern recognition and argue why it is
important. Give an empirical procedure that can be used to estimate generalization
performance.
2) Suppose the training set is D={3, 2, 2, 1, 4}
and the hypercube (defined as
⎩
⎨
⎧≤
=.
;/
)( otherwise
u
u0
211
ϕ
) is used as the window
function with h5 = 2, give the estimated
probability density function using the Parzen
window method and sketch it in the given diagram.
3) Draw the probabilistic neural network trained on the following patterns:
[
]
2/12/12/1 and
[
]
2/12/12/1 −− for class ω1,
[
]
2/12/12/1 −−− and
[
]
2/12/12/1− for class ω2. Note that you need to specify all the weights and units.
Name: _________________________ Last Four of SSN: _________________
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

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

Midterm – CAP 5638 (Fall 2005) Initials: __________

Midterm – CAP 5638: Pattern Recognition Department of Computer Science, Florida State University, Fall 2005 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Problem 1. (48 points, 6 points each) Short answers.

  1. Explain the issue of generalization in the context of pattern recognition and argue why it is important. Give an empirical procedure that can be used to estimate generalization performance.

  2. Suppose the training set is D={3, 2, 2, 1, 4} and the hypercube (defined as

⎩

⎨

⎧ (^) ≤

.

/ ; ( ) otherwise

u u 0

ϕ 1 1 2 ) is used as the window

function with h 5 = 2, give the estimated probability density function using the Parzen window method and sketch it in the given diagram.

  1. Draw the probabilistic neural network trained on the following patterns:

[ 1 / 2 1 / 2 1 / 2 ]and [ 1 / 2 − 1 / 2 − 1 / 2 ]for class ω 1 , [− 1 / 2 − 1 / 2 − 1 / 2 ]and

[− 1 / 2 1 / 2 1 / 2 ]for class ω 2. Note that you need to specify all the weights and units.

Name: _________________________ Last Four of SSN: _________________

  1. Suppose we have two training examples [1, 1] and [-1, -1] for class ω 1 and two training examples [1, -1] and [-1, 1] for class ω 2. State if the problem is linearly separable. If it is, give one solution and sketch it in the diagram; if it is not, show how to make the problem linearly separable.

  2. 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 ⎪ ⎩

1 otherwise.

( | ) 21 i c

i j i j c i j

λ α ω. Under the minimum

risk criterion, when should an input pattern be rejected, i.e., assigned to class c+1?

  1. Given a training set D={x 1 , …, xn }, derive the maximum likelihood estimate for the

following model: ⎭

2 2 2

exp 2

σ π^ σ

σ x p x.

−2 −2 −1 0 1 2

−

0

1

2

x 1

x^2

Problem 2. (23 points) Suppose that there are two classes, ω 1 and ω 2 and a one-dimensional feature x. The likelihood functions for the two classes are given as follows:

exp. 4

exp ; ( | ) 2 2

( | 1 ) (^2 )/^822 /^2

− +^2 − −

p x = x^ p x ω = x

  1. ( 6 points ) Given P (^ ω^1 )=^1 /^2 and P (ω^2 )=^1 /^2 , calculate the minimum error rate classification decision for x = -12, x = -2, and x =4.

  2. ( 8 points ) Given (^) P ( ω 1 )= 1 / 2 and P (ω 2 )= 1 / 2 , find analytically the decision boundaries and decision regions.

3) ( 5 points ) Given P ( ω 1 )= 0. 1 and P (ω 2 )= 0. 9 , find analytically the decision boundaries

and decision regions.

  1. ( 4 points ) Derive a discriminant function in terms of x, P (^^ ω^1 )and P (^ ω^2 )that is equivalent to the minimum classification error rate classification and does not require computing exponentials.

Problem 3 ( 17 points ) Given the following uniform distribution ⎩

⎨ = ⎧^ ≤ ≤ 0 otherwize

1 θ if 0 x θ θ / p ( x | )

and a training set D={3, 8, 5, 1}.

  1. ( 8 points ) Give and plot the likelihood of θ using the following subsets of the training set: {3}, {3, 8}, {3, 8, 5}, and {3, 8, 5, 1}.

  2. ( 9 points ) Derive the maximum likelihood estimation of θ. You need to show all the steps.

Problem 5 (22 points, 11 points each) Consider using Kesler’s construction to learn three linear discriminant functions directly for the following three-class classification problem.

ω 1 ω 2 ω 3 x 1 x 2 x 1 x 2 x 1 x 2 -7.1 -9.7 -5.1 1.6 8.4 3. -8.0 -6.3 1.9 5.1 4.1 -2.

  1. Show the full train examples using the Kesler’s construction. Note that you need to use augmented features.

  2. Based on the Kesler’s construction, generalize Algorithm 4 (Section 5.5.2) and Algorithm 6 (Section 5.5.3) for training a multiple class classifier (i.e., a linear machine) without explicitly performing the Kesler’s construction. Note the generalized algorithms must be equivalent to the corresponding original algorithms applied to the expanded training set given by the Kesler’s construction.

Problem 6 (23 points) For the neural network shown in the following figure, the desired output for input (x1, x2) = (1, 2) should be (t1, t2)=(0.95, 0.05). The weights are initialized as shown below. Here neurons in the second layer (the hidden layer) use linear transfer function ( z = n )

and neurons in the third layer (the output layer) use sigmoid transfer function ( (^) n e

z (^) −

), and

the bias of a neuron is represented by a connection weight to a constant input 1.

  1. ( 8 points ) Calculate the actual output for the given input pattern (x1, x2) = (1, 2).

  2. ( 10 points ) Compute the sensitivity of each neuron (defined in Section 6.3.1 of the textbook).

  3. ( 5 points ) Update the weights and biases with learning rate of 1.