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: Bootstrap plot implementation #1118

Closed sumalreddy17 closed 1 week ago

sumalreddy17 commented 2 weeks ago

Note: Plotting is done with 90% accuracy expectation. Once all the 8 plots are generated and merged, a different PR will be raised if needed to take care of accuracy.

Add bootstrap confidence interval visualization

Implements error bar plot for bootstrapped ROI/CPA metrics Shows 95% confidence intervals with mean values Displays cluster information when available Includes ROAS reference line at 1.0 Handles both standalone and subplot integration Supports clear error cases with "No bootstrap results" message

Key features:

Error bars with mean point indicators CI and mean value labels Cluster information in title Clean grid styling Proper handling of missing data

Testing:

Screenshot 2024-11-06 at 4 40 24 PM

Graph plotted by R code:

Screenshot 2024-11-06 at 2 53 39 PM