ML Study Hub

Home / Past papers / MLT End Term / this paper

IIT M FOUNDATION FN EXAM FDF2 24 Dec 2023 - 24 Dec 2023

MLT End Term18 questions100 marks8 MSQ · 6 SA · 4 MCQFoundation / forenoon
Elapsed 00:00
Q1MSQ5 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
Q2MCQ5 marks
Suppose the team applies linear PCA on the dataset and reconstructs the data points with zero error using k principal components (directions). For which value of k the reconstruction error would become zero?
  1. 1
  2. 2
  3. 3
  4. 5
  5. 10
  6. 100
Q3MSQ6 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q4SA5 marks
(Enter your answer correctly to two decimal places) question figure
Q5SA6 marks
question figure
Q6MSQ6 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Q7MCQ6 marks
question figure
  1. [2, 6, 9, 12]
  2. [2, 4, 7, 10]
  3. [3, 5, 8, 11]
  4. [1, 3, 6, 8]
Q8SA6 marks
question figure
Q9MCQ5 marks
question figure
  1. 0
  2. 1
  3. Insufficient information to make a prediction.
Q10MCQ5 marks
question figure
  1. Yes, it will converge.
  2. No, it will never converge.
  3. Insufficient data
Q11SA6 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q12MSQ6 marksselect all that apply
What is the equation of the decision boundary? Select all options that are correct.
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q13SA5 marks
question figure
Q14MSQ6 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q15MSQ6 marksselect all that apply
Which of the following statements are correct?
  1. Overfitting models have high bias and low variance.
  2. Underfitting models have low bias and high variance.
  3. Generally, weak learners in the random forest tend to overfit.
  4. If the performance of each estimator in the bagging algorithm is almostidentical, the benefit of using bagging to combine them may be minimal or insignificant.
  5. In random forests, multiple decision trees (estimators) are trainedsimultaneously, allowing for parallel processing and faster model training.
Q16MSQ5 marksselect all that apply
question figure
  1. Model 4 tends to overfit.
  2. Model 4 tends to underfit.
  3. Model 1 tends to underfit.
  4. Model 1 tends to overfit.
Q17MSQ5 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q18SA6 marks
question figure

Answer key

  1. Q1 (MSQ, 5 marks): A, D
  2. Q2 (MCQ, 5 marks): C
  3. Q3 (MSQ, 6 marks): A, B
  4. Q4 (SA, 5 marks): 43.10 to 43.20
  5. Q5 (SA, 6 marks): 0.32 to 0.38
  6. Q6 (MSQ, 6 marks): A, D, E
  7. Q7 (MCQ, 6 marks): D
  8. Q8 (SA, 6 marks): 12
  9. Q9 (MCQ, 5 marks): C
  10. Q10 (MCQ, 5 marks): B
  11. Q11 (SA, 6 marks): 1
  12. Q12 (MSQ, 6 marks): A, C
  13. Q13 (SA, 5 marks): 5.32 to 5.44
  14. Q14 (MSQ, 6 marks): A, D
  15. Q15 (MSQ, 6 marks): C, D, E
  16. Q16 (MSQ, 5 marks): B, D
  17. Q17 (MSQ, 5 marks): A, C, D
  18. Q18 (SA, 6 marks): 4081

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 & Key Concepts

1. Principal Component Analysis (PCA)

Key Concepts:

Key Equations:

  1. Covariance Matrix:
Σ=1n−1∑i=1n(xi−μ)(xi−μ)T\Sigma = \frac{1}{n-1} \sum_{i=1}^n (x_i - \mu)(x_i - \mu)^T
  1. Eigenvalue Problem:
det⁡(Σ−λI)=0\det(\Sigma - \lambda I) = 0
  1. Projection:
Xnew=X⋅VkX_{\text{new}} = X \cdot V_k

Kernel PCA:


2. Clustering (Lloyd’s Algorithm / K-Means)

Key Concepts:

Key Equations:

  1. Assignment Step:
ci=arg⁡min⁡j∥xi−μj∥2c_i = \arg\min_j \|x_i - \mu_j\|^2
  1. Update Step:
μj=1∣Cj∣∑xi∈Cjxi\mu_j = \frac{1}{|C_j|} \sum_{x_i \in C_j} x_i

Example (Q5):


3. Gaussian Mixture Models (GMM) & EM Algorithm

Key Concepts:

λki=πk⋅f(xi∣μk,Σk)∑j=1Kπj⋅f(xi∣μj,Σj)\lambda_k^i = \frac{\pi_k \cdot f(x_i | \mu_k, \Sigma_k)}{\sum_{j=1}^K \pi_j \cdot f(x_i | \mu_j, \Sigma_j)}

Key Equations (Q6):

Given:

For x1=1x_1 = 1, k=2k = 2:

λ21=0.7⋅0.0540.3⋅0.242+0.7⋅0.054≈0.35\lambda_2^1 = \frac{0.7 \cdot 0.054}{0.3 \cdot 0.242 + 0.7 \cdot 0.054} \approx 0.35

4. Linear Regression & Ridge Regression

Key Concepts:

Key Equations:

  1. Normal Equation (Linear Regression):
w∗=(XTX)−1XTyw^* = (X^T X)^{-1} X^T y
  1. Ridge Solution:
wλ=(XTX+λI)−1XTyw_\lambda = (X^T X + \lambda I)^{-1} X^T y

5. Logistic Regression

Key Concepts:


6. Support Vector Machines (SVM)

Key Concepts:

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

Key Equations (Q13, Q14):

  1. Decision Boundary: wTx+b=0w^T x + b = 0.
  2. Supporting Hyperplanes: wTx+b=±1w^T x + b = \pm 1.
  3. Margin Width: 2∥w∥\frac{2}{\|w\|}.

    • For Q14, width ≈ 5.38 (given w=[5/2,3]w = [5/2, 3], ∥w∥=(5/2)2+32=34/2\|w\| = \sqrt{(5/2)^2 + 3^2} = \sqrt{34}/2, so 2/∥w∥≈0.36×2≈0.722/\|w\| \approx 0.36 \times 2 \approx 0.72. Recheck with actual ww from the diagram.)

Correct Statements (Q15):


7. Decision Trees

Key Concepts:


8. Perceptron Algorithm

Key Concepts:


9. Model Evaluation & Bias-Variance Tradeoff

Key Concepts:

Ensemble Methods (Q16):


10. Neural Networks

Key Concepts:


Graph 2: Clustering & GMM

Graph 3: Linear Models (Regression & SVM)

Graph 4: Model Evaluation & Ensembles


Key Equations Summary

TopicEquation
PCA CovarianceΣ=1n−1XTX\Sigma = \frac{1}{n-1} X^T X
Eigenvalue Problemdet⁡(Σ−λI)=0\det(\Sigma - \lambda I) = 0
K-Means Updateμj=1∣Cj∣∑xi∈Cjxi\mu_j = \frac{1}{|C_j|} \sum_{x_i \in C_j} x_i
GMM Responsibilityλki=πkf(xi∣k)∑jπjf(xi∣j)\lambda_k^i = \frac{\pi_k f(x_i|k)}{\sum_j \pi_j f(x_i|j)}
Linear Regressionw∗=(XTX)−1XTyw^* = (X^T X)^{-1} X^T y
Ridge Regressionwλ=(XTX+λI)−1XTyw_\lambda = (X^T X + \lambda I)^{-1} X^T y
Logistic RegressionP(y=1∣x)=σ(wTx)P(y=1|x) = \sigma(w^T x)
SVM Margin2∥w∥\frac{2}{\|w\|}
Soft-Margin SVMmin⁡12∥w∥2+C∑ξi\min \frac{1}{2} \|w\|^2 + C \sum \xi_i
Perceptron Updatew←w+η(yi−yi^)xiw \leftarrow w + \eta (y_i - \hat{y_i}) x_i