Back to Projects

Maximizing Marketing Effectiveness with Media Mix Modeling for a Home Services Leader

Used Meta's Robyn and custom data pipelines to uncover ROI-driving media channels, reduce inefficient TV spend, and improve lead volume by 44% YoY in optimized markets.

RRobynProphetMedia Mix ModelingTime Series RegressionMarketing AnalyticsOptimization

Visualization coming soon

A Media Mix Modeling dashboard showing marketing channel effectiveness across different media channels.

Project Overview

This project focused on helping a $300M annual revenue home services client operating in Houston, Tulsa, and Oklahoma City optimize their marketing strategy. The goal was to evaluate the impact of traditional and digital media channels on lead generation using Media Mix Modeling (MMM). By analyzing historical performance and incorporating environmental and seasonal trends, we delivered evidence-based media budget recommendations to improve ROI and marketing efficiency.

Markets that adopted our recommendations saw a 44% year-over-year increase in leads, outperforming non-optimized markets, which either declined or remained flat.

Role & Impact

As the lead data scientist and project manager, I was responsible for end-to-end execution—from stakeholder alignment and planning to building robust data preprocessing pipelines and implementing the MMM using Meta's Robyn. I worked directly with client stakeholders to validate assumptions, align on KPIs, and ensure the solution would be both technically sound and immediately actionable by the marketing team.

Business Challenge

The client faced multiple challenges that hindered data-driven marketing decisions:

  • Disjointed data formats and sources with no centralized warehouse
  • No existing performance benchmarks or attribution methodology to guide budget allocation
  • Leadership resistance to change, particularly hesitance to reduce TV spend in favor of digital channels

These roadblocks made it difficult to evaluate the true effectiveness of media efforts or reallocate spend with confidence.

Solution Architecture

  • Data Ingestion & Preprocessing: Cleaned and validated disparate media, lead, and weather data from multiple vendors
  • Modeling Framework: Meta's Robyn MMM library in R
  • Insights Activation: Generated budget allocation scenarios and ROI insights shared with leadership and media buyers

Machine Learning Implementation

The core of the solution relied on time-series regression modeling with regularization and business-informed feature engineering:

  • Response Variable: Daily lead volume
  • Media Inputs: Channel-level impressions and spends for TV, search, display, and social
    • Applied adstock transformations to model carryover effects
    • Used diminishing returns curves to capture saturation effects
  • Control Variables: Weather trends, holidays, and seasonality
    • Incorporated cooling/heating degree days to model HVAC demand
    • Captured seasonal patterns relevant to home services
  • Optimizer: Robyn's budget allocator for scenario planning
    • Simulated spend reallocations to maximize expected leads
    • Generated multiple allocation scenarios for business stakeholders
  • Model Validation: Comprehensive validation approach
    • Evaluated NRMSE, bias metrics, and decomposition reasonability
    • Ensured business interpretability of coefficients

Outcomes

Lead Volume Growth

44% YoY Increase

Markets that adopted our recommendations saw a significant 44% year-over-year increase in leads, while non-optimized markets declined or remained flat.

Optimized TV Budget

28% Reduction

Successfully reduced TV spend by 28% without negative performance impact, reallocating budget to higher-performing digital channels.

Digital Channel Growth

21% Increase

Increased digital marketing spend by 21%, strategically allocated to high-performing channels like paid search, which showed higher ROI than traditional media.

Technical Challenges

Implementing this media mix modeling solution required overcoming several complex technical hurdles:

  • Disjointed & Evolving Data Structures: Required building flexible and robust data preprocessing pipelines that could adapt to new formats and sources as the project evolved.
  • No Centralized Data Warehouse: Data engineering had to be modular and transparent to support reproducibility, with careful documentation of source transformations.
  • Data Latency & Sparsity: Marketing data arrived at different cadences with varying levels of detail. We implemented techniques to normalize across time periods and smooth weekly data to increase signal clarity.
  • Adstock Parameter Tuning: Finding optimal adstock parameters for each channel was computationally intensive. We developed an efficient grid search approach to identify the best hyperparameter combinations.
  • Model Interpretability: Ensuring stakeholders could understand and trust the model outputs required careful balance between technical sophistication and business relevance in our visualizations and explanations.

Design Tradeoffs & Decisions

Several key architectural and modeling decisions were made to ensure the solution was robust, interpretable, and actionable:

  • Robyn Chosen Over Manual MMM: Automated hyperparameter tuning and optimizer features allowed for faster iteration and transparent tradeoff analysis than building a custom MMM solution.
  • Impression Data Over Spend: Modeled exposure metrics to better reflect media consumption patterns, with spend used for ROI calculations, providing more accurate attribution.
  • Environmental Controls Included: Weather variables significantly improved model accuracy, capturing HVAC seasonality that was critical for this home services business.
  • Stakeholder Communication: Delivered multiple models and visual summaries to gradually build trust in the data and shift attitudes toward digital media, overcoming initial resistance.

Technologies Used

ML & AI

  • Meta's Robyn
  • Optimization
  • Time Series Regression
  • Adstock & Saturation Curves

Development

  • R
  • Prophet
  • Dplyr
  • ggplot2

Data Inputs

  • TV, Radio, Search, Display
  • Weather, Seasonality
  • Lead Volume

Why It Matters

Business Perspective

For home services companies, lead generation is everything. Misallocated media spend means missed opportunities. This project proved that smart, data-driven budgeting could dramatically outperform legacy strategies.

In a competitive home services market, optimizing advertising spend can make the difference between growth and stagnation. Data-driven media allocation helps companies gain market share while reducing wasteful spending.

Data Science Perspective

MMM showcases how modeling can influence upstream business strategy. By building trust in data and aligning models with business context, data science can shift how organizations allocate millions in ad spend.

The true value of media mix modeling lies in its ability to quantify the previously unquantifiable—transforming marketing from an art to a data-driven science while still respecting the creative elements that make campaigns successful.

Conclusion

This project demonstrates how media mix modeling, powered by structured data engineering and automated modeling techniques, can transform marketing decision-making. By identifying the true impact of each media channel and incorporating environmental influences, the client achieved remarkable results:

  • Scaled leads by 44% in optimized markets
  • Rebalanced budget to higher-performing digital channels
  • Built trust in data for future planning cycles
  • Established a repeatable methodology for ongoing optimization

The result was a modern, evidence-backed approach to media investment that positioned this legacy home services business for sustainable growth in an increasingly competitive market.