IIT M FOUNDATION DIPLOMA FN EXAM QDF1 28 Apr 2024 - 28 Apr 2024
MLT End Term16 questions50 marks6 SA · 6 MSQ · 4 MCQFoundation / Diploma / forenoon / QDF1
Elapsed 00:00
Q1SA3 marks
Q2SA3 marks
Q3SA3 marks
Q4SA3 marks
Q5SA3 marks
Q6SA3 marks
Q7MCQ3 marks
Consider a dataset with two features (Feature 1 and Feature 2) exhibiting a perfect positive correlation (1). If you apply k-means clustering with k = 3, what is the most likely arrangement of cluster centers that minimizes the within-cluster sum of squares (WCSS)?
An equilateral triangle centered around the mean of the data.
Cluster centers positioned along a straight line.
A triangle with two acute angles, positioned strategically within the datadistribution.
A right-angled triangle with one center at the origin.
Q8MCQ3 marks
Model 1
Model 2
Both models are equally sensitive to outliers
Insufficient data
Q9MCQ3 marks
1
2
4
It oscillates and never converges
Q10MCQ3 marks
Q11MSQ3 marksselect all that apply
Which of the following are true about the kernel function? Assume that the dataset X is mean centered.
Q12MSQ3 marksselect all that apply
Q13MSQ3 marksselect all that apply
Q14MSQ3 marksselect all that apply
Q15MSQ4 marksselect all that apply
Q16MSQ4 marksselect all that apply
Points {F, I} are the only support vectors.
Points {A, N} are a subset of support vectors.
Points {F, A, C, I} are the only support vectors.
Points except {F, A, C, I, N} do not play any role in determining optimal weightvector.
Points except {F, A, C, I} do not play any role in determining optimal weightvector.
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 the core topics, concepts, principles, and equations essential for the Diploma Level: Machine Learning Techniques exam, along with Mermaid knowledge graphs to visualize relationships.
1. Core Topics & Key Concepts
A. Linear Algebra & Statistics
Covariance Matrix & Eigenvalues
Covariance matrix C for a dataset X∈Rn×d:
C=n−11(X−Xˉ)T(X−Xˉ)
Eigenvalues (λ1,λ2,λ3) represent variance along principal components.
Total variance = Sum of eigenvalues:
Var(X)=λ1+λ2+λ3
Solve linear systems for eigenvalues (e.g., Question 2).
Probability & Distributions
Bernoulli Distribution:
P(xi=1)=p,P(xi=0)=1−p
Maximum Likelihood Estimation (MLE) for p:
p^=n1i=1∑nxi
For two groups (e.g., Question 3), estimate p1 and p2 separately:
p^1=Size of Group 1Sum of Group 1 labels,p^2=Size of Group 2Sum of Group 2 labels
Bayesian Probability (Naive Bayes)
Conditional independence assumption:
P(x∣y)=j=1∏dP(xj∣y)
Posterior probability (e.g., Question 5):
P(y=0∣xtest)∝P(y=0)j=1∏3P(fj∣y=0)
If P(y=0∣xtest)=0, no test samples match the training data for y=0.
B. Supervised Learning
Decision Trees
Splitting rules (e.g., Question 4):
Split on x1<0.5, then x2>0.5.
Probability of class 0 = Area of region where x1<0.5andx2>0.5:
Area=0.5×0.5=0.25
Entropy/Information Gain (not directly tested here but related).
Perceptron Algorithm
Update rule (e.g., Questions 6, 10):
w←w+η⋅yixiifyi(wTxi)≤0
Mistake bound for linearly separable data:
Max mistakes≤(γR)2
where R=max∣∣xi∣∣, γ=minyi(wTxi).
For Question 6: R=1, γ=0.2, so max mistakes = (1/0.2)2=25.
Convergence: Stops when all points are correctly classified (e.g., Question 10 converges in 1 update).
Support Vector Machines (SVM)
Hard-margin SVM (e.g., Question 14):
Linearly separable if a hyperplane exists with yi(wTxi+b)≥1.
Margin width:
Width=∣∣w∣∣2
Soft-margin SVM (e.g., Questions 16, 17):
Optimization problem:
min21∣∣w∣∣2+C∑ξis.t.yi(wTxi+b)≥1−ξi,ξi≥0
KKT conditions:
If ξi>0, then αi=C (point is a support vector).
If yi(wTxi+b)=1, then ξi=0 (no bribe paid).
Effect of C:
Small C: Larger margin, more misclassifications.
Large C: Hard-margin-like behavior.
Linear Regression
Normal equation (e.g., Question 13):
w∗=(XXT)−1Xy
Zero training loss if y is in the column space of XT (i.e., y=XTw for some w).
C. Unsupervised Learning
K-Means Clustering
Objective: Minimize within-cluster sum of squares (WCSS).
Behavior with correlated features (e.g., Question 8):
If features are perfectly correlated (ρ=1), clusters align along a straight line (not triangular).
Principal Component Analysis (PCA) & Kernel PCA
Standard PCA = Kernel PCA with linear kernel k(xi,xj)=xiTxj (e.g., Question 12).
Kernel trick: Can map data to infinite dimensions (e.g., polynomial kernel k(xi,xj)=(xiTxj+1)2).