Docsity

Pattern Recognition - Assignment 1 Questions | EEL 6825, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
- 1 -
EEL6825: Homework #1 (Fall 2003)
(4 problems, distributed 9/7/2003, due 9/18/2003)
Note
: Submit
detailed
and complete solutions to the following problems, including well commented programming
code that you use for any of your solutions.
Problem 1: (10 points)
Assume that two-dimensional random vectors and , defined by,
and (1)
are characterized by the following probability density functions:
(2)
(3)
Compute the following:
(a) Constants and . (2 points)
(b) Mean vectors and . (4 points)
(c) Covariance matrices and . (4 points)
Problem 2: (20 points)
During some flight experiments, the aircraft altitude and the outside air pressure are measured in miles and
inches of mercury, respectively. Afterwards, of these measurements are used to estimate the covariance matrix
for the two-dimensional random vector:
(4)
The covariance matrix was computed as:
(5)
where denotes the
i
th measurement, and denotes the mean value for the measurements of .
(a) Which of the following nine matrices is the most likely covariance matrix ? Explain your reasoning. (18
points)
(b) Compute the eigenvalues and eigenvectors for your answer in part (a). (2 points)
x
y
x
x
1
x
2
=
y
y
1
y
2
=
p
x
()
k
x
2
x
1
3
and
0
x
2
3
≤≤ ≤≤
0
otherwise
=
p
y
()
k
y
e
y
1
2
y
2
+
4
--------------------
0
y
1
2
and
ln 0
y
2
2ln
≤≤ ≤≤
0
otherwise
=
k
x
k
y
µ
x
µ
y
Σ
x
Σ
y
a
p
N
Σ
x
x
a
p
=
Σ
x
Σ
x
1
N
----
x
i
µ
x
–
()
x
i
µ
x
–
()
T
i
1
=
N
∑
=
x
i
µ
x
N
x
Σ
x
Σ
1
1.232 0.0013
0.0013 2.791
=
Σ
2
1.232 0.867
0.867
–
2.791
=
Σ
3
1.232 0.867
–
0.867
–
3.307
=
pf2

Partial preview of the text

Download Pattern Recognition - Assignment 1 Questions | EEL 6825 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

- 1 -

EEL6825: Homework #1 (Fall 2003)

(4 problems, distributed 9/7/2003, due 9/18/2003)

Note : Submit detailed and complete solutions to the following problems, including well commented programming

code that you use for any of your solutions.

Problem 1: (10 points)

Assume that two-dimensional random vectors and , defined by,

and (1)

are characterized by the following probability density functions:

Compute the following:

(a) Constants and. (2 points)

(b) Mean vectors and. (4 points)

(c) Covariance matrices and. (4 points)

Problem 2: (20 points)

During some flight experiments, the aircraft altitude and the outside air pressure are measured in miles and

inches of mercury, respectively. Afterwards, of these measurements are used to estimate the covariance matrix

for the two-dimensional random vector:

The covariance matrix was computed as:

where denotes the i th measurement, and denotes the mean value for the measurements of.

(a) Which of the following nine matrices is the most likely covariance matrix? Explain your reasoning. (

points)

(b) Compute the eigenvalues and eigenvectors for your answer in part (a). (2 points)

x y

x

x

1

x

2

= y

y

1

y

2

p ( x )

k

x

2 x

1

3 and 0 x

2

0 otherwise 

p ( y )

k

y

e

y

1

2 y

2

4


0 y

1

ln 2 and 0 y

2

≤ ≤ ≤ ≤ln 2

0 otherwise

k

x

k

y

μ

x

μ

y

x

y

a p

N Σ

x

x

a

p

x

x

N

  • --- x

i

μ

x

( – ) x

i

μ

x

T

i = 1

N

x

i

μ

x

N x

x

1

2

3

- 2 -

Problem 3: (40 points)

Two classes and are characterized by 2D normal distributions with the following parameters:

Plot contour plots (20 points) and the Bayes decision boundary (20 points) for each of the following cases:

(a) ,

(b) ,

Problem 4: (20 points)

You are given two images gator and smilie in different file formats (jpg, bmp, ppm). Your task is to statistically ana-

lyze these two images, using whichever file format is most convenient for you. Each pixel of an image, say gator , can

be represented by a vector,

in the RGB color space, where r denotes red, g denotes green and b denotes blue channel values. Similarly, for the

image smilie , each pixel is represented as a 3D vector.

Assuming that the vectors and have 3D Gaussian distributions, compute the maximum likelihood

(ML) estimates for the mean vectors and , and the ML estimates for the covariance matrices

and.

4

5

6

7

8

9

ω

1

ω

2

P ω

1

( ) P ω

2

μ

1

= μ

2

1

2

1

2

p

gator

3 D

[ r g b , , ]

T

p

smilie

3 D

p

gator

3 D

p

smilie

3 D

μ

gator

3 D

μ

smilie

3 D

gator

3 D

smilie

3 D