ML Study Hub

Home / Past papers / MLT End Term / this paper

IIT M IMPROVEMENT FN EXAM QDD2 01 Sep - 01 Sep 2024

MLT End Term30 questions50 marks14 SA · 13 MCQ · 3 MSQImprovement / forenoon / QDD2
Elapsed 00:00
Q1MCQ3 marks
question figure
  1. 80%
  2. 60%
  3. 20%
  4. 15%
Q2MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q3MCQ3 marks
Match the characteristics given below with the appropriate ensemble technique. 1. Decision stumps 2. Deep decision trees 3. Parallel execution 4. Sequential execution
  1. Bagging → (2), (3); Boosting → (1), (4)
  2. Bagging → (1), (4); Boosting → (2), (3)
  3. Bagging → (1), (3); Boosting → (2), (4)
  4. Bagging → (2), (4); Boosting → (1), (3)
Q4MCQ3 marks
question figure
  1. The predicted labels for x1 and x2 are 1 and −1 respectively.
  2. The predicted labels for x1 and x2 are −1 and 1 respectively.
  3. The predicted label for both data-points is 1.
  4. The predicted label for both data-points is −1.
Q5MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q6MCQ3 marks
question figure
  1. 2x1 + x2 = 0
  2. x1 − 2x2 = 0
  3. x1 + x2 = 0
  4. x1 + 2x2 = 0
Q7SA3 marks
question figure
Q8SA3 marks
question figure
Q9SA3 marks
question figure
Q10MSQ3 marksselect all that apply
question figure
  1. 2
  2. 4
  3. 3
  4. 5
Q11MSQ3 marksselect all that apply
question figure
  1. The dataset is linearly separable with a positive margin.
  2. The perceptron algorithm will terminate after a finite number of iterationswhen trained on this dataset.
  3. The dataset is linearly separable, but the margin may be zero.
  4. The dataset is not linearly separable.
Q12MSQ3 marksselect all that apply
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
Q13MCQ1 mark
The weight vector output by the perceptron algorithm on this dataset can be expressed as a linear combination of the data-points where the coefficients of the linear combination are integers.
  1. TRUE
  2. FALSE
Q14MCQ1 mark
question figure
  1. TRUE
  2. FALSE
Q15MCQ1 mark
If a soft-margin SVM is trained on this dataset, the optimal weight vector it returns will be the same as the one returned by a hard-margin SVM, irrespective of the value of the hyperparameter C.
  1. TRUE
  2. FALSE
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q16SA0.5 marks
question figure
Q17SA0.5 marks
question figure
Q18SA0.5 marks
question figure
Q19SA0.5 marks
question figure
Q20SA0.5 marks
question figure
Q21SA0.5 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q22SA0.5 marks
question figure
Q23SA0.5 marks
question figure
Q24SA0.5 marks
question figure
Q25SA0.5 marks
Enter the number corresponding to the squared loss._______________
Q26MCQ1 mark
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
Q27SA1 mark
How many learnable parameters does this network have? Ignore the biases in the computation.
Q28MCQ1 mark
What is the most appropriate choice of activation function for the output layer if the binary cross-entropy loss is used?
  1. Sigmoid
  2. Linear
  3. ReLU
Q29MCQ1 mark
question figure
  1. ReLU
  2. Sigmoid
Q30MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure

Answer key

  1. Q1 (MCQ, 3 marks): A
  2. Q2 (MCQ, 3 marks): A
  3. Q3 (MCQ, 3 marks): A
  4. Q4 (MCQ, 3 marks): A
  5. Q5 (MCQ, 3 marks): A
  6. Q6 (MCQ, 3 marks): A
  7. Q7 (SA, 3 marks): 0.4
  8. Q8 (SA, 3 marks): 30
  9. Q9 (SA, 3 marks): 0.26 to 0.37
  10. Q10 (MSQ, 3 marks): A, B
  11. Q11 (MSQ, 3 marks): A, B
  12. Q12 (MSQ, 3 marks): A, B
  13. Q13 (MCQ, 1 marks): A
  14. Q14 (MCQ, 1 marks): B
  15. Q15 (MCQ, 1 marks): B
  16. Q16 (SA, 0.5 marks): 2
  17. Q17 (SA, 0.5 marks): 1
  18. Q18 (SA, 0.5 marks): 0
  19. Q19 (SA, 0.5 marks): 3
  20. Q20 (SA, 0.5 marks): 0
  21. Q21 (SA, 0.5 marks): -1
  22. Q22 (SA, 0.5 marks): 3
  23. Q23 (SA, 0.5 marks): 2
  24. Q24 (SA, 0.5 marks): 4
  25. Q25 (SA, 0.5 marks): 1
  26. Q26 (MCQ, 1 marks): A
  27. Q27 (SA, 1 marks): 160
  28. Q28 (MCQ, 1 marks): A
  29. Q29 (MCQ, 1 marks): A
  30. Q30 (MCQ, 2 marks): A

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. Principal Component Analysis (PCA)

Variance captured=λ1+λ2+⋯+λk∑i=1dλi\text{Variance captured} = \frac{\lambda_1 + \lambda_2 + \dots + \lambda_k}{\sum_{i=1}^d \lambda_i}

(For Q2: Eigenvalues = [15, 5, 5, 0, 0] → Top 2 PCs capture (15+5)/25 = 80%)


2. Regularization & Ridge Regression

L(w)=SSE+λ∥w∥22L(\mathbf{w}) = \text{SSE} + \lambda \|\mathbf{w}\|_2^2

where SSE = Sum of Squared Errors.


3. Ensemble Methods (Bagging vs. Boosting)

TechniqueBase LearnersExecutionKey Idea
BaggingDeep trees (high variance)ParallelReduce variance via averaging.
BoostingDecision stumps (weak learners)SequentialReduce bias via weighted corrections.

(Q4: Bagging → (2, 3); Boosting → (1, 4))


4. Support Vector Machines (SVM)

Hard-Margin SVM

(Q5: x1x_1 is in class +1 (0 < wTx1<1\mathbf{w}^T x_1 < 1); x2x_2 is in class -1 (-1 < wTx2<0\mathbf{w}^T x_2 < 0).)

Soft-Margin SVM

min⁡w,b,ξ12∥w∥2+C∑iξi\min_{\mathbf{w}, b, \xi} \frac{1}{2} \|\mathbf{w}\|^2 + C \sum_i \xi_i

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

(Q8: Distance between hyperplanes = 2∥w∥\frac{2}{\|\mathbf{w}\|}. For w=[3,4]\mathbf{w} = [3, 4], ∥w∥=5\|\mathbf{w}\| = 5, so distance = 0.4.)


5. Naive Bayes

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

(Q6: Correct option is p(x1,x2,x3∣y)=p(x1∣y)p(x2∣y)p(x3∣y)p(x_1, x_2, x_3 | y) = p(x_1 | y) p(x_2 | y) p(x_3 | y).)


6. k-Means Clustering


7. Maximum Likelihood Estimation (MLE)

p^=Number of successesTotal trials\hat{p} = \frac{\text{Number of successes}}{\text{Total trials}}

(Q9: p^=0.25\hat{p} = 0.25, successes = 10 → Total trials = 40 → Zeros = 30.)


8. Decision Trees & Information Gain

H(S)=−∑ipilog⁡2piH(S) = -\sum_i p_i \log_2 p_i
IG=H(parent)−∑children∣Sv∣∣S∣H(Sv)IG = H(\text{parent}) - \sum_{\text{children}} \frac{|S_v|}{|S|} H(S_v)

(Q10: Parent entropy = 0.811, children entropy = 0.5 → IG = 0.311.)


9. Kernel Methods

K(x,x′)=(xTx′+c)pK(\mathbf{x}, \mathbf{x}') = (\mathbf{x}^T \mathbf{x}' + c)^p

(Q11: Possible values for *p are 2 and 4.)*


10. Logistic Regression

p(y=1∣x)=11+e−wTxp(y=1 | \mathbf{x}) = \frac{1}{1 + e^{-\mathbf{w}^T \mathbf{x}}}
log⁡(p1−p)=wTx\log \left( \frac{p}{1-p} \right) = \mathbf{w}^T \mathbf{x}

(Q13: For p=11+e2p = \frac{1}{1 + e^2}, wTx=−2\mathbf{w}^T \mathbf{x} = -2. Check which weight vector satisfies this for x=[1,1]\mathbf{x} = [1, 1].)


11. Neural Networks

(Q28: Answer is 160.)


12. Loss Functions

LossFormulaCurve Color (Q23-Q26)
Logistic Losslog⁡(1+e−z)\log(1 + e^{-z})Red (3)
Hinge Loss (SVM)max⁡(0,1−z)\max(0, 1 - z)Green (2)
Perceptron Lossmax⁡(0,−z)\max(0, -z)Blue (4)
Squared Loss(y−y^)2(y - \hat{y})^2Yellow (1)

(Q23: Logistic loss = 3; Q24: Hinge loss = 2; Q25: Perceptron loss = 4; Q26: Squared loss = 1.)


Graph 2: Dimensionality Reduction & Clustering

Graph 3: Ensemble Methods

Graph 4: Neural Networks