facebookexperimental / Robyn

Robyn is an experimental, AI/ML-powered and open sourced Marketing Mix Modeling (MMM) package from Meta Marketing Science. Our mission is to democratise modeling knowledge, inspire the industry through innovation, reduce human bias in the modeling process & build a strong open source marketing science community.
https://facebookexperimental.github.io/Robyn/
MIT License
1.16k stars 344 forks source link

Robyn one pager: Ad stock and immediate_vs_carryover implementation #1117

Closed sumalreddy17 closed 2 weeks ago

sumalreddy17 commented 2 weeks ago

immediate vs carryover response visualization

Implements stacked bar chart comparing immediate and carryover effects Displays percentage response contributions with centered labels Uses consistent color scheme (#59B3D2 for immediate, coral for carryover) Formats axis with percentages Positions legend at top with two columns Matches R implementation styling and functionality Supports both standalone and subplot integration

Part of Marketing Mix Modeling visualization suite.

Testing:

Screenshot 2024-11-06 at 11 31 20 AM

Graph plotted by R:

Screenshot 2024-11-06 at 2 53 54 PM

adstock rate visualization

Implements dual-mode adstock rate visualization:

Geometric: horizontal bar chart with percentage labels Weibull: multi-panel decay curve plots with halflife indicators

Handles both CDF and PDF Weibull variants Adapts layout based on number of channels Formats axes with percentages and proper intervals Matches R implementation styling Supports both standalone and subplot integration

Testing:

Screenshot 2024-11-06 at 9 54 45 AM

Graph plotted by R:

Screenshot 2024-11-06 at 2 53 48 PM