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)
GATE 2025 DA Q.34: solution and answer
Answer and solution
ANSWER
The optimal value is .
Official answer: 0.285 to 0.287Source: Official answer key, GATE 2025 DA (IIT Roorkee)
The model has no intercept, so the least-squares objective is , a function of the single parameter .
Setting gives . Since , this stationary point is the minimum. Hence .
Numerator: .
Denominator: .
So , which rounds to .
KEY IDEA
With no intercept, least squares in one parameter gives , which is the projection of the vector onto the vector.
WATCH OUT FOR
Fitting a line with an intercept, , or using the mean-centred formula . The question fixes the model as , so no centring applies.
From the GATE 2025 DA paper. Every question of this paper · Download the full paper · All 4 Regression questions, with notes
