Skip to main contentSkip to solution

Which of the following are normal equations to fit a straight line trend y = a + bx by the method of least squares?

Solution

✅ Correct Option: 2

For a straight line y=a+bxy = a + bx fitted to data points using the method of least squares, the normal equations are derived to find the optimal values of aa and bb.


Taking the line equation y=a+bxy = a + bx and summing over all nn data points:

∑y=∑(a+bx)\sum y = \sum(a + bx)

∑y=∑a+∑bx\sum y = \sum a + \sum bx

∑y=na+b∑x\sum y = na + b\sum x


Multiplying both sides of y=a+bxy = a + bx by xx:

xy=ax+bx2xy = ax + bx^2

Summing over all data points:

∑xy=∑(ax+bx2)\sum xy = \sum(ax + bx^2)

∑xy=a∑x+b∑x2\sum xy = a\sum x + b\sum x^2


The two normal equations are:

∑y=na+b∑x\sum y = na + b\sum x

∑xy=a∑x+b∑x2\sum xy = a\sum x + b\sum x^2


Checking the options:

Option 1: First equation has a+∑xa + \sum x instead of nana, which is incorrect.

Option 3: Both equations start with ∑xy\sum xy, which is incorrect.

Option 4: Uses ∑x\sum x instead of ∑y\sum y in the first equation, which is incorrect.

Option 2 matches the derived normal equations exactly.

Therefore, the answer is Option 2.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question