Skip to the content

Topics Covered

Time Series Four Components Additive Model Multiplicative Model Free-hand Curve Semi-Averages Least Squares Moving Averages Exponential Trend Centred Moving Average Choosing a Trend Curve
On this page
  1. 1. What is a Time Series?
  2. 2. Components of a Time Series
  3. 3. Models of Time Series
  4. 4. Methods of Estimating Trend
  5. Worked Problems on Trend
  6. Key Take-aways

1. What is a Time Series?

DEFINITION

A time series is a sequence of observations of a variable recorded at successive points or intervals of time (yearly, monthly, weekly, etc.). The order in which the data are recorded is essential.

Examples: annual GDP, monthly rainfall, daily share prices, yearly population.

Uses of Time Series

Time Series Components of Time Series Models of Time Series Additive Y = T+S+C+I Multiplicative Y = T×S×C×I Secular Trend (long-term) Seasonal Variations Cyclical Variations Random / Irregular Free-hand curve Semi-averages Moving averages Least squares Simple averages Ratio to trend Ratio to moving avg. Link relatives
Fig 1.0 — Chapter map: classification of time-series analysis. A time series is studied through its four components (secular trend, seasonal, cyclical and random/irregular variation) and is decomposed with one of two models (additive or multiplicative). The trend and seasonal components each have their own estimation methods, shown on the right — every one of them is worked through in the sections below and in Unit 2.

Definitions, Notation and Uses

THREE CLASSICAL DEFINITIONS

All three say the same thing: the order in time is part of the data. Shuffle the values and you have lost the information a time series carries.

NOTATION

The value of the variable depends on time, so it is written \(y_t\), and the relationship as

\[ y_t = f(t) . \]

Observed at times \(t_1, t_2, \ldots, t_n\), the series is the table of pairs \((t_i, y_{t_i})\). Here \(y_t\) might be agricultural production, population, bank deposits, sales, profits or temperature, and \(t\) might be years, months, weeks or days.

Examples: sales and profits of a company over the years; national income over ten years; monthly bank deposits; daily sales of a milk booth in a month; share prices on each day of a week; paddy production in Andhra Pradesh over seven years; monthly industrial production in a city.

SEVEN USES
  1. To study the past behaviour of the phenomenon.
  2. To determine the nature of the variations in the data.
  3. To forecast its future behaviour, which planning depends on.
  4. To compare actual performance with expected values, and analyse the causes of the gap.
  5. To compare different variables, or different places, over the same periods.
  6. To review and evaluate progress in business and economic activity.
  7. To support decisions on government policy.

2. Components of a Time Series

The variation in a time series is decomposed into four components:

FOUR COMPONENTS
  1. Trend (T) — the long-term smooth movement (upward, downward or flat). Example: rising GDP over a decade.
  2. Seasonal variations (S) — regular periodic fluctuations within a year due to season, festival, weather. Example: AC sales peak in summer.
  3. Cyclical variations (C) — wave-like swings of more than one year due to business cycles (boom, recession, recovery). Example: economic recessions every 8–10 years.
  4. Irregular / Random (I) — unpredictable, short-term, caused by chance events (floods, strikes, COVID). Also called residual.
Trend (T) Seasonal (S) Cyclical (C) Irregular (I)
Fig 1.2 — The four components shown separately: a long-term Trend, a within-year Seasonal wave, a multi-year Cyclical swing, and unpredictable Irregular movements. The observed series (Fig 1.1) is their sum (additive model) or product (multiplicative model).
Trend (T) Observed Y A time series = Trend + Seasonal + Cyclical + Irregular
Fig 1.1 — A time series (blue) with its underlying trend (red dashed)

The Components in Detail

SECULAR TREND (LONG-TERM VARIATION)

The general tendency of the series to increase, decrease or stay level over a long period. Upward: population over a decade; industrial or agricultural production; a company's profits. Downward: deaths in a district, epidemics, or illiteracy, falling with better medical facilities and living standards.

There is no hard and fast rule for what counts as “long”: it depends on the variable. Ten years is a long period for a country's population; ten minutes can be a long period for bacteria in a culture. Nor need the trend keep one direction throughout: it may rise, fall or level off in places, and still have an overall direction for the whole period.

SEASONAL VARIATION

Rhythmic movements that repeat within a year, with the same or almost the same pattern year after year: quarterly, monthly, weekly, daily, even hourly. Two kinds of cause:

Data given only once a year has no seasonal variation to measure: the season is averaged away inside each annual figure.

CYCLICAL VARIATION

Oscillations with a period of more than one year. One complete period is a cycle. Cycles are more or less regular but not strictly periodic: no two need repeat exactly. In business they form the business cycle, with four phases: prosperity (boom), recession, depression and recovery, typically lasting seven to eleven years. Prices, income, production, wages and investment all follow it.

IRREGULAR VARIATION

Purely random, erratic, unforeseen and non-recurring movements, from floods, wars, earthquakes, famines, epidemics, strikes, lockouts or revolutions. They follow no pattern and cannot be predicted. Usually small, they can occasionally be large enough to set off a cyclical movement.

Seasonal and cyclical variations together are the periodic (short-term) variations; with the irregular ones, they make up everything that is not trend.

3. Models of Time Series

3.1 Additive Model

\[ Y \;=\; T + S + C + I. \]

The four components are independent and have constant magnitude. Suitable when the seasonal swing has the same absolute size irrespective of the level of the series.

3.2 Multiplicative Model

\[ Y \;=\; T \cdot S \cdot C \cdot I. \]

Components are interdependent; seasonal swing increases proportionally with the level. Most common in practice (sales, finance).

3.3 Mixed Model

Some components combine additively, others multiplicatively. Example: \(Y = T \cdot S + C + I\).

How to choose?

EXAMPLE — decomposing one month's figure both ways

A month's sales of ₹21,110 is explained by: trend \(T=20{,}000\), a seasonal factor (a good sales month) of +₹1,500 in absolute terms or ×1.15 in relative terms, a cyclical downturn of −₹800 (a business slump) or ×0.90, and a random residual of +₹410 or ×1.02.

Additive model \(Y = T + S + C + I\):

\[ Y = 20{,}000 + 1{,}500 + (-800) + 410 = 21{,}110. \]

Multiplicative model \(Y = T \times S \times C \times I\):

\[ Y = 20{,}000 \times 1.15 \times 0.90 \times 1.02 = 21{,}114. \]

Both reproduce roughly the same figure; the additive version adds fixed rupee amounts, while the multiplicative version scales the trend by factors, so the seasonal/cyclical effects grow with the level of the series — which is why the multiplicative model is preferred for most business data.

Decomposition and the Log Form

THE TWO PROBLEMS OF TIME-SERIES ANALYSIS
  1. To identify which components are present in the data.
  2. To isolate and measure each one separately, holding the others constant.

Separating a series into its components is called decomposition. A model says how the components combine, and so how to take them apart.

WHAT EACH MODEL ASSUMES

In the additive model \(y_t = T_t + S_t + C_t + I_t\), the components are independent and \(S_t, C_t, I_t\) are absolute deviations about the trend, in the units of \(y\). In the multiplicative model \(y_t = T_t \times S_t \times C_t \times I_t\), only \(T_t\) is in the units of \(y\); \(S_t, C_t, I_t\) are indices (ratios or percentages). Taking logarithms turns the product into a sum,

\[ \log y_t = \log T_t + \log S_t + \log C_t + \log I_t , \]

so the multiplicative model is the additive model for \(\log y_t\), and the same decomposition methods apply to the logarithms.

Mixed models combine the two, for example

\[ y_t = T_t + S_t C_t I_t, \qquad y_t = T_t + S_t + C_t I_t, \qquad y_t = T_t S_t + C_t I_t . \]

Printing note. The textbook writes the irregular component sometimes as \(I_t\) and sometimes as \(R_t\), within the same section (“Here \(S_t\), \(C_t\) and \(R_t\) are indices”). It is one component; this page writes \(I_t\) throughout.

4. Methods of Estimating Trend

4.1 Free-hand (Graphic) Curve Method

Plot the data and draw a smooth curve through the points by hand, balancing fluctuations on either side.

Merits: Simple, visual.
Demerits: Subjective, depends on judgement, not reproducible.

EXAMPLE 1

Sales (₹ lakhs) for 6 years: 20, 22, 25, 23, 28, 30. Plot and draw a smooth rising line through these points.

EXAMPLE 2

Daily temperatures over a week: 28, 30, 32, 31, 29, 33, 35. Free-hand line shows a mild upward trend.

4.2 Method of Semi-Averages

  1. Divide the data into two equal halves.
  2. Compute the arithmetic mean of each half.
  3. Plot these means against the midpoint year of each half.
  4. Join the two points by a straight line — this is the trend line.

If the number of observations is odd, drop the middle value (or include it in both halves).

EXAMPLE 1

Sales (in ₹ lakhs) for 8 years:

Year20182019202020212022202320242025
Sales1012141620222426

Split: first half 2018–21 mean = 13 (plotted at 2019.5); second half 2022–25 mean = 23 (plotted at 2023.5). Slope = (23-13)/4 = 2.5 per year.

EXAMPLE 2 (Odd n = 7)

Production: 20, 24, 28, 32, 36, 40, 44. Drop middle (32). First half avg = 24, second half avg = 40. Trend slope ≈ 4 units per year.

4.3 Method of Least Squares (Linear & Parabolic Trend)

Linear Trend

Fit \(Y = a + bX\) where \(X\) is time (coded so that \(\sum X = 0\) if possible — simplifies arithmetic).

If \(\sum X = 0\):

\[ a = \bar Y = \dfrac{\sum Y}{n}, \quad b = \dfrac{\sum XY}{\sum X^2}. \]

Else use the general normal equations:

\[ \sum Y = na + b\sum X, \quad \sum XY = a\sum X + b\sum X^2. \]

Parabolic Trend

Fit \(Y = a + bX + cX^2\). With \(\sum X = 0, \sum X^3 = 0\):

\[ \sum Y = na + c \sum X^2, \quad \sum XY = b \sum X^2, \quad \sum X^2 Y = a \sum X^2 + c \sum X^4. \]
EXAMPLE 1 (Linear)

For the 8-year sales data above, code \(X = -7, -5, -3, -1, 1, 3, 5, 7\) (using year units of 1/2 so \(\sum X = 0\)). Sums: \(\sum Y = 144,\; \sum X^2 = 168,\; \sum XY = (-7)(10)+(-5)(12)+\ldots+(7)(26) = 200\).

\(a = 144/8 = 18;\; b = 200/168 = 1.190\). Trend: \(\hat Y = 18 + 1.190 X\) (\(X\) in half-year units centred on 2021.5). Equivalent to ~2.38 per year — close to the semi-averages slope of 2.5.

EXAMPLE 2 (Parabola)

Production for 5 years (\(X = -2, -1, 0, 1, 2\)): 5, 7, 11, 17, 25. \(\sum Y = 65, \sum X^2 = 10, \sum X^4 = 34, \sum XY = 50, \sum X^2 Y = 144\).

Solve: \(5a + 10c = 65,\; 10b = 50 \Rightarrow b = 5,\; 10a + 34c = 144\).

From first equation \(a = 13 - 2c\). Substitute: \(10(13 - 2c) + 34c = 144 \Rightarrow 130 + 14c = 144 \Rightarrow c = 1\). Then \(a = 13 - 2 = 11\).

Trend: \(\hat Y = 11 + 5 X + X^2\) (which reproduces the data exactly).

Deriving the Normal Equations

STRAIGHT LINE, STEP BY STEP

The principle of least squares: choose the constants to minimise the sum of squared deviations between the actual values and the fitted ones. For \(y_t = a + bt\),

\[ E = \sum_t \big[y_t - (a + bt)\big]^2 . \]

At a minimum both partial derivatives vanish:

\[ \frac{\partial E}{\partial a} = -2\sum (y_t - a - bt) = 0 \;\Longrightarrow\; \sum y_t = na + b\sum t, \] \[ \frac{\partial E}{\partial b} = -2\sum t\,(y_t - a - bt) = 0 \;\Longrightarrow\; \sum t y_t = a\sum t + b\sum t^2 . \]

These are the normal equations. If time is coded as \(x\) with \(\sum x = 0\), they separate: \(a = \sum y/n\) and \(b = \sum xy / \sum x^2\).

PARABOLA AND THE \(k\)TH-DEGREE POLYNOMIAL

For \(y_t = a_0 + a_1 t + \cdots + a_k t^k\), setting \(\partial E/\partial a_j = 0\) multiplies the residual by \(t^j\) before summing, giving the \(k + 1\) equations

\[ \sum t^j y_t = a_0 \sum t^j + a_1 \sum t^{j+1} + a_2 \sum t^{j+2} + \cdots + a_k \sum t^{j+k}, \qquad j = 0, 1, \ldots, k . \]

For the parabola (\(k = 2\)) these are the three equations of the box above.

Printing note. The textbook's second equation reads \(\sum t y_t = a_0\sum t + a_1\sum t^2 + a_2\sum t^2 + \cdots\); the \(a_2\) term is \(a_2 \sum t^3\), as the general pattern \(t^{j+2}\) with \(j = 1\) shows.

CODING TIME

Odd \(n\): put \(x = t - (\text{middle year})\), so \(x = \ldots, -1, 0, 1, \ldots\) and \(\sum x = 0\).

Even \(n\): the middle falls between two years, so measure in half-years from it:

\[ x = \frac{t - \tfrac12(t_{n/2} + t_{n/2+1})}{\tfrac12} = 2\big(t - \text{midpoint}\big), \]

giving \(x = \ldots, -3, -1, 1, 3, \ldots\). Then \(b\) is the change per half-year, and the change per year is \(2b\).

Exponential and Power Curves

LINEARISE BY LOGARITHMS

Least squares is then applied to the logarithms, not to \(y\) itself: the fitted curve minimises the squared relative errors, roughly. That is the usual practice, and the one followed here.

Choosing a Trend Curve

THE CANDIDATE CURVES

Besides the line, parabola and polynomial: the exponential \(ab^t\) or \(ae^{bt}\); the power curve \(at^b\); the growth curves (modified exponential \(a + bc^t\), Gompertz \(ab^{c^t}\), and logistic \(k/(1 + e^{a + bt})\) with \(b < 0\)); and the second-degree curve fitted to logarithms, \(ab^tc^{t^2}\).

DIFFERENCE TESTS

With the forward difference \(\Delta y_t = y_{t+h} - y_t\), a polynomial of degree \(n\) has \(\Delta^n y_t\) constant and \(\Delta^r y_t = 0\) for \(r > n\). So:

If this is (roughly) constantfit
\(\Delta y_t\) (equal absolute changes)straight line
\(\Delta^2 y_t\)parabola
\(\Delta \log y_t\) (equal percentage changes; straight on semi-log paper)exponential
\(\Delta^2 \log y_t\)second-degree curve in logarithms
\(\Delta y_t / \Delta y_{t-1}\)modified exponential
\(\Delta \log y_t / \Delta \log y_{t-1}\)Gompertz
\(\Delta (1/y_t) / \Delta (1/y_{t-1})\)logistic

Each test is the curve's own algebra: for \(y_t = a + bc^t\), \(\Delta y_t = bc^t(c - 1)\), so the ratio of successive differences is \(c\). When \(\Delta y_t\) is skewed like a frequency curve, the Gompertz or logistic is the candidate.

The three growth curves are not linear in their constants even after taking logarithms, so they are not fitted by ordinary least squares; they are fitted by other means (for example the method of selected points, or of partial sums). The textbook spells Gompertz as “Gompetz”.

4.4 Method of Moving Averages

A moving average of period \(k\) replaces each data point by the mean of \(k\) successive observations centred on that point.

3-yearly moving average at year \(t\) \[ M_t \;=\; \dfrac{y_{t-1} + y_t + y_{t+1}}{3}. \]

For even periods (e.g. 4-yearly), one extra step of "centering" is needed by taking 2-period MA of MAs.

Merits: objective, smooths short-term fluctuations.
Demerits: loses data points at the ends; cannot extrapolate; works only when trend is roughly linear.

EXAMPLE 1 (3-yearly)

Data: 10, 12, 14, 16, 20, 22, 24, 26.

Year (t)Y3-yr MA
110—
212(10+12+14)/3 = 12.00
314(12+14+16)/3 = 14.00
416(14+16+20)/3 = 16.67
520(16+20+22)/3 = 19.33
622(20+22+24)/3 = 22.00
724(22+24+26)/3 = 24.00
826—
3-year Moving Average smooths fluctuations 123 456 78 Year (t) Raw data 3-yr MA
Fig 1.3 — The raw series (blue) zig-zags; its 3-year moving average (red) irons out the short-term ups and downs to reveal the underlying rising trend. The smoothed line is shorter — the first and last points are lost.
EXAMPLE 2 (4-yearly centered MA)

Data: 5, 7, 11, 17, 25, 31, 40, 50.

4-yr MAs (placed between years): (5+7+11+17)/4 = 10 (between yr 2 & 3), (7+11+17+25)/4 = 15 (between 3 & 4), ... etc.

Centered MA at yr 3 = (10 + 15)/2 = 12.5. Continue similarly to align with actual years.

Placing and Centring Moving Averages

ODD AND EVEN PERIODS

A moving average of period \(m\): the first is the mean of terms 1 to \(m\), the second of terms 2 to \(m + 1\), and so on, dropping one term and adding the next. Each is placed at the centre of its period.

Writing out the centred 4-period average shows what it really is: a weighted 5-term average,

\[ \frac12\left[\frac{y_1 + y_2 + y_3 + y_4}{4} + \frac{y_2 + y_3 + y_4 + y_5}{4}\right] = \frac{y_1 + 2y_2 + 2y_3 + 2y_4 + y_5}{8} . \]

So in practice: add the 4-period totals in pairs and divide by 8 (for 12 months, by 24).

WHEN A MOVING AVERAGE REMOVES THE CYCLE

A moving average removes a regular periodic movement completely provided (1) its period equals the period of the oscillation, or a multiple of it, and (2) the trend is linear.

Why. Over one full period a periodic component measured about the trend sums to zero, so it contributes nothing to any average taken over exactly one period. And the average of a straight line over a period symmetric about its centre is the line's value at the centre: \(\tfrac{1}{m}\sum_{j=-k}^{k}\big(a + b(t + j)\big) = a + bt\). If the cycles have no uniform period, the period of the moving average should be at least the mean length of the cycles; the cyclical movement is then reduced, not removed.

The Four Trend Methods Compared

MethodMeritsDemerits
Free-handsimple, flexible, any shape of trendsubjective: different people draw different curves; needs experience; no basis for prediction
Semi-averagesobjective (one line only); simpleassumes a linear trend; the means are affected by extreme values
Least squaresobjective; a trend value for every period; an equation for forecasting and interpolation; growth rate per period from \(b\)arithmetic; a new observation means refitting; the type of curve must be chosen; ignores S, C, I in forecasts
Moving averagessimple; objective; adding data does not change earlier values; removes regular cyclesno trend values at the ends; no forecasting; the period is hard to choose; affected by extreme values

Worked Problems on Trend

Eight problems in the textbook's order: two by semi-averages, four by least squares (a line with an odd and with an even number of years, a parabola, an exponential curve) and two by moving averages, followed by the exercises with their answers checked.

Source note. Every figure below was recomputed from the data in the problem, exactly where the arithmetic allows. Two of the textbook's solutions need correcting: the exponential fit (Worked Problem 6) has two slips in its logarithm table, and in both moving-average problems (Worked Problems 7 and 8) every moving total after the first is wrong, so the whole table is recomputed. Small differences in the second decimal place that come from rounding \(a\) and \(b\) before computing the trend values are noted where they occur.

A. Semi-averages

WORKED PROBLEM 1 — an even number of years

Fit a trend line by the method of semi-averages.

Year19851986198719881989
Production (Rs crores)6872757782
Year19901991199219931994
Production (Rs crores)7880859094

\(n = 10\): the halves are 1985–89 and 1990–94.

\[ \bar y_1 = \frac{68 + 72 + 75 + 77 + 82}{5} = \frac{374}{5} = 74.8, \] \[ \bar y_2 = \frac{78 + 80 + 85 + 90 + 94}{5} = \frac{427}{5} = 85.4 . \]

Each mean is plotted at the middle of its half, 1987 and 1992. The two points are 5 years apart, so the trend rises \((85.4 - 74.8)/5 = 2.12\) crores a year:

\[ y_t = 74.8 + 2.12\,(t - 1987), \]

giving, for example, \(70.56\) in 1985 and \(89.64\) in 1994.

60 70 80 90 100 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 74.8 85.4 actual data semi-average trend line Rs crores
Fig 1.4 — Worked Problem 1. Each half-mean is plotted at the middle of its half (1987 and 1992); the trend line is the straight line through the two, rising \(2.12\) crores a year.
WORKED PROBLEM 2 — an odd number of years

Fit a trend line by the method of semi-averages to sales (Rs lakhs), 1991–99: 20, 30, 24, 36, 40, 45, 38, 44, 40.

\(n = 9\) is odd, so the middle year, 1995, is left out, and the halves are 1991–94 and 1996–99:

\[ \bar y_1 = \frac{20 + 30 + 24 + 36}{4} = \frac{110}{4} = 27.5, \] \[ \bar y_2 = \frac{45 + 38 + 44 + 40}{4} = \frac{167}{4} = 41.75 . \]

They are plotted at 1992.5 and 1997.5, five years apart, so the slope is \((41.75 - 27.5)/5 = 2.85\) lakhs a year: \(y_t = 27.5 + 2.85\,(t - 1992.5)\).

B. Least Squares

WORKED PROBLEM 3 — a straight line, odd \(n\)

Bank deposits (Rs crores), 1985–93. Fit a straight line by least squares, find the trend values, and estimate the deposits in 1995.

\(n = 9\), so \(x = t - 1989\).

Year\(y\)\(x\)\(x^2\)\(xy\)Trend
198527−416−10831.69
198638−39−11435.41
198744−24−8839.12
198835−11−3542.84
19895100046.56
199058115850.27
1991502410053.99
1992543916257.71
19936241624861.42
Total419060223

With \(\sum x = 0\) the normal equations give \(419 = 9a\) and \(223 = 60b\):

\[ a = \frac{419}{9} = 46.56, \qquad b = \frac{223}{60} = 3.7167, \qquad y_t = 46.56 + 3.72\,(t - 1989) . \]

For 1995, \(x = 6\): \(\;46.556 + 6(3.7167) = 68.86\) crores.

Rounding note. The textbook rounds to \(a = 46.56\), \(b = 3.72\) before computing, which gives trend values \(31.68, 35.4, \ldots, 61.44\) and a 1995 estimate of \(68.88\). The values above are carried at full precision.

20 30 40 50 60 70 80 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1995: 68.86 bank deposits least-squares trend Rs crores
Fig 1.5 — Worked Problem 3. The fitted line \(y = 46.56 + 3.72(t - 1989)\) passes through the middle of the zig-zag; extended two years beyond the data it gives the 1995 estimate.
WORKED PROBLEM 4 — a straight line, even \(n\)

Profits (Rs thousands), 2001–06: 80, 100, 50, 120, 90, 110. Fit a straight line and find the trend values.

\(n = 6\) is even, so the origin is the midpoint 2003.5 and time is counted in half-years: \(x = 2(t - 2003.5) = 2t - 4007\), giving \(x = -5, -3, -1, 1, 3, 5\).

\[ \sum y = 550, \quad \sum x^2 = 70, \quad \sum xy = -400 - 300 - 50 + 120 + 270 + 550 = 190, \] \[ a = \frac{550}{6} = 91.67, \qquad b = \frac{190}{70} = 2.7143 \text{ per half-year}, \] \[ y_t = 91.67 + 2.7143\,x = 91.67 + 5.43\,(t - 2003.5) . \]

Trend values for 2001–06: \(78.10, 83.52, 88.95, 94.38, 99.81, 105.24\). The yearly increase is \(2b = 5.43\).

Rounding note. The textbook uses \(b = 2.71\) (so \(5.42\) a year) and obtains \(78.12, 83.54, 88.96, 94.38, 99.8, 105.22\).

WORKED PROBLEM 5 — a second-degree parabola

Sales (Rs thousand), 2005–09: 10, 12, 14, 10, 8. Fit a second-degree parabola.

\(x = t - 2007\), so \(x = -2, \ldots, 2\), and \(\sum x = \sum x^3 = 0\).

\(x\)−2−1012Total
\(y\)10121410854
\(x^2\)4101410
\(x^4\)161011634
\(xy\)−20−1201016−6
\(x^2y\)40120103294
\[ 54 = 5a + 10c, \qquad -6 = 10b, \qquad 94 = 10a + 34c . \]

So \(b = -0.6\). Doubling the first equation, \(108 = 10a + 20c\); subtracting it from the third, \(-14 = 14c\), \(c = -1\); then \(a = (54 + 10)/5 = 12.8\).

\[ y = 12.8 - 0.6x - x^2 = 12.8 - 0.6(t - 2007) - (t - 2007)^2 . \]

Trend values: \(10, 12.4, 12.8, 11.2, 7.6\). The problem asks for an estimate without naming a year; for 2010 (\(x = 3\)) the curve gives \(12.8 - 1.8 - 9 = 2\). A parabola carried beyond the data falls steeply, so an estimate like this is to be treated with caution.

6 8 10 12 14 16 2005 2006 2007 2008 2009 sales fitted parabola Rs thousand
Fig 1.6 — Worked Problem 5. A rise and fall like this cannot be followed by a straight line; the parabola \(y = 12.8 - 0.6x - x^2\) (\(x = t - 2007\)) bends with it.
WORKED PROBLEM 6 — an exponential curve \(y = ab^t\)

Sales (Rs thousands), 1982–88: 32, 47, 65, 92, 132, 190, 275. Fit \(y = ab^t\), find the trend values, and estimate the sales in 1989.

Take logarithms: \(u = \log_{10} y = A + Bx\), with \(x = t - 1985\), \(A = \log a\), \(B = \log b\).

Year\(y\)\(x\)\(u = \log y\)\(xu\)Trend
198232−31.5051−4.515332.15
198347−21.6721−3.344245.87
198465−11.8129−1.812965.46
19859201.9638093.41
198613212.12062.1206133.29
198719022.27884.5576190.20
198827532.43937.3179271.41
Total013.79264.3237

\(\sum x^2 = 28\). The normal equations give

\[ A = \frac{13.7926}{7} = 1.9704, \qquad B = \frac{4.3237}{28} = 0.1544, \] \[ a = \text{antilog}\,1.9704 = 93.41, \qquad b = \text{antilog}\,0.1544 = 1.427, \] \[ y = 93.41\,(1.427)^{t - 1985} . \]

For 1989, \(x = 4\): \(\;\log y = 1.9704 + 4(0.1544) = 2.5880\), so \(y = 387.3\) thousand rupees. The growth factor \(b = 1.427\) says sales grew about 42.7% a year.

Correction. The textbook's table has two slips. It gives \(\log 92 = 1.9445\), which is \(\log 88\); the correct value is \(1.9638\), so \(\sum u = 13.7926\), not \(13.7733\). And it gives \(3 \times 2.4393 = 7.2979\); the product is \(7.3179\), so \(\sum xu = 4.3237\), not \(4.3037\). Its fitted curve \(y = 92.81\,(1.42)^{t - 1985}\), trend values \(32.41, \ldots, 265.74\) and 1989 estimate \(377.35\) all inherit these slips.

C. Moving Averages

WORKED PROBLEM 7 — a 5-year moving average

Agricultural production (tons), 1985–2000. Calculate 5-year moving averages, and the trend-eliminated values under the additive model.

Each total adds five consecutive years and is placed against the middle one; each new total drops the oldest year and adds the next (\(161 - 25 + 25 = 161\), then \(161 - 28 + 29 = 162\), and so on). Under the additive model the trend-eliminated value is \(y - T\): the original value minus the moving average.

Year\(y\)5-yr total5-yr MA \(T\)\(y - T\)
198525———
198628———
19873216132.2−0.2
19883616132.23.8
19894016232.47.6
19902517234.4−9.4
19912919038−9.0
199242200402.0
19935422144.29.8
19945023647.22.8
19954625250.4−4.4
19964426052−8.0
19975826653.24.8
199862280566.0
199956———
200060———

Correction. In the textbook's table only the first moving total, 161, is right. The rest (\(146, 150, 163, 175, 171, 217, 215, 229, 233, 227, 231\)) cannot come from any data at all: successive totals must differ by the value added minus the value dropped (\(29 - 25\) between the 1988 and 1989 totals, for instance), and the printed ones do not. Its moving averages and trend-eliminated values are wrong with them. Its text also says the trend-eliminated values are found “by subtracting the original values from the trend values”; it is the other way round, \(y - T\), which is also what its own figures do.

20 30 40 50 60 70 1985 1988 1991 1994 1997 2000 production 5-year moving average tons
Fig 1.7 — Worked Problem 7. The 5-year moving average (red) smooths away the short swings and shows the rising trend; it has no values for the first two and last two years.
WORKED PROBLEM 8 — a 4-year centred moving average

Sales of department stores (Rs thousands), 1995–2006: 100, 120, 115, 118, 128, 132, 126, 114, 135, 120, 134, 138. Calculate 4-year moving averages.

The 4-year totals, each sitting between two years, are

\[ 453,\ 481,\ 493,\ 504,\ 500,\ 507,\ 495,\ 503,\ 527 \]

(\(100 + 120 + 115 + 118 = 453\); then \(453 - 100 + 128 = 481\); and so on). Their non-centred averages are \(113.25, 120.25, 123.25, 126, 125, 126.75, 123.75, 125.75, 131.75\). To centre them, add the totals in pairs and divide by 8:

YearSalesSum of two 4-yr totalsCentred MA
1995100——
1996120——
1997115934116.75
1998118974121.75
1999128997124.625
20001321004125.5
20011261007125.875
20021141002125.25
2003135998124.75
20041201030128.75
2005134——
2006138——

Correction. Again only the textbook's first total, 453, is right; the rest (\(463, 467, 461, 449, 470, 455, 469, 473\)) are inconsistent with the data, and so are its averages and centred values after the first. Its first centred value \(114.5\) should be \((453 + 481)/8 = 116.75\).

Exercises on Trend, with Answers Checked

PRACTICE
  1. Bank clearances (Rs crores), 1971–83: 53, 79, 76, 66, 69, 94, 105, 87, 79, 104, 97, 92, 101. Fit a trend line by semi-averages. Ans. \(\bar y_1 = 72.83\), \(\bar y_2 = 93.33\) (13 years: 1977 is left out; \(437/6\) and \(560/6\)).
  2. Profit (Rs lakhs), 1985–95: 38, 40, 49, 45, 46, 47, 52, 55, 50, 53, 56. Semi-averages. Ans. 43.6, 53.2 (1990 left out).
  3. Sugar production (thousand tons), 1975–81: 77, 88, 94, 85, 91, 98, 90. Fit a straight line. Ans. \(y = 89 + 2(t - 1978)\); trend values 83, 85, 87, 89, 91, 93, 95.
  4. Production (tons), 1976–83: 380, 400, 650, 720, 690, 600, 870, 930. Fit a straight line. Ans. \(y = 655 + 35.83\,x\) with \(x = 2(t - 1979.5)\); trend values 404.17, 475.83, 547.50, 619.17, 690.83, 762.50, 834.17, 905.83. (The textbook prints the coding as \(\tfrac{t - 1979.5}{2}\); its own trend values use \(x = -7, -5, \ldots, 7\), i.e. \(2(t - 1979.5)\). Its trend values \(404.19, \ldots, 905.81\) come from rounding \(b\) to 35.83.)
  5. Population (lakhs), 1901–71: 238.3, 252, 251.2, 278.9, 318.5, 361, 439.1, 547.9. Fit a parabola. Ans. \(y = 293.022 + 20.665\,x + 2.04\,x^2\), \(x = (t - 1936)/5\).
  6. Population (lakhs), 1911–71: 25, 25.1, 27.9, 31.9, 36.1, 43.9, 54.7. Fit \(y = ab^t\); estimate 1981. Ans. \(y = 33.61\,(1.142)^{(t - 1941)/10}\); trend values 22.55, 25.76, 29.42, 33.61, 38.39, 43.85, 50.09; 1981: 57.22 lakhs. (The textbook gives 33.60 and 57.18, differences from its rounded logarithms, and writes “crores” for the 1981 estimate; the data are in lakhs.)
  7. Annual sales (Rs thousand), 1990–2003: 239, 242, 238, 252, 257, 250, 273, 270, 268, 288, 284, 282, 300, 303. Five-year moving averages and trend-eliminated values. Ans. 245.6, 247.8, 254, 260.4, 263.6, 269.8, 276.6, 278.4, 284.4, 291.4; additive: −7.6, 4.2, 3, −10.4, 9.4, 0.2, −8.6, 9.6, −0.4, −9.4.
  8. Bank deposits (Rs thousand), 2001–10: 430, 470, 450, 460, 480, 470, 470, 500, 490, 480. Four-year moving averages. Ans. centred: 458.75, 465, 467.5, 475, 481.25, 483.75 (2003–08).

Key Take-aways