Which among the following is true with respect to the Lloyds’ algorithm?
It always converges.
It may fail to converge for an initialization while it may converge for otherinitialization.
It is sensitive to outliers.
The solution produced is always the optimal.
Q2MSQ4 marksselect all that apply
There will be 50 non-zero eigenvalues of the covariance matrix.
There will be 6 non-zero eigenvalues of the covariance matrix.
Using the first 5 principal components, the dataset can be reconstructed withzero residue.
The variance captured by the top 6 principal components equals the totalvariance of the dataset.
Q3MSQ4 marksselect all that apply
The points (0, 2), (2, 0), and (2, 2) have the equal probability of being chosen asthe second cluster center.
The probability of selecting (2, 2) as the second cluster center is twice that ofselecting (0, 2).
If (2, 2) is chosen as the second cluster center, the algorithm will alwaysconverge in one iteration.
The tie-breaking rule will affect the final cluster centers.
Q4MSQ4 marksselect all that apply
Posterior mean for Beta(1, 1) is 0.039.
Posterior mean for Beta(1, 1) is 0.03.
Posterior mean for Beta(0.5, 0.5) is 0.025.
Posterior mean for Beta(0.5, 0.5) is 0.034.
Q5MSQ3 marksselect all that apply
Which of the following are valid kernel functions? Select all that apply.
Q6SA3 marks
Q7SA3 marks
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions.
Q8MCQ2 marks
What is the covariance matrix of the dataset?
Q9SA2 marks
If standard PCA is performed on this dataset, what is the variance along the first principal component? Enter the answer correct to one decimal place.
Q10SA2 marks
If standard PCA is performed on this dataset, what is the variance along the second principal component? Enter the answer correct to one decimal place.
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions.
Q11MCQ3 marks
Q12SA3 marks
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions.
Q13MCQ3 marks
Perform K-means clustering with K = 2 and initial cluster centers at (−2, 3) and (2,−1). What are the final means of clusters after convergence?
Q14SA2 marks
Suppose we introduce a new data point (0, 0) to the existing dataset and perform K means with the same initial cluster centers. How many iterations would it require now for convergence?
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 for the Diploma-Level Machine Learning Techniques exam, along with Mermaid knowledge graphs to visualize relationships.
1. Core Topics & Key Concepts
A. Clustering (K-Means, K-Means++, Lloyd’s Algorithm)
Key Concepts:
Lloyd’s Algorithm (Standard K-Means):
Iterative algorithm to minimize within-cluster sum of squares (WCSS).
Convergence: Always converges (monotonically decreases WCSS), but may reach local optima.
Sensitivity to Outliers: Yes (since it uses Euclidean distance).
Optimality: Does not guarantee global optimum (depends on initialization).
K-Means++ Initialization:
Goal: Spread initial centroids to improve convergence.
Selection Probability: Proportional to squared distance from existing centroids:
P(x)=∑i=1nS(xi)2S(x)2,S(x)=jmin∥x−μj∥2
Advantage: Reduces likelihood of poor clustering.
Convergence Criteria:
Stops when centroids stabilize or max iterations reached.
Equations:
WCSS (Within-Cluster Sum of Squares):
WCSS=i=1∑nμj∈Cmin∥xi−μj∥2
Centroid Update:
μj=∣Cj∣1xi∈Cj∑xi
B. Principal Component Analysis (PCA)
Key Concepts:
Dimensionality Reduction:
Projects data onto orthogonal axes (principal components) that maximize variance.
Intrinsic Dimensionality: If data lies in a k-dimensional subspace of Rd, the first k PCs capture all variance.
Eigenvalue Decomposition:
Covariance matrix Σ=XTX (if data is centered).
Eigenvalues (λi): Represent variance along principal components.
Eigenvectors: Principal components (directions of max variance).
Reconstruction Error:
Zero if k=rank(X). Otherwise, residual error exists.
Proportion of Variance Explained:
Variancei=∑j=1dλjλi
Equations:
Covariance Matrix:
Σ=n1XTX(if X is centered)
PCA Projection:
Z=XWwhere W=[w1,w2,...,wk]
(wi = eigenvectors of Σ).
Reconstruction:
X^=ZWT
C. Bayesian Statistics (Beta-Binomial Model)
Key Concepts:
Beta Distribution (Prior for Proportions):
Conjugate prior for Binomial likelihood.
PDF:
θ∼Beta(a,b),f(θ)=B(a,b)θa−1(1−θ)b−1
Mean:
E[θ]=a+ba
Posterior Update:
Given data D=(k successes,n−k failures):
θ∣D∼Beta(a+k,b+n−k)
Posterior Mean:
E[θ∣D]=a+b+na+k
Equations:
Posterior Parameters:
apost=a+successes,bpost=b+failures
D. Kernel Methods
Key Concepts:
Kernel Trick:
Maps data to higher-dimensional space where linear separation is possible.
Kernel Function:K(x,y)=ϕ(x)Tϕ(y).
Valid Kernels (Mercer’s Condition):
Must be symmetric and positive semi-definite.
Examples:
Gaussian (RBF) Kernel:
K(x,y)=exp(−2σ2∥x−y∥2)
Polynomial Kernel:
K(x,y)=(xTy+c)d
Laplacian Kernel:
K(x,y)=exp(−σ∥x−y∥)
Invalid Kernel:K(x,y)=∣x−y∣ (not PSD).
E. Gaussian Mixture Models (GMM) & EM Algorithm
Key Concepts:
GMM Likelihood:
Mixture of K Gaussians:
p(xi)=k=1∑KπkN(xi∣μk,Σk)
Log-Likelihood:
logL(θ)=i=1∑nlog(k=1∑KπkN(xi∣μk,Σk))
EM Algorithm:
E-Step: Compute responsibilities (γik):
γik=∑j=1KπjN(xi∣μj,Σj)πkN(xi∣μk,Σk)
M-Step: Update parameters:
πk=n1i=1∑nγik,μk=∑i=1nγik∑i=1nγikxi
Σk=∑i=1nγik∑i=1nγik(xi−μk)(xi−μk)T
Graph 2: PCA Concepts
Graph 3: Bayesian & GMM Concepts
Graph 4: Kernel Methods
3. Summary of Key Equations
Topic
Equation
K-Means WCSS
∑i=1nminμj∥xi−μj∥2
PCA Variance
Variancei=∑jλjλi
Beta Posterior Mean
a+b+na+k
GMM Likelihood
∏i=1n∑k=1KπkN(xi∣μk,Σk)
EM Responsibility
γik=∑jπjN(xi∣μj,Σj)πkN(xi∣μk,Σk)
Gaussian Kernel
exp(−2σ2∥x−y∥2)
4. Exam Tips
PCA:
If data lies in a k-dimensional subspace, first k PCs capture all variance.
Reconstruction error is zero if k=rank(X).
K-Means++:
Second centroid is chosen with probability proportional to S(x)2.
Bayesian:
Posterior mean for Beta(a,b) is a+ba after updating with data.
GMM:
Likelihood involves a product of sums (not sum of products).
Kernels:
∣x−y∣ is not a valid kernel. RBF, Polynomial, and Laplacian are valid.