GATE DA 2025 · Regression vs Classification Problems

NAT · 2 marks · Problem ML-SUPV-0011

Let \(D = \{x^{(1)}, ..., x^{(n)}\}\) be a dataset of \(n\) observations where each \(x^{(i)} \in \mathbb{R}^{100}\). It is given that \(\sum_{i=1}^n x^{(i)} = 0\). The covariance matrix computed from \(D\) has eigenvalues \(\lambda_i = 100^{2-i}\), \(1 \le i \le 100\). Let \(u \in \mathbb{R}^{100}\) be the direction of maximum variance with \(u^T u = 1\). The value of   \(\frac{1}{n} \sum_{i=1}^n |u^T x^{(i)}|^2 =\) (Answer in integer)

Numerical answer (NAT).

Solve it on GATE DA practice →More Supervised Learning — Regression problems

Show the worked solutionSince the data is already mean-centered (\(\sum x^{(i)}=0\)), the covariance matrix is exactly \(\dfrac1n\sum_ix^{(i)}(x^{(i)})^T\), and for any unit vector \(u\):\(\dfrac1n\sum_i|u^Tx^{(i)}|^2=u^T\left(\dfrac1n\sum_ix^{(i)}(x^{(i)})^T\right)u=u^T\text{Cov}(D)\,u\)\(u\) is defined as the direction of maximum variance, i.e. the top eigenvector of the covariance matrix — so this quantity equals the largest eigenvalue.Eigenvalues are \(\lambda_i=100^{2-i}\), which is largest at \(i=1\): \(\lambda_1=100^{2-1}=100^1=100\)Answer: 100

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com