Docsity

Problem Set 5 for Pattern Recognition | EEL 6825, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
HW#5 EEL 6825 – Fall 2001
Due Wednesday, November 14, 2001 in class. Late homework will be penalized as
usual but will not be accepted after class starts on 11/16 since Exam II is 11/19.
PART A: Textbook Problems Answer the following questions, you should not need a computer.
A1 Class ω1points are:
−1
−1
+1
−1
+1
−1
+1
−1
−1
Class ω2points are:
+1
+1
−1
+1
−1
+1
−1
+1
+1
Find any weight vector wsuch that wTx > 0 for all class ω1points and wTx < 0 for all class
ω2points. Justify your answer.
A2 Using the points in [A1] as the training set, classify [1,1,1]Tusing 3-Nearest Neighbor voting.
A3 i Under what conditions does the K-L dimensionality reduction technique fail miserably
(huge increase in classification error when the dimensionality is reduced)
ii Under what conditions does it perform wonderfully (guaranteed no change in classifica-
tion error when the dimensionality is reduced).
A4 Compare and contrast Bayes classifiers, nearest neighbor classifiers and neural network clas-
sifiers in terms of computation time required for (i) training and (ii) classification.
A5 Two normal distributions are characterized by:
P(ω1) = P(ω2) = 0.5
µ1=
0
0
0
0
, µ2=
0.1
1
2
3
,Σ1= Σ2=
.01000
0 1 0 0
0 0 1 0
0 0 0 3
If you could only keep one of the four original features (x1, x2, x3or x4), which one would
you keep for lowest classification error? Explain.
PART B: KL Transform.
Two normal distributions are characterized by:
P(ω1) = P(ω2) = 0.5
µ1=µ2=
0
0
0
,Σ1=
3 0 0
0 3 0
0 0 0
,Σ2=
504
054
444
Answer the following questions regarding the KL dimensionality reduction of this problem. Show
all of your work. If you use a computer, use it only to check your work. Do not turn in any
computer results for this problem.
1
pf2

Partial preview of the text

Download Problem Set 5 for Pattern Recognition | EEL 6825 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

HW#5 EEL 6825 – Fall 2001

Due Wednesday, November 14, 2001 in class. Late homework will be penalized as usual but will not be accepted after class starts on 11/16 since Exam II is 11/19.

PART A: Textbook Problems Answer the following questions, you should not need a computer.

A1 Class ω 1 points are: (^)  

 

 

 

 

 

Class ω 2 points are: (^)  

 

 

 

 

 

Find any weight vector w such that wT^ x > 0 for all class ω 1 points and wT^ x < 0 for all class ω 2 points. Justify your answer. A2 Using the points in [A1] as the training set, classify [1, 1 , 1]T^ using 3-Nearest Neighbor voting. A3 i Under what conditions does the K-L dimensionality reduction technique fail miserably (huge increase in classification error when the dimensionality is reduced) ii Under what conditions does it perform wonderfully (guaranteed no change in classifica- tion error when the dimensionality is reduced). A4 Compare and contrast Bayes classifiers, nearest neighbor classifiers and neural network clas- sifiers in terms of computation time required for (i) training and (ii) classification. A5 Two normal distributions are characterized by: P (ω 1 ) = P (ω 2 ) = 0. 5

μ 1 =

  

   , μ 2 =

  

   , Σ 1 = Σ 2 =

  

  

If you could only keep one of the four original features (x 1 , x 2 , x 3 or x 4 ), which one would you keep for lowest classification error? Explain.

PART B: KL Transform.

Two normal distributions are characterized by:

P (ω 1 ) = P (ω 2 ) = 0. 5

μ 1 = μ 2 =

 

  , Σ 1 =

 

  , Σ 2 =

 

 

Answer the following questions regarding the KL dimensionality reduction of this problem. Show all of your work. If you use a computer, use it only to check your work. Do not turn in any computer results for this problem.

B1 Compute the combined covariance matrix (Σ) of the data. Remember that the combined distribution of two equally likely normal distributions is not a normal distribution but the combined covariance matrix can be expressed as:

Σ =

μ 1 − μ 2 2

μ 1 − μ 2 2

)T

B2 Compute the normalized eigenvectors and their respective eigenvalues. B3 If you had to drop a single feature, which feature would it be? What is the error that you would then pay in terms of representation and in terms of classifier performance?

B4 Map the two distributions to the new two-dimensional space spanned by y 1 and y 2. What are the new values of the 2-dimensional μ 1 , μ 2 , Σ 1 and Σ 2? Sketch the new 2D problem.

B5 What is the mean of the two 2-dimensional covariance matrices? Is there any significance to its value?

PART C: Neural Networks

Consider the following sample points: The samples from class 1 are:

[ 0 0

] [ 1 2

] [ − 1 2

] The

samples from class 2 are:

[ 0 1

] [ 1 − 1

] [ − 1 − 1

]

Answer the following questions regarding the multilayer perceptron solution to this problem.

C1 What is the minimum number of hidden units that can solve this problem? Is your answer different if you use smooth sigmoid functions vs. hard-limiting functions? Explain.

C2 Assume the sigmoid activation function of the neural network to be:

f (a) =

{ 1 if a > 0 − 1 else

Derive a neural network architecture that solves this problem. The final output of your neural network should be +1 for class 1 and -1 for class 2. Provide all of the necessary weight values for architecture with the minimum number of hidden units. Sketch a plot that shows the region boundaries. Explain your reasoning and justify your results. C3 Run a backpropagation algorithm to solve this problem with the minimum number of hidden units you answered in [C1]. You are strongly recommended to use the matlab neural network toolbox that was discussed in class but you are free to use whatever software you like or even to program your own. Use the same architecture that you came up with in [C2] only do not use a hard-limiting nonlinear function. Show a few plots of MSE vs. epoch. Does the network find the same (or similar) solution to what you listed in [C2]? How frequently (if ever) does your network get trapped in local minima? C4 Explore the effect on accuracy and convergence rate when you use 1, 2, 3, 4, and 5 hidden units from for this problem. Show an example of the region boundaries for each case. Comment on your results.

C5 Hand in a plot of the decision boundaries for class 1 and class 2 along with the data points. There should be no errors. Note: it may be helpful for you to periodically plot these regions as the algorithm is running to see how far you are away from the correct solution.