MauryaHub PYQ Practice

Machine Learning Foundations · Quiz 1 · May 2026

Machine Learning Foundations · Quiz 1 · May 2026

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

13 / 13 published solutions

Question 2 MCQ · 3.0 marks

What is the best linear approximation of
Source diagram or notation
around
Source diagram or notation
6406537022668.Source diagram or notation
6406537022669.Source diagram or notation
6406537022670.Source diagram or notation
6406537022671.Source diagram or notation

Published solution

**1. Evaluate the function and gradient:** For \(f(x,y)=\sqrt{x+y}\), \(f(4,5)=3\), and \(f_x=f_y=1/(2\sqrt{x+y})\). Thus both partial derivatives at \((4,5)\) equal \(1/6\). **2. Form the first-order approximation:** \[L(x,y)=f(4,5)+\nabla f(4,5)\cdot(x-4,y-5)=3+\frac{x-4}{6}+\frac{y-5}{6}.\] It agrees with both the value and first derivatives at the base point. **Answer: B — L(x,y)=3+(x-4)/6+(y-5)/6.** A: **Incorrect:** It uses the wrong function value 9 and reverses the base coordinates. B: **Correct:** It has the correct base value and both tangent coefficients. C: **Incorrect:** Its coefficients are twice the correct partial derivatives. D: **Incorrect:** Its constant and partial-derivative coefficients are incorrect.

Report a correction for Q2

Question 3 MCQ · 3.0 marks

A company manufactures a special rectangular metal sheet. The production cost (in hundreds of rupees) depends on its length
Source diagram or notation
meters and width
Source diagram or notation
meters according to
Source diagram or notation
. At a particular stage, the dimensions of the sheet are
Source diagram or notation
. The company plans to change the dimensions in the direction represented by the vector
Source diagram or notation
and wants to determine how rapidly the production cost changes in that specific direction. Find the directional derivative of
Source diagram or notation
at the point
Source diagram or notation
in the direction of
Source diagram or notation
.
6406537022672.Source diagram or notation
6406537022673.Source diagram or notation
6406537022674.Source diagram or notation
6406537022675.Source diagram or notation

Published solution

**1. Find the gradient at the current dimensions:** For \(C=x^2+y^2\), \(\nabla C=(2x,2y)\), so \(\nabla C(1,2)=(2,4)\). **2. Dot with the unit direction:** The supplied vector \(v=(3,4)/5\) has norm one. Thus \[D_vC(1,2)=(2,4)\cdot(3/5,4/5)=\frac{6+16}{5}=\frac{22}{5}.\] The numerical rate is in hundreds of rupees per unit movement in the dimension plane. **Answer: D — 22/5.** A: **Incorrect:** 5 is the current cost value, not the directional derivative. B: **Incorrect:** 4 is only the y-partial derivative. C: **Incorrect:** It omits the factor 2 in the gradient. D: **Correct:** It is the gradient dotted with the normalized direction.

Report a correction for Q3

Question 4 MCQ · 3.0 marks

Find the projection matrix that projects the
Source diagram or notation
plane onto the line
Source diagram or notation
.
6406537022676.Source diagram or notation
6406537022677.Source diagram or notation
6406537022678.Source diagram or notation
6406537022679.Source diagram or notation

Published solution

**1. Choose a direction on the line:** The line \(x+y=0\) is spanned by \(v=(1,-1)^T\). For orthogonal projection, \(P=vv^T/(v^Tv)\). **2. Calculate and check:** \[P=\frac12\begin{pmatrix}1&-1\\-1&1\end{pmatrix}.\] It fixes \((1,-1)^T\), annihilates the perpendicular vector \((1,1)^T\), and satisfies \(P^2=P\). **Answer: A — P=(1/2)[[1,-1],[-1,1]].** A: **Correct:** It is the orthogonal projector onto the specified line. B: **Incorrect:** It projects onto the perpendicular line y=x. C: **Incorrect:** It is -2 times the required projector and does not fix vectors on the target line. D: **Incorrect:** It is not symmetric or idempotent and does not have the stated image.

Report a correction for Q4

Question 5 MCQ · 3.0 marks

Let
Source diagram or notation
be a real symmetric matrix. Consider the following statements. (1)
Source diagram or notation
is orthogonally diagonalizable. (2)
Source diagram or notation
is not diagonalizable. (3) All the eigenvalues of
Source diagram or notation
are real. (4) The eigenvalues of
Source diagram or notation
may be imaginary. (5) Eigenvectors corresponding to distinct eigenvalues of
Source diagram or notation
are linearly independent. (6) Eigenvectors corresponding to distinct eigenvalues of
Source diagram or notation
are linearly dependent. Which of the above statements are true?
6406537022680.
(1), (3), (5)
6406537022681.
(2), (4), (6)
6406537022682.
(2), (3), (5)
6406537022683.
(1), (4), (6)

Published solution

**1. Apply the spectral theorem:** A real symmetric matrix has real eigenvalues and an orthonormal eigenbasis. Hence it is orthogonally diagonalizable, proving statements (1) and (3) and rejecting (2) and the intended nonreal interpretation of (4). **2. Assess eigenvectors for distinct eigenvalues:** If \(Mu=\lambda u\), \(Mv=\mu v\), symmetry gives \(\lambda u^Tv=u^TMv=\mu u^Tv\). For \(\lambda\ne\mu\), \(u^Tv=0\), so the eigenvectors are independent. Thus (5) is true and (6) false. **Answer: A — (1), (3), (5).** A: **Correct:** It contains exactly (1), (3) and (5). B: **Incorrect:** All three selected statements contradict the spectral theorem or independence. C: **Incorrect:** It incorrectly includes (2), despite the guaranteed diagonalization. D: **Incorrect:** It incorrectly includes the nonreal-eigenvalue and dependence claims.

Report a correction for Q5

Question 6 MSQ · 3.0 marks

Let
Source diagram or notation
and
Source diagram or notation
be two square matrices of order
Source diagram or notation
. The rows of
Source diagram or notation
are represented by row vectors
Source diagram or notation
, from top to bottom, and the columns of
Source diagram or notation
are represented by column vectors
Source diagram or notation
, from left to right. The second row of
Source diagram or notation
is
Source diagram or notation
. Which of the following is/are true?
6406537022684.
The second row of
Source diagram or notation
is
Source diagram or notation
.
6406537022685.
The second column of
Source diagram or notation
is
Source diagram or notation
.
6406537022686.
The row space of
Source diagram or notation
is contained in the row space of
Source diagram or notation
.
6406537022687.
The row space of
Source diagram or notation
is contained in the row space of
Source diagram or notation
.

Published solution

**1. Interpret multiplication by rows:** Row i of \(AB\) equals \(\sum_j a_{ij}r_j\), where \(r_j\) are the rows of B. Thus the second row is \(r_1+3r_2-2r_3+4r_4\). This proves every product row lies in the row space of B. **2. Distinguish columns and the other row-space claim:** Column 2 of \(AB\) is \(Ac_2\); it is not determined by a single row of A. Nor must the product row space lie in that of A: for example, an A whose rows are multiples of \(a=(1,3,-2,4)\), followed by B=diag(1,0,0,0), gives nonzero rows parallel to \(e_1\), which is not parallel to a. **Answer: A, D — A and D.** A: **Correct:** It is the row-combination formula with the supplied coefficients. B: **Incorrect:** The second column is Ac₂, not the displayed combination of B’s columns. C: **Incorrect:** The row-space containment is not generally in A; the counterexample shows why. D: **Correct:** Every row of AB is a linear combination of rows of B.

Report a correction for Q6

Question 7 MSQ · 3.0 marks

Source diagram or notation
is a square matrix of order
Source diagram or notation
with the eigenvalue
Source diagram or notation
repeated twice. Which of the following is/are true?
6406537022688.Source diagram or notation
is invertible.
6406537022689.
Each of the entries on the main diagonal of
Source diagram or notation
is equal to
Source diagram or notation
.
6406537022690.Source diagram or notation
has two linearly independent eigenvectors.
6406537022691.Source diagram or notation
is not invertible, where
Source diagram or notation
is the identity matrix.

Published solution

**1. Use the repeated eigenvalues:** The determinant of P is \(3\cdot3=9\ne0\), so P is invertible. Since 3 is an eigenvalue, \(P-3I\) has a nonzero null vector and is singular. **2. Avoid conclusions that repetition does not justify:** The matrix \(\begin{pmatrix}4&1\\-1&2\end{pmatrix}\) has characteristic polynomial \((\lambda-3)^2\) but diagonal entries 4 and 2. A Jordan block \(\begin{pmatrix}3&1\\0&3\end{pmatrix}\) has only one independent eigenvector. Thus B and C are not guaranteed. **Answer: A, D — A and D.** A: **Correct:** No eigenvalue is zero, so the matrix is invertible. B: **Incorrect:** Eigenvalues do not have to equal individual diagonal entries for a general matrix. C: **Incorrect:** A repeated eigenvalue need not have a two-dimensional eigenspace. D: **Correct:** Subtracting an eigenvalue times the identity makes the matrix singular.

Report a correction for Q7

Question 8 MSQ · 4.0 marks

Suppose
Source diagram or notation
is a
Source diagram or notation
matrix with rank 4. Which of the following is/are true?
6406537022692.
Columns of
Source diagram or notation
are linearly independent.
6406537022693.
Null space of
Source diagram or notation
contains only the zero vector.
6406537022694.
Row space of
Source diagram or notation
is
Source diagram or notation
.
6406537022695.
Left null space of
Source diagram or notation
has dimension 2.

Published solution

**1. Apply rank–nullity to the domain:** A \(6\times4\) matrix maps \(\mathbb R^4\) into \(\mathbb R^6\). Rank 4 means all four columns are independent and \(\dim\ker M=4-4=0\). **2. Identify the other spaces:** Rows lie in \(\mathbb R^4\), so the row space is actually \(\mathbb R^4\), not \(\mathbb R^6\). The left nullspace is \(\ker M^T\), with dimension \(6-4=2\). **Answer: A, B, D — A, B and D.** A: **Correct:** The rank equals the total number of columns. B: **Correct:** Zero nullity means only the zero vector solves Mx=0. C: **Incorrect:** Rows have four coordinates; the claim uses the wrong ambient space. D: **Correct:** The transpose has a six-dimensional domain and rank four.

Report a correction for Q8

Question 9 MSQ · 4.0 marks

Which of the following represents the set of all points on the line passing through
Source diagram or notation
along the direction
Source diagram or notation
? (More than one option can be correct).
6406537022696.Source diagram or notation
6406537022697.Source diagram or notation
6406537022698.Source diagram or notation
6406537022699.Source diagram or notation

Published solution

**1. Use the point-direction equation:** The line is \((x,y)=(2,1)+\alpha(-3,2)\), \(\alpha\in\mathbb R\). This is exactly A. **2. Eliminate the parameter:** A normal vector is \((2,3)\), since \((2,3)\cdot(-3,2)=0\). Thus \(2(x-2)+3(y-1)=0\), or \(2x+3y=7\), which is B. C swaps the point and direction; D does not even contain \((2,1)\). **Answer: A, B — A and B.** A: **Correct:** It uses the specified base point and direction. B: **Correct:** It is the equivalent normal equation. C: **Incorrect:** Its direction (2,1) is not parallel to (-3,2). D: **Incorrect:** At the required point, 2y-x=0, not 7.

Report a correction for Q9

Question 10 NAT · 3.0 marks

Let
Source diagram or notation
be two vectors with
Source diagram or notation
and
Source diagram or notation
. Find the maximum possible value of
Source diagram or notation
, where
Source diagram or notation
represents the absolute value of
Source diagram or notation
. Your answer should be an integer.

Published solution

**1. Apply Cauchy–Schwarz:** \(|u^Tv|\le\|u\|\|v\|=2(3)=6\). This is an upper bound independent of the five-dimensional coordinates. **2. Show the bound is attainable:** Take \(u=(2,0,0,0,0)\) and \(v=(3,0,0,0,0)\). Their norms are 2 and 3, and \(|u^Tv|=6\). Therefore the maximum, not just a bound, is 6. **Answer: 6.**

Report a correction for Q10

Question 11 NAT · 4.0 marks

Source diagram or notation
Let be the matrix whose eigenvalues are
Source diagram or notation
and
Source diagram or notation
, and whose eigenvectors are
Source diagram or notation
and
Source diagram or notation
respectively. Find
Source diagram or notation
. Your answer should be an integer.

Published solution

**1. Form the eigenvector equations:** \(A(3,1)^T=(3,1)^T\) gives \(3a+b=3\), \(3c+d=1\). The eigenpair \(4,(2,1)^T\) gives \(2a+b=8\), \(2c+d=4\). **2. Solve for the entries:** Subtracting yields \(a=-5,c=-3\), then \(b=18,d=10\). Thus \(A=\begin{pmatrix}-5&18\\-3&10\end{pmatrix}\). **3. Sum and check:** \(a+b+c+d=-5+18-3+10=20\). Its trace is 5 and determinant 4, consistent with eigenvalues 1 and 4. **Answer: 20.**

Report a correction for Q11

Question 12 NAT · 3.0 marks

Consider the following dataset consisting of two features
Source diagram or notation
and
Source diagram or notation
:
Source diagram or notation
We want to reduce the dimensionality of the dataset from
Source diagram or notation
to
Source diagram or notation
using the following encoder- decoder pairs.
Source diagram or notation
Source diagram or notation
The reconstruction loss is defined as the mean squared distance between the reconstructed input and the original input. Based on the above information, answer the given sub-questions.
Compute the reconstruction loss for Pair 1. **NOTE:** Your answer should be an integer

Published solution

**1. Encode and decode each sample:** Pair 1 maps \((x_1,x_2)\) to their average and reconstructs it as \((u,u)\). Thus \((2,4)\mapsto3\mapsto(3,3)\), and \((6,8)\mapsto7\mapsto(7,7)\). **2. Calculate squared Euclidean errors:** The two squared distances are \((3-2)^2+(3-4)^2=2\) and \((7-6)^2+(7-8)^2=2\). **3. Average over data points:** The specified reconstruction loss is \((2+2)/2=2\). Do not divide by feature count as well; the definition averages squared distances across samples. **Answer: 2.**

Report a correction for Q12

Question 13 NAT · 3.0 marks

Consider the following dataset consisting of two features
Source diagram or notation
and
Source diagram or notation
:
Source diagram or notation
We want to reduce the dimensionality of the dataset from
Source diagram or notation
to
Source diagram or notation
using the following encoder- decoder pairs.
Source diagram or notation
Source diagram or notation
The reconstruction loss is defined as the mean squared distance between the reconstructed input and the original input. Based on the above information, answer the given sub-questions.
Compute the reconstruction loss for Pair 2. **NOTE:** Your answer should be an integer

Published solution

**1. Apply Pair 2:** The encoder gives \(u=x_1-x_2=-2\) for both \((2,4)\) and \((6,8)\). Both reconstructions are \((-2,-2)\). **2. Compute both squared distances:** For the first sample the error is \((-2-2)^2+(-2-4)^2=16+36=52\). For the second it is \((-2-6)^2+(-2-8)^2=64+100=164\). **3. Average over samples:** \(L_2=(52+164)/2=108\). This loss includes the errors in both coordinates. **Answer: 108.**

Report a correction for Q13

Question 14 MCQ · 1.0 marks

Consider the following dataset consisting of two features
Source diagram or notation
and
Source diagram or notation
:
Source diagram or notation
We want to reduce the dimensionality of the dataset from
Source diagram or notation
to
Source diagram or notation
using the following encoder- decoder pairs.
Source diagram or notation
Source diagram or notation
The reconstruction loss is defined as the mean squared distance between the reconstructed input and the original input. Based on the above information, answer the given sub-questions.
Which encoder-decoder pair performs better?
6406537022704.
Pair-1
6406537022705.
Pair-2

Published solution

**1. Compare on the same loss definition:** On the two samples \((2,4),(6,8)\), Pair 1 reconstructs \((3,3),(7,7)\), producing squared distances 2 and 2. Pair 2 reconstructs \((-2,-2)\) twice, producing squared distances 52 and 164. **2. Select the smaller average:** \(L_1=2\), whereas \(L_2=108\). Lower reconstruction error means Pair 1 performs better on this dataset. **Answer: A — Pair-1.** A: **Correct:** Its reconstruction loss is 2, the smaller value. B: **Incorrect:** Its loss is 108, much larger on the given samples.

Report a correction for Q14