ML Study Hub

Home / Past papers / MLT End Term / this paper

IIT M FOUNDATION DIPLOMA AN EXAM - 01 Sep 2024

MLT End Term30 questions50 marks14 MCQ · 14 SA · 2 MSQFoundation / Diploma / afternoon
Elapsed 00:00
Q1MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q2MCQ3 marks
question figure
  1. 1
  2. 2
  3. 3
  4. 6
Q3MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q4MCQ3 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)
Q5MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q6MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q7MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q8MCQ3 marks
question figure
  1. 0.75
  2. 0.25
  3. 0.5
  4. 0.15
Q9MSQ3 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q10MSQ3 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.
Q11SA3 marks
question figure
Q12SA3 marks
question figure
Q13SA3 marks
question figure
Comprehension passage - the questions below it refer to this
question figure
Q14MCQ1 mark
The weight vector output by the perceptron algorithm can be expressed as a linear combination of the data-points where the coefficients of the linear combination are integers.
  1. TRUE
  2. FALSE
Q15MCQ1 mark
question figure
  1. TRUE
  2. FALSE
Q16MCQ1 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
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
Q22SA0.5 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q23SA0.5 marks
Enter the number corresponding to the logistic loss.
Q24SA0.5 marks
Enter the number corresponding to the (SVM) hinge loss.
Q25SA0.5 marks
Enter the number corresponding to the perceptron loss.
Q26SA0.5 marks
Enter the number corresponding to the squared loss.
Q27MCQ1 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
Q28SA1 mark
How many learnable parameters does this network have? Ignore the biases in the computation.
Q29MCQ1 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
Q30MCQ1 mark
question figure
  1. ReLU
  2. Sigmoid

Answer key

  1. Q1 (MCQ, 2 marks): A
  2. Q2 (MCQ, 3 marks): C
  3. Q3 (MCQ, 3 marks): A
  4. Q4 (MCQ, 3 marks): A
  5. Q5 (MCQ, 3 marks): B
  6. Q6 (MCQ, 3 marks): A
  7. Q7 (MCQ, 3 marks): A
  8. Q8 (MCQ, 3 marks): A
  9. Q9 (MSQ, 3 marks): A, B
  10. Q10 (MSQ, 3 marks): A, B
  11. Q11 (SA, 3 marks): 10
  12. Q12 (SA, 3 marks): 0.75
  13. Q13 (SA, 3 marks): 0.50 to 0.60
  14. Q14 (MCQ, 1 marks): A
  15. Q15 (MCQ, 1 marks): B
  16. Q16 (MCQ, 1 marks): B
  17. Q17 (SA, 0.5 marks): 0
  18. Q18 (SA, 0.5 marks): 1
  19. Q19 (SA, 0.5 marks): 2
  20. Q20 (SA, 0.5 marks): 0
  21. Q21 (SA, 0.5 marks): 5
  22. Q22 (SA, 0.5 marks): -1
  23. Q23 (SA, 0.5 marks): 3
  24. Q24 (SA, 0.5 marks): 2
  25. Q25 (SA, 0.5 marks): 4
  26. Q26 (SA, 0.5 marks): 1
  27. Q27 (MCQ, 1 marks): A
  28. Q28 (SA, 1 marks): 205
  29. Q29 (MCQ, 1 marks): A
  30. Q30 (MCQ, 1 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. Linear Regression & Gradient Descent

SSE=∑i=1n(yi−y^i)2=∑i=1n(yi−wTxi)2\text{SSE} = \sum_{i=1}^n (y_i - \hat{y}_i)^2 = \sum_{i=1}^n (y_i - w^T x_i)^2
∇wSSE=−2x(y−wTx)\nabla_w \text{SSE} = -2x(y - w^T x)

(Simplified for single point: ∇w=x(y−y^)\nabla_w = x(y - \hat{y}))

B. Principal Component Analysis (PCA)

C=1nXTX(for centered data)C = \frac{1}{n} X^T X \quad (\text{for centered data})
Variance=wTCw\text{Variance} = w^T C w
C=VΛVTC = V \Lambda V^T

(Eigenvectors VV are principal components; eigenvalues Λ\Lambda are variances.)

C. Regularization (Ridge/Lasso)

Loss=SSE+λ∥w∥22\text{Loss} = \text{SSE} + \lambda \|w\|_2^2

D. Support Vector Machines (SVM)

min⁡w12∥w∥2s.t.yi(wTxi)≥1\min_w \frac{1}{2} \|w\|^2 \quad \text{s.t.} \quad y_i(w^T x_i) \geq 1
min⁡w12∥w∥2+C∑ξis.t.yi(wTxi)≥1−ξi,ξi≥0\min_w \frac{1}{2} \|w\|^2 + C \sum \xi_i \quad \text{s.t.} \quad y_i(w^T x_i) \geq 1 - \xi_i, \xi_i \geq 0

E. Naive Bayes

p(x1,x2,…,xd∣y)=∏i=1dp(xi∣y)p(x_1, x_2, \dots, x_d | y) = \prod_{i=1}^d p(x_i | y)
p(y∣x)∝p(y)∏i=1dp(xi∣y)p(y | x) \propto p(y) \prod_{i=1}^d p(x_i | y)

F. Decision Trees & Ensemble Methods

Gain=H(S)−∑∣Sv∣∣S∣H(Sv)\text{Gain} = H(S) - \sum \frac{|S_v|}{|S|} H(S_v)

(H(S)H(S): Entropy of parent node; H(Sv)H(S_v): Entropy of child nodes.)

G. Clustering (k-Means)

min⁡μ,C∑i=1n∥xi−μci∥2\min_{\mu, C} \sum_{i=1}^n \|x_i - \mu_{c_i}\|^2

(μ\mu: Cluster centroids; cic_i: Cluster assignment.)

H. Logistic Regression

σ(z)=11+e−z,z=wTx\sigma(z) = \frac{1}{1 + e^{-z}}, \quad z = w^T x
p(y=1∣x)=σ(wTx),p(y=0∣x)=1−σ(wTx)p(y=1 | x) = \sigma(w^T x), \quad p(y=0 | x) = 1 - \sigma(w^T x)

I. Neural Networks

Params=∑l=1L−1nlnl+1\text{Params} = \sum_{l=1}^{L-1} n_l n_{l+1}

(nln_l: Neurons in layer ll.)

J. Bayesian Learning


Graph 2: Unsupervised Learning & Bayesian Methods

Graph 3: Neural Networks

Graph 4: SVM & Kernels

Graph 5: Ensemble Methods


3. Key Equations Summary

TopicEquation
Linear Regression∇wSSE=x(y−wTx)\nabla_w \text{SSE} = x(y - w^T x)
PCA VarianceVariance=wTCw\text{Variance} = w^T C w
Ridge RegressionLoss=SSE+λ∥w∥22\text{Loss} = \text{SSE} + \lambda \|w\|_2^2
SVM MarginMargin=2∥w∥\text{Margin} = \frac{2}{\|w\|}
Soft-Margin SVMmin⁡w12∥w∥2+C∑ξi\min_w \frac{1}{2} \|w\|^2 + C \sum \xi_i
Naive Bayesp(x∣y)=∏ip(xi∣y)p(x|y) = \prod_i p(x_i|y)
Information GainGain=H(S)−∑∣Sv∣∣S∣H(Sv)\text{Gain} = H(S) - \sum \frac{|S_v|}{|S|} H(S_v)
Logistic Regressionp(y=1∣x)=σ(wTx)p(y=1|x) = \sigma(w^T x)
Neural NetworksParams=∑l=1L−1nlnl+1\text{Params} = \sum_{l=1}^{L-1} n_l n_{l+1}
Beta Posteriorp∣data∼Beta(α+successes,β+failures)p | \text{data} \sim \text{Beta}(\alpha + \text{successes}, \beta + \text{failures})

4. Exam Tips

  1. SVM:

    • Hard-margin: No slack variables (ξi=0\xi_i = 0).
    • Soft-margin: ξi>0\xi_i > 0 for misclassified points.
    • αi>0\alpha_i > 0 → Support vector; αi=C\alpha_i = C → Margin violator.
  2. PCA: Eigenvectors of CC are principal components; eigenvalues are variances.
  3. Regularization:

    • λ↑\lambda \uparrow → Underfitting (high bias).
    • λ↓\lambda \downarrow → Overfitting (high variance).
  4. Decision Trees: Information gain measures purity (entropy reduction).
  5. Neural Networks: ReLU is common in hidden layers; sigmoid for binary output.
  6. Bayesian Learning: Beta prior + Binomial likelihood → Beta posterior.