Home / Past papers / MLT Quiz 1 / this paper
IIT M FOUNDATION AN4 EXAM QPF4 16 JULY 2023 - 16 Jul 2023 MLT Quiz 1 11 questions46 marks5 MSQ · 4 SA · 2 MCQ Foundation / QPF4
Elapsed 00:00 Check answers Reset Show answer key
Q3 MSQ 4 marks select all that apply Select all true statements regarding standard PCA applied on a centered dataset.
The variance of the dataset along the first principal component is maximum. The variance of the dataset along the first principal component is minimum. The first principal component is the unit norm eigenvector corresponding tothe largest eigenvalue of the covariance matrix. The first principal component is the unit norm eigenvector corresponding tothe smallest eigenvalue of the covariance matrix.
Q4 MSQ 4 marks select all that apply The covariance matrix corresponding to this dataset has 30 non-zeroeigenvalues. The covariance matrix corresponding to this dataset has only four non-zeroeigenvalues. The residues will become zero after four rounds By utilizing four principal component vectors and their correspondingcoefficients, we have the ability to reconstruct the complete dataset using representatives.
Answer key Q1 (MCQ, 4 marks): CQ2 (MCQ, 4 marks): CQ3 (MSQ, 4 marks): A, CQ4 (MSQ, 4 marks): B, C, DQ5 (MSQ, 5 marks): B, CQ6 (MSQ, 5 marks): A, B, DQ7 (MSQ, 3.5 marks): A, CQ8 (SA, 4 marks): 60Q9 (SA, 4 marks): 70Q10 (SA, 4 marks): 40Q11 (SA, 4.5 marks): 0.15 to 0.35Concepts this paper tests Auto-generated summary from the source site. Handy as a checklist; the lessons above explain each idea from scratch.
Summary of Core Topics, Concepts, Principles, and Equations
Kernel Functions : Functions that compute the dot product of the transformed input data in a higher-dimensional space.Transformation Mapping (ϕ \phi ϕ ) : A function that maps input data into a higher-dimensional space.Example Kernel Function :
k ( [ x 1 , x 2 ] T , [ y 1 , y 2 ] T ) = 1 + x 1 y 1 + x 2 y 2 + x 1 2 y 1 2 x 2 y 2 + x 1 y 1 x 2 2 y 2 2 k([x_1, x_2]^T, [y_1, y_2]^T) = 1 + x_1 y_1 + x_2 y_2 + x_1^2 y_1^2 x_2 y_2 + x_1 y_1 x_2^2 y_2^2 k ([ x 1 , x 2 ] T , [ y 1 , y 2 ] T ) = 1 + x 1 y 1 + x 2 y 2 + x 1 2 y 1 2 x 2 y 2 + x 1 y 1 x 2 2 y 2 2
Transformation Mapping for the Given Kernel :
ϕ ( [ x 1 , x 2 ] T ) = [ 1 , x 1 , x 2 , x 1 2 x 2 , x 1 x 2 2 ] \phi([x_1, x_2]^T) = [1, x_1, x_2, x_1^2 x_2, x_1 x_2^2] ϕ ([ x 1 , x 2 ] T ) = [ 1 , x 1 , x 2 , x 1 2 x 2 , x 1 x 2 2 ]
2. K-means Clustering
Algorithm : Iterative algorithm that partitions data into k k k clusters.Steps :
Initialize centroids. Assign each data point to the nearest centroid. Recalculate centroids as the mean of the assigned points. Repeat until convergence. Example :
Points: P ( 1 , 1 ) P(1, 1) P ( 1 , 1 ) , Q ( 2 , 1 ) Q(2, 1) Q ( 2 , 1 ) , R ( 4 , 3 ) R(4, 3) R ( 4 , 3 ) , S ( 5 , 4 ) S(5, 4) S ( 5 , 4 ) Initial centroids: C 1 = ( 0 , 0 ) C_1 = (0, 0) C 1 = ( 0 , 0 ) , C 2 = ( 4 , 4 ) C_2 = (4, 4) C 2 = ( 4 , 4 ) Final centroids after convergence: ⟨ 1.5 , 1 ⟩ \langle 1.5, 1 \rangle ⟨ 1.5 , 1 ⟩ , ⟨ 4.5 , 3.5 ⟩ \langle 4.5, 3.5 \rangle ⟨ 4.5 , 3.5 ⟩
3. Principal Component Analysis (PCA)
Objective : Reduce the dimensionality of a dataset while preserving its variance.Steps :
Center the data. Compute the covariance matrix. Compute the eigenvectors and eigenvalues of the covariance matrix. Select the top k k k eigenvectors (principal components). Key Points :
The first principal component has the maximum variance. The first principal component is the unit norm eigenvector corresponding to the largest eigenvalue of the covariance matrix. Example :
Dataset of 200 points in R 30 \mathbb{R}^{30} R 30 lying in a four-dimensional subspace. After PCA, the covariance matrix has only four non-zero eigenvalues.
4. Kernel PCA
Objective : Extend PCA to non-linear datasets using kernel functions.Key Points :
The number of principal components can exceed the dimensionality of the original dataset. Valid kernel functions can be combined linearly with positive coefficients. Not all kernel functions are positive definite. Example :
Kernel function: k ( x 1 , x 2 ) = ( x 1 T x 2 ) 3 k(x_1, x_2) = (x_1^T x_2)^3 k ( x 1 , x 2 ) = ( x 1 T x 2 ) 3 Valid kernel function: a k 1 + b k 2 ak_1 + bk_2 a k 1 + b k 2 where a , b > 0 a, b > 0 a , b > 0
5. Lloyd's Algorithm (K-means)
Behavior : Minimizes within-cluster variance.Limitations : Cannot obtain clusters that do not minimize within-cluster variance, such as concentric circles or highly imbalanced clusters.Example :
Dataset: { − 3 , − 1 , 0 , 1 , 4 , 299 , 300 , 301 } \{-3, -1, 0, 1, 4, 299, 300, 301\} { − 3 , − 1 , 0 , 1 , 4 , 299 , 300 , 301 } Initial centroids: − 10 -10 − 10 , 310 310 310 Final centroids: a a a , b b b Product of final centroids: a b = 60 ab = 60 ab = 60
6. Bernoulli Distribution and Maximum Likelihood Estimation (MLE)
Bernoulli Distribution : Models binary outcomes with parameter p p p .MLE for p p p : Estimates the parameter p p p based on observed data.Example :
Dataset with 100 data points, MLE estimate for p p p is 0.3. Number of zeros: 100 × ( 1 − 0.3 ) = 70 100 \times (1 - 0.3) = 70 100 × ( 1 − 0.3 ) = 70
7. Beta Distribution and Bayesian Inference
Beta Distribution : Prior and posterior distributions for the parameter p p p of a Bernoulli distribution.Example :
Prior: Beta ( 10 , 5 ) \text{Beta}(10,5) Beta ( 10 , 5 ) Posterior: Beta ( 30 , 45 ) \text{Beta}(30,45) Beta ( 30 , 45 ) Number of zeros in the dataset: 40
8. Gaussian Mixture Models (GMM)
Objective : Model data as a mixture of Gaussian distributions.Probability Calculation : Use the Gaussian density function to compute the probability of a data point belonging to a component.Example :
GMM with two components:
π 1 = 0.3 \pi_1 = 0.3 π 1 = 0.3 , μ 1 = 0 \mu_1 = 0 μ 1 = 0 , σ 1 2 = 1 \sigma_1^2 = 1 σ 1 2 = 1 π 2 = 0.7 \pi_2 = 0.7 π 2 = 0.7 , μ 2 = 1 \mu_2 = 1 μ 2 = 1 , σ 2 2 = 2 \sigma_2^2 = 2 σ 2 2 = 2 Probability that x = 1.2 x = 1.2 x = 1.2 comes from the first component: between 0.15 and 0.35