Pattern Recognition Problem Set 1 PDF
Pattern Recognition Problem Set 1 PDF
Problem 3: High-Dimensional Probability
LetX= (X
1
, X
2
, . . . , X
n
)bearandomvector,wherethe{X
i
}areindependent
and identically distributed (i.i.d.) continuous random variables with a uniform
probability density function between 0 and 1:
1,for 0x
i
1
p(x
i
) =
0,otherwise
Each value x of the random vector X can be considered as a point in a n-
dimensionalhypercube. SincetheprobabilitydensityfunctionofXisuniform,
volume in this n-dimensional space corresponds directly to probability. Find
anexpressionforthepercentageofan-dimensionalhypercubesvolumelocated
within of the hypercubes surface. Plot this percentage as a function of n for
1n100000and= 0.0001. Whatdoyourndingsabouthigh-dimensional
hypercubes tell you about random variables?
Problem 4: Teatime with Gauss and Bayes
1 2
2
2
2
Let p(x,y) =
2
e
(y)
2
+
(xy)
2
.
a. Find p(x), p(y), p(x|y), and p(y|x). In addition, give a brief description
of each of these distributions.
b. Let=0,=40,and =3. Plotp(y)andp(y|x=13.7)forareasonable
range of y. What is the dierence between these two distributions?
Problem 5: Covariance Matrix
Let
X
=
64 25
.
25 64
a. Verify that
X
is a valid covariance matrix.
b. Findtheeigenvaluesandeigenvectorsof
X
byhand. Showallyourwork.
c. Writeaprogramtondandverifytheeigenvaluesandeigenvectorsof
X
.
d. We provide 200 data points sampled from the distribution N(0,
X
).
Download the dataset from the course website and plot the data points.
Project the data onto the covariance matrix eigenvectors and plot the
transformed data. What is the dierence between the two plots?
2