Docsity

6 Solved Problems on Random Variable in Pattern Recognition - Homework | CS 4803, Assignments of Computer Science

Toggle sidebar
bg1
CS 4803B/8803B: Pattern Recognition
Problem Set 1
Date: January 11, 2001 Due: start of class January 23, 2000
1. For each case below, are xand ystatistically independent? Why or why not?
(a) The point (x, y) is uniformly distributed in the unit square.
(b) The point (x, y) is uniformly distributed in the unit circle (a subset of the unit
square).
(c) Let aand bbe independent and both uniform on [0,1]. Let x=a+band y=a−b.
(d) Let aand bbe independent and both Gaussian with zero mean and unit variance.
Let x=a+band y=a−b.
2. Let xand ybe random variables with density functions
px|y(x|y)=(e
−(x−y)y≤x<∞
0x<y
and
py(y)=(10≤y≤1
0otherwise.
(a) What is pxy(x, y )? Specify the region where the joint density is nonzero.
(b) Using Matlab, generate a plot of pxy (x, y).
(c) Find px(x) and plot that as well. Don’t forget to specify regions of definition.
3. The components x1and x2of a two-dimensional random vector xare statistically inde-
pendent and have the following marginal densities:
px1(x1)=(10≤x
1
≤1
0otherwise
and
px2(x2)=(2x
20≤x
2≤1
0otherwise.
Let Abe the event x1≤x2. What are the following?
(a) px(x) (Plot it in 3D in Matlab.)
pf2

Partial preview of the text

Download 6 Solved Problems on Random Variable in Pattern Recognition - Homework | CS 4803 and more Assignments Computer Science in PDF only on Docsity!

CS 4803B/8803B: Pattern Recognition

Problem Set 1 Date: January 11, 2001 Due: start of class January 23, 2000

  1. For each case below, are x and y statistically independent? Why or why not?

(a) The point (x, y) is uniformly distributed in the unit square. (b) The point (x, y) is uniformly distributed in the unit circle (a subset of the unit square). (c) Let a and b be independent and both uniform on [0, 1]. Let x = a + b and y = a − b. (d) Let a and b be independent and both Gaussian with zero mean and unit variance. Let x = a + b and y = a − b.

  1. Let x and y be random variables with density functions

px|y(x|y) =

{ e−(x−y)^ y ≤ x < ∞ 0 x < y

and py (y) =

{ 1 0 ≤ y ≤ 1 0 otherwise.

(a) What is pxy(x, y)? Specify the region where the joint density is nonzero. (b) Using Matlab, generate a plot of pxy (x, y). (c) Find px(x) and plot that as well. Don’t forget to specify regions of definition.

  1. The components x 1 and x 2 of a two-dimensional random vector x are statistically inde- pendent and have the following marginal densities:

px 1 (x 1 ) =

{ 1 0 ≤ x 1 ≤ 1 0 otherwise

and px 2 (x 2 ) =

{ 2 x 2 0 ≤ x 2 ≤ 1 0 otherwise. Let A be the event x 1 ≤ x 2. What are the following?

(a) px(x) (Plot it in 3D in Matlab.)

Write a Matlab simulation and verify your answer for the following: (b) P r[A] (c) px|A(x|A) (d) px 2 |A(x 2 |A)

  1. The random variable x has density

px(x) =

{

  1. 5 /x 1 /e ≤ x ≤ e 0 otherwise

(a) What is the density of z = ln(x)? (b) What is the density of y = 1/x? What is the mode of py(y), compared to the mode of px(x)? (c) For discrete random variables, the mode of the probability distribution can be in- terpreted as the most likely value. Does this interpretation apply equally well to continuous random variables?

  1. A student takes a test to indicate whether or not the student is a nerd. The test is positive. Suppose the student population is known to contain 5% nerds (regardless of any test results). Suppose also that the nerd test is 75% accurate, with a false alarm rate of 20%. (In other words, if someone is a nerd, then the chance the test will come out positive is 75%; if they are not a nerd the chance of a positive result is 20%.) How probable is it that the student really is a nerd, given that the test is positive?
  2. Below is a variation on the classic “Monty Hall” problem. To get credit for this problem, you must pose it to at least one other person who have not understood it before, and help them find the correct answer. Have them sign your problem set with a statement that indicates you have succeeded in this goal. Problem: Suppose I hide the solution to the current problem set in one of three identical boxes while you aren’t looking. Then I ask you to guess which box it’s in. I know which one it’s in, and after you guess, I deliberately open the lid of an empty box, which is one of the boxes you have not chosen. Thus, the solutions are either in the box you guessed, or in the box (you didn’t pick) that I didn’t open. I then offer you the chance to change your mind: you can either keep the box you originally guessed, or choose the other unopened box. To maximize your chances of getting the problem set solution, what choice should you make? You must explain your answer.