Solution_2_2007

# Solution_2_2007 - ECE 154B Winter 2007 Homework#2 Solutions...

This preview shows pages 1–3. Sign up to view the full content.

ECE 154B Winter 2007 Homework #2 Solutions 1. Consider the 2 hypotheses problem where the a priori probabilities for the two hypotheses are: π 0 = ¾ and π 1 = ¼ . Let the conditional probability densities of the observable Y under the two hypotheses be: f Y|0 (y) = K 1 y for 0 < y < 3, f Y|0 (y) = 0 elsewhere and f Y|1 (y) = K 2 for 0 < y < 3, f Y|1 (y) = 0 elsewhere. (You must first determine the constants K 1 and K 2. ). a. Find the decision rule that minimizes the probability of error. K 1 =2/9 (from Homework 1). K 2 = 1/3. 0 f Y 0 y = 1 f Y 1 y 3 4  2 9 y = 1 4  1 3 y = 1 2 Choose H 0 if y > 1/2. Choose H 1 if y < 1/2. b. Calculate the probability of error for this decision rule. P error = 0 P error H 0  1 P error H 1 = 3 4 0 1 2 2 9 y dy  1 4 1 2 3 1 3 dy = 1 48 5 24 = 11 48 c. Verify your calculation of the probability of error by simulation. Matlab: x=rand(1,10000)>(3/4); for n=1:10000 if x(n)==0 y(n)=3*sqrt(rand); else y(n)=3*rand; end end z=y<(1/2); sum(x~=z)/10000 2. Consider the 4 hypotheses problem with 4 equally likely hypotheses (H 0 , H 1 , H 2 , H 3 ) . Under each of the 4 hypotheses assume that the observable Y is a Gaussian

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
random variable with means (-3, -1, +1, +3) respectively.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern