Tools › Statistics › Surveys and Sampling › TURF Analysis › Example

TURF of a 15-item cafe menu: all 4,943 sets of one to five items against the greedy path

ToolTURF Analysis
Sourceoriginal
LevelGraduate

Problem

Three hundred respondents mark which of 15 drinks they would order. Evaluate every set of one to five drinks, find the highest-reach set of each size, and compare with the greedy path (add the drink that raises the reach the most, one at a time) and with the most popular drinks.

Inputs to Enter

  • Respondent rows: 300 seeded illustrative rows of 1 and 0 for 15 drinks
  • Largest set size 5; no weights; reached = at least one item of the set
Open the TURF Analysis tool

Answers

  • Sets evaluated: 15 + 105 + 455 + 1,365 + 3,003 = 4,943, every set of one to five items
  • Highest-reach set of five: Latte + Americano + Chai + Hot Chocolate + Smoothie, 259 / 300 = 86.3 % (95 % Wilson interval 82.0 to 89.8 %); the five most popular drinks reach 215 / 300 = 71.7 %
  • Size 3: the greedy path arrives at Latte + Hot Chocolate + Americano, 197 / 300 = 65.7 %; the full search finds Latte + Americano + Smoothie, 202 / 300 = 67.3 %
  • Size 4: greedy 234 / 300 = 78.0 %, full search 239 / 300 = 79.7 % (Latte + Americano + Chai + Smoothie); at sizes 1, 2 and 5 the two agree
  • The greedy bound of Nemhauser, Wolsey and Fisher for a trio is 1 − (2/3)³ = 70.4 % of the highest reach; here the greedy trio attains 65.7 / 67.3 = 97.5 % of it

Notes

Open this case in the tool: /analysis-tools/statistics/surveys/turf-analysis/?try=fifteen-item-menu. Seeded illustrative data, with a seed chosen so that the greedy path and the full search part; every one of the 4,943 reaches is checked against an independent brute-force computation in numpy. The gap of 1.7 points at sizes 3 and 4 is five respondents, well inside the sampling interval: the case shows that a greedy path can miss the highest-reach set, not that the miss is large.

More Examples for This Tool