Pattern - Assigment1
Pattern - Assigment1
Spring 2006
Assignment 1
Due May 18, 2006 at 7:00 PM
Question 1
10 marks
(a) Given the following set of samples, calculate the mean vector m and the sample covariance matrix Assignment 1 S. Formulas !
(b) Using Matlab, repeat the above calculations. Submit a print-out of your .m le. Question 2
10 marks
Assignment 1 Formulas
|x m1 |2 = |x m2 |2
Charles Robertson (that is, the MED classier boundary) is given by the equation for a hyperplane, normal
to the line joining the two class means and passing through the midpoint of that May 8, straight 2005 line. Question 3
20 marks
2 |x m |2 = |x m 2| A1bivariate (i.e.
two variable) normal probability density function (p.d.f.) has mean (0,0)T and covariance matrix
2 1 1 2
(a) Find the eigenvalues and eigenvectors of the covariance matrix. (b) Calculate the equation of the 1-standard deviation contour of the p.d.f. (c) Sketch the 1-standard deviation contour (d) How are the eigenvalues and eigenvectors related to the shape of the 1-standard deviation contour?
May 8, 2005
Spring 2006
5 marks
Class 2 A has features which are normally distributed in the two-dimensional space. The 1 unit standard deviation contour has an area of 3 units. The data in class A are trans1 2 formed by the matrix:
3/5 4/5 4/5 3/5
What is the area of the unit standard deviation contour in the new space? Question 5
20 marks
You are given the following training sample patterns for two classes in feature space (x1, x2): Ci: (2,2) (4,0) (10,2) (8,4) (8,0) (4,4) Cj: (4,10) (8,18) (8,10) (6,6) (4,18) (6,22) (a) Calculate the class means and sample covariance matrices. Plot the samples. (b) On the plot, sketch the MED decision boundary using the class means as prototypes. (c) On the 1 same plot, sketch the MED decision boundary in the case where nearest neighbour classication is used. Note that the class prototypes will change! Clearly differentiate the two boundaries. (d) In which class will the new pattern (7,6) be classied where the prototypes are class means? Which class when the prototypes are decided by nearest neighbour classication?