ML Study Hub

Home / Past papers / MLF End Term / this paper

2023 Sep03: IIT M DEGREE ET1 EXAM QPE2 - 03 Sep 2023

MLF End Term17 questions46 marks7 MSQ · 6 SA · 4 MCQQPE2
Elapsed 00:00
Q1MCQ0 marks
question figure question figure question figure
  1. Useful Data has been mentioned above.
  2. This data attachment is just for a reference & not for an evaluation.
Q2MSQ2 marksselect all that apply
Which of the following statements accurately describes the key difference between classification and regression models?
  1. In classification, the output variable is continuous and real-valued, while inregression, it is categorical.
  2. Regression models are used for predicting probabilities, whereas classificationmodels focus on predicting absolute values.
  3. Classification models aim to find decision boundaries to separate data intoclasses, while regression models seek to predict a numeric value.
  4. In regression, the commonly used loss function is mean squared error, whilein classification, 0 -1 loss is typically employed.
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q3SA2 marks
question figure
Q4SA1 mark
question figure
Q5MCQ3 marks
question figure
  1. b1 − b2 + b3 = 0
  2. b1 + b2 + b3 = 0
  3. 2b1 − b2 + b3 = 0
  4. 2b1 + b2 + b3 = 0
Q6MCQ3 marks
A consumer wants to maximize his utility subject to some constraints. He consumes two goods g1 and g2 and the utility function is the sum of g1 and g2. His budget is Rs.100. The per unit price of goods g1 and g2 are Rs.3 and Rs.4 respectively. Chose the correct optimization problem.
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q7MSQ4 marksselect all that apply
question figure
  1. A − I (where I is the identity matrix of the same size) is also orthogonal.
  2. Both AB and BA are orthogonal.
  3. An and Bn are orthogonal for every n > 1.
  4. A and B are also symmetric matrices.
Q8MSQ4 marksselect all that apply
Which of the following statements is/are true for a real symmetric matrix A?
  1. AT A and AAT have the same rank.
  2. AT A and AAT have the same eigenvalues
  3. AT A and AAT have the same eigenvectors.
  4. AT A and AAT have the same singular values.
Q9MSQ3 marksselect all that apply
Which of the following matrices is/are Unitary but not Hermitian?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q10MSQ3 marksselect all that apply
Which among the following is true for PCA?
  1. The first principal component represents the direction along which thevariance of the dataset is maximized.
  2. The first principal component represents the direction along which thevariance of the dataset is minimized.
  3. The first principal component is the eigenvector corresponding to the smallesteigenvalue of the covariance matrix.
  4. The first principal component is the eigenvector corresponding to the largesteigenvalue of the covariance matrix.
Q11MSQ3 marksselect all that apply
Which of the following statements regarding gradient descent is/are correct?
  1. If the step size is chosen as 1, we may “not always” arrive as close to theoptimal solution even after many number of iterations.
  2. Solution obtained for optimization problem is the local minimum of itsobjective function.
  3. Solution obtained for optimization problem is the global minimum of itsobjective function.
  4. Gradient descent converges to the global optimum in the case of convexfunctions.
  5. Gradient descent does not converge to the global optimum in the case ofconvex functions.
Q12MSQ3 marksselect all that apply
Suppose a fair coin is tossed twice. Let A denote the event that the first toss is a tail. Let B denote the event that the second toss is a tail. Let C denote the event that out of the first two tosses, either both are heads or both are tails. Which among the following options are true? Select all that apply.
  1. A, B and C are independent.
  2. A, B and C are dependent.
  3. A, B and C are pairwise independent.
  4. P(A) = P(B) = P(C) = 1/2
Q13SA2 marks
question figure
Q14SA3 marks
question figure
Q15SA3 marks
question figure
Q16SA3 marks
The average life (in years) of an electric bulb follows exponential distribution with parameter λ = 0.4. Using Weak Law of large numbers, find a lower bound on the probability that the mean life of a random sample of 50 such bulbs falls between 1.5 and 3.5 years. Enter your answer correct to three decimal places.
Q17MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure

Answer key

  1. Q1 (MCQ, 0 marks): A
  2. Q2 (MSQ, 2 marks): C, D
  3. Q3 (SA, 2 marks): 0
  4. Q4 (SA, 1 marks): 7.44 to 7.52
  5. Q5 (MCQ, 3 marks): C
  6. Q6 (MCQ, 3 marks): A
  7. Q7 (MSQ, 4 marks): B, C
  8. Q8 (MSQ, 4 marks): A, B, D
  9. Q9 (MSQ, 3 marks): A, D
  10. Q10 (MSQ, 3 marks): A, D
  11. Q11 (MSQ, 3 marks): A, B, D
  12. Q12 (MSQ, 3 marks): B, C, D
  13. Q13 (SA, 2 marks): 225
  14. Q14 (SA, 3 marks): 1
  15. Q15 (SA, 3 marks): 40
  16. Q16 (SA, 3 marks): 0.870 to 0.880
  17. Q17 (MCQ, 4 marks): C

Concepts this paper tests

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 the core topics, concepts, principles, and equations essential for the exam, followed by Mermaid knowledge graphs to visualize relationships.


1. Core Topics & Key Concepts

A. Probability & Statistics

1. Discrete & Continuous Distributions

DistributionPMF/PDFCDFMean (E[X]E[X])Variance (Var(X)Var(X))
Uniform (Discrete)fX(k)=1n,k=a,a+1,…,bf_X(k) = \frac{1}{n}, \quad k = a, a+1, \dots, bFX(x)=⌊x⌋−a+1nF_X(x) = \frac{\lfloor x \rfloor - a + 1}{n}a+b2\frac{a+b}{2}n2−112\frac{n^2-1}{12}
Bernoulli(pp)fX(k)=pk(1−p)1−k,k∈{0,1}f_X(k) = p^k (1-p)^{1-k}, \quad k \in \{0,1\}FX(x)=(1−p)⋅I[0≤x<1)+Ix≥1F_X(x) = (1-p) \cdot \mathbb{I}_{[0 \leq x < 1)} + \mathbb{I}_{x \geq 1}ppp(1−p)p(1-p)
Binomial(n,pn,p)fX(k)=nCkpk(1−p)n−k,k=0,1,…,nf_X(k) = {}^nC_k p^k (1-p)^{n-k}, \quad k=0,1,\dots,nFX(x)=∑i=0⌊x⌋nCipi(1−p)n−iF_X(x) = \sum_{i=0}^{\lfloor x \rfloor} {}^nC_i p^i (1-p)^{n-i}npnpnp(1−p)np(1-p)
Geometric(pp)fX(k)=(1−p)k−1p,k=1,2,…f_X(k) = (1-p)^{k-1}p, \quad k=1,2,\dotsFX(x)=1−(1−p)⌊x⌋F_X(x) = 1 - (1-p)^{\lfloor x \rfloor}1p\frac{1}{p}1−pp2\frac{1-p}{p^2}
Poisson(λ\lambda)fX(k)=e−λλkk!,k=0,1,…f_X(k) = \frac{e^{-\lambda} \lambda^k}{k!}, \quad k=0,1,\dotsFX(x)=e−λ∑i=0⌊x⌋λii!F_X(x) = e^{-\lambda} \sum_{i=0}^{\lfloor x \rfloor} \frac{\lambda^i}{i!}λ\lambdaλ\lambda
Uniform[a,ba,b]fX(x)=1b−a,a≤x≤bf_X(x) = \frac{1}{b-a}, \quad a \leq x \leq bFX(x)=x−ab−a⋅I[a≤x<b]+Ix≥bF_X(x) = \frac{x-a}{b-a} \cdot \mathbb{I}_{[a \leq x < b]} + \mathbb{I}_{x \geq b}a+b2\frac{a+b}{2}(b−a)212\frac{(b-a)^2}{12}
Exponential(λ\lambda)fX(x)=λe−λx,x≥0f_X(x) = \lambda e^{-\lambda x}, \quad x \geq 0FX(x)=1−e−λxF_X(x) = 1 - e^{-\lambda x}1λ\frac{1}{\lambda}1λ2\frac{1}{\lambda^2}
Normal(μ,σ2\mu, \sigma^2)fX(x)=1σ2πe−(x−μ)22σ2f_X(x) = \frac{1}{\sigma \sqrt{2\pi}} e^{-\frac{(x-\mu)^2}{2\sigma^2}}No closed formμ\muσ2\sigma^2

2. Inequalities & Theorems

P(X≥c)≤E[X]c,c>0P(X \geq c) \leq \frac{E[X]}{c}, \quad c > 0
P(∣X−μ∣≥kσ)≤1k2P(|X - \mu| \geq k\sigma) \leq \frac{1}{k^2}
P(∣X‾−μ∣>δ)≤σ2nδ2P(|\overline{X} - \mu| > \delta) \leq \frac{\sigma^2}{n\delta^2}
Y−nμnσ≈Normal(0,1)\frac{Y - n\mu}{\sqrt{n}\sigma} \approx \text{Normal}(0,1)

where Y=X1+X2+⋯+XnY = X_1 + X_2 + \dots + X_n.

3. Likelihood & MLE

L(θ)=∏i=1nfX(xi;θ)L(\theta) = \prod_{i=1}^n f_X(x_i; \theta)
θ∗=arg⁡max⁡θL(θ)\theta^* = \arg \max_\theta L(\theta)

B. Linear Algebra

1. Matrix Properties

2. Linear Systems & Rank


C. Optimization

1. Gradient Descent

θt+1=θt−η∇f(θt)\theta_{t+1} = \theta_t - \eta \nabla f(\theta_t)

2. Karush-Kuhn-Tucker (KKT) Conditions

For constrained optimization:

Primal Feasibility: gi(x)≤0,hj(x)=0,Dual Feasibility: λi≥0,Complementary Slackness: λigi(x)=0,Stationarity: ∇f(x)+∑λi∇gi(x)+∑μj∇hj(x)=0.\begin{align*} \text{Primal Feasibility: } & g_i(x) \leq 0, \quad h_j(x) = 0, \\ \text{Dual Feasibility: } & \lambda_i \geq 0, \\ \text{Complementary Slackness: } & \lambda_i g_i(x) = 0, \\ \text{Stationarity: } & \nabla f(x) + \sum \lambda_i \nabla g_i(x) + \sum \mu_j \nabla h_j(x) = 0. \end{align*}

D. Multivariable Calculus

1. Gradients & Directional Derivatives

∇f=(∂f∂x,∂f∂y,∂f∂z)\nabla f = \left( \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z} \right)
Dvf(p)=∇f(p)⋅vD_{\mathbf{v}} f(\mathbf{p}) = \nabla f(\mathbf{p}) \cdot \mathbf{v}
∥∇f∥=(∂f∂x)2+(∂f∂y)2+(∂f∂z)2\|\nabla f\| = \sqrt{\left( \frac{\partial f}{\partial x} \right)^2 + \left( \frac{\partial f}{\partial y} \right)^2 + \left( \frac{\partial f}{\partial z} \right)^2}

2. Optimization Problems

x−y+3≤0,−5x+3y+7≤0,x,y≥0.\begin{align*} x - y + 3 &\leq 0, \\ -5x + 3y + 7 &\leq 0, \\ x, y &\geq 0. \end{align*}

Solution: (8,11)(8, 11).


E. Machine Learning Foundations

1. Classification vs. Regression

AspectClassificationRegression
OutputCategorical (discrete)Continuous (real-valued)
GoalFind decision boundariesPredict numeric values
Loss Function0-1 Loss, Cross-EntropyMean Squared Error (MSE)

2. Principal Component Analysis (PCA)


2. Key Equations

Probability & Statistics

  1. PMF/PDF/CDF for all distributions (see table above).
  2. Markov’s Inequality:
P(X≥c)≤E[X]cP(X \geq c) \leq \frac{E[X]}{c}
  1. Chebyshev’s Inequality:
P(∣X−μ∣≥kσ)≤1k2P(|X - \mu| \geq k\sigma) \leq \frac{1}{k^2}
  1. WLLN:
P(∣X‾−μ∣>δ)≤σ2nδ2P(|\overline{X} - \mu| > \delta) \leq \frac{\sigma^2}{n\delta^2}
  1. CLT:
Y−nμnσ≈N(0,1)\frac{Y - n\mu}{\sqrt{n}\sigma} \approx N(0,1)

Linear Algebra

  1. Orthogonal Matrix:
ATA=IA^T A = I
  1. Eigenvalues of Symmetric Matrices:
det⁡(A−λI)=0\det(A - \lambda I) = 0
  1. Rank of ATAA^T A and AATAA^T:
rank(ATA)=rank(AAT)=rank(A)\text{rank}(A^T A) = \text{rank}(AA^T) = \text{rank}(A)

Optimization

  1. Gradient Descent Update:
θt+1=θt−η∇f(θt)\theta_{t+1} = \theta_t - \eta \nabla f(\theta_t)
  1. KKT Conditions:
∇f(x)+∑λi∇gi(x)=0,λigi(x)=0,λi≥0.\begin{align*} \nabla f(x) + \sum \lambda_i \nabla g_i(x) &= 0, \\ \lambda_i g_i(x) &= 0, \quad \lambda_i \geq 0. \end{align*}

Multivariable Calculus

  1. Gradient:
∇f=(∂f∂x,∂f∂y,∂f∂z)\nabla f = \left( \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z} \right)
  1. Directional Derivative:
Dvf(p)=∇f(p)⋅vD_{\mathbf{v}} f(\mathbf{p}) = \nabla f(\mathbf{p}) \cdot \mathbf{v}

Graph 2: Linear Algebra

Graph 3: Optimization

Graph 4: Machine Learning

Graph 5: Multivariable Calculus


This summary covers all essential topics, equations, and relationships for the exam.