chapter

    Regression, Regularization and Gradient-based Learning Pyqs for Gate Da

    Solve 4+ Regression, Regularization and Gradient-based Learning previous year questions for GATE DA with answers and detailed solutions. Free sample questions

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    2026 PYQ
    Level 3: Exam Standard
    Consider that for a supervised learning task, the objective function being minimized is , where is the input and is the parameter. Stochastic Gradient Descent with learning rate of 0.10 is used for parameter updates.

    Suppose that at the end of iteration , the value of becomes 10.00.

    Let be the input for iteration .

    The value of at the end of iteration is __________ . (Rounded off to two decimal places)
    Question 2
    2026 PYQ
    Level 3: Exam Standard

    Which of the following statements is true for Ridge Regression?

    Question 3
    2026 PYQ
    Level 3: Exam Standard
    Consider that Linear Ridge Regression is being used to learn a prediction function , where 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 . In the next step, for the input , the predicted value of is noted. Let the relation between and the true value of be .

    The value of the overall regularized loss function for this instance is _______ . (Rounded off to two decimal places)
    Question 4
    2025 PYQ
    Level 3: Exam Standard
    Given data of the form , we fit a model using linear least-squares regression. The optimal value of is
    (Round off to three decimal places)
    Free preview ends here

    Login to view the complete previous-year questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Regression, Regularization and Gradient-based Learning PYQs for GATE DA

    Solve 4+ Regression, Regularization and Gradient-based Learning previous year questions for GATE DA with answers and detailed solutions. Free sample questions below.

    Chapter Roadmap: Regression, Regularization and Gradient-Based Learning

    Chapter Journey

    1. Linear Least-Squares Regression

    The foundation. Minimizing the sum of squared residuals to find the best-fit line. Closed-form solution and its geometric interpretation.

    2. Ridge Regression and Regularization

    The problem with OLS: overfitting and ill-conditioned matrices. Introducing the L2 penalty to shrink weights. The bias-variance tradeoff.

    3. Gradient-Based Parameter Updates

    Moving beyond closed-form solutions. Batch, Stochastic, and Mini-batch Gradient Descent. Learning rates and convergence.

    By the end of this chapter, you will be able to analytically solve linear models, regularize them to prevent overfitting, and optimize them iteratively.

    The Core Idea of Ridge Regression

    The Intuition Behind Regularization

    Ordinary Least Squares (OLS) finds weights that minimize the training error. However, when data is noisy or features are highly correlated, OLS assigns excessively large weights to fit the noise. This leads to overfitting.

    Ridge Regression modifies the objective by adding a penalty term proportional to the square of the magnitude of the weights.

    • Goal: Minimize training error while keeping the weights as small as possible.
    • Effect: Shrinks the coefficients towards zero, reducing model complexity and variance.
    • Result: A model that generalizes much better to unseen data, even if it slightly underfits the training data.

    Regression, Regularization and Gradient-based Learning: Solved Questions with Step-by-Step Explanations (4 Problems)

    Question 1 · Machine Learning · 2026 NAT
    Consider that for a supervised learning task, the objective function being minimized is , where is the input and is the parameter. Stochastic Gradient Descent with learning rate of 0.10 is used for parameter updates.

    Suppose that at the end of iteration , the value of becomes 10.00.

    Let be the input for iteration .

    The value of at the end of iteration is __________ . (Rounded off to two decimal places)
    Correct Answer:

    9.00

    Step-by-Step Solution

    Insight: In SGD, the parameter update is . The gradient of with respect to is simply .

    Exam route: Gradient = . Update = .

    Learning route:

    1. Identify the objective function to minimize: .
    2. Compute the gradient with respect to the parameter : .
    3. Substitute the current input for iteration : . So, the gradient is $10.00$.
    4. Apply the SGD update rule: .
    5. Calculate: .
    Question 2 · Machine Learning · 2026 MCQ

    Which of the following statements is true for Ridge Regression?

    1. A.

      The regularizer in the objective function of Ridge Regression is used to guard against scenarios where the model works well for the test data, but poorly for the training data.

    2. B.

      The regularizer of Ridge Regression uses norm.

    3. C.

      Ridge Regression aims to reduce the number of parameters that have negative values.

    4. D.

      The regularizer of Ridge Regression may increase the bias of the model, but it helps in reducing the variance in predictions.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: Ridge regression uses L2 regularization, which shrinks weights to reduce model variance at the cost of a slight increase in bias, thereby preventing overfitting.

    Exam route: Evaluate each option. A is backwards (overfitting is good on train, bad on test). B is Lasso. C is nonsensical. D correctly describes the bias-variance tradeoff.

    Learning route:

    1. Option A is false. Regularization guards against overfitting, which is when a model works well on training data but poorly on test data, not the other way around.
    2. Option B is false. Ridge Regression uses the norm (). The norm is used by Lasso Regression.
    3. Option C is false. The L2 penalty shrinks all weights symmetrically towards zero, regardless of whether they are positive or negative.
    4. Option D is true. By adding a penalty term, we restrict the model's flexibility. This intentionally introduces a small amount of bias to achieve a larger reduction in variance, improving generalization to unseen data.
    Question 3 · Machine Learning · 2026 NAT
    Consider that Linear Ridge Regression is being used to learn a prediction function , where 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 . In the next step, for the input , the predicted value of is noted. Let the relation between and the true value of be .

    The value of the overall regularized loss function for this instance is _______ . (Rounded off to two decimal places)
    Correct Answer:

    7.00

    Step-by-Step Solution

    Insight: The regularized loss for a single instance is the sum of the instance's prediction error (MAE) and the L2 regularization penalty on the weights.

    Exam route: Calculate MAE = |y_true - y_pred|. Calculate L2 penalty = \lambda ||w||_2^2. Add them together.

    Learning route:

    1. Compute y_true: The relation is y_true = x_1 + x_2. For x = [1.00, 2.00]^T, y_true = 1.00 + 2.00 = 3.00.
    2. Compute y_pred: y_pred = w^T x = (-3.00)(1.00) + (4.00)(2.00) = -3.00 + 8.00 = 5.00.
    3. Compute MAE: |y_true - y_pred| = |3.00 - 5.00| = |-2.00| = 2.00.
    4. Compute L2 penalty: \lambda ||w||_2^2 = 0.20 \times ((-3.00)^2 + (4.00)^2) = 0.20 \times (9.00 + 16.00) = 0.20 \times 25.00 = 5.00.
    5. Total regularized loss: MAE + L2 penalty = 2.00 + 5.00 = 7.00.
    Question 4 · Machine Learning · 2025 NAT
    Given data of the form , we fit a model using linear least-squares regression. The optimal value of is
    (Round off to three decimal places)
    Correct Answer:

    0.286

    Step-by-Step Solution

    Insight: For a linear model without a bias term (), the optimal weight is the ratio of the sum of to the sum of .

    Exam route: Sum of . Sum of . .

    Learning route:

    1. Identify the model: . Notice there is no bias term ().
    2. Recall the scalar normal equation for no-bias least squares: .
    3. Compute the numerator : .
    4. Compute the denominator : .
    5. Calculate .
    6. Convert to decimal and round to three decimal places: .

    More previous year questions (pyqs) in this unit