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: a business cycle of boom and recession, typically seven to eleven years long.
  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 . \]

Notation. The irregular component is written \(I_t\) throughout this page; some books write \(R_t\) (residual) for the same thing.

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

\[ \begin{gathered} \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}, \\ j = 0, 1, \ldots, k . \end{gathered} \]

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

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).

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: 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 exercises with answers. Every figure is computed from the data in the problem; constants are carried at full precision and rounded only when written, so the trend values here may differ in the second decimal from ones computed with \(a\) and \(b\) rounded first.

A. Semi-averages

WORKED PROBLEM 1 — an even number of years

Fit a trend line by the method of semi-averages to a firm's output (thousand units).

Year20112012201320142015
Output5458576366
Year20162017201820192020
Output6470737278

\(n = 10\): the halves are 2011–15 and 2016–20.

\[ \bar y_1 = \frac{54 + 58 + 57 + 63 + 66}{5} = \frac{298}{5} = 59.6, \] \[ \bar y_2 = \frac{64 + 70 + 73 + 72 + 78}{5} = \frac{357}{5} = 71.4 . \]

Each mean is plotted at the middle of its half, 2013 and 2018. The two points are 5 years apart, so the trend rises \((71.4 - 59.6)/5 = 2.36\) thousand units a year:

\[ y_t = 59.6 + 2.36\,(t - 2013), \]

giving, for example, \(54.88\) in 2011 and \(76.12\) in 2020.

50 55 60 65 70 75 80 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 59.6 71.4 actual data semi-average trend line thousand units
Fig 1.4 — Worked Problem 1. Each half-mean is plotted at the middle of its half (2013 and 2018); the trend line is the straight line through the two, rising \(2.36\) thousand units a year.
WORKED PROBLEM 2 — an odd number of years

Fit a trend line by the method of semi-averages to sales (₹ lakhs), 2012–20: 42, 47, 45, 52, 55, 58, 54, 61, 63.

\(n = 9\) is odd, so the middle year, 2016, is left out, and the halves are 2012–15 and 2017–20:

\[ \begin{gathered} \bar y_1 = \frac{42 + 47 + 45 + 52}{4} = \frac{186}{4} = 46.5, \\ \bar y_2 = \frac{58 + 54 + 61 + 63}{4} = \frac{236}{4} = 59 . \end{gathered} \]

They are plotted at 2013.5 and 2018.5, five years apart, so the slope is \((59 - 46.5)/5 = 2.5\) lakhs a year: \(y_t = 46.5 + 2.5\,(t - 2013.5)\).

B. Least Squares

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

Deposits in a cooperative bank (₹ crores), 2012–20. Fit a straight line by least squares, find the trend values, and estimate the deposits in 2022.

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

Year\(y\)\(x\)\(x^2\)\(xy\)Trend
201231−416−12431.42
201336−39−10834.29
201434−24−6837.16
201541−11−4140.02
20164500042.89
201743114345.76
2018502410048.62
2019543916251.49
20205241620854.36
Total386060172

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

\[ a = \frac{386}{9} = 42.8889, \qquad b = \frac{172}{60} = 2.8667, \qquad y_t = 42.89 + 2.87\,(t - 2016) . \]

For 2022, \(x = 6\): \(\;42.8889 + 6(2.8667) = 60.09\) crores.

25 35 45 55 65 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2022: 60.09 deposits least-squares trend ₹ crores
Fig 1.5 — Worked Problem 3. The fitted line \(y = 42.89 + 2.87(t - 2016)\) passes through the middle of the zig-zag; extended two years beyond the data it gives the 2022 estimate.
WORKED PROBLEM 4 — a straight line, even \(n\)

Profits (₹ thousands), 2015–20: 62, 75, 58, 81, 77, 90. Fit a straight line and find the trend values.

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

\[ \begin{gathered} \sum y = 443, \quad \sum x^2 = 70, \\ \sum xy = (-5)(62) + (-3)(75) + (-1)(58) + (1)(81) + (3)(77) + (5)(90) = 169, \end{gathered} \] \[ a = \frac{443}{6} = 73.8333, \qquad b = \frac{169}{70} = 2.4143 \text{ per half-year}, \] \[ y_t = 73.83 + 2.4143\,x = 73.83 + 4.83\,(t - 2017.5) . \]

Trend values for 2015–20: \(61.76, 66.59, 71.42, 76.25, 81.08, 85.9\). The yearly increase is \(2b = 4.83\).

WORKED PROBLEM 5 — a second-degree parabola

Sales (₹ thousand), 2014–18: 17, 23, 26, 25, 19. Fit a second-degree parabola.

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

\(x\)−2−1012Total
\(y\)1723262519110
\(x^2\)4101410
\(x^4\)161011634
\(xy\)−34−23025386
\(x^2y\)682302576192
\[ 110 = 5a + 10c, \qquad 6 = 10b, \qquad 192 = 10a + 34c . \]

So \(b = 0.6\). Doubling the first equation, \(220 = 10a + 20c\); subtracting it from the third, \(-28 = 14c\), \(c = −2\); then \(a = (110 - 10c)/5 = 26\).

\[ y = 26 + 0.6x - 2x^2, \qquad x = t - 2016 . \]

Trend values: \(16.8, 23.4, 26, 24.6, 19.2\). For 2019 (\(x = 3\)) the curve gives \(9.8\). A parabola carried beyond the data turns down steeply, so an estimate like this is to be treated with caution.

14 16 18 20 22 24 26 28 30 2014 2015 2016 2017 2018 sales fitted parabola ₹ thousand
Fig 1.6 — Worked Problem 5. A rise and fall like this cannot be followed by a straight line; the fitted parabola bends with it.
WORKED PROBLEM 6 — an exponential curve \(y = ab^t\)

Online sales of a start-up (₹ lakhs), 2012–18: 24, 33, 47, 66, 91, 130, 182. Fit \(y = ab^t\), find the trend values, and estimate the sales in 2019.

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

Year\(y\)\(x\)\(u = \log y\)\(xu\)Trend
201224−31.3802−4.140623.79
201333−21.5185−3.03733.38
201447−11.6721−1.672146.84
20156601.8195065.71
20169111.95901.95992.19
201713022.11394.2279129.34
201818232.26016.7802181.46
Total012.72344.1174

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

\[ A = \frac{12.7234}{7} = 1.8176, \qquad B = \frac{4.1174}{28} = 0.1470, \] \[ \begin{gathered} a = \text{antilog}\,1.8176 = 65.71, \qquad b = \text{antilog}\,0.1470 = 1.403, \\ y = 65.71\,(1.403)^{t - 2015} . \end{gathered} \]

For 2019, \(x = 4\): \(\;\log y = 1.8176 + 4(0.1470) = 2.4058\), so \(y = 254.6\) lakhs. The growth factor \(b = 1.403\) says sales grew about 40.3% a year.

Keep four places in the logarithms throughout: one slip in a single logarithm moves both sums, and so \(a\), \(b\) and every trend value.

WORKED PROBLEM 7 — a 5-year moving average

Paddy production in a district (thousand tonnes), 2005–20. 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 (\(233 - 41 + 43 = 235\), then \(235 - 44 + 46 = 237\), 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\)
200541———
200644———
20074723346.60.4
200852235475
20094923747.41.6
20104324549−6
20114625450.8−4.8
20125526352.62.4
20136127354.66.4
20145828456.81.2
20155329559−6
20165730460.8−3.8
201766310624
201870325655
201964———
202068———

A check worth making every time: successive totals must differ by exactly the value added minus the value dropped.

35 45 55 65 75 2005 2008 2011 2014 2017 2020 production 5-year moving average thousand tonnes
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 a chain of stores (₹ lakhs), 2009–20: 210, 232, 225, 238, 246, 251, 240, 236, 258, 249, 262, 270. Calculate 4-year moving averages.

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

\[ 905,\ 941,\ 960,\ 975,\ 973,\ 985,\ 983,\ 1005,\ 1039 \]

(\(210 + 232 + 225 + 238 = 905\); then \(905 - 210 + 246 = 941\); and so on). Their non-centred averages are \(226.25, 235.25, 240, 243.75, 243.25, 246.25, 245.75, 251.25, 259.75\). To centre them, add the totals in pairs and divide by 8:

YearSalesSum of two 4-yr totalsCentred MA
2009210——
2010232——
20112251846230.75
20122381901237.625
20132461935241.875
20142511948243.5
20152401958244.75
20162361968246
20172581988248.5
20182492044255.5
2019262——
2020270——

Exercises on Trend, with Answers Checked

PRACTICE
  1. Bank clearances (₹ crores), 2008–20: 61, 66, 70, 64, 72, 77, 81, 75, 84, 88, 86, 92, 95. Fit a trend line by semi-averages. Ans. \(\bar y_1 = 68.33\), \(\bar y_2 = 86.67\) (13 years: 2014 is left out; \(410/6\) and \(520/6\)).
  2. Profit (₹ lakhs), 2010–20: 35, 38, 41, 39, 44, 47, 46, 50, 53, 51, 56. Semi-averages. Ans. 39.4, 51.2 (2015 left out).
  3. Tea production (thousand tonnes), 2014–20: 52, 58, 55, 61, 64, 62, 69. Fit a straight line. Ans. \(y = 60.14 + 2.43(t - 2017)\); trend values 52.86, 55.29, 57.71, 60.14, 62.57, 65, 67.43.
  4. Production (tonnes), 2013–20: 210, 245, 260, 300, 330, 320, 380, 405. Fit a straight line. Ans. \(y = 306.25 + 13.39\,x\) with \(x = 2(t - 2016.5)\); trend values 212.5, 239.29, 266.07, 292.86, 319.64, 346.43, 373.21, 400.
  5. Population of a town (thousands), 2013–20: 120, 128, 141, 159, 183, 212, 247, 290. Fit a parabola with \(x = 2(t - 2016.5)\). Ans. \(y = 170.125 + 12.036\,x + 0.7083\,x^2\).
  6. Population (lakhs), 1960–2020 every ten years: 12.4, 14.1, 16.3, 18.9, 21.8, 25.4, 29.3. Fit \(y = ab^t\) with \(x = (t - 1990)/10\); estimate 2030. Ans. \(y = 18.94\,(1.156)^{x}\); 2030: 33.77 lakhs.
  7. Annual sales (₹ thousand), 2007–20: 312, 318, 309, 326, 334, 329, 345, 352, 340, 361, 366, 359, 375, 382. Five-year moving averages and trend-eliminated values. Ans. 319.8, 323.2, 328.6, 337.2, 340, 345.4, 352.8, 355.6, 360.2, 368.6; additive: −10.8, 2.8, 5.4, −8.2, 5, 6.6, −12.8, 5.4, 5.8, −9.6.
  8. Deposits (₹ thousand), 2011–20: 520, 545, 530, 560, 575, 565, 590, 605, 595, 620. Four-year moving averages. Ans. centred: 545.625, 555, 565, 578.125, 586.25, 595.625 (2013–18).

Key Take-aways