GATE 2020 ST – Question 60
Fit an intercept-and-slope OLS regression to x=(−2,−1,0,1,2),y=(3,5,8,9,10). Predict y at x=5.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: 16 to 16
Explanation
x̄=0 andȳ=35/5=7, so intercept=7. The cross-product sum is−6−5+0+9+20=18 and Σx²=10, giving slope1.8. Prediction at5 is7+1.8(5)=16.