ML Study Hub

Home / Past papers / MLT End Term / this paper

2023 Dec24: IIT M FN EXAM FDD1 - 24 Dec 2023

MLT End Term18 questions100 marks8 MSQ · 6 SA · 4 MCQforenoon
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. Dimensionality Reduction

Principal Component Analysis (PCA)

C=1nXTX(Covariance matrix)C = \frac{1}{n} X^T X \quad \text{(Covariance matrix)}
Xprojected=UkTX(Projection onto top-k PCs)X_{\text{projected}} = U_k^T X \quad \text{(Projection onto top-$k$ PCs)}

where UkU_k = matrix of top-kk eigenvectors.

Key Equations:

Kij=ϕ(xi)Tϕ(xj)(Kernel matrix)K_{ij} = \phi(x_i)^T \phi(x_j) \quad \text{(Kernel matrix)}
Centered K=K−1nK−K1n+1nK1n(Centering in feature space)\text{Centered } K = K - 1_n K - K 1_n + 1_n K 1_n \quad \text{(Centering in feature space)}

2. Clustering

Lloyd’s Algorithm (K-Means)

Gaussian Mixture Models (GMM) & EM Algorithm

λki=πkf(xi∣μk,σk2)∑j=1Kπjf(xi∣μj,σj2)\lambda_k^i = \frac{\pi_k f(x_i | \mu_k, \sigma_k^2)}{\sum_{j=1}^K \pi_j f(x_i | \mu_j, \sigma_j^2)}

3. Linear Regression & Regularization

Ordinary Least Squares (OLS)

L(w)=∑i=1n(wTxi−yi)2L(w) = \sum_{i=1}^n (w^T x_i - y_i)^2

Ridge Regression (L2 Regularization)

L(w)=∥Xw−y∥2+λ∥w∥2L(w) = \|Xw - y\|^2 + \lambda \|w\|^2
wλ=(XTX+λI)−1XTyw_\lambda = (X^T X + \lambda I)^{-1} X^T y

4. Classification Algorithms

Decision Trees

Naive Bayes

y^=arg⁡max⁡yP(y)∏j=1dP(xj∣y)\hat{y} = \arg\max_y P(y) \prod_{j=1}^d P(x_j | y)

Perceptron Algorithm

Logistic Regression

P(y=1∣x)=σ(wTx)=11+e−wTxP(y=1|x) = \sigma(w^T x) = \frac{1}{1 + e^{-w^T x}}
wTx=0.5  ⟹  P(y=1∣x)=σ(0.5)≈0.62>0.6  ⟹  y^=1w^T x = 0.5 \implies P(y=1|x) = \sigma(0.5) \approx 0.62 > 0.6 \implies \hat{y} = 1

Support Vector Machines (SVM)

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

5. Model Evaluation & Ensemble Methods

Bias-Variance Tradeoff (Q16, Q17)

Loss Functions for Classification (Q18)


Graph 2: Clustering & GMM

Graph 3: Linear Models & Regularization

Graph 4: Classification Algorithms

Graph 5: Model Evaluation & Ensembles