Error Rate Analysis in Pattern Recognition using Bayesian Decision Rule and Parzen Window , Study Guides, Projects, Research of Computer Science

A project for cs 591q/791v - pattern recognition students under the guidance of dr. Arun ross. The project involves analyzing the error rate on a given dataset using the bayesian decision rule with known and unknown distributions, as well as the parzen window technique. Students are required to compute the error rate for various training set sizes and discuss the results.

Typology: Study Guides, Projects, Research

Pre 2010

Uploaded on 07/30/2009

koofers-user-r4a
koofers-user-r4a 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Project
CS 591Q/791V - Pattern Recognition
Instructor: Dr. Arun Ross
Due Date: May 8, 5:00pm
Note: You are permitted to discuss this project with the others in class, but the final
report should reflect your own effort. Any indication to the contrary will be considered an
act of academic dishonesty. A zipped version of your submission consisting of the code and
the report must be sent via email to arun.ross at mail.wvu.edu by 5:00pm on 5/8/2009.
1. Consider the dataset available here. It consists of two-dimensional patterns, x= [x1, x2]t,
pertaining to 3 classes (C1, C2, C3). The feature values are indicated in the first two columns
while the class labels are specified in the last column. The priors of all 3 classes are the
same. Randomly partition this dataset into a training set (70% of each class) and a test set
(30% of each class).
(a) Let
p([x1, x2]t|C1)N([0,0]t,4I),
p([x1, x2]t|C2)N([10,0]t,4I),
p([x1, x2]t|C3)N([5,5]t,5I),
where Iis the 2 ×2 identity matrix. What is the error rate on the test set when the
Bayesian decision rule is employed for classification?
(b) Suppose p([x1, x2]t|Ci)N(µi,Σi), i= 1,2,3, where the µi’s and Σi’s are unknown.
Use the training set to compute the MLE of the µi’s and the Σi’s. What is the error
rate on the test set when the Bayes decision rule using the estimated parameters is
employed for classification?
(c) Suppose the form of the distributions of p([x1x2]|Ci), i= 1,2,3 is unknown. Assume
that the training dataset can be used to estimate the density at a point using the
Parzen window technique (a spherical Gaussian kernel with h= 1). What is the error
rate on the test set when the Bayes decision rule is employed for classification?
(d) Repeat the above three classification procedures by varying the size of the training set
as follows: 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90% of each class. Plot the
error rate as a function of the size of the training set for each of the 3 cases.
pf2

Partial preview of the text

Download Error Rate Analysis in Pattern Recognition using Bayesian Decision Rule and Parzen Window and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

Project

CS 591Q/791V - Pattern Recognition Instructor: Dr. Arun Ross Due Date: May 8, 5:00pm

Note: You are permitted to discuss this project with the others in class, but the final report should reflect your own effort. Any indication to the contrary will be considered an act of academic dishonesty. A zipped version of your submission consisting of the code and the report must be sent via email to arun.ross at mail.wvu.edu by 5:00pm on 5/8/2009.

  1. Consider the dataset available here. It consists of two-dimensional patterns, x = [x 1 , x 2 ]t, pertaining to 3 classes (C 1 , C 2 , C 3 ). The feature values are indicated in the first two columns while the class labels are specified in the last column. The priors of all 3 classes are the same. Randomly partition this dataset into a training set (70% of each class) and a test set (30% of each class).

(a) Let

p([x 1 , x 2 ]t|C 1 ) ∼ N([0, 0]t, 4 I), p([x 1 , x 2 ]t|C 2 ) ∼ N([10, 0]t, 4 I), p([x 1 , x 2 ]t|C 3 ) ∼ N([5, 5]t, 5 I),

where I is the 2 × 2 identity matrix. What is the error rate on the test set when the Bayesian decision rule is employed for classification? (b) Suppose p([x 1 , x 2 ]t|Ci) ∼ N(μi, Σi), i = 1, 2 , 3, where the μi’s and Σi’s are unknown. Use the training set to compute the MLE of the μi’s and the Σi’s. What is the error rate on the test set when the Bayes decision rule using the estimated parameters is employed for classification? (c) Suppose the form of the distributions of p([x 1 x 2 ]|Ci), i = 1, 2 , 3 is unknown. Assume that the training dataset can be used to estimate the density at a point using the Parzen window technique (a spherical Gaussian kernel with h = 1). What is the error rate on the test set when the Bayes decision rule is employed for classification? (d) Repeat the above three classification procedures by varying the size of the training set as follows: 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90% of each class. Plot the error rate as a function of the size of the training set for each of the 3 cases.

(e) Discuss you results along the following lines:

i. Does the performance of a classifier change significantly depending upon the pat- terns used in the training set? ii. How does the performance of a classifier change as a function of the number of data patterns used to estimate its parameters? iii. Do you think it is necessary for the number of training patterns per class to be the same? (f) Discuss some of the techniques that can be used to perform cross-validation of a clas- sifier. What is the .632+ bootstrap method?