Conjoint

CBC

Choice-based conjoint. Respondents see a series of tasks, each presenting two or more concepts; they pick one (choice mode), rank them (rank mode), or rate each one (rating mode). Attributes and levels live in an uploaded design asset, not the YAML — `type: cbc` references the design by name and the platform handles task generation, version assignment, and per-respondent rendering.

What CBC is

A cbc question is a multi-task choice exercise. Across the question’s lifetime the respondent works through several tasks in sequence; each task displays a small panel of concepts — synthetic product profiles built from author-defined attributes and levels — and the respondent indicates a preference.

The whole exercise renders as a single question from the YAML side. Authors don’t author the individual tasks or concepts; those are generated from a design asset (a CSV / XLSX file the platform parses) and surfaced one task at a time at runtime.

- qid: QChoiceTask
    type: cbc
    text: For each set, pick the option you'd actually buy.
    design: laptop_design_v3
    versionSource: systemBalanced

That’s the minimal shape — design: names the uploaded asset, and versionSource: systemBalanced lets the engine assign a balanced design version to each respondent (no hidden question, no - script:). If you need to control assignment yourself — crossing with a treatment cell, matching a panel’s version code — use an expression instead; see Version assignment.

QChoiceTask cbc · profiles · choice
Task 1 of 12

For each set, pick the option you'd actually buy.

Attribute Concept AConcept BConcept C
Brand AppleSamsungDell
Price $999$1,199$1,399
Storage 256GB512GB1TB

The author surface

Every property a CBC question accepts. Attributes / levels / tasks-per-respondent / concepts-per-task all live in the design asset — they’re not authorable in YAML.

PropertyTypeNotes
designstringRequired. Name of the uploaded design asset. The platform looks it up in the Designs panel store; an unrecognised name renders an empty-state error.
versionSourcereserved keyword | expressionRequired. Recommended default: systemBalanced — the engine assigns a balanced version, no hidden question needed. Also accepts systemRandom (plain random) or any DSL expression (e.g. QVersion.selected) when you need to control assignment yourself. Full mechanism in Version assignment.
styleenumprofiles (default), card_swipe, image_profiles. See Variants below.
responseModeenumchoice (default), rating, rank.
scalecode-label mapRequired when responseMode: rating. The rating scale shown beside each concept.
ratingStylestringgrid arranges per-concept ratings in a compact grid.
rankStylestringgrid (default) or list. (tap is accepted as a legacy alias for list and renders identically.)
noneOptionboolShow a “None of these” option. Choice mode only.
noneLabelstringThe label for the none option.
taskLabelstringPer-task heading template.
followUpcomma-separated qidsOther questions rendered inside each task — see In-task follow-ups.

Plus the standard shell: qid, type, title, text, instruction, required, visibility, default.errors, validation, readonly, if.

Properties that don’t apply

  • No options: / options.from: — the option set is the per-task concepts, derived from the design.
  • No min: / max: / exact: — these aren’t meaningful for choice tasks.
  • No group: — groups are an option-list construct.

Variants

Five practical variants combining style: × responseMode:. Each has its own task layout and storage shape.

profiles + choice — the default

Attributes down the rows, concepts across the columns. The respondent picks one concept (or “None”). The most common CBC shape.

QChoice cbc · profiles · choice
Task 1 of 12

Which would you actually buy?

Attribute Concept AConcept BConcept C
Brand AppleSamsungDell
Price $999$1,199$1,399
Storage 256GB512GB1TB
Battery 10 hr14 hr8 hr
None of these
- qid: QChoice
    type: cbc
    text: Which would you actually buy?
    design: laptop_design_v3
    versionSource: systemBalanced
    style: profiles
    responseMode: choice
    noneOption: True
    noneLabel: None of these

Stored as a single uppercase concept letter (A, B, C, …) or the literal string none.

profiles + rating — rate every concept

The same tabular layout, but each concept gets its own rating on a labelled scale. Useful for purchase-intent style work where you want absolute scores per concept rather than a forced choice.

QRating cbc · profiles · rating
Task 1 of 12

How likely would you be to buy each?

Attribute Concept AConcept BConcept C
Brand AppleSamsungDell
Price $999$1,199$1,399
Storage 256GB512GB1TB
Rating
12345
12345
12345
- qid: QRating
    type: cbc
    text: How likely would you be to buy each?
    design: laptop_design_v3
    versionSource: systemBalanced
    style: profiles
    responseMode: rating
    scale:
        1: Definitely would not buy
        2: Probably would not buy
        3: Might or might not buy
        4: Probably would buy
        5: Definitely would buy
    ratingStyle: grid

Stored as { ratings: { A: "4", B: "2", C: "5" } }. The scale: map is required — without it the renderer doesn’t know what scale to show.

profiles + rank — order all concepts

Each concept gets a rank position. Useful when you want a full ordering rather than a single best.

QRank cbc · profiles · rank
Task 1 of 12

Rank these in order of preference (1 = most preferred).

Attribute Concept AConcept BConcept C
Brand AppleSamsungDell
Price $999$1,199$1,399
Storage 256GB512GB1TB
Rank 2 1 3
- qid: QRank
    type: cbc
    text: Rank these in order of preference (1 = most preferred).
    design: laptop_design_v3
    versionSource: systemBalanced
    style: profiles
    responseMode: rank
    rankStyle: list

Stored as { rank: ["B", "A", "C"] }. rankStyle: controls the UI:

  • grid (default) — position grid (rank 1, 2, 3 across)
  • list — list-style with up/down arrows. tap is accepted as a legacy alias and renders identically.

card_swipe — mobile-first single-card UI

One concept visible at a time; the respondent swipes (or taps) to either pick it or move on. Designed for short attention spans and small screens. Always paired with choice mode — there’s no multi-concept comparison.

QSwipe cbc · card_swipe · choice
Task 1 of 12

Tap Pick to choose this concept, or skip to see the next.

⟵ Skip
A
Concept A
Brand Apple
Price $999
Storage 256GB
Battery 10 hr
Pick ⟶
- qid: QSwipe
    type: cbc
    text: Tap Pick to choose this concept, or skip to see the next.
    design: laptop_design_v3
    versionSource: systemBalanced
    style: card_swipe

Stored as a single concept letter — same as profiles + choice.

image_profiles — image-led concepts

Like profiles, but each concept leads with an image (read from the design asset’s image columns) and the attribute table sits beneath it. Useful when the visual identity of each concept matters — packaging, ad creative, product shots.

QImagePick cbc · image_profiles · choice
Task 1 of 12

Which packaging would you buy?

A
Concept A
Brand Apple
Price $999
Pick
B
Concept B
Brand Samsung
Price $1,199
Pick
C
Concept C
Brand Dell
Price $1,399
Pick
- qid: QImagePick
    type: cbc
    text: Which packaging would you buy?
    design: laptop_pack_design_v1
    versionSource: systemBalanced
    style: image_profiles

The design file holds image URLs alongside the attribute level indices. See Design assets.

image_profiles works with responseMode: rating and rank too — combine the way you’d combine profiles with each.

Reading CBC answers

Two layers. Question-level accessors read the current task — the one being answered right now — and are the primary surface for in-task follow-up if: conditions and {{ }} piping. Per-task accessors via Q.task(n) reach any specific task by number, useful in downstream pages once the CBC is complete.

Concepts are addressed by their 1-based column index that maps to the concept letter: concept 1 → A, concept 2 → B, concept 3 → C, …

Question-level (current task)

QChoice.selected         # CodeSet — concept code chosen in the current task
                         #   A=1, B=2, C=3, …  none → 0
QChoice.ratings(N)       # rating code concept N got (rating mode)
QChoice.rank(N)          # rank POSITION concept N got, 1-based (rank mode)
QChoice.answered         # bool — has anything been recorded yet
QChoice.task(n)          # CbcTaskSlice — see below

All three (selected, ratings(N), rank(N)) are first-class accessors usable in conditions, comparisons, .any([…]), and piping:

# choice mode
if: QChoice.selected != 0                # respondent didn't pick "none"
if: QChoice.selected.any([1, 2])         # concept A or B
{{ QChoice.selected }}                   # the chosen concept code

# rating mode
if: QChoice.ratings(1) < 3               # first concept rated 1 or 2
if: QChoice.ratings(1).any([1, 2])       # same, list form
{{ QChoice.ratings(1) }}                 # the rating code

# rank mode
if: QChoice.rank(1).any([2])             # first concept landed in rank position 2
if: QChoice.rank(1) > 3                  # first concept ranked 4th or later
{{ QChoice.rank(1) }}                    # the rank position

In an in-task follow-up these refer to the task being answered. After the CBC is complete (downstream pages), they refer to the most-recently-completed task.

Per-task (Q.task(n))

The per-task slice exposes the same shape as the question-level accessors — ratings(N) and rank(N) are methods, addressed by 1-based concept column. There’s no letter / bracket form on either side.

QChoice.task(1).selected         # CodeSet — concept code chosen in task 1
QChoice.task(1).ratings(N)       # rating code concept N got in task 1 (rating mode)
QChoice.task(1).rank(N)          # rank POSITION concept N got in task 1 (rank mode)
# Worked examples
if: QChoice.task(1).ratings(1) < 3            # concept A rated low in task 1
if: QChoice.task(2).rank(1).any([1])          # concept A ranked 1st in task 2
{{ QChoice.task(2).rank(1) }}                 # pipe concept A's rank in task 2

The mnemonic: Q.ratings(N) is the current task; Q.task(T).ratings(N) names the task explicitly. Same for rank(N).

The accessor that’s meaningful depends on the response mode. task(n).rank(N) returns nothing useful when the question is in choice mode, etc.

What’s not available

Concept-level attribute access doesn’t exist. You can’t write:

# Not supported — there's no path from a chosen concept to its
# attribute levels.
if QChoice.task(1).selected_concept.brand == "premium":
    ...

The runtime exposes the chosen concept letter, not the concept’s underlying attribute levels. The design file is authoritative for “which level was on which concept”; if you need to branch on attribute levels, you’d have to look that up out of band (server-side analysis on the export, or a duplicated hidden follow-up that captures the attribute by name).

In-task follow-ups

followUp: accepts a comma-separated list of qids. Each referenced question renders inside the same CBC task rather than as a standalone page question. The platform evaluates each follow-up’s if: against a CBC-aware context that exposes the current task’s choice through Q.selected.

- qid: QChoice
    type: cbc
    text: Which would you buy?
    design: laptop_design_v3
    versionSource: systemBalanced
    followUp: QWhy, QSwitch

- qid: QWhy
    type: open
    text: Why this one?
    if: QChoice.selected != 0    # respondent didn't pick "none"

- qid: QSwitch
    type: single
    text: Would you switch from your current product?
    if: QChoice.selected != 0
    options:
        1: Yes
        2: No

The follow-up qids aren’t validated for misspelling — a typoed follow-up is silently dropped at render time, so check for them in test runs.

Rating-gated and rank-gated follow-ups

if: on a follow-up can also branch on QCbc.ratings(N) or QCbc.rank(N). Each evaluates against the current task — the one whose answer the respondent just gave — so the follow-up shows or hides per-task.

- qid: QRating
    type: cbc
    responseMode: rating
    design: laptop_design_v3
    versionSource: systemBalanced
    scale:
        1: Definitely would not buy
        2: Probably would not buy
        3: Might or might not buy
        4: Probably would buy
        5: Definitely would buy
    followUp: QWhyLow

# Only ask when concept A scored a 1 or 2 in this task.
- qid: QWhyLow
    type: open
    text: You rated the first option low — what put you off?
    if: QRating.ratings(1).any([1, 2])

Same pattern with QRating.rank(N) when the CBC is in rank mode (e.g. if: QRating.rank(1).any([3]) — concept A ended up ranked 3rd in this task).

Version assignment

A CBC design ships as N fixed versions (blocks). Each respondent sees one version; versionSource: decides which. Three shapes:

ValueKindRecommendation
systemBalancedReserved keyword — engine-managed shuffled deal✓ Default. Use unless you have a specific reason not to.
systemRandomReserved keyword — engine-managed plain randomOnly when you explicitly need iid assignment.
Any expression (e.g. QVersion.selected)You own the assignment via a hidden question + - script:Legacy surveys, or when version must cross with a treatment cell / panel source.

Absent versionSource: means single-version / v1 — balanced is opt-in, not silent default.

- qid: QChoice
    type: cbc
    text: For each set, pick the option you'd actually buy.
    design: laptop_design_v3
    versionSource: systemBalanced

No hidden QVersion question. No - script:. No random.choice(...). No pin-to-first-visit flag. The engine assigns and records the version itself, and the design’s version number appears in the export as <qid>Version (a normal punch column) so downstream analytics and the tester panel see it just like any other answer.

How the shuffled deal works

Version assignment is a card-dealing algorithm — permuted-block randomization, borrowed from clinical trials.

Per (survey, design), the engine keeps one piece of state: an arrival counter k that ticks atomically each time a respondent starts (interview begin — not complete). From that:

block    = k // N                                          # which shuffled deck
position = k %  N                                          # seat within this deck
version  = shuffle(seed = surveyId ⊕ designName ⊕ block)[position]

Each block of N arrivals contains every version exactly once, in a fresh per-block seeded shuffle. So the sequence looks like

block 0:  [3, 1, 4, 2]      # a random shuffle of 1..N
block 1:  [2, 4, 1, 3]      # a fresh, independent shuffle
block 2:  [1, 3, 2, 4]      # …

and successive respondents are dealt one seat each. At any moment the imbalance between versions is at most ±1.

What you get

Plain random (random.randint(1, N))Least-fill (quota loop)systemBalanced (shuffled deal)
BalancePoisson spread. At 500 completes / 20 versions: sd ≈ 5.2, some versions can hit zero completes (coverage hole → tasks missing from the data)Perfect only if counts are fresh — degrades under concurrency±1 by construction, always
Under concurrencyNo effectHerd problem — many in-flight respondents read the same stale counts and stampede the current minimum. Verified: 50 in-flight → sd 12.3, worse than randomNo herd — seat k is claimed the instant the counter ticks
Per-assignment work1 RNG callRead all N cell counts + tie-breakRead 1 atomic counter
Requires expiry/reaperNoYes — reserved-slot cleanup for abandoned respondents (infrastructure Fieldbase does not have today)No
ReproducibilityNot reproducibleNot reproducibleReproducible by construction — same (surveyId, designName, block) → same shuffle
Author decisionsWhich RNG + how to seedQuota block + tie-break rule + expiry policyOne keyword

Verified end-to-end: 500 respondents / 20 versions → exactly 25 completes each (spread 0). 500 concurrent counter ticks → all distinct, still 25 each. No treadmill.

Why we recommend it

  • The real risk in CBC isn’t imbalance — it’s a version with zero completes. Chrzan (2014) showed that even extreme version-incidence imbalance doesn’t hurt utility recovery; the hazard is a coverage hole where a whole block’s tasks are simply absent from the data. systemBalanced makes that impossible.
  • Least-fill is a treadmill. It reacts to completes — a number that arrives late — so under concurrency it always chases the wrong target. The classic fix (reserve the slot at assignment) needs an abandonment/expiry mechanism, and expiry policy is a decision no researcher should have to make.
  • Zero boilerplate. No hidden QVersion, no assignment script, no hAssigned pin, no re-randomisation on Back/forward. One keyword replaces the whole pattern.

systemRandom — plain random

versionSource: systemRandom

Same shape, no balancing — the engine picks uniformly at random. Use when you specifically want iid assignment (e.g. a very large N of versions where ±1 balance across the sample isn’t meaningful anyway, or for a comparison arm against a balanced fielding).

Legacy / custom control — the expression form

Use an expression when the design version needs to be crossed with something else — a treatment cell, a panel-supplied source code, a translation — or when you’re migrating an existing survey that already has the hidden-QVersion shape.

Pair the CBC with a hidden single that carries the version, set it in a - script: upstream, and read it here:

- qid: QVersion
    type: single
    visibility: hide
    text: CBC design version assigned to this respondent
    options:
        1: Version 1
        2: Version 2
        3: Version 3
        4: Version 4
    order: random

- qid: QChoice
    type: cbc
    text: For each set, pick the option you'd actually buy.
    design: laptop_design_v3
    versionSource: QVersion.selected

Each version code corresponds to a Version column in the design file. The expression can be any DSL expression that resolves to an integer — it doesn’t have to be a .selected off a single.

Pin the assignment. If you set the hidden question in a script, wrap the assignment in an hAssigned guard so Back-and-forward navigation doesn’t re-randomise. The Treatment groups pattern below shows the canonical shape.

Common patterns

Treatment groups crossed with version

The one common case for not using systemBalanced: the version has to move together with something else — a treatment cell, a panel-supplied source, a translation — and the engine can’t know about that coupling. Hand-roll the assignment so both variables land at the same time, then feed versionSource: from the hidden question.

- qid: hTreatment
    type: single
    visibility: hide
    text: Treatment cell (1 = control, 2 = variant)
    options:
        1: Control
        2: Variant

- qid: QVersion
    type: single
    visibility: hide
    text: CBC design version
    options:
        1: V1
        2: V2
        3: V3
        4: V4

- qid: hAssigned
    type: single
    visibility: hide
    text: Has the treatment / version been assigned yet?
    options:
        1: Yes

- script: |
    if hAssigned.value != 1:
        hTreatment.set(random.choice([1, 2]))
        QVersion.set(random.choice([1, 2, 3, 4]))
        hAssigned.set(1)

- qid: QChoice
    type: cbc
    text: For each set, pick the option you'd actually buy.
    design: laptop_design_v3
    versionSource: QVersion.selected

The hAssigned flag pins both assignments — re-running the script (e.g. respondent navigation) doesn’t re-randomise. See Patterns.

Note that this pattern gives up balanced assignment — you’re back to Poisson spread on both cells, and a small study can leave a version under-covered. If you can tolerate a two-step crossing, a cleaner alternative is to keep versionSource: systemBalanced and cross the treatment cell separately after the version is known — the engine gives you a balanced version, and your script handles only the treatment.

Common errors

  • Design <name> not uploaded. — design: references a name the Designs panel doesn’t know about. Upload the file or fix the reference.
  • Silent fallback to version 1 — when versionSource: resolves to nothing valid (unanswered hidden question, type mismatch), the renderer defaults to version 1. Respondents in this state all share the same design rotation.
  • “No design data for version X, task Y” — the design file is missing rows for that version × task combination. Re-upload a complete design.

See also

  • MaxDiff — best-worst scaling, similar shape
  • Design assets — the file format design: references
  • Q.* accessors — Q.task(N) and the CBC task slice
  • Routing — using CBC selections in flow conditions via Q.selected