GATE DA 2026 · Ridge Regression

NAT · 2 marks · Problem ML-REGU-0013

Consider that Linear Ridge Regression is being used to learn a prediction function \(y_{\text {pred }}=w^{T} x\), where \(w, x \in \mathbb{R}^{2}\) and Mean Absolute Error (MAE) is used to measure the prediction error. A weight of \(0.20\) is associated with the regularizer. At an intermediate step of the training process, assume that the parameter \(w= [-3.00,4.00]^{T}\). In the next step, for the input \(x=[1.00,2.00]^{T}\), the predicted value of \(y\) is noted. Let the relation between \(x=\left[x_{1}, x_{2}\right]^{T}\) and the true value of \(y\) be \(y_{\text {true }}=x_{1}+x_{2}\). The value of the overall regularized loss function for this instance is . (Rounded off to two decimal places)

Numerical answer (NAT).

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

Show the worked solutionThe overall regularized loss function \(L(\mathbf{w})\) for Ridge Regression using Mean Absolute Error (MAE) for a single training instance is:\[ L(\mathbf{w}) = \text{MAE}(\mathbf{w}) + \lambda \|\mathbf{w}\|_2^2 \]where: • \(\text{MAE}(\mathbf{w}) = |y_{\text{pred}} - y_{\text{true}}|\) • \(\lambda = 0.20\) is the regularization weight • \(\|\mathbf{w}\|_2^2 = w_1^2 + w_2^2\) is the squared \(L_2\) norm of the weightsLet's compute each component step-by-step:1. Compute the predicted value \(y_{\text{pred}}\):\[ y_{\text{pred}} = \mathbf{w}^T \mathbf{x} = (-3.00)(1.00) + (4.00)(2.00) = -3.00 + 8.00 = 5.00 \]2. Compute the true value \(y_{\text{true}}\):\[ y_{\text{true}} = x_1 + x_2 = 1.00 + 2.00 = 3.00 \]3. Compute the MAE for this instance:\[ \text{MAE} = |y_{\text{pred}} - y_{\text{true}}| = |5.00 - 3.00| = 2.00 \]4. Compute the regularizer term:\[ \lambda \|\mathbf{w}\|_2^2 = 0.20 \times \left( (-3.00)^2 + (4.00)^2 \right) = 0.20 \times (9.00 + 16.00) = 0.20 \times 25.00 = 5.00 \]5. Compute the overall regularized loss:\[ L(\mathbf{w}) = \text{MAE} + \lambda \|\mathbf{w}\|_2^2 = 2.00 + 5.00 = 7.00 \]Answer: 7.00

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