Excel for Business Analytics

Chapter 12
Forecasting, Regression, and Predictive Analytics

Bachelors Program in Business Analytics
Excel for Business Analytics   •   Bachelor

Forecasting, Regression, and Predictive Analytics

Introduction

Business analytics frequently asks a forward-looking question: what is likely to happen next, and how should an organization prepare? Forecasting uses historical and current information to estimate future values such as sales, demand, revenue, inventory requirements, staffing levels, and cash flows. Predictive analytics extends this activity by combining statistical models, explanatory variables, and validation procedures to generate and evaluate predictions.

Excel is particularly useful because it combines data preparation, visualization, formulas, statistical functions, regression tools, scenario analysis, and reporting in one environment. Nevertheless, a spreadsheet does not make an analysis reliable automatically. A forecast is a model-based estimate, not a fact. Its usefulness depends on the quality of the data, the appropriateness of the assumptions, the stability of the underlying process, and the way uncertainty is communicated.

This chapter develops practical and analytical methods for trend analysis, moving averages, exponential smoothing, seasonality, FORECAST functions, regression, and forecast accuracy measurement. It also emphasizes the distinction between association and causation, model validation, and responsible managerial interpretation.

Learning Objectives

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

  1. Explain the purpose and limitations of business forecasting.
  2. Identify trend, seasonal, cyclical, and irregular components of a time series.
  3. Calculate and implement moving-average and exponential-smoothing forecasts in Excel.
  4. Use FORECAST.LINEAR, FORECAST.ETS, TREND, and related functions appropriately.
  5. Construct and interpret simple and multiple regression models.
  6. Evaluate predictions using MAE, MSE, RMSE, MAPE, and bias measures.
  7. Distinguish association from causation and assess model assumptions.
  8. Validate forecasts using holdout data and rolling-origin procedures.
  9. Communicate predictions, uncertainty, and planning implications responsibly.

1. The Nature of Business Forecasting

A time series is a sequence of observations ordered by time, such as monthly unit sales. Four components are commonly considered:

  • Level: the typical magnitude of the series.
  • Trend: a sustained upward or downward movement.
  • Seasonality: a repeating pattern associated with a calendar or operational cycle.
  • Cyclical movement: longer-term fluctuations often related to economic conditions.
  • Irregular movement: random or unusual variation not explained by the other components.

A simple additive representation is:

Yt = Lt + Tt + St + It

Here, Yt is the observed value at time t, while Lt, Tt, St, and It represent level, trend, seasonal, and irregular components. The additive form is suitable when seasonal fluctuations have approximately constant absolute size. A multiplicative representation is:

Yt = Lt × Tt × St × It

The multiplicative form is more appropriate when seasonal variation grows with the level of the series. For example, a seasonal increase of 20 units may be reasonable for a small store but implausibly small for a much larger store whose seasonal variation is proportional to sales.

Forecasting methods are generally classified as:

MethodMain information usedTypical use
NaïveMost recent observationStable short-term series
Moving averageRecent observationsSmoothing random variation
Exponential smoothingWeighted recent historyLevel and seasonal forecasting
Trend regressionTime as an explanatory variablePersistent linear trend
Multiple regressionSeveral explanatory variablesDemand or financial drivers
Machine-learning modelComplex patterns and many predictorsLarge, structured datasets

A forecast horizon is the distance into the future being predicted. Short horizons may be influenced strongly by recent observations, whereas long horizons require assumptions about structural changes, policy, competition, and the economy.

2. Exploring Data Before Modeling

A sound forecast begins with data understanding rather than a formula. In Excel, inspect dates, frequency, missing values, duplicate records, unit definitions, outliers, and changes in measurement procedures. A line chart is often the first diagnostic. Plotting the series against time can reveal trend, seasonal repetition, sudden breaks, and unusual observations.

Useful preliminary questions include:

  • Are observations equally spaced?
  • Does a higher value represent more demand, more cost, or a different unit?
  • Are values recorded when the transaction occurred or when it was reported?
  • Were prices, product ranges, or operating policies changed?
  • Is the time series long enough to contain several seasonal cycles?
  • Are future predictor values available if a regression forecast is required?

A forecast based on monthly data should not silently combine it with quarterly data. Units and time periods must be consistent. If the model predicts units sold per month, the resulting prediction is not automatically a quarterly forecast; quarterly aggregation must be defined and applied carefully.

3. Baseline Methods and Moving Averages

The naïve forecast uses the most recent actual value:

Ft+1 = Yt

This method is difficult to improve upon for some highly persistent series and provides an important benchmark. A seasonal naïve method uses the observation from the corresponding previous season, such as last December for this December:

Ft = Yt-m

where m is the number of observations per seasonal cycle.

A k-period moving-average forecast is the arithmetic mean of the most recent k observations:

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

The method assumes that recent observations are informative and that no strong trend or changing seasonal pattern requires explicit modeling. A larger k produces more smoothing but reacts more slowly to change. A smaller k responds more quickly but retains more random variation.

Worked Example: Three-Month Moving Average

Suppose monthly orders are 120, 135, and 150 units in January, February, and March. The April forecast is:

FApril = (120 + 135 + 150) ÷ 3 = 405 ÷ 3 = 135 units

If April actual orders are 165, a three-month moving average for May is:

FMay = (135 + 150 + 165) ÷ 3 = 150 units

Notice that the forecast uses the previous forecast only if the previous forecast is the chosen input; in a standard moving average, actual observations are used whenever they are available. In Excel, if January–March are in B2:D2, =AVERAGE(B2:D2) calculates the April forecast. Copying the formula across requires careful attention to relative references.

Moving averages are transparent, but they have limitations. They lag behind a changing trend, treat the selected observations equally, and do not naturally provide an explanation based on business drivers. They may also be inappropriate when observations are strongly seasonal unless seasonal adjustment is performed first.

4. Exponential Smoothing

Simple exponential smoothing updates a forecast by combining the previous forecast with the latest actual value:

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

where 0 ≤ α ≤ 1 is the smoothing constant, Yt is the actual value, and Ft is the forecast for period t. A high α gives greater weight to recent data and responds rapidly to change. A low α produces greater smoothing.

For example, if α = 0.30, actual demand is 150, and the previous forecast is 135:

Ft+1 = 0.30 × 150 + 0.70 × 135 = 45 + 94.5 = 139.5 units

The initial forecast must be specified, perhaps as the first observation, an average of early observations, or a value estimated through optimization. Different initial values can affect short series substantially.

Simple exponential smoothing is designed primarily for series with a relatively stable level. It is not sufficient by itself for strong trend or seasonality. Holt’s method adds a trend component, while Holt–Winters methods add seasonality. Excel’s FORECAST.ETS implements exponential triple smoothing for time series with level, trend, and seasonal behavior under its supported assumptions.

5. Seasonality and Excel Forecast Functions

Seasonality can be represented with seasonal indices. Under a multiplicative model, a seasonal index above 1 indicates that the period is typically above the deseasonalized level. For example, an index of 1.20 implies a value approximately 20% above the underlying level, assuming the model is appropriate.

Excel functions commonly used for forecasting include:

FunctionPurposeImportant consideration
FORECAST.LINEARPredicts a value from a linear relationshipRequires numeric known x and y values
TRENDReturns values along a linear trendUseful for several future x values
GROWTHFits an exponential trendAssumes positive dependent values
FORECAST.ETSExponential smoothing for time seriesRequires an appropriate timeline and regularity
FORECAST.ETS.CONFINTEstimates a forecast confidence intervalInterval reflects model and data assumptions
FORECAST.ETS.SEASONALITYDetects repeated seasonal lengthDetection is not proof that seasonality is meaningful

For a linear forecast, the model is:

y = a + bx

In this expression, y is the predicted outcome, x is the predictor, a is the intercept, and b is the slope. In Excel, =FORECAST.LINEAR(new_x, known_y, known_x) returns the predicted y for a specified newx. Dates are stored numerically in Excel, so a date can serve as x, although an explicit period number can make interpretation easier.

FORECAST.ETS is appropriate when the timeline is chronological and the data support a repeating pattern. Its optional arguments allow the user to specify seasonality, data completion, and aggregation. Automatic settings are convenient but should not replace inspection of the data. A function may detect a mathematical pattern that is not operationally meaningful.

6. Regression for Explanation and Prediction

Regression estimates the relationship between a dependent variable and one or more explanatory variables. Simple linear regression is:

yi = β0 + β1xi + εi

where yi is the observed outcome, xi is the predictor, β0 is the intercept, β1 is the slope, and εi is the error term. The fitted prediction is:

ŷi = b0 + b1xi

The least-squares estimates choose coefficients that minimize the sum of squared residuals:

SSE = ∑(yi − ŷi)2

A positive slope means that larger predictor values are associated with larger predicted outcomes, holding other included variables constant. It does not, by itself, establish that changing x will cause y to change.

Multiple regression extends the model:

yi = β0 + β1x1i + β2x2i + … + βpxpi + εi

For example, weekly sales might be modeled using price, advertising expenditure, store traffic, and a holiday indicator. A binary indicator can represent a category, such as a holiday week, using 1 for presence and 0 for absence. Categorical variables with more than two categories require appropriate dummy-variable coding, with one reference category omitted to avoid perfect multicollinearity.

Interpreting Regression Output in Excel

Excel’s Data Analysis ToolPak can produce coefficients, standard errors, R2, adjusted R2, an ANOVA table, t statistics, p-values, and confidence intervals. Important interpretations include:

  • Coefficient: expected change in the outcome for a one-unit predictor increase, holding other predictors constant.
  • Standard error: estimated variability of the coefficient estimate.
  • R²: proportion of sample variation in the dependent variable explained by the fitted model.
  • Adjusted R²: a complexity-adjusted fit measure; it can decrease when unhelpful predictors are added.
  • p-value: evidence against a specified null hypothesis, often H0: βj = 0, under model assumptions.
  • Confidence interval: a range generated by a procedure with a stated long-run coverage property under repeated sampling.

A high R2 does not guarantee accurate future predictions. A model may overfit historical data, omit important variables, or exploit a coincidental trend. Conversely, a modest R2 can still be useful when individual outcomes contain substantial randomness but predictions improve planning on average.

7. Association, Causation, and Assumptions

Association means that variables move together in the observed data. Causation requires stronger evidence that an intervention or change in one variable produces a change in another, while alternative explanations are controlled. Sales and advertising may be positively associated because advertising increases demand, because managers advertise more when demand is already expected to rise, or because both are affected by seasonality.

Regression assumptions commonly include:

  1. Linearity: the conditional mean relationship is adequately represented by the specified form.
  2. Independent errors: residuals are not systematically related across observations, an especially important issue in time series.
  3. Constant variance: residual spread is reasonably stable across fitted values.
  4. Appropriate error distribution: normality is often useful for small-sample inference, though less essential for prediction with large samples.
  5. No severe multicollinearity: predictors do not contain nearly redundant information.
  6. Correct timing and no leakage: predictors used for a forecast would actually have been known at the forecast date.

Residual analysis is essential. Plot residuals against fitted values to identify nonlinearity or unequal variance, and plot residuals over time to identify autocorrelation. A residual pattern indicates that the model has left systematic information unexplained. In a time-series regression, lagged outcomes, seasonal indicators, or specialized time-series methods may be required.

8. Forecast Accuracy and Validation

Accuracy must be measured on observations not used to fit or select the model. A common split is a training period and a later test period. For time series, random splitting can leak future information into the training set, so chronological holdout or rolling-origin validation is usually preferable.

Let et = Yt − Ft be the forecast error, where Yt is the actual value and Ft is the forecast. Common measures are:

MAE = (1 ÷ n)∑|et|
MSE = (1 ÷ n)∑et2
RMSE = √[(1 ÷ n)∑et2]
MAPE = (100 ÷ n)∑|et ÷ Yt|

MAE and RMSE are expressed in the units of the outcome. RMSE penalizes large errors more heavily. MAPE is easy to communicate as a percentage but is undefined when actual values are zero and unstable when actual values are close to zero. In such cases, use MAE, RMSE, or a scale-dependent alternative.

Mean error, sometimes called forecast bias, is:

ME = (1 ÷ n)∑et

With the convention et = Yt − Ft, a positive ME indicates underforecasting on average, while a negative ME indicates overforecasting. Always state the error convention because software and organizations may use the reverse sign.

Small Accuracy Example

Suppose actual demand is 100, 120, and 110, while forecasts are 90, 130, and 100. Errors are 10, −10, and 10. Therefore:

MAE = (|10| + |−10| + |10|) ÷ 3 = 10 units
RMSE = √[(10² + (−10)² + 10²) ÷ 3] = √100 = 10 units

The mean error is 10 ÷ 3 ≈ 3.33 units, indicating underforecasting on average under this convention. The equal MAE and RMSE occur because all absolute errors have the same size.

9. Illustrative Case: Forecasting Regional Beverage Demand

Background

The following is a fictional illustrative case. A beverage distributor supplies convenience stores and must plan weekly inventory for a sparkling-water product. It has 104 weeks of sales, price, promotional-spend, temperature, and holiday data.

Problem

Stockouts have reduced service levels, while excess inventory creates storage and markdown costs. Management wants a forecast for the next eight weeks and a method that can be explained to operations staff.

Analysis

A line chart shows gradual growth and a repeating summer peak. Initial checks identify two weeks affected by a warehouse closure. Those observations are retained with a documented operational flag rather than silently deleted. The analyst creates a chronological training set covering the first 88 weeks and reserves the last 16 weeks for evaluation.

Three models are compared:

  1. A seasonal naïve model using demand from the same week of the previous year.
  2. A FORECAST.ETS model using weekly demand and a detected annual seasonal cycle.
  3. A multiple regression model using price, promotion, temperature, holiday status, trend, and seasonal indicators.

The regression model is used only for weeks in which future prices, promotions, and weather assumptions are available. If those inputs are unknown, its apparently precise forecast would be misleading. Residual plots show that the regression model underestimates the largest summer peaks. The ETS model captures recurring peaks more effectively, while the regression model is more useful for scenario analysis such as “What if promotional spending increases?”

Approach and Solution

The team selects the ETS model for the operational baseline and uses regression as a supplementary planning model. Forecasts are adjusted only through a documented override process. Each override records the reason, responsible person, date, and eventual outcome. Inventory planning adds a safety allowance based on forecast error and service-level policy rather than simply treating the point forecast as certain.

Outcome

The combined process reduces avoidable stockouts during the evaluation period and gives managers a way to examine promotion scenarios. The organization does not claim that the regression coefficient for promotion proves that promotion caused all observed sales increases; experimental or quasi-experimental evidence would be needed for a causal claim.

Learning Points

The strongest model is not necessarily the one with the most variables. A useful forecasting system combines historical accuracy, operational feasibility, explainability, data availability, and governance. Separate models may appropriately serve different decisions: ETS for routine replenishment and regression for scenario analysis.

10. Implementation Best Practices in Excel

A professional workbook should separate raw data, cleaned data, calculations, model outputs, validation, and management presentation. Use Excel Tables, named ranges, data validation, and consistent date formats. Keep formulas auditable and avoid hard-coded numbers inside long formulas. Document the forecast origin, horizon, units, model version, smoothing parameters, exclusions, and overrides.

Recommended controls include:

  • Freeze or archive the data used for each forecast run.
  • Prevent future actuals from entering historical training ranges.
  • Test formulas with simple known cases.
  • Reconcile totals to source systems.
  • Highlight missing dates and unexpected gaps.
  • Compare against naïve and seasonal-naïve benchmarks.
  • Evaluate performance by product, region, and horizon—not only in aggregate.
  • Display prediction intervals where available, not only point estimates.
  • Record assumptions about future predictors.

Conditional formatting and charts can improve monitoring, but visual polish cannot substitute for validation. Spreadsheet errors are a governance risk when a workbook controls purchasing, staffing, or financial commitments. Critical processes should use protected sheets, review checkpoints, version control, and, where appropriate, independent replication in another tool.

11. Limitations, Ethics, and Contemporary Developments

Forecasts can fail when the data-generating process changes. Product launches, pandemics, regulatory reforms, competitor entry, strikes, and pricing changes may make historical relationships unreliable. Structural breaks should prompt re-estimation, segmentation, scenario analysis, or expert review.

Ethically, analysts should not present a narrow prediction interval as certainty, conceal poor performance, or select a model solely because it supports a preferred decision. Forecasts affecting employees, credit, access to services, or pricing may create fairness concerns. Even when a model is statistically accurate overall, errors may differ systematically across locations or customer groups. Governance should address privacy, access control, retention, explainability, and accountability.

Artificial intelligence and machine learning can model nonlinear relationships and interactions, but they require careful feature design, time-aware validation, monitoring, and explainability. More complex models do not eliminate the need for domain knowledge. In many business settings, a transparent model with slightly lower historical accuracy may be preferable if managers can understand, challenge, and responsibly act on it.

Chapter Summary

Forecasting estimates future outcomes from historical and explanatory information. Time-series analysis distinguishes level, trend, seasonality, cyclical movement, and irregular variation. Naïve forecasts provide essential benchmarks; moving averages smooth recent observations; exponential smoothing gives adjustable weight to recent data; and ETS methods can represent level, trend, and seasonality. Excel functions such as FORECAST.LINEAR, TREND, and FORECAST.ETS support practical implementation.

Regression models quantify conditional associations and support prediction and scenario analysis, but coefficients do not automatically establish causation. Analysts must examine linearity, independence, variance, multicollinearity, leakage, and residual behavior. MAE, MSE, RMSE, MAPE, and mean error describe different dimensions of predictive performance. Chronological holdout and rolling-origin validation are generally safer than random splitting for time series. Finally, effective forecasting requires documentation, uncertainty communication, governance, and managerial judgment.

Key Terms

Forecast: An estimate of a future value.

Time series: Observations arranged in chronological order.

Trend: A sustained long-term direction in a series.

Seasonality: A repeating pattern linked to a calendar or operating cycle.

Moving average: The mean of a specified number of recent observations.

Exponential smoothing: A method that weights recent observations more heavily.

Smoothing constant: The parameter α controlling responsiveness in exponential smoothing.

Naïve forecast: A forecast based on the most recent or corresponding seasonal observation.

Regression: A statistical method relating an outcome to one or more predictors.

Dependent variable: The outcome being modeled or predicted.

Explanatory variable: A variable used to explain or predict an outcome.

Residual: The difference between an observed and fitted value.

R²: The sample proportion of outcome variation explained by a fitted regression.

Multicollinearity: Strong linear dependence among predictors.

Forecast error: The difference between an actual value and its forecast.

MAE: Mean absolute error, measured in outcome units.

RMSE: Root mean squared error, emphasizing large errors.

MAPE: Mean absolute percentage error, subject to problems with zero or near-zero actuals.

Data leakage: Use of information in model development that would not be available at prediction time.

Prediction interval: A range intended to represent uncertainty around a future prediction.

Review Questions

Short Answer Questions

  1. What is the difference between trend and seasonality?
  2. Why is a naïve forecast useful even when a more advanced model is available?
  3. What role does the smoothing constant α play in exponential smoothing?
  4. Why can MAPE be problematic when actual values are zero?
  5. What does a regression coefficient represent when other predictors are held constant?

Long Answer Questions

  1. Explain the assumptions, advantages, and limitations of moving-average and exponential-smoothing forecasts.
  2. Compare FORECAST.LINEAR and FORECAST.ETS, including the types of data and patterns for which each is appropriate.
  3. Explain why association between advertising and sales does not by itself prove causation.
  4. Describe a suitable model-validation procedure for a monthly time series and explain why random splitting may be inappropriate.
  5. Discuss how forecast uncertainty and model limitations should be communicated to senior managers.

Analytical / Application Questions

  1. A retailer has monthly sales with a strong annual pattern. Design an Excel-based comparison of a seasonal-naïve model, a three-month moving average, and FORECAST.ETS. Specify the training period, test period, accuracy measures, and decision rule.
  2. A regression model predicts weekly demand from price, promotion, temperature, and a holiday indicator. Explain how you would check leakage, multicollinearity, residual patterns, and the availability of future predictor values before using the model operationally.
  3. A forecast has MAE of 80 units but a mean error of −45 units using et = Yt − Ft. Interpret the results and recommend a management response.

Multiple Choice Questions with Answers

Question 1

Which method uses the most recent observation as the forecast for the next period?

A. Naïve forecasting

B. Multiple regression

C. Seasonal decomposition

D. Exponential trend fitting

Correct Answer: A. Naïve forecasting

Question 2

In simple exponential smoothing, increasing α generally makes the forecast:

A. Less responsive to recent observations

B. More responsive to recent observations

C. Independent of the latest actual value

D. Automatically seasonal

Correct Answer: B. More responsive to recent observations

Question 3

A three-period moving-average forecast uses observations 90, 120, and 150. What is the forecast?

A. 110

B. 120

C. 130

D. 360

Correct Answer: B. 120

Question 4

Which measure is expressed in the same units as the forecasted variable?

A. MAPE

B. R²

C. MAE

D. A p-value

Correct Answer: C. MAE

Question 5

Using e_t = Y_t − F_t, a negative mean error indicates that the forecasts are, on average:

A. Underestimates

B. Overestimates

C. Seasonally adjusted

D. Unbiased by definition

Correct Answer: B. Overestimates

Question 6

What is the principal danger of using future information when fitting a forecasting model?

A. Heteroscedasticity

B. Data leakage

C. Seasonality

D. Aggregation

Correct Answer: B. Data leakage

Question 7

Which statement about R² is correct?

A. It proves that predictors cause the outcome

B. It is always equal to forecast accuracy

C. It measures the proportion of sample variation explained by the fitted model

D. It cannot increase when predictors are added

Correct Answer: C. It measures the proportion of sample variation explained by the fitted model

Question 8

Why is a chronological holdout often preferred for time-series validation?

A. It preserves the distinction between past training data and future evaluation data

B. It guarantees zero forecast error

C. It removes seasonality automatically

D. It makes all predictors causal

Correct Answer: A. It preserves the distinction between past training data and future evaluation data

Question 9

If seasonal variation grows in proportion to the level of a series, which representation is generally more suitable?

A. Multiplicative

B. Additive only

C. Naïve only

D. Constant-error only

Correct Answer: A. Multiplicative

Question 10

A positive regression slope establishes that the predictor:

A. Definitely causes the outcome to rise

B. Is positively associated with the predicted outcome, conditional on the model

C. Has no relationship with the outcome

D. Must be measured in percentages

Correct Answer: B. Is positively associated with the predicted outcome, conditional on the model

Excel for Business Analytics
Chapter 12 of 15