Newsletter

Sign up to our newsletter to receive the latest updates

Rajiv Gopinath

Geometric Adstock

Last updated:   March 13, 2025

Statistics and Data Science HubGeometricAdstockMarketingAnalytics
Geometric AdstockGeometric Adstock

Geometric Adstock

Adstock is a concept in marketing mix modeling that accounts for the delayed and cumulative effects of advertising on consumer behavior. Instead of assuming that an advertisement’s influence is immediate and short-lived, Adstock recognizes that advertising exposure can have a lingering impact. This means that the way consumers perceive and respond to a brand or product can persist beyond the initial advertisement, affecting future engagement and purchasing behavior.

In practical terms, this means modifying marketing input variables to reflect the cumulative effect of past advertisements. For instance, when using impressions as input data, the number of impressions on a given day should not only include the actual impressions from that day but also a fraction of previous impressions that still influence consumers.

Table of Contents:

  1. Why Is Adstock Important in Marketing Mix Modeling?
  2. Geometric Adstock Model
  3. Applications of Geometric Adstock
  4. Advantages of Geometric Adstock
  5. Significance of Geometric Adstock
  6. Implementation of Geometric Adstock in Python
  7. Conclusion

Why Is Adstock Important in Marketing Mix Modeling?

Consider a company trying to decide between a display ad campaign on a major website and a social media ad campaign for a new product. To make an informed decision, the company uses marketing mix modeling with Adstock to analyze the effectiveness of both campaigns in driving sales.

  • The model reveals that display ads generate an immediate spike in sales, with a peak effect within the first week.
  • In contrast, social media ads show a gradual but sustained impact on sales over time.

Given this insight, the company chooses to prioritize social media ads since they provide a longer-lasting influence on consumer engagement and sales. Additionally, they extend the campaign duration to maximize its sustained effect.

Geometric Adstock Model

The Geometric Adstock model is a widely used method to quantify the carryover effect of advertising. It requires only one key parameter, theta (θ), which determines how much of an ad’s impact carries over from one time period to the next.

  • Theta (θ) represents the proportion of advertising influence that persists into the following period.
  • The higher the theta, the longer the effect of past advertising exposure.
  • This approach is straightforward, computationally efficient, and widely applied in marketing analytics.

Formula for Geometric Adstock

The formula for computing Geometric Adstock is:

Adstock(t)​=Impressions(t)​+θ×Adstock(t-1)​

Where:

  • Adstock_t = Adjusted advertising exposure at time t
  • Impressions_t = Actual advertising impressions at time t
  • θ (theta) = Decay factor, indicating how much of the prior period’s advertising carries over
  • Adstock_{t-1} = The adstock-adjusted value from the previous time period

How to Choose the Right Adstock Model

Selecting the appropriate Adstock model depends on:

  • The nature of the product or service being advertised
  • The medium used for advertising (TV, digital, social media, etc.)
  • Consumer behavior patterns and how they respond to different types of advertising

Steps to Evaluate Adstock Models:

  1. Train and validate the model using separate data sets.
    • Use historical data from an earlier period to train the model.
    • Test the model on out-of-sample data from a later period to evaluate its accuracy.
  2. Avoid overfitting by ensuring that the model captures real patterns rather than noise.
  3. Compare different decay rates (theta values) to determine which best fits the observed impact of advertising.

By following these steps, marketers can ensure that their model accurately reflects the carryover effects of advertising, leading to better decision-making and budget allocation.

Applications of Geometric Adstock

1. Marketing Mix Modeling

  • Budget Allocation – Helps marketers distribute advertising budgets efficiently by considering the carryover effects of past campaigns.
  • Optimal Frequency – Assists in determining how often ads should be shown to maximize impact without oversaturating the audience.

2. Attribution Modeling

  • Understanding Conversions – Helps attribute sales to specific advertising efforts over time.
  • Customer Journey Analysis – Allows marketers to track how multiple ad exposures contribute to consumer decision-making.

3. Campaign Performance Evaluation

  • Long-Term Impact Assessment – Measures the effectiveness of advertising over extended periods.
  • Media Planning Optimization – Helps in deciding the ideal mix of advertising channels by factoring in decay rates.

By incorporating Geometric Adstock into marketing models, businesses can make data-driven decisions and improve advertising effectiveness over time.

Advantages of Geometric Adstock

1. Captures Advertising Carryover Effects

  • Accounts for the delayed impact of advertisements, making it a realistic approach for measuring long-term brand recall.

2. Simple and Easy to Implement

  • Requires only one parameter (θ), making it computationally efficient and easy to understand.

3. Adaptable Across Different Industries

  • Can be adjusted to reflect varying consumer response patterns based on industry and media type.

Significance of Geometric Adstock

1. Smarter Budgeting

  • Ensures advertising spend is optimized by considering how past campaigns influence future sales.

2. Improved Campaign Timing

  • Helps marketers schedule ad placements for maximum engagement and retention.

3. Enhanced Marketing Attribution

  • Provides a more accurate picture of how each marketing channel contributes to long-term brand awareness and conversions.

Implementation of Geometric Adstock in Python

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Geometric Adstock function
def geometric_adstock(series, decay_factor):
    adstock_series = np.zeros_like(series, dtype=float)
    # Calculate the adstock for each period
    for t in range(len(series)):
        adstock_series[t] = series[t] + (decay_factor * adstock_series[t-1] if t > 0 else 0)
   
    return adstock_series
# Example media exposure data
media_exposure = np.array([100, 100, 300, 400, 500, 300])
# Different decay factors (theta)
decay_factors = [0.3, 0.5, 0.7, 0.9]
# DataFrame to store results for each decay factor
results_df = pd.DataFrame({'Media_Exposure': media_exposure})
# Calculate adstock values for each decay factor
for theta in decay_factors:
    adstock_values = geometric_adstock(media_exposure, theta)
    results_df[f'Adstock (Theta={theta})'] = adstock_values
# Show the DataFrame
print(results_df)
# Plot the adstock values for different decay factors
plt.figure(figsize=(10, 6))
for theta in decay_factors:
    plt.plot(results_df['Media_Exposure'], results_df[f'Adstock (Theta={theta})'], label=f'Theta={theta}')
plt.xlabel('Period')
plt.ylabel('Adstocked Impressions')
plt.title('Geometric Adstock with Different Theta Values')
plt.legend()
plt.grid(True)
plt.show()

Google Colab Code

Conclusion

In summary, the Geometric Adstock model is a crucial tool in marketing analytics, offering a structured approach to understanding how advertising influences consumer behavior over time. Its ease of use, adaptability, and ability to represent the gradual decline of ad impact make it an effective choice for marketers looking to refine their strategies. The model’s importance lies in its ability to guide budget allocation, campaign optimization, attribution analysis, and long-term performance evaluation. By recognizing the cumulative effects of advertising, Geometric Adstock enhances the accuracy of marketing assessments and supports data-driven decision-making. As the marketing landscape continues to evolve, this model remains a valuable asset for businesses striving to improve audience engagement and maximize returns on advertising investments.