next up previous
Next: EEL6825: HW#3 Up: EEL6825: Homework Assignments Previous: EEL6825: HW#1

EEL6825: HW#2

Get PDF file Due Friday, September 21, 2001 in class. Late homework will lose $e^{\char93  of days late} -1 $ percentage points. Click on http://www.cnel.ufl.edu/hybrid/harris/latepoints.html to see the current penalty. Your homework should be in two distinct sections. The first section should show the answers, explanations, plots, hand calculations etc. that you need to answer the questions in parts A-C. The second section should contain all of the Matlab code that you have written to generate the answers in the first section. You don't need a computer for most of parts A and B but of course you may use one to check your work if you like. PART A: Short Answer Questions
A1
(5 points) You are given the heights and weights of a certain set of individuals in unknown units. Which one of the following six matrices is the most likely to be the sampled covariance matrix? Explain your reasoning.
      1.232 0.013      1.232 0.867     1.232 -0.867
      0.013 2.791     -0.867 2.791    -0.867  3.307


      1.232 3.307      1.232 0.867     1.232  3.307
      0.013 2.791      0.867 2.791     3.307  2.791
A2
(5 points) Sample data from one class are given as:

\begin{displaymath}
\left[ \begin{array}{c} 3  2 \end{array} \right] \left[
...
...\right] \left[
\begin{array}{c} -1  -2 \end{array} \right]
\end{displaymath}

Compute the sampled mean and sampled covariance matrix (by hand). Make sure to use estimators that are unbiased. Show your work.
A3
(5 points) Problem 2-21 in DHS
A4
(5 points) Problem 2-39 in DHS
A5
(5 points) Problem 3-2 in DHS
PART B: Maximum Likelihood Problem Consider the following probability distribution:

\begin{displaymath}
p(x) =
\left\{
\begin{array}{cl}
(k+1)x^k & {\rm for } 0 \le x \le 1 \\
0 & {\rm else}
\end{array}
\right.
\end{displaymath}

B1
(5 points) For what values of $k$ is this distribution valid? Verify that this distribution integrates to one for all valid values of $k$.
B2
(15 points) Given $N$ data points $x^{(1)}, x^{(2)} \dots, x^{(N)}$ sampled from a distribution, derive a formula for the maximum likelihood value of $k$ for the distribution.
B3
(5 points) Suppose $N=3$ and $x^{(1)}=e^{0}=1$, $x^{(2)}=e^{-1}$, $x^{(3)}=e^{-2}$. What the numerical value of the maximum likelihood estimate of $k$?
PART C: Computer Experiment: Bayes Classifier with two classes Two normal distributions are characterized by:

\begin{displaymath}P(\omega_1)=P(\omega_2)=0.5\end{displaymath}


\begin{displaymath}\mu_1=
\left[
\begin{array}{c}
0 \\
0
\end{array}
\rig...
...t[
\begin{array}{cc}
1&0.8 \\
0.8&1
\end{array}
\right]
\end{displaymath}

C1
(5 points) Generate 200 points from each of these distributions. Show a scatter plot of the data using two different symbols (and colors) to identify the classes.
C2
(5 points) Compute the sampled mean and covariance matrix for each class. How close are these values to the true mean and covariance matrix?
C3
(20 points) Write a matlab program that classifies the data using a Bayes Classifier. Assume the data comes from Normal distributions but use your estimated parameters in the classifier. What is the percent error that you find? Run your program several times and average your results to improve your estimate of the expected error. Also, calculate the standard deviation of your error estimate.
C4
(10 points) Compute the Bhatacharrya bound for this problem. How does it compare to your actual error from [C3]. Remember from class that the Bhatacharrya bound is an upper bound on the expected Bayes error for Normal distributions and is given by:

\begin{displaymath}
BOUND= e^{-K}\sqrt{P(\omega_1) P(\omega_2)}
\end{displaymath}

where $K$ is given by:

\begin{displaymath}
K=\frac{1}{8}(\mu_2-\mu_1)^T[\frac{\Sigma_1+\Sigma_2}{2}]^{...
...gma_2}{2}\vert}{\sqrt{\vert\Sigma_1\vert\vert\Sigma_2\vert}})
\end{displaymath}

Again use the estimated parameters in your calculation.
C5
(10 points) Have the computer draw the decision surface on the scatter plot. (Do not hard code the particular boundary for this problem, you should write a general program.) Hint: think about using the functions meshgrid and contour in matlab.
Extra Credit
Quantify what happens to the error calculated in part [C3] as you change the number of samples in each class. Plot a graph of average error vs. the number of sample points as you vary the number of samples from very low to very high numbers. Include error bars in your plots. Explain your results.

next up previous
Next: EEL6825: HW#3 Up: EEL6825: Homework Assignments Previous: EEL6825: HW#1
Dr John Harris 2001-11-26