Question:

Fit a straight-line trend by the method of least squares for the following data:

\[ \begin{array}{|c|c|c|c|c|c|c|c|} \hline \textbf{Year} & 2004 & 2005 & 2006 & 2007 & 2008 & 2009 & 2010 \\ \hline \textbf{Profit (₹ 000)} & 114 & 130 & 126 & 144 & 138 & 156 & 164 \\ \hline \end{array} \]

Show Hint

For fitting straight-line trends with least squares, ensure you assign proper time codes \( t \) and calculate \( a \) and \( b \) systematically using the given formulas.
Updated On: Feb 11, 2025
Hide Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Assign \( t \): Let \( t = -3, -2, -1, 0, 1, 2, 3 \) for the years 2004 to 2010.

Step 2: Tabulate the data:

\[ \begin{array}{|c|c|c|c|c|} \hline \textbf{Year} & \textbf{Profit (y)} & t & t^2 & t \cdot y \\ \hline 2004 & 114 & -3 & 9 & -342 \\ 2005 & 130 & -2 & 4 & -260 \\ 2006 & 126 & -1 & 1 & -126 \\ 2007 & 144 & 0 & 0 & 0 \\ 2008 & 138 & 1 & 1 & 138 \\ 2009 & 156 & 2 & 4 & 312 \\ 2010 & 164 & 3 & 9 & 492 \\ \hline \textbf{Total} & 972 & 0 & 28 & 214 \\ \hline \end{array} \]

Step 3: Use the least squares formula:

\[ y = a + bt, \]

where:

\[ a = \frac{\sum y}{N}, \quad b = \frac{\sum (t \cdot y)}{\sum t^2}. \]

Substituting the values:

\[ a = \frac{972}{7} = 138.86, \quad b = \frac{214}{28} = 7.64. \]

Step 4: Write the equation:

\[ y = 138.86 + 7.64t. \]
Was this answer helpful?
0
0