ML Study Hub

Home / Past papers / MLT End Term / this paper

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

MLT End Term16 questions50 marks7 SA · 6 MSQ · 3 MCQFoundation / Diploma / afternoon / QDF4
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 essential for the exam, followed by Mermaid knowledge graphs to visualize relationships.


Core Topics & 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 is the center of cluster CiC_i.


2. Bias-Variance Tradeoff (Q3)


3. Logistic Regression (Q4)

30∘≤θ≤150∘30^\circ \leq \theta \leq 150^\circ

4. Kernel Methods (Q5)


5. Linear Regression (Q6)

w∗=(XXT)−1Xy\mathbf{w}^* = (X X^T)^{-1} X \mathbf{y}

6. Support Vector Machines (SVM) (Q7, Q8, Q10, Q15)

Hard-Margin SVM

Soft-Margin SVM (Q7, Q10)

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

subject to:

yi(wTxi+b)≥1−ξi,ξi≥0y_i (\mathbf{w}^T \mathbf{x}_i + b) \geq 1 - \xi_i, \quad \xi_i \geq 0

Perceptron Mistake Bound (Q15)

(Rγ)2\left( \frac{R}{\gamma} \right)^2

where R=max⁡∥xi∥R = \max \|\mathbf{x}_i\|.


7. Maximum Likelihood Estimation (MLE) (Q12)

p^=1n∑i=1nxi\hat{p} = \frac{1}{n} \sum_{i=1}^n x_i

8. Decision Trees (Q13)


9. Naive Bayes (Q14)

p(y∣x)∝p(y)∏j=1dp(xj∣y)p(y | \mathbf{x}) \propto p(y) \prod_{j=1}^d p(x_j | y)

10. AdaBoost (Q9, Q16)

Dt+1(i)=Dt(i)exp⁡(αt)ZtD_{t+1}(i) = \frac{D_t(i) \exp(\alpha_t)}{Z_t}

where αt=12ln⁡(1−ϵtϵt)\alpha_t = \frac{1}{2} \ln \left( \frac{1 - \epsilon_t}{\epsilon_t} \right).


11. Neural Networks (Q17)

a=σ(wTx+b)a = \sigma(\mathbf{w}^T \mathbf{x} + b)

where σ\sigma is the sigmoid function.

z=0.5⋅0.6+(−0.2)⋅0.3+0.8⋅0.8+0.1=0.3−0.06+0.64+0.1=1.01z = 0.5 \cdot 0.6 + (-0.2) \cdot 0.3 + 0.8 \cdot 0.8 + 0.1 = 0.3 - 0.06 + 0.64 + 0.1 = 1.01
a=σ(1.01)≈0.73a = \sigma(1.01) \approx 0.73

12. Eigenvalues & Covariance (Q11)

2λ1+3λ2−λ3=52\lambda_1 + 3\lambda_2 - \lambda_3 = 5
λ1−2λ2+4λ3=8\lambda_1 - 2\lambda_2 + 4\lambda_3 = 8
3λ1+λ2−2λ3=33\lambda_1 + \lambda_2 - 2\lambda_3 = 3

Graph 2: Clustering & Dimensionality Reduction

Graph 3: Bias-Variance Tradeoff

Graph 4: SVM Components

Graph 5: Probabilistic Models