uiz Space

May 2024 term · Machine Learning Techniques · BSCS2007

Machine Learning Techniques Quiz 1: 7 July 2024 (May 2024 term)

The IIT Madras BS Machine Learning Techniques (MLT) Quiz 1 paper sat on 7 Jul 2024, in the May 2024 term: 16 questions for 40 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
16
Marks
40
Duration
120 min
MCQ
5
MSQ
1
Numerical
10

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD2 7 July 2024 · No negative marking.

Question 1

+2 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 2

+3 marksOne correct option
  1. A

    Both k1 and k2 are valid kernels.

  2. B

    k1 is a valid kernel, but k2 is not a valid kernel.

  3. C

    k2 is a valid kernel, but k1 is not a valid kernel.

  4. D

    Neither k1 nor k2 is a valid kernel.

Show answer

Correct answer

  • A

    Both k1 and k2 are valid kernels.

Question 3

+3 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answers

  • A
  • B

Question 4

+3 marksNumerical answer

Kernel PCA with a polynomial kernel of degree 3 is run on a dataset of 100 data-points. Let ϕ be the transformation corresponding to this kernel. If the largest eigenvalue of the centered kernel matrix is 10, find the largest eigenvalue of the covariance matrix of the transformed dataset, where ϕ is used to effect the transformation.

Show answer

Correct answer: 0.1

Question 5

+3 marksNumerical answer
Show answer

Correct answer: 0.8

Question 6

+4 marksNumerical answer
Show answer

Correct answer: 16

Question 7

+4 marksNumerical answer
Show answer

Correct answer: 0.25

Question 8

+2 marksNumerical answer

Let C\mathbf{C} be the covariance matrix of a mean-centered dataset:

C=[2112]\mathbf{C} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}

Standard PCA is performed on this dataset. The first two PCs are given below:

w1=12[11]w2=12[−11]\mathbf{w}_1 = \frac{1}{\sqrt{2}} \begin{bmatrix} 1 \\ 1 \end{bmatrix} \quad \mathbf{w}_2 = \frac{1}{\sqrt{2}} \begin{bmatrix} -1 \\ 1 \end{bmatrix}

Based on the above data, answer the given subquestions.

Find the variance of the dataset along the first principal component.

Show answer

Correct answer: 3

Question 9

+1 markNumerical answer

Let C\mathbf{C} be the covariance matrix of a mean-centered dataset:

C=[2112]\mathbf{C} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}

Standard PCA is performed on this dataset. The first two PCs are given below:

w1=12[11]w2=12[−11]\mathbf{w}_1 = \frac{1}{\sqrt{2}} \begin{bmatrix} 1 \\ 1 \end{bmatrix} \quad \mathbf{w}_2 = \frac{1}{\sqrt{2}} \begin{bmatrix} -1 \\ 1 \end{bmatrix}

Based on the above data, answer the given subquestions.

Find the variance of the dataset along the x-axis.

Show answer

Correct answer: 2

Question 10

+2 marksOne correct option

Let C\mathbf{C} be the covariance matrix of a mean-centered dataset:

C=[2112]\mathbf{C} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}

Standard PCA is performed on this dataset. The first two PCs are given below:

w1=12[11]w2=12[−11]\mathbf{w}_1 = \frac{1}{\sqrt{2}} \begin{bmatrix} 1 \\ 1 \end{bmatrix} \quad \mathbf{w}_2 = \frac{1}{\sqrt{2}} \begin{bmatrix} -1 \\ 1 \end{bmatrix}

Based on the above data, answer the given subquestions.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 11

+2 marksNumerical answer

Consider the following dataset of six points in R2\mathbb{R}^2:

xxyy
−1-1−4-4
56
−2-2−2-2
45
−3-3−3-3
34

K-means clustering is run on this dataset with k=2k = 2. In this version, the means are initialized first. The mean of the first cluster is initialized to (−4,−4)(-4, -4) and the mean of the second cluster is initialized to (6,6)(6, 6).

Based on the above data, answer the given subquestions.

If (x1, y1) is the mean of the first cluster after convergence, find the value of x1 + y1.

Show answer

Correct answer: -5

Question 12

+2 marksNumerical answer

Consider the following dataset of six points in R2\mathbb{R}^2:

xxyy
−1-1−4-4
56
−2-2−2-2
45
−3-3−3-3
34

K-means clustering is run on this dataset with k=2k = 2. In this version, the means are initialized first. The mean of the first cluster is initialized to (−4,−4)(-4, -4) and the mean of the second cluster is initialized to (6,6)(6, 6).

Based on the above data, answer the given subquestions.

If (x2, y2) is the mean of the second cluster after convergence, find the value of x2 + y2.

Show answer

Correct answer: 9

Question 13

+2 marksOne correct option

In the context of Bayesian estimation, consider a Beta prior for the parameter p of a Bernoulli distribution:

The dataset has 8 ones and 5 zeros.
Based on the above data, answer the given subquestions.

What is the posterior?

  1. A

    Beta(12, 8)

  2. B

    Beta(11, 7)

  3. C

    Br(0.5)

  4. D

    Beta(8, 5)

Show answer

Correct answer

  • A

    Beta(12, 8)

Question 14

+2 marksNumerical answer

In the context of Bayesian estimation, consider a Beta prior for the parameter p of a Bernoulli distribution:

The dataset has 8 ones and 5 zeros.
Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.6

Question 15

+2.5 marksOne correct option

Consider a dataset of nn data-points all of which are non-negative integers. These data-points are sampled from a Poisson distribution, whose probability mass function is given below:

f(x;λ)=e−λλxx!, λ>0f(x; \lambda) = \frac{e^{-\lambda} \lambda^x}{x!}, \ \lambda > 0

Here λ\lambda is a parameter.

Based on the above data, answer the given subquestions.

Find the log-likelihood of the dataset under this distribution.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 16

+2.5 marksNumerical answer

Consider a dataset of nn data-points all of which are non-negative integers. These data-points are sampled from a Poisson distribution, whose probability mass function is given below:

f(x;λ)=e−λλxx!, λ>0f(x; \lambda) = \frac{e^{-\lambda} \lambda^x}{x!}, \ \lambda > 0

Here λ\lambda is a parameter.

Based on the above data, answer the given subquestions.

Consider a dataset that has 25 data-points. The data-point xi and its frequency is given in the following table:

In case the table is not clear: the value 0 appears once in the dataset, the value 1 appears four times in the dataset, and so on. Find the maximum likelihood estimate for the parameter λ of the Poisson distribution given this dataset.

Show answer

Correct answer: 2.52