Method
How Sounding builds panels, runs studies and decides what to tell you. Everything here is implemented
in src/sounding/ and covered by the tests in tests/.
What a simulation can and cannot tell you
A language model playing a rancher is not a rancher. It has read a great deal about ranchers, so its answers carry real information about how different framings land and which objections come up, but its absolute numbers are not calibrated to anything. Models tend to be more agreeable than real buyers, more articulate, and more consistent with each other.
So Sounding is built for ranking: which of these options should I send first, which price is clearly too high, which objections should I answer in the email. It is not built for forecasting: what reply rate will I get, how many units will I sell. The UI and every report say this, and the trust level on each report is earned only by comparing past rankings with real results.
Panels
- Segment quotas. Segment shares are turned into integer counts by largest-remainder allocation, so a panel of 80 with shares 55/30/15 has exactly 44/24/12 personas.
- Grounded attribute quotas. A CSV source with columns
attribute,value,weight(optionallysegmentandsource) is a distribution. Within each segment the same allocation assigns values to persona slots, then shuffles them. Those values are fixed: the model must use them, and they are recorded as grounded in that CSV with the row's citation. - Persona writing. The model writes the other attributes in batches (
personas_per_call), given the market description, the segment description, excerpts of the text sources (numbered S1, S2...), and the personas already written for that segment. For each attribute it must name the source id that supports it or say "invented". Unknown ids are recorded as invented. - Dedupe. Profiles are compared as token sets (Jaccard). Any persona at or above the threshold (default 0.72) to an earlier one, or with the same name, is dropped and a replacement is written, for up to two extra rounds. The panel page shows quotas met, duplicates replaced, mean pairwise similarity, distinct values per attribute and the grounded share per attribute.
- Versions. Edits and removals save a new version. Studies store the version they ran on.
Studies and the engine
- Each call carries up to
batch_sizepersonas and asks every question for each of them. - Options are shown as "Option 1", "Option 2"... Labels you give variants are never shown.
- Order rotation. With up to 4 variants every permutation is used in a shuffled cycle; with more, rotations of a random base order (a cyclic Latin square). Across calls each variant appears in each position equally often. Gabor-Granger prices are shown in a shuffled order per call.
- Samples. Each persona answers
samplestimes, in different batches with different batch-mates and orders. - Validation and retry. Output must be a JSON object with one entry per respondent. Choices must be
shown labels, ratings integers in range, price answers non-negative numbers. If any respondent fails,
the call is re-asked for just those respondents with the error list appended, up to
max_retriestimes (default 2). Every call is logged with its raw output inllm_calls. - Baseline.
baseline_callsextra calls ask the same questions of "a prospective customer in this market" with no profile. If the persona panel and the baseline agree on everything, the personas are not adding much.
Statistics
- Unit of analysis is the persona. A persona's samples are averaged first (e.g. it chose A in 1 of 2 samples: 0.5), so a persona counts once. Intervals come from resampling personas with replacement (cluster bootstrap, 2,000 resamples, percentile intervals).
- Preference. Share per variant with a 95% interval; P(best) is the fraction of resamples in which that variant had the highest share; the top-vs-second difference has its own interval. The verdict calls the result clear only if that difference interval excludes zero, and otherwise says "not significant: treat these as tied".
- Position check. The share of picks that went to whatever was shown first, against 1/n. Rotation cancels this bias out of the shares; the number is reported so you can see how strong it was.
- Likert. Mean and top-2-box (4 or 5 of 5) per variant, with intervals and the same top-vs-second test.
- Gabor-Granger. "Would buy" means 4 or 5 on a 1-5 likelihood scale. Demand share per price with intervals; revenue index = price × demand share; the share of resamples in which each price maximised revenue.
- Van Westendorp. Answers whose four prices are not in order are dropped and counted. Curves: too cheap (share whose too-cheap price is at or above p), not cheap, not expensive, too expensive. Acceptable range runs from the point of marginal cheapness (too cheap meets not cheap) to the point of marginal expensiveness (too expensive meets not expensive); also the optimal price point (too cheap meets too expensive) and the indifference point (cheap meets expensive). Each has a bootstrap interval.
- Objection themes. Objection phrases are clustered by TF-IDF cosine similarity (a single leader pass, then average-link merges until no pair is above 0.25). Themes with at least two mentions are shown with counts, the share of personas who raised them and the quotes closest to the theme's centre.
Calibration
Per study with logged outcomes:
- real rate per variant with a Wilson interval;
- hit: the simulated top variant is the real top (ties at the top count);
- Spearman and Kendall tau-b between simulated scores and real rates (only meaningful with 3+ variants);
- pairwise agreement;
- whether the real top two differ at p < 0.05 (two-proportion z-test). With 40 sends per variant, most real email tests are not clear, and a miss on an unclear test is weak evidence.
Trust level per panel:
| Level | Rule |
|---|---|
| uncalibrated | no outcomes logged |
| low | fewer than 3 calibrated studies, or hit rate under 60%, or mean Spearman under 0.3 |
| moderate | 3+ studies, hit rate 60%+, mean Spearman 0.3+ |
| high | 5+ studies, hit rate 80%+, mean Spearman 0.6+ |
These thresholds are a starting point, not a validated standard. With few studies, even "moderate" can happen by luck.