uiz Space

January 2025 term · Machine Learning Techniques · BSCS2007

Machine Learning Techniques Quiz 1: 23 February 2025 (January 2025 term)

The IIT Madras BS Machine Learning Techniques (MLT) Quiz 1 paper sat on 23 Feb 2025, in the January 2025 term: 14 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
14
Marks
40
Duration
120 min
MCQ
5
MSQ
2
Numerical
7

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD2 23 Feb 2025 · No negative marking.

Question 1

+2 marksOne correct option

For the Lloyd's algorithm, what would be the correct relationship among the following three quantities?

(1) ∑i=1n∣∣xi−μzit+1t∣∣2\sum_{i=1}^{n} ||x_i - \mu^t_{z_i^{t+1}}||^2,
(2) ∑i=1n∣∣xi−μzitt∣∣2\sum_{i=1}^{n} ||x_i - \mu^t_{z_i^t}||^2,
(3) ∑i=1n∣∣xi−μzit+1t+1∣∣2\sum_{i=1}^{n} ||x_i - \mu^{t+1}_{z_i^{t+1}}||^2

where μzitt\mu^t_{z_i^t} and μzit+1t+1\mu^{t+1}_{z_i^{t+1}} refer to means of cluster ziz_i in iterations, tt and t+1t+1 respectively, and μzit+1t\mu^t_{z_i^{t+1}} refer to the mean of the cluster ziz_i where xix_i is going to move in the next iteration, i.e., (t+1)(t+1)-th iteration.

  1. A

    (1) > (2) > (3)

  2. B

    (1) < (2) < (3)

  3. C

    (3) < (1) < (2)

  4. D

    (2) < (3) < (1)

Show answer

Correct answer

  • C

    (3) < (1) < (2)

Question 2

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

Correct answer

  • C

Question 3

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

Correct answer

  • C

Question 4

+4 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • D

Question 5

+3 marksOne or more correct options

Which of the following statements is/are true?

Select all that apply.

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

Correct answers

  • A
  • B
  • C

Question 6

+3 marksNumerical answer

Let XX be a data matrix of shape (d,n)(d, n) for a centered dataset. The first principal component of the dataset is given as

[22,22]T.\begin{bmatrix} \frac{\sqrt{2}}{2}, & \frac{\sqrt{2}}{2} \end{bmatrix}^T.

What will be the scalar proxy of the point [34]\begin{bmatrix} 3 \\ 4 \end{bmatrix} onto the first principal component?

Enter the answer correct to two decimal places.

Show answer

Correct answer: 4.95 (accepted within ±0.03)

Question 7

+3 marksNumerical answer
Show answer

Correct answer: 74.5 (accepted within ±0.5)

Question 8

+3 marksNumerical answer
Show answer

Correct answer: 0.09 (accepted within ±0.02)

Question 9

+3 marksNumerical answer

Suppose you toss a coin four times and observe no heads. You then give the coin to your friend, who tosses it until the first head occurs. Your friend tosses the coin a total of five times. Let p denote the probability that the coin comes up heads. Find the maximum likelihood estimate of p.

Show answer

Correct answer: 0.11 (accepted within ±0.01)

Question 10

+4 marksNumerical answer

Suppose we fit a Gaussian Mixture Model with K=2K = 2 for the following dataset:

D={x1=1,x2=3,x3=2,x4=5}.D = \{x_1 = 1, x_2 = 3, x_3 = 2, x_4 = 5\}.

At the beginning of the tt-th time step of the EM algorithm, we have θ(t)\theta^{(t)} as follows:

π1=0.5,π2=0.5\pi_1 = 0.5, \quad \pi_2 = 0.5

μ1=1,μ2=3\mu_1 = 1, \quad \mu_2 = 3

σ12=1,σ22=1\sigma_1^2 = 1, \quad \sigma_2^2 = 1

What is the probability that x1x_1 belongs to the first component? Enter the answer correct to two decimal places.

Show answer

Correct answer: 0.88 (accepted within ±0.02)

Question 11

+2 marksOne correct option

Based on the above data, answer the given subquestions.

Among the vectors given below, choose a representative that has unit length.

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

Correct answer

  • B

Question 12

+3 marksNumerical answer

Based on the above data, answer the given subquestions.

If standard PCA is performed on this dataset, what is the variance along the first principal component? Enter the answer correct to two decimal places.

Show answer

Correct answer: 43.5 (accepted within ±0.5)

Question 13

+2 marksOne correct option

Suppose that 100 items are sampled from a manufacturing process and 10 are found to be defective. Let p denote the proportion of defective items. Assume that the prior distribution for p is Beta(1, 1).
Based on the above data, answer the given subquestions.

Select the correct options from the following:

  1. A

    Posterior distribution for p is Beta(91, 11).

  2. B

    Posterior distribution for p is Beta(11, 91).

  3. C

    Posterior distribution for p is Bernoulli(0.1).

  4. D

    Posterior distribution for p is Bernoulli(0.9).

Show answer

Correct answer

  • B

    Posterior distribution for p is Beta(11, 91).

Question 14

+2 marksNumerical answer

Suppose that 100 items are sampled from a manufacturing process and 10 are found to be defective. Let p denote the proportion of defective items. Assume that the prior distribution for p is Beta(1, 1).
Based on the above data, answer the given subquestions.

Find the posterior mean. Enter the answer correct to two decimal places.

Show answer

Correct answer: 0.105 (accepted within ±0.005)