Skip to main contentSkip to solution

Consider the following data:

Year (x)20102011201220132014
Sale (in crore Rs.) (y)918212938

A straight line trend by the method of least square is:

Solution

✅ Correct Option: 2

The least squares method finds the "best fit" straight line through the data points.

To simplify calculations, shift the origin to x=2012x = 2012 by letting X=(x−2012)X = (x - 2012).

Year (x)X = (x - 2012)Sale (y)
2010-29
2011-118
2012021
2013129
2014238

Number of data points: n=5n = 5

Sum of XX values:

ΣX=(−2)+(−1)+0+1+2=0\Sigma X = (-2) + (-1) + 0 + 1 + 2 = 0

Sum of yy values:

Σy=9+18+21+29+38=115\Sigma y = 9 + 18 + 21 + 29 + 38 = 115


Mean of XX:

Xˉ=ΣXn\bar{X} = \dfrac{\Sigma X}{n}

Xˉ=05=0\bar{X} = \dfrac{0}{5} = 0

Mean of yy:

yˉ=Σyn\bar{y} = \dfrac{\Sigma y}{n}

yˉ=1155=23\bar{y} = \dfrac{115}{5} = 23


Sum of XX squared:

ΣX2=(−2)2+(−1)2+(0)2+(1)2+(2)2\Sigma X^2 = (-2)^2 + (-1)^2 + (0)^2 + (1)^2 + (2)^2

ΣX2=4+1+0+1+4=10\Sigma X^2 = 4 + 1 + 0 + 1 + 4 = 10


Sum of XX times yy:

XyX × y
-29-18
-118-18
0210
12929
23876

ΣXy=−18+(−18)+0+29+76=69\Sigma Xy = -18 + (-18) + 0 + 29 + 76 = 69


The slope is:

b=ΣXyΣX2b = \dfrac{\Sigma Xy}{\Sigma X^2}

b=6910=6.9b = \dfrac{69}{10} = 6.9


The intercept is:

a=yˉ=23a = \bar{y} = 23


The least squares trend line equation is:

y=a+b(x−2012)y = a + b(x - 2012)

y=23+6.9(x−2012)y = 23 + 6.9(x - 2012)

Therefore, the answer is y=23+6.9(x−2012)y = 23 + 6.9(x - 2012).

Keyboard Shortcuts

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