34 questions · 99 marks · 10 papers. Try each one before checking.
Solve them and check answers →Read the notes first
1 Dec 2024
Question 14 MCQ · 3 marks
The sample covariance matrix $C$ for the given dataset is
- $C = \frac{1}{3}\begin{pmatrix} 8 & 8 \\ 8 & 8 \end{pmatrix}$
- $C = \frac{1}{3}\begin{pmatrix} 4 & 4 \\ 4 & 4 \end{pmatrix}$
- $C = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}$
- $C = \frac{1}{3}\begin{pmatrix} 2 & 2 \\ 2 & 2 \end{pmatrix}$
Question 15 MCQ · 3 marks
The eigenvalues of the covariance matrix are
- $\lambda_1 = 16, \lambda_2 = 0$
- $\lambda_1 = 4, \lambda_2 = 0$
- $\lambda_1 = 1, \lambda_2 = 0$
- $\lambda_1 = \frac{16}{3}, \lambda_2 = 0$
Question 16 MCQ · 3 marks
If $\tilde{x}_1, \tilde{x}_2$ and $\tilde{x}_3$ are the projections of the data points onto the first principal component, then which among the following is correct?
- $\tilde{x}_1 = \begin{pmatrix} 2 \\ 1 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 4 \\ 3 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 6 \\ 5 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} -1 \\ 1 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 3 \\ 1 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 1/2 \\ 1/2 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 2/2 \\ 2/2 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 3/2 \\ 1/2 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 2 \\ 0 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 4 \\ 0 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 6 \\ 0 \end{pmatrix}$
6 Apr 2026
Question 13 SA · 2 marks
If $C = \begin{bmatrix} a & b \\ c & d \end{bmatrix}$ is the covariance matrix of the dataset, find $a + b + c + d$. Enter the nearest integer as your answer.
Type your answer on the interactive page.
Question 14 SA · 3 marks
Let $v$ be the unit-norm eigenvector corresponding to the smallest eigenvalue of the covariance matrix. Find the variance of the dataset along the direction $v$. Enter the nearest integer as your answer.
Type your answer on the interactive page.
14 Aug 2026
Question 4 MCQ · 3 marks
A centered dataset is transformed using Principal Component Analysis (PCA). A student makes the following statements about the transformed data.
- Statement I : The covariance matrix of the transformed data is diagonal.
- Statement II : The principal components form an orthogonal basis for the transformed feature space.
- Statement III : The variance of the dataset along the $i^{\text{th}}$ principal component is equal to the $i^{\text{th}}$ eigenvalue of the covariance matrix of the original data.
- Statement IV : The total variance of the dataset remains unchanged after applying PCA.
Which of the above statements are correct?
- Statements I and II only
- Statements I, II and III only
- Statements I, III and IV only
- Statements I, II, III and IV
Question 6 MSQ · 5 marks
A centered dataset has covariance matrix $C = \begin{bmatrix} k & 4 \\ 4 & k \end{bmatrix}$, where the eigenvalues of $C$ are $9$ and $1$. Which of the following statements is/are correct?
- The value of $k$ is $5$.
- The value of $k$ is $10$.
- The first principal component is $\frac{1}{\sqrt{2}}\begin{bmatrix} 1 \\ 1 \end{bmatrix}$.
- The first principal component is $\frac{1}{\sqrt{2}}\begin{bmatrix} 1 \\ -1 \end{bmatrix}$.
- The first principal component captures $90\%$ of the total variance.
July 2022
Question 13 SA · 3 marks
Calculate the mean vector of the data points $x_1, x_2, x_3$ and write the summation of all elements of mean vector obtained.
Type your answer on the interactive page.
Question 14 SA · 4 marks
Let $C = \frac{1}{3}\sum_{i=1}^{3}(x_i - \overline{x})(x_i - \overline{x})^T$ for the data points $x_1, x_2, x_3$ is calculated. Find the trace of $C$.
Type your answer on the interactive page.
Question 15 SA · 4 marks
Project data points $x_1, x_2, x_3$ onto a one dimensional space using PCA. Let $z_1, z_2, z_3$ denotes the projection of $x_1, x_2, x_3$ respectively. Calculate the summation of all elements of $z_2$.
Type your answer on the interactive page.
24 Mar 2024
Question 13 MCQ · 3 marks
Compute the sample covariance matrix $C$ for the given dataset.
- $C = \frac{1}{3}\begin{pmatrix} 8 & 8 \\ 8 & 8 \end{pmatrix}$
- $C = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}$
- $C = \frac{1}{3}\begin{pmatrix} 10 & 10 \\ 10 & 10 \end{pmatrix}$
- $C = \frac{1}{3}\begin{pmatrix} 11 & 11 \\ 11 & 11 \end{pmatrix}$
Question 14 MCQ · 3 marks
Which is the principal direction that is chosen for performing PCA?
- $\begin{pmatrix} -1/\sqrt{2} \\ 1/\sqrt{2} \end{pmatrix}$
- $\begin{pmatrix} 1/\sqrt{2} \\ 1/\sqrt{2} \end{pmatrix}$
- $\begin{pmatrix} 1 \\ 0 \end{pmatrix}$
- $\begin{pmatrix} 0 \\ 1 \end{pmatrix}$
Question 15 MCQ · 3 marks
If $\tilde{x}_1, \tilde{x}_2$ and $\tilde{x}_3$ are the projections of the data points onto the first principal component, then which among the following are true?
- $\tilde{x}_1 = \begin{pmatrix} -1 \\ 1 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 3 \\ 1 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} -1/2 \\ 1/2 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 1/2 \\ 1/2 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 3/2 \\ 1/2 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} -1 \\ -1 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 3 \\ 3 \end{pmatrix}$
Dec 2023
Question 13 MSQ · 2 marks
Which among the following statements are true about principal component analysis (PCA)?
- PCA is a supervised learning algorithm.
- Principal components are the eigenvectors of the sample covariance matrix.
- Principal components are eigenvectors of the centered data matrix.
- If $p_1$ and $p_2$ are the principal component vectors, then $p_1$ is orthogonal to $p_2$.
Question 15 MCQ · 3 marks
Compute the sample covariance matrix $C$ for the given dataset.
- $C = \frac{1}{4}\begin{pmatrix} 46 & 30 \\ 30 & 36 \end{pmatrix}$
- $C = \frac{1}{4}\begin{pmatrix} 10 & 6 \\ 6 & 10 \end{pmatrix}$
- $C = \frac{1}{4}\begin{pmatrix} 46 & 30 \\ 30 & 46 \end{pmatrix}$
- $C = \frac{1}{4}\begin{pmatrix} 36 & 30 \\ 30 & 36 \end{pmatrix}$
Question 16 MCQ · 3 marks
Which is the principal direction that is chosen for performing PCA?
- $\begin{pmatrix} 1/\sqrt{2} \\ -1/\sqrt{2} \end{pmatrix}$
- $\begin{pmatrix} 1/\sqrt{2} \\ 1/\sqrt{2} \end{pmatrix}$
- $\begin{pmatrix} 1 \\ 0 \end{pmatrix}$
- $\begin{pmatrix} 0 \\ 1 \end{pmatrix}$
Question 17 MCQ · 3 marks
If $\tilde{x}_1, \tilde{x}_2, \tilde{x}_3$ and $\tilde{x}_4$ are the projections of the data points onto the first principal component, then which among the following are true?
- $\tilde{x}_1 = \begin{pmatrix} 3 \\ 0 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 3 \\ 0 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 5 \\ 0 \end{pmatrix}, \tilde{x}_4 = \begin{pmatrix} 1 \\ 0 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 5/2 \\ 5/2 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 5/2 \\ 5/2 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 9/2 \\ 9/2 \end{pmatrix}, \tilde{x}_4 = \begin{pmatrix} 1/2 \\ 1/2 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 3 \\ 0 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 3 \\ 0 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 5 \\ 4 \end{pmatrix}, \tilde{x}_4 = \begin{pmatrix} 1 \\ 0 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 3 \\ 2 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 3 \\ 2 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 5 \\ 4 \end{pmatrix}, \tilde{x}_4 = \begin{pmatrix} 1 \\ 0 \end{pmatrix}$
16 Mar 2025
Question 12 MCQ · 2 marks
Compute the sample covariance matrix $C$ for the given dataset.
- $C = \frac{1}{3}\begin{pmatrix} 6 & 12 \\ 12 & 24 \end{pmatrix}$
- $C = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}$
- $C = \frac{1}{9}\begin{pmatrix} 14 & 28 \\ 28 & 56 \end{pmatrix}$
- $C = \frac{1}{9}\begin{pmatrix} 10 & 20 \\ 20 & 40 \end{pmatrix}$
Question 13 MCQ · 3 marks
What is the principal direction chosen for PCA?
- $\frac{1}{\sqrt{5}}\begin{pmatrix} 2 \\ 1 \end{pmatrix}$
- $\frac{1}{\sqrt{5}}\begin{pmatrix} 1 \\ 2 \end{pmatrix}$
- $\begin{pmatrix} 1 \\ 0 \end{pmatrix}$
- $\begin{pmatrix} 0 \\ 1 \end{pmatrix}$
Question 14 MCQ · 3 marks
Compute the projections $\tilde{x}_1, \tilde{x}_2, \tilde{x}_3$ of the data points onto the first principal component. Which of the following is correct?
- $\tilde{x}_1 = \begin{pmatrix} 2 \\ 4 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 3 \\ 6 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 5 \\ 10 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 1/\sqrt{5} \\ 2/\sqrt{5} \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 2/\sqrt{5} \\ 4/\sqrt{5} \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 4/\sqrt{5} \\ 8/\sqrt{5} \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} -2 \\ -4 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} -3 \\ -6 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} -5 \\ -10 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 2/\sqrt{5} \\ 4/\sqrt{5} \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 3/\sqrt{5} \\ 6/\sqrt{5} \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 5/\sqrt{5} \\ 10/\sqrt{5} \end{pmatrix}$
Aug 2023
Question 9 SA · 4 marks
Suppose you have a 3-dimensional dataset $\{x_1, x_2, \dots, x_n\}$ with mean zero. Suppose the covariance matrix $C = \begin{bmatrix} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{bmatrix}$. For projection using PCA onto a line, what is the projected variance?
Type your answer on the interactive page.
Question 12 MCQ · 2 marks
Consider the dataset $\mathcal{D} = \{(-1,1), (0,1), (1,1)\}$
What is the first principal component (i.e., the direction corresponding to the largest eigenvalue of the covariance matrix) for the given dataset?
- $\begin{pmatrix} 1 \\ 0 \end{pmatrix}$
- $\begin{pmatrix} 0 \\ 1 \end{pmatrix}$
- $\begin{pmatrix} 1 \\ 1 \end{pmatrix}$
- $\begin{pmatrix} -1 \\ 0 \end{pmatrix}$
Question 13 MCQ · 3 marks
If you change the dataset to $\mathcal{D}' = \{(-1,1), (0,0), (1,1)\}$
what will be the first principal component?
- $\begin{pmatrix} 1 \\ 0 \end{pmatrix}$
- $\begin{pmatrix} 0 \\ 1 \end{pmatrix}$
- $\begin{pmatrix} 1 \\ 1 \end{pmatrix}$
- $\begin{pmatrix} -1 \\ 0 \end{pmatrix}$
Question 14 MCQ · 3 marks
For the dataset $\mathcal{D}'$, let $\tilde{x}_1, \tilde{x}_2$ and $\tilde{x}_3$ be the projection of data points on the first principal component, then which among the following is true?
- $\tilde{x}_1 = \begin{pmatrix} -1 \\ 2/3 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 1 \\ 2/3 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 1/2 \\ 2/3 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} -1 \\ 2/3 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 0 \\ 2/3 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 1 \\ 2/3 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 1 \\ 2/3 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 0 \\ 2/3 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} -1 \\ 0 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 1 \\ 2/3 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 1 \\ 2/3 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} -1 \\ 2/3 \end{pmatrix}$
Question 15 SA · 2 marks
What is the reconstruction error after projecting $\mathcal{D}'$ along the first principal component?
Type your answer on the interactive page.
4 Aug 2024
Question 12 MCQ · 2 marks
What is the primary goal of Principal Component Analysis (PCA)?
- To find the directions that capture the maximum variance in the data.
- To find directions that capture the minimum variance in the data.
- To increase the dimensionality of the data.
- To reduce the number of data points.
Question 14 MCQ · 3 marks
Compute the sample covariance matrix $C$ for the given dataset.
- $C = \frac{1}{3}\begin{pmatrix} 2 & 2 & 2 \\ 2 & 2 & 2 \\ 2 & 2 & 2 \end{pmatrix}$
- $C = \frac{1}{3}\begin{pmatrix} 2 & -2 & 2 \\ -2 & 2 & -2 \\ 2 & -2 & 2 \end{pmatrix}$
- $C = \frac{1}{3}\begin{pmatrix} -2 & 2 & -2 \\ 2 & -2 & 2 \\ -2 & 2 & -2 \end{pmatrix}$
- $C = \begin{pmatrix} -2 & 2 & -2 \\ 2 & -2 & 2 \\ -2 & 2 & -2 \end{pmatrix}$
Question 15 MCQ · 3 marks
Which is the principal direction that is chosen for performing PCA?
- $\begin{pmatrix} 1/\sqrt{3} \\ -1/\sqrt{3} \\ -1/\sqrt{3} \end{pmatrix}$
- $\begin{pmatrix} 1/\sqrt{2} \\ 1/\sqrt{2} \\ 0 \end{pmatrix}$
- $\begin{pmatrix} -1/\sqrt{2} \\ 1/\sqrt{2} \\ 0 \end{pmatrix}$
- $\begin{pmatrix} 1/\sqrt{3} \\ -1/\sqrt{3} \\ 1/\sqrt{3} \end{pmatrix}$
Question 16 MCQ · 3 marks
If $\tilde{x}_1, \tilde{x}_2$ and $\tilde{x}_3$ are the projections of the data points onto the first principal component, then which among the following are true?
- $\tilde{x}_1 = \begin{pmatrix} 4 \\ -2 \\ 1 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} -2 \\ 4 \\ -1 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 7 \\ -1 \\ 4 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} -4/3 \\ 2/3 \\ -1/3 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 2/3 \\ -4/3 \\ 1/3 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} -7/3 \\ 1/3 \\ -4/3 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 4/3 \\ 2/3 \\ 1/3 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} 2/3 \\ 4/3 \\ 1/3 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 7/3 \\ 1/3 \\ 4/3 \end{pmatrix}$
- $\tilde{x}_1 = \begin{pmatrix} 4/3 \\ -2/3 \\ 1/3 \end{pmatrix}, \tilde{x}_2 = \begin{pmatrix} -2/3 \\ 4/3 \\ -1/3 \end{pmatrix}, \tilde{x}_3 = \begin{pmatrix} 7/3 \\ -1/3 \\ 4/3 \end{pmatrix}$
3 Aug 2025
Question 5 MCQ · 3 marks
Let $A \in \mathbb{R}^{n \times d}$ be a centered data matrix, where $d > n$. Which of the following statements about the eigenvalues of $AA^T \in \mathbb{R}^{n \times n}$ and $A^T A \in \mathbb{R}^{d \times d}$ is true?
- $AA^T$ and $A^T A$ have different sets of non-zero eigenvalues.
- The non-zero eigenvalues of $AA^T$ and $A^T A$ are equal.
- All eigenvalues of $A^T A$ are zero.
- $A^T A$ has more non-zero eigenvalues than $AA^T$.
Question 6 MCQ · 3 marks
Let $A \in \mathbb{R}^{n \times d}$ be a centered data matrix, where $d > n$. Let $u_i \in \mathbb{R}^n$ be an eigenvector of $AA^T$ corresponding to the eigenvalue $\lambda_i > 0$, representing the $i$-th principal component in the sample space. Let $v_i \in \mathbb{R}^d$ denote the corresponding principal component direction in the feature space (i.e., the eigenvector of $A^T A$).
Which of the following correctly computes $v_i$ from $u_i$?
- The $i$-th principal component direction is $v_i = u_i$.
- The $i$-th principal component direction is $v_i = A u_i$.
- The $i$-th principal component direction is $v_i = \frac{1}{\sqrt{\lambda_i}} A^T u_i$
- The $i$-th principal component direction is $v_i = \frac{1}{\lambda_i} A^T u_i$
Question 16 MCQ · 2 marks
The sample covariance matrix $C$ for the given dataset is
- $C = \frac{1}{3}\begin{pmatrix} 8 & 8 \\ 8 & 8 \end{pmatrix}$
- $C = \frac{1}{3}\begin{pmatrix} 4 & 4 \\ 4 & 4 \end{pmatrix}$
- $C = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}$
- $C = \frac{1}{3}\begin{pmatrix} 2 & 2 \\ 2 & 2 \end{pmatrix}$
Question 17 MCQ · 2 marks
The eigenvalues of the covariance matrix are
- $\lambda_1 = 4, \lambda_2 = 0$
- $\lambda_1 = \frac{8}{3}, \lambda_2 = 0$
- $\lambda_1 = \frac{16}{3}, \lambda_2 = 0$
- $\lambda_1 = 8, \lambda_2 = 0$
Question 18 MCQ · 3 marks
The first principal component is
- $\begin{pmatrix} 1 \\ 1 \end{pmatrix}$
- $\begin{pmatrix} 1 \\ -1 \end{pmatrix}$
- $\frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ 1 \end{pmatrix}$
- $\frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ -1 \end{pmatrix}$
Check your answers →
Weeks covering this topic
Other MLF topics