Matlab Homework
Assignment #2
Problem 1:
Consider the three-dimensional normal distribution p(x|ω) with mean μ and covariance matrix Σ where
Compute the matrices representing the eigenvectors and eigenvalues Φ and Λ to answer the following:
a. Find the probability density at the point x =
b. Construct an orthonormal transformation y =ΦT x. Show that for orthonormal transformations, Euclidean distances are preserved (i.e., )
Problem 2:
In a particular binary hypothesis testing application, the conditional density for a scalar feature y given class w1 is
Given class w2 the conditional density is
a. Find k1 and k2, and plot the two densities on a single graph using Mat-lab/Octave
b. Assume that the prior probabilities of the two classes are equal, and that the cost for choosing correctly is zero. If the costs for choosing incorrectly are C12 = 1 and C21 = √5, what is the expression for the Bayes risk?
c. Find the decision regions which minimize the Bayes risk, and indicate them on the plot you made in part (a)
d. For the decision regions in part (c), what is the numerical value of the Bayes risk?