ML Study Hub

Home / Past papers / MLT Quiz 1 / this paper

2024 Oct27: - 27 Oct 2024

MLT Quiz 113 questions50 marks6 SA · 5 MCQ · 2 MSQ
Elapsed 00:00
Q1MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q2MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q3MCQ3 marks
question figure
  1. yes
  2. No
Q4MSQ4 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q5MSQ5 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q6SA3 marks
question figure
Q7SA5 marks
question figure
Q8SA4 marks
question figure
Q9SA4 marks
Consider a dataset with 100 total data points. Each data point is classified as either type A or type B. We model this using a Bernoulli distribution, where p is the probability of a data point being type A. If the maximum likelihood estimate (MLE) of p based on the dataset is 0.4, how many data points of type B are there in this dataset?
Comprehension passage - the questions below it refer to this
question figure
Q10SA3 marks
question figure
Q11SA4 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q12MCQ3 marks
question figure
  1. (0,1)
  2. (2,3)
  3. (3,2)
  4. (2,4)
Q13MCQ4 marks
Which point has the lowest probability of being chosen as the 3rd cluster mean? Use squared distance to calculate the scores.
  1. (1,0)
  2. (2,3)
  3. (3,2)
  4. (1,2)

Answer key

  1. Q1 (MCQ, 4 marks): B
  2. Q2 (MCQ, 4 marks): A
  3. Q3 (MCQ, 3 marks): A
  4. Q4 (MSQ, 4 marks): A, B
  5. Q5 (MSQ, 5 marks): A, D
  6. Q6 (SA, 3 marks): 80
  7. Q7 (SA, 5 marks): 6
  8. Q8 (SA, 4 marks): 1.50 to 1.60
  9. Q9 (SA, 4 marks): 60
  10. Q10 (SA, 3 marks): 4.8 to 5.1
  11. Q11 (SA, 4 marks): 0.5 to 0.9
  12. Q12 (MCQ, 3 marks): D
  13. Q13 (MCQ, 4 marks): B

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. Kernels and Kernel Functions

k1(x,y)=x1y1+x2y2+(x1+x2)(y1+y2)k_1(\mathbf{x}, \mathbf{y}) = x_1 y_1 + x_2 y_2 + (x_1 + x_2)(y_1 + y_2)
k2(x,y)=x1y1+x2y2+(x12+y22)+3k_2(\mathbf{x}, \mathbf{y}) = x_1 y_1 + x_2 y_2 + (x_1^2 + y_2^2) + 3

2. Principal Component Analysis (PCA)

1n∑i=1n∥xi−(xiTw)w∥2\frac{1}{n} \sum_{i=1}^{n} \| x_i - (x_i^T w) w \|^2
Percentage of total variance=Sum of top eigenvaluesTotal sum of eigenvalues×100%\text{Percentage of total variance} = \frac{\text{Sum of top eigenvalues}}{\text{Total sum of eigenvalues}} \times 100\%

3. Maximum Likelihood Estimation (MLE)

f(x∣θ)={5x4,if 0<x<10,otherwisef(x \mid \theta) = \begin{cases} 5x^4, & \text{if } 0 < x < 1 \\ 0, & \text{otherwise} \end{cases}
f(x∣θ)={1,if 0<x<10,otherwisef(x \mid \theta) = \begin{cases} 1, & \text{if } 0 < x < 1 \\ 0, & \text{otherwise} \end{cases}
∏i=1n5xi4<1 or >1\prod_{i=1}^{n} 5x_i^4 < 1 \text{ or } > 1

4. K-Means Clustering

F(z1,z2,…,zn)=∑i=1n∥xi−μzi∥22F(z_1, z_2, \ldots, z_n) = \sum_{i=1}^{n} \| x_i - \mu_{z_i} \|_2^2

5. Gaussian Mixture Models (GMM)

μk=∑i=1nλkixi∑i=1nλki\mu_k = \frac{\sum_{i=1}^{n} \lambda_k^i x_i}{\sum_{i=1}^{n} \lambda_k^i}

6. Bernoulli Distribution

p^=Number of type A data pointsTotal number of data points\hat{p} = \frac{\text{Number of type A data points}}{\text{Total number of data points}}

7. Projections and Reconstruction Error

Projection length=x⋅w∥w∥\text{Projection length} = \frac{\mathbf{x} \cdot \mathbf{w}}{\|\mathbf{w}\|}
∥x−(x⋅w)w∥\| \mathbf{x} - (\mathbf{x} \cdot \mathbf{w}) \mathbf{w} \|