ML Study Hub

Home / Past papers / MLT End Term / this paper

IIT M FOUNDATION ET1 EXAM QPF2 S2 03 Sep - 03 Sep 2023

MLT End Term17 questions100 marks6 SA · 6 MCQ · 5 MSQFoundation / QPF2
Elapsed 00:00
Q1SA6 marks
question figure
Q2SA6 marks
question figure
Q3SA6 marks
Hint: Assume that these are only two possible words (that is there are only two features) question figure
Q4MCQ6 marks
question figure
  1. question figure
  2. question figure
  3. question figure
Q5MCQ6 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q6MCQ6 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q7MCQ6 marks
question figure
  1. question figure
  2. question figure
  3. question figure
Q8MCQ6 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q9MCQ6 marks
question figure
  1. The given data points from classes A and B can be linearly separated using aHard-margin SVM.
  2. Points (2, 2) from class 1 and (3, 3) from class 0 will be on the decisionboundary or support vectors.
  3. A Soft-margin SVM would be a more robust choice than a Hard-margin SVM forthis dataset as the dataset is not linearly separable.
  4. A perceptron model and a hard margin SVM will always give the same decisionboundary for this dataset.
Q10MSQ6 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q11MSQ6 marksselect all that apply
Which of the following statements is/are true regarding logistic regression and perceptron algorithm?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q12MSQ6 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Q13MSQ6 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q14SA4 marks
Calculate the information gain for the "Age Group" feature.
Q15SA4 marks
Calculate the information gain for the "Income level" feature.
Q16MSQ7 marksselect all that apply
question figure
  1. The values of 0-1 loss function will be 3
  2. The values of cross entropy loss will be equals to 3.65
  3. The values of 0-1 loss equals 4.
  4. The values of cross entropy loss will be equals to 6.35
Q17SA7 marks
question figure

Answer key

  1. Q1 (SA, 6 marks): 0
  2. Q2 (SA, 6 marks): 0.20 to 0.40
  3. Q3 (SA, 6 marks): 0.98 to 1
  4. Q4 (MCQ, 6 marks): C
  5. Q5 (MCQ, 6 marks): A
  6. Q6 (MCQ, 6 marks): A
  7. Q7 (MCQ, 6 marks): B
  8. Q8 (MCQ, 6 marks): D
  9. Q9 (MCQ, 6 marks): A
  10. Q10 (MSQ, 6 marks): A, B
  11. Q11 (MSQ, 6 marks): A, B, D
  12. Q12 (MSQ, 6 marks): A, C, E
  13. Q13 (MSQ, 6 marks): B, C, D
  14. Q14 (SA, 4 marks): 0.20 to 0.60
  15. Q15 (SA, 4 marks): 0.20 to 0.60
  16. Q16 (MSQ, 7 marks): B, C
  17. Q17 (SA, 7 marks): 0.60 to 0.80

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)

Error=∑i=k+1d(viTx)2\text{Error} = \sum_{i=k+1}^d (v_i^T x)^2

2. Bayesian Estimation (Beta-Binomial Model)

E[p∣data]=α′α′+β′\mathbb{E}[p | \text{data}] = \frac{\alpha'}{\alpha' + \beta'}

3. Naive Bayes Classifier

P(y∣x1,…,xn)∝P(y)∏i=1nP(xi∣y)P(y | x_1, \dots, x_n) \propto P(y) \prod_{i=1}^n P(x_i | y)
P(y=T)⋅P(Software∣T)⋅P(Football∣T)P(y=T) \cdot P(\text{Software} | T) \cdot P(\text{Football} | T)

4. Gram Matrix & Positive Semidefiniteness


5. Linear Regression


6. Ridge Regression


7. Perceptron Algorithm

w←w+η⋅yixiifyi(wTxi)≤0w \leftarrow w + \eta \cdot y_i x_i \quad \text{if} \quad y_i (w^T x_i) \leq 0

8. Kernel SVM

f(x)=∑i=1nαiyiK(xi,x)+bf(x) = \sum_{i=1}^n \alpha_i y_i K(x_i, x) + b
K(xi,x)=(xiTx+1)2K(x_i, x) = (x_i^T x + 1)^2

9. Linear Separability & SVM


10. K-Means Clustering (Lloyd’s Algorithm)


11. Logistic Regression vs. Perceptron

PropertyLogistic RegressionPerceptron
OutputProbability P(y=1)P(y=1)Binary label sign(wTx)\text{sign}(w^T x)
LossCross-entropy0-1 loss (misclassification)
ConvergenceAlways (convex optimization)Only if linearly separable
Nonlinear DataWorks (with kernel trick)Fails

12. Soft-Margin SVM


13. Random Forest


14. Decision Trees (Information Gain)

H(S)=−∑iP(y=i)log⁡2P(y=i)H(S) = -\sum_i P(y=i) \log_2 P(y=i)
IG(S,A)=H(S)−∑v∣Sv∣∣S∣H(Sv)\text{IG}(S, A) = H(S) - \sum_v \frac{|S_v|}{|S|} H(S_v)

15. Loss Functions

LossFormulaExample (Q17)
0-1 LossI(y≠y^)\mathbb{I}(y \neq \hat{y})Value = 3
Cross-Entropy−∑iyilog⁡(y^i)-\sum_i y_i \log(\hat{y}_i)Value ≈ 3.65

16. Neural Networks (Forward Pass)

σ(z)=11+e−z\sigma(z) = \frac{1}{1 + e^{-z}}
z=0.5⋅0.6+(−0.2)⋅0.3+0.8⋅0.8+0.1=0.89z = 0.5 \cdot 0.6 + (-0.2) \cdot 0.3 + 0.8 \cdot 0.8 + 0.1 = 0.89
σ(z)≈0.71(between 0.6 and 0.8)\sigma(z) \approx 0.71 \quad (\text{between } 0.6 \text{ and } 0.8)

Graph 2: Unsupervised Learning

Graph 3: Bayesian vs. Frequentist Methods

Graph 4: Model Evaluation