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)
Lloyd’s Algorithm (K-Means):
Iterative algorithm to minimize within-cluster variance.
Convergence: Always converges (monotonically decreases objective function), but may converge to local optima.
Sensitivity: Sensitive to outliers (since it uses Euclidean distance).
Initialization: K-Means++ improves initialization by selecting centers based on distance-weighted probabilities.
Equation (Objective Function):
J=i=1∑nμj∈Cmin∥xi−μj∥2
K-Means++ Initialization Score:
S(x)=j=1,…,l−1min∥x−μj0∥2
Convergence Behavior:
May converge to suboptimal solutions depending on initialization.
Not guaranteed to find the global optimum.
B. Principal Component Analysis (PCA)
Key Idea: Orthogonal transformation to convert correlated variables into linearly uncorrelated principal components (PCs).
Eigenvalues & Variance:
Eigenvalues of the covariance matrix represent variance along PCs.
If data lies in a k-dimensional subspace, only k eigenvalues are non-zero.
Total variance = Sum of all eigenvalues.
Proportion of variance explained by PC_i:
Variancei=∑j=1dλjλi
Reconstruction Error:
If k components capture all variance, reconstruction error = 0.
Residue (error) after k components:
Error=i=k+1∑dλi
Mean-Centered Data:
PCA is applied to centered data (subtract mean from each feature).
C. Bayesian Statistics (Beta Distribution, Posterior Mean)
Beta Distribution as Prior for Proportion (θ):
Prior:θ∼Beta(a,b)
Posterior (after observing k successes in n trials):
θ∣data∼Beta(a+k,b+n−k)
Posterior Mean (Estimate for θ):
E[θ]=a+b+na+k
Special Cases:
Uniform Prior (Beta(1,1)): Uninformative prior.
Jeffreys Prior (Beta(0.5,0.5)): Common for proportions.
D. Kernel Methods (Valid Kernel Functions)
Kernel Trick: Maps data into a higher-dimensional space where it becomes linearly separable.
Likelihood involves sum over clusters (latent variables).
λ (responsibility) is the posterior probability of a point belonging to a cluster.
Kernel Functions:
Gaussian, Polynomial, Laplacian are valid.
Absolute difference (|x-y|) is invalid.
Covariance Matrix:
For centered data, covariance matrix is XTX/(n−1).
Eigenvalues give variance along PCs.
This summary covers all key concepts, equations, and relationships needed for the exam. The Mermaid graphs help visualize connections between topics. Focus on equations (especially for PCA, Bayesian, GMM) and algorithmic behavior (K-Means, EM).