IAE Academy

GATE 2023 EE Q.35: solution and answer

GATE 2023 · EEQ.35 · 1 mark · NAT

Three points in the - plane are , and . The value of the slope of the best fit straight line in the least square sense is ________ (Round off to 2 decimal places).

See the question in the paper

Answer and solution

ANSWER

The least-squares line is , so the slope is .

Official answer: 0.9 to 1.1Source: Official answer key, GATE 2023 EE (IIT Kanpur)

  1. Fit by least squares. Minimising with respect to and gives the normal equations and , with .

  2. Tabulate the sums: , , , .

  3. Solving the normal equations for the slope gives

  4. Check: because , the two equations separate. The second gives and the first gives .

  5. So the best-fit line is . Its slope, to 2 decimal places, is .

KEY IDEA

For a least-squares line the slope is . When the -values are symmetric about zero (), this reduces to , and the intercept is just the mean of .

WATCH OUT FOR

Dropping the minus sign in , which gives and a wrong slope of . A second mistake is to regress on , which minimises horizontal distances instead of vertical ones and generally gives a different line. The question asks for fitted against .

From the GATE 2023 EE paper. Every question of this paper · Download the full paper · All 33 Probability & statistics questions, with notes

More Probability & statistics questions