0% found this document useful (0 votes)
27 views4 pages

EM Algorithm and VC-Dimension Insights

Uploaded by

samkagadi555
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views4 pages

EM Algorithm and VC-Dimension Insights

Uploaded by

samkagadi555
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assignment 11 (Sol.

)
Introduction to Machine Learning
Prof. B. Ravindran
1. In each of the options the diagram contains a log likelihood function for a particular problem
as well as an initial value of the parameter used in the execution of the EM algorithm. In
which of the given scenarios will the EM algorithm be able to achieve the global maximum?

Q1 (a)

Q1 (b)

1
Q1 (c)

Q1 (d)

Sol. (c)
In each scenario other than (c), the EM algorithm will get stuck in a local minima.
2. Suppose we are given n p-dimensional data points and the corresponding class labels (k different
classes). We want to build a decision tree classifier to classify the data. However, we find that
there are missing values in the data set. Is it possible to use the EM algorithm to fill the
missing data given the above information and making no further assumptions?

(a) Yes
(b) No

Sol. (b)
Estimating values for missing data is one of the uses of the EM algorithm. However, this
cannot be done without specifying the corresponding distribution. Without any knowledge of
the distribution, as in this example, we cannot apply the EM algorithm.

2
3. Suppose you have a PAC learning algorithm A for a concept class C such that with probability
at least 0.5, the algorithm will output an approximately correct hypothesis. Suppose that for
deployment purposes, you need an algorithm which can output the approximately correct
hypothesis with probability at least 0.998. Is it possible to make use of algorithm A for this
purpose? If so, how?

(a) No, we cannot make use of A


(b) Yes, repeat A three times and choose the best hypothesis
(c) Yes, repeat A five times and choose the best hypothesis
(d) Yes, repeat A nine times and choose the best hypothesis

Sol. (d)
Given the probability of 0.5 of obtaining an approximately correct hypothesis, if we execute
algorithm A nine times, the probability that one of the hypotheses obtained in the nine ex-
ecutions is approximately correct is equal to the probability of tossing a fair coin nine times
and observing heads at least once. This can be calculated as

29 − 1
Pr(observing at least one head in nine tosses) = = 0.9980.
29

4. To say that the VC-dimension of a class is at least k, is it necessary for the class to be able to
shatter any configuration of k points?

(a) Yes
(b) No

Sol. (b)
No. According to the definition, it must be able to shatter at least one configuration of k points.
For example, we saw in the lecture that the VC-dimension of the straight lines hypothesis class
was three even though it is not possible to shatter three co-linear points with straight lines.

5. What is the VC-dimension of the class of axis-parallel rectangles?

(a) 3
(b) 4
(c) 5
(d) 6

Sol. (b)
The VC-dimension for axis-parallel rectangles is 4. To prove this, we first have to show that
the VC-dimension is at least 4. This is shown in the image below by the shattering of 4 points
by using axis-parallel rectangles.

3
Next we need to show that the VC-dimension of axis parallel rectangles is no more than 4. To
do so, we consider two cases. In the first case, consider five non-collinear points such that the
tightest axis-parallel rectangle that can be drawn around them has at least one point in the
convex hull of the rectangle. In this case, the points excluding the point in the interior cannot
be enclosed by the axis-parallel rectangle. Now consider five non-collinear points such that
the tightest axis-parallel rectangle that can be drawn around them has all the points on its
edges. By the pigeon hole principle, at least one of the edges must contain two points whereas
each of the remaining three edges contain a point each. Without loss of generality, assume
that the edge containing two points is the left edge of the rectangle. Then it is clear that the
two points which are the lower point on the left edge and the point on the top edge cannot be
enclosed by an axis-parallel rectangle without also enclosing the upper point on the left edge.
In contrast, if more than two points lie on a single edge, then the two points on such an edge
with another point in between cannot be enclosed. Thus, five points cannot be shattered by
axis parallel rectangles.
6. Which of the following statements are true about similarity graph based representations which
are used for spectral clustering? (Note that more than one statements may be correct)

(a) One can give a tighter upper bound than O(n) (where n is the number of data points) on
the maximum degree of the vertex corresponding to a point in its kNN based similarity
graph representation
(b) One can give a tighter upper bound than O(n) (where n is the number of data points) on
the maximum degree of the vertex corresponding to a point in its epsilon neighborhood
based similarity graph representation
(c) If a is in the k nearest neighbors of b, then b is in the k nearest neighbors of a
(d) If a is in the epsilon neighborhood of b, then b is in the epsilon neighborhood of a

Sol. (a) & (d)


In the kNN similarity graph based representation, every vertex has a degree of k. Since k can
be considered O(1), it is a much tighter upper bound than O(n). Hence, (a) is True. On the
other hand, an epsilon neighborhood graph could even have a vertex with degree n if all the
points lie within a distance epsilon of each other. Hence, (b) is False. We can easily see why
(c) is false, point x may be the closest point to y, but z may be the closest point to x. Hence,
the 1 nearest neighbor of y will be x, but the 1 nearest neighbor of x will be z. (d) is true,
since by definition being in the epsilon neighborhood is a symmetric relation. If point x is
within a distance epsilon of point y, then point y is within epsilon of point x.

Common questions

Powered by AI

The VC-dimension of the class of axis-parallel rectangles is 4 because one can show that no configuration of 5 points can be shattered by this class. The process involves proving both shattering 4 points and the impossibility of shattering 5 points using various geometric arrangements and logical reasoning involving the positioning of points relative to the rectangle's edges .

In spectral clustering, the maximum degree of a vertex in a kNN graph is k, giving a tighter upper bound (O(1) in computer science terms) compared to the number of data points (O(n)). In contrast, an epsilon neighborhood graph can have a vertex degree as high as n if all data points fall within epsilon distance of each other, meaning it lacks the same bound tightness .

Different point configurations play a crucial role in determining the VC-dimension for geometric shapes. For axis-parallel rectangles, determining configurations involves considering points within or on the boundary of the rectangle. The VC-dimension is defined by the point arrangement that a shape can completely shatter. For instance, while it can handle four points, adding a fifth point may result in configurations that cannot all be simultaneously enclosed by rectangles, limiting shattering potential .

Yes, a similarity graph with epsilon neighborhoods can have highly variable vertex degrees. This variability is influenced by the distance threshold epsilon and the spatial distribution of data points. Specifically, if all points are closely clustered, the degree could reach n, reflecting full interconnectedness, whereas sparse arrangements lead to lower degrees .

The epsilon neighborhood graph has a symmetric property: if point x is within epsilon distance of point y, then y is also within epsilon distance of x. This does not necessarily hold for kNN graphs, where proximity is not guaranteed to be mutual; point x may be among the k nearest neighbors of y, but y might not be among the k nearest neighbors of x, as seen in the example provided .

To increase the probability of finding an approximately correct hypothesis using a PAC learning algorithm, one can repeat the algorithm multiple times and select the best hypothesis. For an algorithm A that works with a probability of 0.5, repeating it nine times adapts it to meet a requirement of 0.998 probability. This is achieved because the probability of obtaining at least one correct hypothesis out of nine trials aligns with the calculation of observing heads at least once in nine coin tosses .

The effectiveness of the EM algorithm in optimizing a log likelihood function can vary significantly based on the initial parameter values chosen. In some scenarios, the EM algorithm may get stuck in local minima, preventing it from reaching the global maximum. In the case presented, only scenario (c) allows the EM algorithm to achieve the global maximum because in all other scenarios, the algorithm gets stuck in local minima .

Having a VC-dimension of at least k means there must exist at least one arrangement of k points that the hypothesis class can shatter. It does not mean that every possible configuration of k points can be shattered. For example, the VC-dimension of the hypothesis class of straight lines is three, but not all configurations, such as three co-linear points, can be shattered by lines .

The EM algorithm can generally be used to estimate missing values in datasets, which is a crucial step when constructing classifiers like decision trees. However, its applicability depends on having knowledge of the underlying probability distribution. Without this information, the EM algorithm cannot be effectively used to fill missing values in the data for building a decision tree classifier .

Knowing the underlying distribution is crucial when using the EM algorithm for imputation of missing data. The effectiveness of the EM algorithm relies on model specifications that often depend on the data distribution. Without this distribution knowledge, estimating missing values is unreliable since the algorithm would lack a statistical framework to guide its iterative processes .

You might also like