Marketing Analytics

Chapter 13
Forecasting, Optimization and Marketing Decision Models

Bachelors Program in Business Analytics
Marketing Analytics   •   Bachelor

Forecasting, Optimization and Marketing Decision Models

Introduction

Marketing analytics becomes strategically valuable when it helps managers decide not only what happened, but what is likely to happen and what should be done. Forecasting estimates future demand, sales, traffic, conversions, or customer value. Optimization identifies the best feasible allocation of scarce resources. Decision models connect these activities by incorporating objectives, constraints, uncertainty, and managerial preferences.

A forecast is not a promise. It is a conditional estimate based on historical evidence, assumptions, and information available at the time. Similarly, an optimization result is not automatically a good business decision: it is optimal only with respect to the objective function, constraints, data, and model structure supplied by the analyst. Professional marketing analytics therefore requires both technical competence and critical judgment.

This chapter develops an integrated framework for demand forecasting, scenario analysis, simulation, and optimization of marketing budgets, media, offers, and channels. It also examines uncertainty, sensitivity analysis, governance, and the practical limitations of automated recommendations.

Learning Objectives

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

  1. Distinguish the principal sources of variation in marketing demand.
  2. Build and interpret time-series and regression-based forecasts.
  3. Evaluate forecast accuracy using appropriate metrics.
  4. Construct scenarios and simulations for uncertain marketing environments.
  5. Formulate marketing allocation problems as optimization models.
  6. Interpret constraints, shadow prices, sensitivity analysis, and trade-offs.
  7. Assess ethical, operational, and governance risks in decision models.
  8. Translate analytical outputs into defensible managerial actions.

1. The Marketing Decision Problem

Marketing decisions typically have four components:

  • Decision variables: controllable choices, such as spending by channel, discount depth, number of campaigns, or inventory reserved for a segment.
  • Objective: the outcome to maximize or minimize, such as profit, contribution margin, reach, conversions, or customer retention.
  • Constraints: limitations involving budget, capacity, brand rules, inventory, legal requirements, or minimum service levels.
  • Uncertainty: unknown future values such as demand, conversion rates, competitor actions, and media response.

A simple profit identity illustrates the connection:

Profit = Revenue − Variable Cost − Marketing Cost − Fixed Cost

All terms must be measured over the same period and in the same currency. If revenue depends on price and quantity, then:

Revenue = Price × Quantity Sold

Forecasting estimates quantity sold and sometimes price response. Optimization chooses the controllable inputs that produce the best expected outcome under stated conditions.

Sources of demand variation

Observed demand may contain:

  • Level: the underlying average magnitude of demand.
  • Trend: persistent upward or downward movement.
  • Seasonality: systematic patterns repeating at a known frequency, such as weekly or annual cycles.
  • Cycles: longer, less regular movements associated with economic or industry conditions.
  • Calendar effects: holidays, paydays, school terms, or changing numbers of trading days.
  • Promotional effects: temporary changes caused by discounts, advertising, or placement.
  • Random variation: unexplained fluctuations.
  • Structural change: a lasting shift caused by technology, regulation, competition, or consumer behavior.

Failure to distinguish these components can lead to overconfidence. For example, a sales increase during a promotion may reflect discounting, seasonality, distribution expansion, or an unrelated market event.

2. Time-Series Forecasting

A time series is a sequence of observations ordered in time, such as weekly sales. Time-series methods are useful when the historical behavior of the target variable contains information about its future behavior.

Naïve and benchmark forecasts

The simplest forecast for the next period is the most recent observation:

ŷt+1 = yt

Here, yt is actual demand in period t, and ŷt+1 is the forecast for period t+1. This method is appropriate as a benchmark and can perform well when demand follows a random-walk-like process.

A seasonal naïve forecast uses the observation from the corresponding prior season:

ŷt+h = yt+h−m

where m is the seasonal period and h is the forecast horizon. For weekly data with annual seasonality, m may be approximately 52, subject to the calendar structure.

Moving averages

A simple moving-average forecast uses the mean of the most recent k observations:

ŷt+1 = (1/k) ∑i=0k−1 yt−i

The method smooths random noise but responds slowly to turning points. A larger k produces greater smoothing and less responsiveness. A smaller k responds more quickly but retains more noise.

Exponential smoothing

Simple exponential smoothing updates the forecast recursively:

ℓt = αyt + (1−α)ℓt−1

where ℓt is the estimated level and α is the smoothing parameter, with 0 < α ≤ 1. The next forecast is commonly ŷt+1 = ℓt. A high α gives more weight to recent observations; a low value produces stronger smoothing.

For data with trend, Holt’s method estimates both level and trend. For data with trend and seasonality, Holt–Winters methods add a seasonal component. Additive seasonality is appropriate when seasonal fluctuations have roughly constant absolute size; multiplicative seasonality is more suitable when seasonal effects grow with the level of demand.

Autoregressive models

An autoregressive model relates current demand to previous demand values. An AR(1) model is:

yt = c + φyt−1 + εt

where c is a constant, φ is the autoregressive coefficient, and εt is an error term with expected value approximately zero under the model. A stationary AR(1) process generally requires |φ| < 1. Autoregressive models should be checked for residual autocorrelation, changing variance, and structural breaks.

Forecast intervals

A point forecast gives one estimated value. A prediction interval gives a range intended to contain a future observation with a specified probability, subject to model assumptions. Intervals widen as the forecast horizon increases because uncertainty accumulates. Managers should use intervals when planning capacity, inventory, or cash rather than relying only on a single forecast.

3. Regression-Based Demand Forecasting

Regression forecasting explains demand using predictors such as price, advertising, distribution, competitor activity, weather, and calendar variables. A multiple linear regression may be written as:

yt = β0 + β1x1t + β2x2t + ⋯ + βpxpt + εt

Here, yt is demand, xjt is predictor j, βj is its coefficient, and εt is the unexplained error. The coefficient βj represents the expected change in demand associated with a one-unit change in xj, holding the other included predictors constant.

Regression interpretation requires care. A positive advertising coefficient does not necessarily prove that advertising caused sales, because advertising may be increased when managers anticipate high demand. Causal interpretation requires stronger design, such as randomized experiments, credible natural experiments, or appropriate causal identification strategies.

Logarithmic models and elasticities

A log-log model is:

ln(yt) = β0 + β1ln(xt) + εt

When both variables are positive, β1 is interpreted approximately as elasticity: a 1% increase in x is associated with an approximately β1% change in y, holding other factors constant. This model is useful for price and advertising response but does not eliminate endogeneity or omitted-variable bias.

Dummy variables and interactions

A binary variable can represent a promotion:

Promotiont = {1 if promotion occurs; 0 otherwise}

An interaction term can test whether advertising effectiveness differs by channel, region, or customer segment. However, adding variables indiscriminately can produce unstable coefficients, multicollinearity, and poor out-of-sample performance.

Forecasting workflow

A responsible forecasting workflow includes:

  1. Define the target, time granularity, horizon, and decision use.
  2. Inspect data quality, missing values, outliers, and changing definitions.
  3. Establish naïve and seasonal benchmarks.
  4. Split data chronologically into training and validation periods.
  5. Fit candidate models using only information available at each forecast date.
  6. Examine residuals and operational plausibility.
  7. Compare out-of-sample accuracy and forecast intervals.
  8. Document assumptions, overrides, and monitoring rules.

Randomly splitting time-series observations can cause leakage because future information may enter the training set. Rolling-origin validation is generally more appropriate: repeatedly train on an earlier window and test on the next period.

4. Forecast Accuracy and Model Selection

For actual values yt and forecasts ŷt, forecast error is:

et = yt − ŷt

Common metrics include:

MetricFormulaInterpretation
MAE[[MATH:(1/n)∑e_t
RMSE√((1/n)∑et2)Penalizes large errors more heavily
MAPE[[MATH:(100/n)∑e_t/y_t
WAPE[[MATH:100∑e_t

In each expression, n is the number of evaluation observations. The units of MAE match demand units; RMSE also matches demand units; MAPE and WAPE are percentages.

No metric is universally best. A retailer may prefer MAE because staffing decisions depend on units. A business with costly large errors may prefer RMSE. Percentage metrics can distort evaluation for low-volume products. Forecast selection should reflect the decision cost of errors, not merely statistical convenience.

Worked example: moving-average forecast

Suppose weekly orders for the last three weeks were 120, 135, and 150 units. A three-week moving-average forecast is:

ŷt+1 = (120 + 135 + 150)/3 = 135 units

If actual demand in the next week is 144 units, the error is:

et+1 = 144 − 135 = 9 units

The forecast underestimated demand by 9 units. This calculation does not establish whether the method is good; performance must be evaluated over multiple future periods and compared with benchmarks.

5. Scenarios and Simulation

A scenario is a coherent description of a possible future, such as “high competitor spending,” “economic slowdown,” or “successful product launch.” Scenarios are not forecasts with different labels. They deliberately represent alternative assumptions and are useful when structural uncertainty is substantial.

A scenario table may include:

ScenarioDemand growthMedia cost inflationConversion rateManagement use
Base4%3%2.5%Planning reference
Upside10%1%3.0%Capacity and investment test
Downside−6%8%2.0%Liquidity and risk planning

Simulation represents repeated draws from specified probability distributions. If demand is modeled as a random variable D and profit as Π(D), simulated expected profit is estimated by:

E[Π] ≈ (1/N)∑r=1N Π(Dr)

where N is the number of simulation runs and Dr is the demand draw in run r. The approximation improves as N increases, although a large number of runs cannot correct a badly specified distribution.

Simulation should preserve dependencies. For example, conversion rate and order value may both change during a recession; drawing them independently may understate or overstate risk. Correlations, parameter uncertainty, and rare events deserve explicit consideration.

Expected value and risk

If outcomes Πi have probabilities pi, expected profit is:

E[Π] = ∑ piΠi, with ∑pi = 1

Expected value is useful but incomplete. Two strategies may have the same expected profit while differing greatly in downside risk. Managers may therefore examine standard deviation, probability of loss, worst-percentile outcomes, or a risk-adjusted objective.

6. Optimization Models for Marketing Allocation

Optimization converts a decision problem into a mathematical representation. A linear programming model has a linear objective and linear constraints:

Maximize Z = ∑ cjxj

subject to:

∑ aijxj ≤ bi, for each constraint i
xj ≥ 0

Here, xj is the amount allocated to activity j, cj is its contribution per unit, aij is the use of constrained resource i per unit of activity j, and bi is the available amount of resource i. Units must be consistent: if xj is dollars, then cj should be contribution per dollar and bi should be dollars.

Budget allocation example

Assume a firm allocates a maximum of $100,000 between search and social advertising. Estimated incremental contribution is $1.80 per search dollar and $1.20 per social dollar. Search can receive at most $70,000, while social can receive at most $80,000. Let S and O denote dollars allocated to search and social.

Maximize Z = 1.80S + 1.20O

subject to:

S + O ≤ 100,000
S ≤ 70,000
O ≤ 80,000
S, O ≥ 0

Because search has the larger contribution per dollar, the solution allocates $70,000 to search and $30,000 to social. Estimated incremental contribution is:

Z = 1.80(70,000) + 1.20(30,000) = $162,000

This result is valid only if contribution estimates are appropriate, returns are linear over the allocation range, channels do not interact, and all constraints are correctly specified. If marginal returns decline, a nonlinear or piecewise-linear model may be more appropriate.

Media mix and diminishing returns

Advertising response often exhibits diminishing returns. A simple response function is:

Response(x) = a(1 − e−bx)

where a is the saturation level, b > 0 controls speed of response, and x ≥ 0 is spending. The function increases with spending but approaches a rather than increasing indefinitely. It is nonlinear and must be calibrated using credible experimental or quasi-experimental evidence.

Other useful formulations include piecewise-linear approximations, concave utility functions, and models with carryover or adstock. An adstock transformation may represent delayed advertising effects:

At = Xt + λAt−1, 0 ≤ λ < 1

where Xt is current spend or exposure, At is effective accumulated exposure, and λ is the retention parameter. The specification is an assumption, not a universal law.

Integer and mixed-integer decisions

Some choices are indivisible: launch a campaign or do not launch it; select one agency; purchase a whole number of sponsorship packages. Binary variables zj ∈ {0,1} can represent such choices. Mixed-integer programming combines continuous and discrete variables but may require greater computational effort.

Channel, offer, and customer allocation

Optimization may allocate:

  • customers to sales channels subject to service capacity;
  • discount offers subject to margin and fairness rules;
  • inventory among regions subject to demand and logistics;
  • sales leads among representatives subject to workload;
  • campaign impressions subject to reach and frequency limits.

A discount model should optimize contribution rather than revenue alone. If unit price is p, unit variable cost is c, discount is d, and quantity sold is q(d), contribution before fixed marketing cost is:

Contribution(d) = [p(1−d) − c]q(d)

The discount can increase quantity while reducing margin per unit. The optimal discount depends on the response function, not simply on the largest observed sales volume.

7. Constraints, Shadow Prices and Sensitivity

Constraints express real limits, but they can also encode policy choices. A budget constraint may be hard, while a minimum brand-investment requirement may be managerial rather than physical.

A shadow price estimates the improvement in the objective associated with relaxing a binding constraint by one unit, within the valid sensitivity range. For example, a shadow price of $0.40 per additional dollar of allowable search budget means that one more dollar of that constraint could increase modeled contribution by approximately $0.40, provided the optimal basis and assumptions remain valid.

Sensitivity analysis asks how recommendations change when inputs vary. Important tests include:

  • different demand forecasts;
  • alternative response coefficients;
  • higher media prices;
  • changed budget limits;
  • competitor actions;
  • attribution assumptions;
  • minimum and maximum channel shares;
  • correlation among uncertain variables.

A robust decision is not necessarily the one with the highest base-case objective. It may be the one that performs acceptably across plausible conditions and avoids unacceptable downside outcomes.

8. Integrated Decision Process

A practical decision process can be organized as follows:

  1. Frame the decision. Specify the decision owner, horizon, objective, and consequences of error.
  2. Prepare the data. Align definitions, time periods, costs, outcomes, and attribution windows.
  3. Forecast outcomes. Produce point estimates and uncertainty intervals.
  4. Construct alternatives. Define scenarios, policy choices, and feasible interventions.
  5. Optimize or compare. Apply an appropriate model, including constraints and interactions.
  6. Stress-test. Perform sensitivity analysis and simulation.
  7. Review governance. Check fairness, privacy, legality, interpretability, and operational feasibility.
  8. Implement with monitoring. Track realized outcomes and update the model.
  9. Learn. Compare predictions with results and improve data collection or experimentation.

The process is iterative. A forecast may reveal that additional experimentation is more valuable than immediate optimization. An optimization result may reveal that a supposedly flexible budget is actually constrained by creative capacity or inventory.

9. Illustrative Case: Northstar Grocery Delivery

Background

Northstar Grocery Delivery operates in three metropolitan regions. It uses paid search, social advertising, email, and local partnerships. Management wants to allocate a quarterly promotional budget while maintaining delivery capacity and protecting contribution margin.

This is a fictional illustrative case designed to demonstrate method rather than report a real company.

Problem

Orders are seasonal, increasing during holidays and declining after major promotional periods. Historical data show that paid media is associated with orders, but past spending was increased in high-demand periods. Consequently, simple regression may overstate media causality. The firm also faces a weekly driver-capacity limit.

Analysis

The analytics team first establishes a seasonal naïve forecast and compares it with exponential smoothing and a regression model containing calendar indicators, price, region, and media variables. Rolling-origin validation shows that the regression model has the lowest WAPE overall, but the seasonal model performs better in one region with unstable media data.

The team therefore uses a regional model rather than imposing one model on all markets. Forecast intervals are passed to a simulation. In each run, orders depend on demand conditions, media response, and conversion rate. Correlated downside draws represent a recession in which demand and conversion both decline.

The optimization model chooses spending by channel. It maximizes expected contribution while imposing:

  • total quarterly budget ≤ $500,000;
  • paid search ≤ $220,000;
  • minimum email investment of $40,000;
  • delivery capacity of 18,000 incremental orders;
  • minimum contribution margin per order;
  • no customer segment receiving a discount below the approved fairness threshold.

Because response is diminishing, the team uses piecewise-linear approximations calibrated from experiments and historical saturation patterns. The resulting recommendation does not spend the entire budget in the base case because additional spending has low incremental contribution and creates a high probability of exceeding delivery capacity.

Outcome

Management adopts a staged plan: release 80% of the recommended budget initially, reserve 20% for later weeks, and trigger additional spending only if observed conversion and capacity utilization remain within predefined limits. The plan produces a lower base-case forecast than an unconstrained maximum-spend strategy but has better downside protection and avoids excessive discounting.

Learning points

  1. Forecast accuracy varies by region and should be evaluated locally.
  2. Association between media and sales is not automatically causal.
  3. Capacity constraints can make a media-optimal plan operationally poor.
  4. Simulation reveals risk that a single deterministic optimization hides.
  5. Staged implementation creates an opportunity to learn before committing all resources.

10. Limitations, Ethics and Governance

Model limitations

Forecasts can fail after structural breaks, such as platform policy changes, pandemics, sudden regulation, or new competitors. Historical data may also reflect old targeting rules or discontinued products. Optimization can produce false precision when coefficients are uncertain. A mathematically exact solution to an incorrectly specified model is still a poor decision.

Attribution is especially difficult when customers encounter multiple channels. Last-click attribution may systematically undervalue awareness media, organic activity, or earlier interactions. Incrementality experiments, geo-experiments, holdout groups, and carefully designed causal models can improve evidence.

Ethical and regulatory issues

Marketing decision models should comply with applicable privacy, consumer-protection, competition, and anti-discrimination requirements. Analysts should consider:

  • whether data were collected with an appropriate purpose and consent;
  • whether sensitive attributes or proxies influence offers or access;
  • whether personalized prices create unjustified discrimination;
  • whether automated decisions can be explained and challenged;
  • whether retention and deletion policies are respected;
  • whether experiments expose customers to material or undisclosed harm.

Fairness constraints should be defined substantively. Treating every group identically may not produce equitable outcomes if groups face different access barriers. Conversely, optimization should not quietly encode discriminatory historical patterns.

Technology and AI

Modern platforms support automated forecasting, budget bidding, causal measurement, and machine-learning response models. These tools can process high-dimensional data and update rapidly, but they introduce risks involving data drift, opaque objective functions, feedback loops, and automated overspending. Human review should focus on assumptions, constraints, exceptions, and consequences rather than merely approving a model score.

Best practices include version control, reproducible data pipelines, model cards or documentation, audit logs, champion–challenger testing, drift monitoring, and explicit approval thresholds for automated actions.

Chapter Summary

Forecasting estimates future marketing outcomes using historical patterns, explanatory variables, or both. Time-series methods model level, trend, seasonality, and dependence over time, while regression models incorporate drivers such as price, media, distribution, and calendar effects. Forecasts must be evaluated out of sample using metrics suited to the decision, and prediction intervals should be used when uncertainty matters.

Scenarios describe coherent alternative futures, whereas simulation repeatedly evaluates outcomes under uncertain inputs. Expected value alone is insufficient when downside risk, capacity, or strategic resilience matters. Optimization formally combines an objective with decision variables and constraints. Linear programming is suitable for linear relationships; nonlinear and mixed-integer methods are needed for diminishing returns and indivisible choices.

The quality of a marketing decision model depends on data, causal evidence, assumptions, constraints, implementation, and governance. Sensitivity analysis, shadow prices, staged execution, and monitoring help prevent false precision. Ethical marketing analytics requires privacy protection, fairness review, transparency, and accountability for automated recommendations.

Key Terms

Forecast: A conditional estimate of a future value.

Time series: Ordered observations recorded over time.

Seasonality: A repeating pattern associated with a calendar frequency.

Trend: Persistent long-term movement in a variable.

Naïve forecast: A benchmark forecast based on a recent or corresponding prior observation.

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

Autoregression: A model relating a variable to its own previous values.

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

Elasticity: Percentage responsiveness of one variable to a percentage change in another.

Forecast error: The difference between actual and forecast values.

MAE: Mean absolute error, measured in the original units.

RMSE: Root mean squared error, which penalizes large errors more heavily.

Scenario: A coherent set of assumptions describing a possible future.

Simulation: Repeated evaluation of a model using generated uncertain inputs.

Decision variable: A controllable quantity selected by the decision-maker.

Objective function: The quantity an optimization model maximizes or minimizes.

Constraint: A limit or requirement restricting feasible decisions.

Shadow price: The marginal value of relaxing a binding constraint within a valid range.

Sensitivity analysis: Examination of how results change when assumptions or inputs vary.

Incrementality: The causal effect attributable to an intervention beyond what would otherwise occur.

Review Questions

Short Answer Questions

  1. What is the difference between a forecast and a scenario?
  2. Why is a seasonal naïve forecast useful as a benchmark?
  3. Define a decision variable and give one marketing example.
  4. Why can MAPE be problematic for low-volume products?
  5. What does a shadow price represent in an optimization model?

Long Answer Questions

  1. Explain the major components of marketing demand variation and discuss how confusing them can lead to poor decisions.
  2. Compare moving averages, exponential smoothing, autoregressive models, and regression forecasting.
  3. Describe a responsible workflow for developing and validating a marketing forecast.
  4. Explain how diminishing returns change the formulation of a media allocation problem.
  5. Discuss the ethical and governance risks of automated marketing optimization.

Analytical / Application Questions

  1. A retailer has three years of weekly sales data, frequent promotions, and a changing product range. Design a forecasting and validation plan, including benchmarks, model candidates, and accuracy metrics.
  2. Formulate an optimization model for allocating a fixed budget among three channels with minimum and maximum spending rules, capacity limits, and different contribution rates. State the variables, objective, and constraints.
  3. A campaign has high expected profit but a substantial probability of loss under correlated downside conditions. Explain how simulation, sensitivity analysis, and staged implementation could inform the final decision.

Multiple Choice Questions with Answers

Question 1

Which component describes a pattern that repeats at a known calendar frequency?

A. Trend

B. Seasonality

C. Random error

D. Structural break

Correct Answer: B. Seasonality

Question 2

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

A. 110 units

B. 120 units

C. 130 units

D. 360 units

Correct Answer: B. 120 units

Question 3

Which metric penalizes large forecast errors more heavily because errors are squared before averaging?

A. MAE

B. MAPE

C. RMSE

D. WAPE

Correct Answer: C. RMSE

Question 4

In a log-log regression, the coefficient on a predictor is commonly interpreted as its:

A. Absolute cost

B. Elasticity

C. Forecast interval

D. Shadow price

Correct Answer: B. Elasticity

Question 5

Which practice is most appropriate for validating a time-series forecast?

A. Randomly mixing all observations before splitting

B. Using future observations to tune the model

C. Using chronological or rolling-origin validation

D. Evaluating only the training error

Correct Answer: C. Using chronological or rolling-origin validation

Question 6

In an optimization model, the objective function specifies:

A. The data-collection method

B. The quantity to maximize or minimize

C. The forecast error distribution

D. The historical sample size

Correct Answer: B. The quantity to maximize or minimize

Question 7

A marketing allocation model has contribution rates of $2 per search dollar and $1 per social dollar, with no other constraints except a $10,000 budget. What allocation maximizes the stated linear objective?

A. $10,000 to search and $0 to social

B. $5,000 to each channel

C. $0 to search and $10,000 to social

D. The allocation cannot be determined

Correct Answer: A. $10,000 to search and $0 to social

Question 8

What does a shadow price estimate?

A. The average historical price of advertising

B. The value of relaxing a constraint by one unit within a valid range

C. The probability that a forecast is correct

D. The fixed cost of a campaign

Correct Answer: B. The value of relaxing a constraint by one unit within a valid range

Question 9

Which statement about simulation is correct?

A. It removes uncertainty from the decision

B. It repeatedly evaluates outcomes using uncertain inputs

C. It always produces a causal estimate

D. It guarantees the optimum under every future condition

Correct Answer: B. It repeatedly evaluates outcomes using uncertain inputs

Question 10

Why might a mathematically optimal media allocation still be unsuitable?

A. Optimization never uses constraints

B. The model may ignore capacity, causality, ethics, or uncertain assumptions

C. Forecasts cannot be used in optimization

D. All optimal solutions must spend the entire budget

Correct Answer: B. The model may ignore capacity, causality, ethics, or uncertain assumptions

Marketing Analytics
Chapter 13 of 15