TURF Analysis for Item Portfolios
Operator: Abdulla Al Fahad. How tools are built and checked
If you can only stock, launch or advertise k items out of n, the best k are not the k most popular ones. Popular items are liked by the same people, so the third best-seller often adds almost no new customers while a less popular item that appeals to everyone left out adds many. TURF, total unduplicated reach and frequency, searches for the k items that together reach the most respondents, where a respondent is reached when they like at least one item in the set.
Key features
- Reach and frequency for the best portfolio of the size you choose, with the ten best alternatives ranked
- Exhaustive search for small problems, branch and bound with proven optimality for larger ones, and greedy with one-for-one swaps when you want speed
- Items forced into the portfolio or excluded from it, respondent weights, and reach by segment
- A reach curve of the best portfolio of each size, so you see where the next item stops paying
- Shapley values that split the portfolio's reach among its items, and each item's reach on its own
- A like rule you set: a rating at or above (or at or below) a threshold, or a 1, yes or true cell
How a respondent counts as reached
The table has one row per respondent and one column per item, up to 32 items and 200,000 respondents. Cells are ratings or 0/1 answers; empty cells count as not liked, and a row with no answer to any item is left out and counted. Optional columns hold a weight (zero or more) and a segment label.
The like rule is yours. For a 5-point purchase-intent scale a threshold of 4 gives the usual top-2 box; for a rank where 1 is best, choose at or below. A binary rule accepts 1, yes, true, y or x as liked and 0, no, false or n as not liked.
Respondents with exactly the same pattern of likes are merged and their weights added, so the search works on distinct patterns rather than on rows, which is why 600 respondents in the example become 354 patterns.
How it works
Each respondent becomes a 32-bit mask of the items they like. Reach of a portfolio is the weight of masks that share a bit with it, divided by the total weight; frequency is the weighted average number of the portfolio's items that reached respondents like.
Exhaustive search tries every combination of the free items and is refused when the number of portfolios times the number of patterns would exceed 150,000,000 pattern visits. Branch and bound seeds itself with the greedy answer, walks the combinations depth first, and prunes a branch when its reach plus the sum of the largest remaining marginal gains cannot beat the tenth-best portfolio found; that bound is valid because an item never adds more reach as the portfolio grows.
Both stop at the same cap, and a search that hits it says the answer is not proven optimal. Greedy adds the item with the biggest gain each time, then tries swapping each chosen item for each unchosen one, for at most 50 passes.
The Shapley value of an item is each reached respondent's weight shared equally among the portfolio items they like, summed over respondents; the values add up to the portfolio's reach exactly.
Common use cases
- On the same survey the best pair is Chocolate and Raspberry ripple at 74.36% reach, the best four add Strawberry for 89.09%, and the gain per added flavour falls from 28.3 points (second item) to 8.9 (third) to 5.8 (fourth), so a three-flavour range is where it flattens.
- Forcing Vanilla bean in and excluding Chocolate gives Vanilla bean, Salted caramel and Raspberry ripple at 83.04%, only 0.24 points below the unconstrained best.
- The best three flavours reach 89.7% of the Adventurous segment, 81.6% of Classic and 75.9% of Fruit and light, so the portfolio is weakest where the fruit-leaning respondents are.
How to use this tool
- Drop the respondent-by-item table or load the simulated flavour survey.
- Tick the item columns and mark any that must be in the portfolio or left out.
- Set the like rule, the weight and segment columns, and the number of items.
- Press Find the best portfolio; a long search can be cancelled.
- Read the ranked portfolios, the Shapley chart and the reach curve.
- Download the ranked portfolios as CSV or the workbook.
Example
600 simulated respondents rating 12 ice-cream flavours from 1 to 5 in three segments, weighted, with a 4 or 5 counted as liking, portfolio of 3
respondent,segment,weight,Vanilla bean,Chocolate,Strawberry,...
R001,Classic,1,5,4,3,...Best three flavours and the best of each size
Chocolate + Salted caramel + Raspberry ripple: reach 83.28%, frequency 1.616 (exhaustive, 220 portfolios)
Shapley: Raspberry ripple 29.73, Chocolate 29.53, Salted caramel 24.02 points, summing to 83.28
Best single flavour (Raspberry ripple) reaches 46.07%
Reach for 1 to 8 items: 46.1, 74.4, 83.3, 89.1, 93.4, 95.3, 96.3, 97.0Tips for best results
- Read the ranked list, not only the winner: here the second-best three (Vanilla bean, Salted caramel and Raspberry ripple, 83.04%) is within 0.24 points, and you may prefer it for other reasons.
- Re-run with a stricter rule (a 5 only) to see which items hold their place when liking is harder to earn.
- Check the Shapley values: an item whose share is a few points mostly duplicates the others and is the first to drop.
Common pitfalls
TURF needs a rule for who would buy; reach changes with it. The page prints the rule it used, and you should quote it next to any reach figure.
Reach counts liking, not buying, and ignores price, availability and cannibalisation within the line.
When the page says the result is not proven optimal, treat it as a strong candidate rather than the answer: the search stopped at its work cap before ruling out every alternative.
Common errors and how to fix them
- "Exhaustive search over C(30, 12) ... is beyond the cap"
- The number of portfolios times distinct patterns exceeds 150,000,000 pattern visits. Choose branch and bound or greedy, or fix some items in.
- "The page searches at most 32 items"
- Choose fewer item columns or merge near-identical items before loading.
- "Too few items are left to fill the portfolio after the exclusions"
- Reduce the portfolio size or exclude fewer items.
- "The weight column ... has an empty, negative or non-numeric cell"
- Give every respondent a weight of zero or more, or clear the weight column to count everyone once.
How the search was checked, and where it stops being exact
On 300 random tables of 4 to 12 items and 20 to 140 weighted respondents, branch and bound returned the same ten-best list as exhaustive enumeration every time, and a small eight-respondent weighted table (reach 0.4444, 0.6667 and 0.8889 for one, two and three items) matches an independent brute-force count. Greedy with swaps fell short of the true best in 16 of those 300 tables, which is why it is labelled as a heuristic.
On a harder made-up table of 30 items and 3,000 respondents (2,963 distinct patterns) with a portfolio of 8, there are 5,852,925 portfolios. Branch and bound reaches its work cap after about 25,000 nodes and reports that it is not proven; greedy returns 90.60% reach in a few milliseconds and the best branch and bound found is the same. An exhaustive search for 12 of 30 items (86,493,225 portfolios) is refused outright.
Frequently asked questions
Is this the same as the MaxDiff page?
No. MaxDiff turns best-worst choices into preference shares for each item. TURF takes a yes/no like for each respondent and item, which can come from MaxDiff utilities above a cut-off, and asks which items together reach the most people.
Why use a threshold instead of the raw ratings?
Reach needs a yes or no. A top-2 box (4 or 5 on a 5-point scale) is the common rule, but the right line depends on how strong a liking has to be before the respondent would act, so it is a setting rather than a built-in.