ML Study Hub

Home / Past papers / MLT End Term / this paper

IIT M FOUNDATION DIPLOMA AN EXAM QDF3 28 Apr 2024 - 28 Apr 2024

MLT End Term16 questions50 marks7 SA · 6 MSQ · 3 MCQFoundation / Diploma / afternoon / QDF3
Elapsed 00:00
Q1MCQ3 marks
Imagine a dataset characterized by two features, Feature 1 and Feature 2, demonstrating a perfect negative correlation of -1. When applying k-means clustering with k = 3 to this dataset, what is the most likely arrangement of cluster centers that minimizes the within-cluster sum of squares (WCSS)?
  1. An equilateral triangle centered around the mean of the data.
  2. Cluster centers positioned along a straight line.
  3. A triangle with two acute angles, positioned strategically within the datadistribution.
  4. A right-angled triangle with one center at the origin.
Q2MCQ3 marks
question figure
  1. Model 1
  2. Model 2
  3. Both models are equally sensitive to outliers
  4. Insufficient data
Q3MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Q4MSQ3 marksselect all that apply
Which of the following statements accurately describes the characteristics of kernel functions? Assume the dataset to be mean-centered.
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q5MSQ3 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q6MSQ3 marksselect all that apply
Consider the following dataset on which the soft margin SVM is applied. question figure Consider the following dataset on which the soft margin SVM is applied. Which of the following statements is/are true about this dataset?
  1. Points {F, A, C, I} are the only support vectors.
  2. Points {A, N} are a subset of support vectors.
  3. Points {F, A, N} are a subset of support vectors.
  4. Points except {F, A, C, I, N} do not play any role in determining optimal weightvector.
  5. Points except {F, A, C, I} do not play any role in determining optimal weightvector.
Q7MSQ3 marksselect all that apply
Given a two-dimensional data set where points from class 1 are: {(-2, 3), (-1,1), (-1, 2), (-1, 4)} And points from class 0 are: {(1, 3), (1, 4) (2, 4), (2, 2)} Which of the following statements are true?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q8MSQ3 marksselect all that apply
Consider the following two-dimensional dataset with two classes: +1 for blue points and -1 for red points. An AdaBoost algorithm was run on this dataset using decision stumps as weak learners. question figure Consider the following two-dimensional dataset with two classes: +1 for blue points and -1 for red points. An AdaBoost algorithm was run on this dataset using decision stumps as weak learners. To train the second decision stump, which pair of points will be assigned equal weights to create the training data-set?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q9MSQ4 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
  6. question figure
Q10SA3 marks
question figure
Q11SA3 marks
question figure
Q12SA3 marks
Consider the following decision tree for a classification problem in which all the data-points are constrained to lie in the unit square in the first quadrant. That is 0 ≥ x1, x2 ≤ 1. If a point is picked uniformly at random from the unit square, what is the probability that the decision tree predicts this point as belonging to class 1? question figure Consider the following decision tree for a classification problem in which all the data-points are constrained to lie in the unit square in the first quadrant. That is 0 ≥ x1, x2 ≤ 1. If a point is picked uniformly at random from the unit square, what is the probability that the decision tree predicts this point as belonging to class 1?
Q13SA3 marks
question figure
Q14SA3 marks
question figure
Q15SA3 marks
Based on the above data, what will be the updated weight for point x2? question figure
Q16SA3 marks
Consider a simple neural network with one hidden layer. The network has the following architecture: Input layer with 3 neurons. Hidden layer with 2 neurons, using the sigmoid activation function. Output layer with 1 neuron, using the linear activation function. The weights and biases for the network are as follows: Hidden Layer: Neuron 1: Weights: [0.5, -0.2, 0.8] Bias: 0.1 Neuron 2: Weights: [0.4, 0, 0.2] Bias: -0.4 Output Layer: Neuron 1: Weights: [0.2, 0.4] Bias: -0.3 Assume that the input values are [0.6, 0.3, 0.8]. Calculate output of Neuron 1 in hidden layer

Answer key

  1. Q1 (MCQ, 3 marks): B
  2. Q2 (MCQ, 3 marks): A
  3. Q3 (MCQ, 4 marks): A
  4. Q4 (MSQ, 3 marks): C, D
  5. Q5 (MSQ, 3 marks): A, C
  6. Q6 (MSQ, 3 marks): B, C, D
  7. Q7 (MSQ, 3 marks): A, B
  8. Q8 (MSQ, 3 marks): C, D
  9. Q9 (MSQ, 4 marks): B, D, E
  10. Q10 (SA, 3 marks): 5
  11. Q11 (SA, 3 marks): 0.6
  12. Q12 (SA, 3 marks): 0.75
  13. Q13 (SA, 3 marks): 0
  14. Q14 (SA, 3 marks): 16
  15. Q15 (SA, 3 marks): 0.25
  16. Q16 (SA, 3 marks): 0.70 to 0.80

Concepts this paper tests

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

Here’s a structured summary of core topics, concepts, principles, and equations for the Diploma-Level Machine Learning Techniques exam, followed by Mermaid knowledge graphs to visualize relationships.


Core Topics & Key Concepts

1. Clustering (K-Means)

WCSS=∑i=1k∑x∈Ci∥x−μi∥2\text{WCSS} = \sum_{i=1}^{k} \sum_{\mathbf{x} \in C_i} \|\mathbf{x} - \mu_i\|^2

where μi\mu_i = centroid of cluster CiC_i.


2. Bias-Variance Tradeoff


3. Logistic Regression & Decision Boundaries

σ(z)=11+e−z,z=wTx+b\sigma(z) = \frac{1}{1 + e^{-z}}, \quad z = \mathbf{w}^T \mathbf{x} + b
wTx1>0andwTx2>0\mathbf{w}^T \mathbf{x}_1 > 0 \quad \text{and} \quad \mathbf{w}^T \mathbf{x}_2 > 0

4. Kernel Methods & Kernel PCA


5. Linear Regression & Normal Equation

L(w)=∥y−XTw∥2L(\mathbf{w}) = \|\mathbf{y} - \mathbf{X}^T \mathbf{w}\|^2
w∗=(XXT)−1Xy\mathbf{w}^* = (\mathbf{X} \mathbf{X}^T)^{-1} \mathbf{X} \mathbf{y}

6. Support Vector Machines (SVM)

Hard-Margin SVM

Soft-Margin SVM

min⁡w,b,ξ12∥w∥2+C∑i=1nξi\min_{\mathbf{w}, b, \xi} \frac{1}{2} \|\mathbf{w}\|^2 + C \sum_{i=1}^n \xi_i
yi(wTxi+b)≥1−ξi,ξi≥0y_i (\mathbf{w}^T \mathbf{x}_i + b) \geq 1 - \xi_i, \quad \xi_i \geq 0

7. Principal Component Analysis (PCA)

Var(X)=∑i=1dλi\text{Var}(X) = \sum_{i=1}^d \lambda_i
2λ1+3λ2−λ3=5,λ1−2λ2+4λ3=8,3λ1+λ2−2λ3=32\lambda_1 + 3\lambda_2 - \lambda_3 = 5, \quad \lambda_1 - 2\lambda_2 + 4\lambda_3 = 8, \quad 3\lambda_1 + \lambda_2 - 2\lambda_3 = 3

Solve the system to find λi\lambda_i, then sum for total variance.


8. Maximum Likelihood Estimation (MLE)

P(xi∣p)=pxi(1−p)1−xiP(x_i | p) = p^{x_i} (1-p)^{1-x_i}
L(p1,p2)=∏i∈Group 1p1xi(1−p1)1−xi⋅∏j∈Group 2p2xj(1−p2)1−xjL(p_1, p_2) = \prod_{i \in \text{Group 1}} p_1^{x_i} (1-p_1)^{1-x_i} \cdot \prod_{j \in \text{Group 2}} p_2^{x_j} (1-p_2)^{1-x_j}
p^1=∑i∈Group 1xin1,p^2=∑j∈Group 2xjn2\hat{p}_1 = \frac{\sum_{i \in \text{Group 1}} x_i}{n_1}, \quad \hat{p}_2 = \frac{\sum_{j \in \text{Group 2}} x_j}{n_2}

9. Decision Trees & Probability


10. AdaBoost & Weak Learners

ϵt=∑i=1nDt(i)1(ht(xi)≠yi)\epsilon_t = \sum_{i=1}^n D_t(i) \mathbb{1}(h_t(x_i) \neq y_i)
Dt+1(i)=Dt(i)exp⁡(−αtyiht(xi))ZtD_{t+1}(i) = \frac{D_t(i) \exp(-\alpha_t y_i h_t(x_i))}{Z_t}

where ZtZ_t is a normalization factor.


11. Neural Networks (Forward Pass)

σ(z)=11+e−z\sigma(z) = \frac{1}{1 + e^{-z}}
zj=∑i=13wjixi+bj,aj=σ(zj)z_j = \sum_{i=1}^3 w_{ji} x_i + b_j, \quad a_j = \sigma(z_j)

Graph 2: Unsupervised Learning & Dimensionality Reduction

Graph 3: Probability & Estimation