Statistical Methods for Business Analytics

Chapter 14
Time-Series Analysis and Business Forecasting

Diploma in Business Analytics
Statistical Methods for Business Analytics   •   Diploma

Time-Series Analysis and Business Forecasting

Introduction

Business decisions are made over time. Managers must estimate future sales, staffing requirements, inventory demand, cash flows, website traffic, production volumes and service capacity. Time-series analysis provides a systematic way to study observations recorded in chronological order and to use historical patterns as a basis for forecasting.

A time series is not simply a list of numbers. The order of the observations matters because adjacent observations may be related. Monthly sales, for example, may show a long-run upward trend, a regular Christmas peak, unusual movements caused by economic conditions, and random variation. A useful forecast separates these influences where possible and communicates the uncertainty that remains.

Forecasting does not mean predicting the future with certainty. It means producing an informed estimate, together with an understanding of assumptions, error and risk. In business analytics, the quality of a forecasting process depends not only on the mathematical method but also on data quality, managerial interpretation, monitoring and ethical use.

Learning Objectives

By the end of this chapter, you should be able to:

  1. Explain the components of a time series: trend, seasonal, cyclical and irregular variation.
  2. Distinguish additive and multiplicative decomposition models.
  3. Calculate and interpret moving averages and weighted moving averages.
  4. Apply simple exponential smoothing and explain its limitations.
  5. Construct and interpret basic index numbers.
  6. Calculate forecast errors using MAE, MSE, RMSE and MAPE.
  7. Select and evaluate forecasting methods for business planning.
  8. Recognize limitations, governance requirements and appropriate uses of forecasting technology.

1. The Nature and Components of Time Series

A time series consists of observations indexed by time, such as daily transactions, quarterly revenue or annual employment. Let Yt denote the observed value at time t. The time interval must be consistent: monthly observations should not be mixed with quarterly observations without an appropriate transformation.

Four components are commonly considered:

  • Trend (T): the long-term direction of movement, such as sustained growth in online sales.
  • Seasonal variation (S): a regular pattern that repeats within a known calendar period, such as higher retail sales every December.
  • Cyclical variation (C): wave-like movements over several years, often associated with business cycles. Unlike seasonality, the duration and amplitude of cycles are not fixed.
  • Irregular or random variation (I): unpredictable effects such as strikes, extreme weather, data errors or one-off campaigns.

A time series may be represented by an additive model:

Yt = Tt + St + Ct + It

This model is suitable when seasonal fluctuations have approximately constant absolute size. For example, if demand is usually about 2,000 units above the trend every December, an additive description may be reasonable.

A multiplicative model is:

Yt = Tt × St × Ct × It

Here the components are expressed as proportions or indices, with a normal level often represented by 1.00 or 100. This model is suitable when seasonal variation grows as the level of the series grows. A December peak that is approximately 30% above normal is better represented multiplicatively.

The models are not interchangeable. An additive seasonal effect might be +500 units, whereas a multiplicative seasonal factor might be 1.25. Analysts should inspect graphs and business context before choosing a representation.

Stationarity and Dependence

A series is approximately stationary when its statistical properties—such as mean and variance—do not change substantially over time. Strong trend or changing seasonality makes a series non-stationary. Many simple forecasting methods can still forecast non-stationary data, but stationarity is important when interpreting correlations and building more advanced models.

Time-series observations may be autocorrelated: nearby values tend to be related. A sudden increase in demand may persist for several periods. Ignoring this dependence can produce forecasts that are too reactive or too stable. A plot of the series, a seasonal comparison and residual diagnostics should normally precede method selection.

2. A Practical Forecasting Workflow

A professional forecasting process usually follows these steps:

  1. Define the decision. Specify what will be forecast, the time horizon, the unit and the user of the forecast.
  2. Prepare the data. Check timestamps, missing values, duplicates, unit changes, outliers and unusual events.
  3. Visualize the series. Examine trend, repeated patterns, changes in variability and possible breaks.
  4. Create a benchmark. A naïve forecast, in which the next value equals the latest observed value, is a useful minimum standard.
  5. Fit candidate methods. Consider moving averages, exponential smoothing, seasonal models or regression-based methods.
  6. Validate out of sample. Reserve a later period as a test set, or use rolling-origin validation.
  7. Measure errors and inspect residuals. A low average error is not sufficient if systematic bias remains.
  8. Incorporate informed judgement. Document promotions, policy changes, competitor actions and known events.
  9. Communicate uncertainty. Provide scenarios, ranges or prediction intervals where appropriate.
  10. Monitor and revise. Forecasting is a continuing control process, not a one-time calculation.

A forecast horizon should match the decision. Daily forecasts may support staffing, monthly forecasts may support inventory and annual forecasts may support budgets. Accuracy usually declines as the horizon increases, especially when structural changes are possible.

3. Moving-Average Methods

Simple Moving Average

A moving average smooths short-term fluctuations by averaging the most recent observations. A k-period moving-average forecast for time t+1 is:

Ft+1 = (Yt + Yt-1 + ... + Yt-k+1) ÷ k

where Ft+1 is the forecast, Yt is the latest observation, and k is the number of periods included. All observations must use the same unit and time interval.

A larger k produces greater smoothing but responds more slowly to genuine changes. A smaller k reacts more quickly but retains more random noise.

Worked example. Weekly orders for four weeks are 100, 120, 110 and 130 units. The three-week moving-average forecast for week 5 is:

F5 = (120 + 110 + 130) ÷ 3 = 120 units

The value 100 is excluded because the method uses the three most recent observations.

For an odd number of periods, a moving average can also be centred to align it with the middle period. Centring is useful for describing historical trend and seasonality, but a centred average cannot directly forecast the next observation because it uses future values relative to the centre.

Weighted Moving Average

A weighted moving average gives greater influence to selected observations:

Ft+1 = (w1Yt + w2Yt-1 + ... + wkYt-k+1) ÷ (w1 + w2 + ... + wk)

where wi are non-negative weights. The weights should be chosen in advance or estimated using validation data, and the denominator ensures that the forecast remains in the same units as Y.

Using weights 0.5, 0.3 and 0.2 for the latest three observations 130, 110 and 120 gives:

F5 = 0.5(130) + 0.3(110) + 0.2(120) = 65 + 33 + 24 = 122 units

The weighted forecast is higher than the simple average because the latest observation is the highest.

Moving averages are transparent and useful for stable operational series. They do not inherently model trend or seasonality, and they lose observations at the beginning of the sample. Seasonal moving averages must be designed carefully so that comparable periods are represented.

4. Exponential Smoothing

Simple Exponential Smoothing

Simple exponential smoothing updates the previous forecast using the latest forecast error:

Ft+1 = αYt + (1 − α)Ft

where 0 ≤ α ≤ 1 is the smoothing constant, Yt is the latest actual value and Ft is the forecast for period t. The forecast and actual must have identical units.

An equivalent form is:

Ft+1 = Ft + α(Yt − Ft)

The term Yt − Ft is the latest forecast error. A high α responds rapidly to changes; a low α produces a smoother forecast. The method requires an initial forecast, often set equal to the first observation or an early average. The initialization should be documented because it can affect results in short series.

Worked example. Suppose Ft = 200, Yt = 220 and α = 0.30. Then:

Ft+1 = 0.30(220) + 0.70(200) = 66 + 140 = 206

Thus the next forecast is 206 units. The forecast moves 6 units toward the latest actual value, rather than adopting the entire change.

Simple exponential smoothing is appropriate when the series has no strong trend or seasonality. It tends to lag when a persistent trend exists. For trend, a method such as Holt’s trend-corrected smoothing is more appropriate; for trend and seasonality, Holt–Winters methods may be considered. These methods require additional parameters and careful validation.

Choosing the Smoothing Constant

The value of α should not be chosen merely because it appears intuitive. Candidate values can be tested on a validation period, selecting the value that minimizes an agreed error measure while preserving practical stability. Automated optimization is useful, but analysts must check whether the chosen value reflects a genuine pattern or an unusual historical episode.

5. Trend, Seasonality and Index Numbers

Trend Estimation

A simple linear trend model is:

Yt = a + bt + et

where a is the intercept, b is the estimated change per time period, t is a coded time variable and et is the unexplained error. The slope has the same units as Y per time period. A positive b indicates an upward fitted trend, but it does not prove that growth will continue.

When a trend is estimated using least squares, the coefficients minimize the sum of squared residuals. A trend line should not be extrapolated far beyond the observed data without business justification, because structural changes can make historical growth rates unreliable.

Seasonal Indices

A seasonal index expresses the typical level for a season relative to a reference level. Under a multiplicative model, an index of 1.20 means that the season is typically 20% above the baseline; an index of 0.80 means 20% below it. For a complete seasonal cycle, indices commonly average to 1.00, or sum to the number of seasons.

A basic seasonal adjustment is:

Seasonally adjusted value = Observed value ÷ Seasonal index

A forecast can be deseasonalized, projected for trend, and then reseasonalized:

Seasonal forecast = Deseasonalized forecast × Seasonal index

The multiplicative approach requires positive values and is unsuitable when zero or negative values occur. In such cases, an additive model or an appropriate transformation may be preferable.

Index Numbers

Index numbers allow values at different times to be compared relative to a base period. A simple price index is:

Price indext = (Pricet ÷ Pricebase) × 100

If the base-period price is 50 and the current price is 60, the index is 120. The price has increased by 20% relative to the base.

For several products, a Laspeyres quantity-weighted price index uses base-period quantities:

PL = [∑(pt q0) ÷ ∑(p0 q0)] × 100

where pt and p0 are current and base prices, and q0 is the base-period quantity. A Paasche index uses current-period quantities instead. Index numbers depend on the base period, weights, product definitions and quality adjustments. They should therefore be interpreted as analytical measures, not as perfectly objective facts.

6. Forecast-Error Measures

Let et = Yt − Ft denote the error for period t. A positive error means that actual demand exceeded the forecast; a negative error means that the forecast was too high.

Mean Error and Bias

ME = ∑et ÷ n

where n is the number of evaluated forecasts. Mean error indicates directional bias, but positive and negative errors may cancel.

Mean Absolute Error

MAE = ∑|et| ÷ n

MAE is expressed in the original units and is easy to interpret. It gives equal weight to each absolute error.

Mean Squared Error and Root Mean Squared Error

MSE = ∑et² ÷ n
RMSE = √MSE

MSE is in squared units, while RMSE returns to the original units. Both penalize large errors more heavily than MAE, making them useful when major misses are particularly costly.

Mean Absolute Percentage Error

MAPE = [100 ÷ n] × ∑(|et| ÷ |Yt|)

MAPE is interpretable as an average percentage error, but it is undefined when Yt = 0 and unstable when actual values are close to zero. It can also behave asymmetrically. Alternatives include weighted absolute percentage error or scale-dependent measures such as MAE.

Worked comparison. Suppose actual values are 100, 120 and 80, while forecasts are 90, 130 and 100. Errors are 10, −10 and −20. Therefore:

MAE = (10 + 10 + 20) ÷ 3 = 13.33 units
MSE = (100 + 100 + 400) ÷ 3 = 200 units²
RMSE = √200 ≈ 14.14 units

The mean error is (10 − 10 − 20) ÷ 3 = −6.67 units, indicating average over-forecasting. Error metrics should be computed on the same test periods when comparing methods.

7. Illustrative Case: Forecasting Café Demand

Background. The fictional Riverside Café experiences variable weekday demand. The manager must order ingredients two days in advance and wants a forecast for the next week. Twelve weeks of weekly sandwich orders are available. A plot shows moderate growth but no stable annual seasonal cycle; recent weeks are more informative because a nearby office has opened.

Problem. The café has been using a four-week simple moving average. This method is transparent but may react too slowly to the recent increase. Excess production creates waste, while underproduction causes lost sales.

Analysis. The analyst compares the existing four-week moving average with a weighted moving average and simple exponential smoothing. The last four observed weekly totals are 420, 450, 470 and 500. The four-week moving-average forecast is:

(420 + 450 + 470 + 500) ÷ 4 = 460 orders

A weighted method with weights 0.4, 0.3, 0.2 and 0.1, assigned from most recent to oldest, gives:

0.4(500) + 0.3(470) + 0.2(450) + 0.1(420) = 200 + 141 + 90 + 42 = 473 orders

The weighted method reflects the recent rise. If the previous exponential-smoothing forecast was 465 and α = 0.5, the updated forecast is:

Fnext = 0.5(500) + 0.5(465) = 482.5 orders

Approach and solution. The analyst evaluates all three methods on the preceding four weeks using rolling forecasts, rather than selecting the method from the final week alone. MAE is chosen as the primary measure because the manager wants an interpretable estimate of average order error. The analyst also reports bias and tracks waste separately, since a forecast with low MAE may still produce costly over-ordering.

The manager selects the method with the best validation performance, subject to operational constraints. A forecast of 483 orders is not treated as a guaranteed demand level. The purchasing decision includes a documented buffer for uncertain demand, supplier lead time and spoilage risk.

Outcome. The café reviews the forecast weekly, records promotions and closures, and retrains or retunes the method when the office population changes. Forecast accuracy and waste are monitored together.

Learning points. The case illustrates that method selection must reflect the decision, the cost of errors and the data-generating context. A mathematically accurate forecast can still lead to poor decisions if managers ignore capacity, waste, promotions or uncertainty.

8. Limitations, Governance and Contemporary Practice

Forecasts are vulnerable to structural breaks, missing data, changing customer behaviour, economic shocks and poor definitions. A model trained on ordinary periods may fail during a pandemic, supply disruption or major policy change. Historical patterns should not be assumed to continue automatically.

Data governance includes clear ownership, documented transformations, access controls, versioned forecasts and an audit trail for overrides. Personal or commercially sensitive data should be minimized and protected. Forecasts used for staffing, credit, pricing or service access may affect people materially; analysts should check for biased data and disparate impacts. A forecast is decision support, not a justification for discriminatory or unlawful action.

Modern software can automate model fitting, rolling validation, anomaly detection and forecast monitoring. Machine-learning systems may improve accuracy when large, rich datasets and nonlinear relationships exist, but they can be difficult to explain and may overfit. A simple benchmark should remain in the comparison. Human review is especially important when external events are known but absent from historical data.

Best practice includes:

  • defining the forecast purpose and horizon before modelling;
  • preserving a genuine holdout period;
  • comparing against naïve and seasonal benchmarks;
  • choosing error measures that reflect business costs;
  • checking residuals for systematic bias;
  • separating forecast generation from target setting;
  • documenting overrides and assumptions; and
  • monitoring performance after implementation.

Chapter Summary

Time-series analysis studies ordered observations to support decisions about the future. Trend describes long-run direction, seasonality describes regular within-cycle repetition, cycles describe longer irregular waves, and irregular variation captures unpredictable effects. Additive models are appropriate when component sizes are roughly constant; multiplicative models are appropriate when effects vary with the series level.

Simple and weighted moving averages smooth recent observations, while exponential smoothing updates forecasts using the latest error. Trend and seasonal indices help analysts separate underlying movement from recurring effects. Index numbers express relative change from a base period and depend on weights and definitions. MAE, MSE, RMSE, MAPE and mean error provide complementary evidence about forecast accuracy and bias.

A robust forecasting process combines data preparation, visualization, benchmark comparison, out-of-sample validation, business judgement, uncertainty communication and ongoing monitoring. Technology can assist, but governance, interpretability and ethical responsibility remain essential.

Key Terms

Time series: Chronologically ordered observations.

Trend: Long-term direction in a series.

Seasonality: Regular variation repeating within a known calendar cycle.

Cyclical variation: Multi-period wave-like movement without a fixed repeating length.

Irregular variation: Unpredictable or one-off movement.

Additive model: Model in which components are summed.

Multiplicative model: Model in which components are multiplied.

Stationarity: Stability of key statistical properties over time.

Autocorrelation: Association between observations at different time lags.

Moving average: Average of observations over a rolling window.

Weighted moving average: Moving average assigning unequal weights.

Exponential smoothing: Forecasting method that updates estimates using recent observations and errors.

Smoothing constant: Parameter α controlling responsiveness in exponential smoothing.

Seasonal index: Relative measure of a period’s typical seasonal level.

Index number: Relative measure compared with a base period.

Forecast error: Difference between actual and forecast value.

MAE: Mean absolute error in original units.

RMSE: Square root of mean squared error.

MAPE: Mean absolute percentage error.

Rolling validation: Repeated evaluation using successive historical forecast origins.

Review Questions

Short Answer Questions

  1. What is the difference between seasonal and cyclical variation?
  2. State the formula for a three-period simple moving-average forecast.
  3. What does a high smoothing constant imply in exponential smoothing?
  4. Why can MAPE be problematic when actual values are zero?
  5. What does a negative mean forecast error indicate?

Long Answer Questions

  1. Explain the four main components of a time series and compare additive and multiplicative decomposition.
  2. Describe a professional workflow for developing and monitoring a business forecast.
  3. Compare simple moving averages, weighted moving averages and exponential smoothing.
  4. Explain how seasonal indices can be used to deseasonalize and reseasonalize a forecast.
  5. Discuss the limitations and governance requirements of automated forecasting systems.

Analytical / Application Questions

  1. Weekly demand for three weeks is 240, 260 and 250 units. Calculate the forecast for week 4 using a three-period moving average and interpret it.
  2. A forecast is 800 units, the actual value is 860 units, and α = 0.25. Calculate the next exponential-smoothing forecast.
  3. Two methods have MAE values of 18 and 21 units, but the first has strong positive bias and the second has near-zero bias. Recommend a method for inventory planning and explain what additional information you would request.

Multiple Choice Questions with Answers

Question 1

Which component represents a regular pattern that repeats within a calendar year?

A. Trend

B. Seasonal variation

C. Cyclical variation

D. Irregular variation

Correct Answer: B. Seasonal variation

Question 2

A three-period moving average uses observations 90, 100 and 110. What is the forecast for the next period?

A. 95

B. 100

C. 105

D. 110

Correct Answer: B. 100

Question 3

In simple exponential smoothing, what is the effect of increasing α?

A. The forecast responds more slowly to new data

B. The forecast ignores the latest actual value

C. The forecast responds more quickly to new data

D. The forecast becomes identical to a seasonal index

Correct Answer: C. The forecast responds more quickly to new data

Question 4

If actual demand is 500 and forecast demand is 460, what is the forecast error using actual minus forecast?

A. −40

B. 0

C. 40

D. 960

Correct Answer: C. 40

Question 5

Which measure is expressed in the original units and gives equal weight to absolute errors?

A. MAE

B. MSE

C. MAPE

D. Seasonal index

Correct Answer: A. MAE

Question 6

A seasonal index of 1.20 indicates that the period is typically:

A. 20% below the baseline

B. 20% above the baseline

C. 120 units above the baseline

D. Exactly equal to the baseline

Correct Answer: B. 20% above the baseline

Question 7

Which error measure is undefined when an actual value is zero?

A. MAE

B. RMSE

C. MAPE

D. Mean error

Correct Answer: C. MAPE

Question 8

A four-week moving average is most likely to be unsuitable when a business has:

A. Stable level and little seasonality

B. A strong, rapidly changing trend

C. Consistent measurement units

D. A need for a transparent benchmark

Correct Answer: B. A strong, rapidly changing trend

Question 9

If the base-period price is 50 and the current price is 60, what is the simple price index?

A. 83

B. 100

C. 110

D. 120

Correct Answer: D. 120

Question 10

Why should a forecast be evaluated on a holdout or validation period?

A. To guarantee zero forecast error

B. To test performance on data not used to fit or select the method

C. To remove all seasonal variation automatically

D. To make the forecast equal to the latest observation

Correct Answer: B. To test performance on data not used to fit or select the method

Statistical Methods for Business Analytics
Chapter 14 of 15