ML Study Hub

Home / Past papers / MLT End Term / this paper

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

MLT End Term30 questions50 marks14 SA · 13 MCQ · 3 MSQImprovement / forenoon / QDD1
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.



1. Core Topics & Concepts

A. Principal Component Analysis (PCA)

Variance captured (%)=∑i=1kλi∑i=1dλi×100\text{Variance captured (\%)} = \frac{\sum_{i=1}^k \lambda_i}{\sum_{i=1}^d \lambda_i} \times 100

(Where λi\lambda_i are eigenvalues, dd is dimensionality.)

B. Regularization (Ridge Regression)

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

(SSE = Sum of Squared Errors, λ\lambda = regularization strength.)

C. Ensemble Methods (Bagging vs. Boosting)

FeatureBaggingBoosting
Base ModelsDeep trees (high variance)Decision stumps (high bias)
ExecutionParallel (independent models)Sequential (corrects predecessors)
CombinationAveraging/votingWeighted voting
Example AlgorithmsRandom ForestAdaBoost, Gradient Boosting

D. Support Vector Machines (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.)

E. Naive Bayes

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

(Features xjx_j are independent given class yy.)

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

F. Clustering (k-Means)

∥x−c1∥2=∥x−c2∥2\|\mathbf{x} - \mathbf{c}_1\|^2 = \|\mathbf{x} - \mathbf{c}_2\|^2

Simplifies to a linear equation (e.g., 2x1+x2=02x_1 + x_2 = 0).

G. Logistic Regression

σ(z)=11+e−z,z=wTx\sigma(z) = \frac{1}{1 + e^{-z}}, \quad z = \mathbf{w}^T \mathbf{x}
p(y=1∣x)=σ(wTx)p(y=1 \mid \mathbf{x}) = \sigma(\mathbf{w}^T \mathbf{x})
p(y=1∣x)=11+e−(ax1+bx2)p(y=1 \mid \mathbf{x}) = \frac{1}{1 + e^{-(a x_1 + b x_2)}}

H. Decision Trees & Information Gain

H(S)=−∑ipilog⁡2piH(S) = -\sum_i p_i \log_2 p_i

(Where pip_i = proportion of class ii in set SS.)

IG=H(parent)−∑j∣Sj∣∣S∣H(Sj)\text{IG} = H(\text{parent}) - \sum_{j} \frac{|S_j|}{|S|} H(S_j)

(Where SjS_j are child nodes.)

I. Kernels (Polynomial Kernel)

K(x,z)=(xTz+c)pK(\mathbf{x}, \mathbf{z}) = (\mathbf{x}^T \mathbf{z} + c)^p

J. Neural Networks

Parameters=nL×nL−1\text{Parameters} = n_L \times n_{L-1}
∑layers(Input size×Output size)\sum_{\text{layers}} (\text{Input size} \times \text{Output size})
ReLU(z)=max⁡(0,z)\text{ReLU}(z) = \max(0, z)

K. Loss Functions

Loss FunctionFormulaCurve Color (from Q23-26)
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)

L. Maximum Likelihood Estimation (MLE)

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

M. Linear Regression (Gradient of SSE)

SSE=(y−wTx)2\text{SSE} = (y - \mathbf{w}^T \mathbf{x})^2
∇wSSE=−2(y−wTx)x\nabla_{\mathbf{w}} \text{SSE} = -2 (y - \mathbf{w}^T \mathbf{x}) \mathbf{x}

Graph 2: Ensemble Methods

Graph 3: Neural Networks

Graph 4: Loss Functions

Graph 5: SVM Components


3. Key Equations Summary

TopicEquation
PCA VarianceVariance (%)=∑i=1kλi∑i=1dλi×100\text{Variance (\%)} = \frac{\sum_{i=1}^k \lambda_i}{\sum_{i=1}^d \lambda_i} \times 100
Ridge RegressionL(w)=SSE+λ∥w∥22L(\mathbf{w}) = \text{SSE} + \lambda \|\mathbf{w}\|_2^2
SVM MarginMargin=2∥w∥\text{Margin} = \frac{2}{\|\mathbf{w}\|}
SVM Objectivemin⁡12∥w∥2+C∑iξi\min \frac{1}{2} \|\mathbf{w}\|^2 + C \sum_i \xi_i
Logistic Regressionp(y=1)=11+e−wTxp(y=1) = \frac{1}{1 + e^{-\mathbf{w}^T \mathbf{x}}}
EntropyH(S)=−∑ipilog⁡2piH(S) = -\sum_i p_i \log_2 p_i
Information GainIG=H(parent)−∑j∣Sj∣∣S∣H(Sj)\text{IG} = H(\text{parent}) - \sum_j \frac{|S_j|}{|S|} H(S_j)
Naive Bayesp(x∣y)=∏jp(xj∣y)p(\mathbf{x} \mid y) = \prod_j p(x_j \mid y)
MLE (Bernoulli)p^=SuccessesTotal Trials\hat{p} = \frac{\text{Successes}}{\text{Total Trials}}
Neural Net Parameters∑layers(Input size×Output size)\sum_{\text{layers}} (\text{Input size} \times \text{Output size})
ReLUReLU(z)=max⁡(0,z)\text{ReLU}(z) = \max(0, z)
SSE Gradient∇wSSE=−2(y−wTx)x\nabla_{\mathbf{w}} \text{SSE} = -2 (y - \mathbf{w}^T \mathbf{x}) \mathbf{x}