Skip to main content

Scenario

You want product bundles backed by evidence. You analyze order history to find frequently co-purchased products, propose bundle concepts from top pairs, then validate with a Mavera focus group for synthetic audience feedback.

Architecture

Code

Example Output

Error Handling

Co-occurrence needs orders with 2+ distinct products. If your store has mostly single-item orders, lower min_count or expand the date range.
An order with 20 unique products generates 190 pairs. Cap unique titles per order to the top 10 by quantity to keep memory manageable.