ML Study Hub

Home / Past papers / MLT Quiz 1 / this paper

2024 July07: IIT M AN EXAM QDD4 - 07 Jul 2024

MLT Quiz 116 questions40 marks10 SA · 5 MCQ · 1 MSQafternoon / QDD4
Elapsed 00:00
Q1MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q2MCQ3 marks
question figure
  1. Both k1 and k2 are valid kernels.
  2. k1 is a valid kernel, but k2 is not a valid kernel.
  3. k2 is a valid kernel, but k1 is not a valid kernel.
  4. Neither k1 nor k2 is a valid kernel.
Q3MSQ3 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Q4SA3 marks
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.
Q5SA3 marks
question figure
Q6SA4 marks
question figure
Q7SA4 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q8SA2 marks
Find the variance of the dataset along the first principal component.
Q9SA1 mark
Find the variance of the dataset along the x-axis.
Q10MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q11SA2 marks
If (x1, y1) is the mean of the first cluster after convergence, find the value of x1 + y1.
Q12SA2 marks
If (x2, y2) is the mean of the second cluster after convergence, find the value of x2 + y2.
Comprehension passage - the questions below it refer to this
In the context of Bayesian estimation, consider a Beta prior for the parameter p of a Bernoulli distribution: question figure 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.
Q13MCQ2 marks
What is the posterior?
  1. Beta(12, 8)
  2. Beta(11, 7)
  3. Br(0.5)
  4. Beta(8, 5)
Q14SA2 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q15MCQ2.5 marks
Find the log-likelihood of the dataset under this distribution.
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q16SA2.5 marks
Consider a dataset that has 25 data-points. The data-point xi and its frequency is given in the following table: question figure 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.

Answer key

  1. Q1 (MCQ, 2 marks): A
  2. Q2 (MCQ, 3 marks): A
  3. Q3 (MSQ, 3 marks): A, B
  4. Q4 (SA, 3 marks): 0.1
  5. Q5 (SA, 3 marks): 0.8
  6. Q6 (SA, 4 marks): 16
  7. Q7 (SA, 4 marks): 0.25
  8. Q8 (SA, 2 marks): 3
  9. Q9 (SA, 1 marks): 2
  10. Q10 (MCQ, 2 marks): A
  11. Q11 (SA, 2 marks): -5
  12. Q12 (SA, 2 marks): 9
  13. Q13 (MCQ, 2 marks): A
  14. Q14 (SA, 2 marks): 0.6
  15. Q15 (MCQ, 2.5 marks): A
  16. Q16 (SA, 2.5 marks): 2.52

Concepts this paper tests

Auto-generated summary from the source site. Handy as a checklist; the lessons above explain each idea from scratch.

Summary of Core Topics, Concepts, Principles, and Equations

1. Principal Component Analysis (PCA)

xprojected=(x⋅w1)w1+(x⋅w2)w2\mathbf{x}_{\text{projected}} = (\mathbf{x} \cdot \mathbf{w}_1) \mathbf{w}_1 + (\mathbf{x} \cdot \mathbf{w}_2) \mathbf{w}_2
e=x−xprojected\mathbf{e} = \mathbf{x} - \mathbf{x}_{\text{projected}}
∥e∥=∥x−xprojected∥\|\mathbf{e}\| = \|\mathbf{x} - \mathbf{x}_{\text{projected}}\|
Var(w)=wTCw\text{Var}(\mathbf{w}) = \mathbf{w}^T C \mathbf{w}

where CC is the covariance matrix.

2. Kernel Methods

k(x,y)=(x⋅y+c)dk(\mathbf{x}, \mathbf{y}) = (\mathbf{x} \cdot \mathbf{y} + c)^d

3. Gaussian Mixture Models (GMM) and EM Algorithm

λik=πkN(xi∣μk,Σk)∑j=1KπjN(xi∣μj,Σj)\lambda_i^k = \frac{\pi_k \mathcal{N}(\mathbf{x}_i | \mu_k, \Sigma_k)}{\sum_{j=1}^K \pi_j \mathcal{N}(\mathbf{x}_i | \mu_j, \Sigma_j)}
P(zk∣xi)=πkN(xi∣μk,Σk)∑j=1KπjN(xi∣μj,Σj)P(z_k | \mathbf{x}_i) = \frac{\pi_k \mathcal{N}(\mathbf{x}_i | \mu_k, \Sigma_k)}{\sum_{j=1}^K \pi_j \mathcal{N}(\mathbf{x}_i | \mu_j, \Sigma_j)}

4. K-Means Clustering

P(xi)=d(xi,μ)2∑j=1nd(xj,μ)2P(\mathbf{x}_i) = \frac{d(\mathbf{x}_i, \mu)^2}{\sum_{j=1}^n d(\mathbf{x}_j, \mu)^2}
μk=1∣Ck∣∑xi∈Ckxi\mu_k = \frac{1}{|C_k|} \sum_{\mathbf{x}_i \in C_k} \mathbf{x}_i

5. Bayesian Estimation

p∼Beta(α,β)p \sim \text{Beta}(\alpha, \beta)
p∣data∼Beta(α+number of successes,β+number of failures)p | \text{data} \sim \text{Beta}(\alpha + \text{number of successes}, \beta + \text{number of failures})
p^=α+number of successesα+β+number of trials\hat{p} = \frac{\alpha + \text{number of successes}}{\alpha + \beta + \text{number of trials}}

6. Poisson Distribution

f(x;λ)=e−λλxx!f(x; \lambda) = \frac{e^{-\lambda} \lambda^x}{x!}
log⁡L(λ)=∑i=1n[−λ+xilog⁡λ−log⁡(xi!)]\log \mathcal{L}(\lambda) = \sum_{i=1}^n [-\lambda + x_i \log \lambda - \log (x_i!)]