Skip to main content

Technical Overview: Hierarchical Bayes for Conjoint Analysis

The full specification of OpinionX's conjoint analysis: experimental design, Hierarchical Bayes model, priors, sampler, and how every result is calculated.

Written by Daniel Kyne

🆓 Conjoint analysis, including Hierarchical Bayes estimation and every conjoint chart, is available on every OpinionX plan, including Free.

How OpinionX estimates conjoint analysis results

This is the technical reference for conjoint analysis on OpinionX: how the choice tasks are built, which statistical model turns participants' choices into preference scores, exactly how that model is specified and estimated, and how every number in your results is calculated from it. It's written for researchers who want to check the method before they rely on it, or explain it to a stakeholder.

In short, OpinionX uses choice-based conjoint (participants pick their preferred product from each set of options), estimated with a Hierarchical Bayes multinomial logit model (HB-MNL). That's the standard estimation approach in commercial choice-based conjoint, and it gives you a full set of preference scores for every individual participant, not just an average for the whole sample. OpinionX runs the analysis for you automatically, no manual work required.

At a glance

Part of the method

What OpinionX does

Question format

Choice-based conjoint (CBC) with full profiles: every profile shows one level of every attribute, and participants choose one profile per set

Experimental design

A randomised design generated separately for each participant, with no duplicate profiles within a set and no repeated sets. Optional Profile Logic rules and randomised attribute order

Opt-out

Optional "None of the Above" alternative in every set

Model

Hierarchical Bayes multinomial logit (HB-MNL)

Coding

Effect coding (levels within each attribute sum to zero)

Population distribution

Independent normal distribution per parameter (diagonal covariance)

Priors

Population means: Normal(0, 1). Population standard deviations: HalfNormal(1)

Sampler

No-U-Turn Sampler (NUTS), a form of Hamiltonian Monte Carlo: 4 chains, 1,000 warm-up and 1,000 kept draws per chain (4,000 posterior draws)

Software

Model written in PyMC 5 and sampled with nutpie (both open source)

Output

Individual-level part-worth utilities (posterior means) for every participant and every level, plus a None constant when "None of the Above" is on

Attribute importance

Range method, calculated per participant, then averaged

Scenario Simulator

First-choice rule applied to each participant's own utilities

Updates

Re-estimated automatically as new responses arrive

-- -- --

Terms used in this guide

  • Attribute → a feature of the product you're testing, such as price, storage or brand. The OpinionX builder calls attributes categories.

  • Level → one value an attribute can take, such as $9, $19 or $29. The builder calls levels options.

  • Profile → one hypothetical product made of one level from every attribute.

  • Set (or choice task) → a group of profiles shown together, from which the participant picks one.

  • Part-worth utility → a number showing how much a level adds to, or takes away from, a product's appeal for one participant. Higher means more preferred.

-- -- --

What participants see, and what data the model uses

The choice tasks

Each participant sees a series of sets. The number of profiles in each set is your Profiles per Set setting (2 by default), and the number of sets is Sets per Participant (8 by default). In each set, the participant picks the profile they'd choose. If you turn on None of the Above, every set also includes an opt-out the participant can choose instead.

If a participant skips a set (possible when the block isn't mandatory), that set is left out of the analysis completely. A skipped set tells the model nothing about preferences, so it isn't treated as a choice of any kind. Choosing "None of the Above" is different: it's a real choice, and the model uses it.

How the profiles are built (the experimental design)

OpinionX builds a fresh, randomised design for every participant when they start the survey:

  • Each profile takes one level from every attribute, picked at random.

  • No profile appears twice in the same set, and no participant sees the same set twice.

  • If you use Profile Logic, profiles are drawn only from the combinations your rules allow, so participants never see an unrealistic product.

  • If you turn on Randomize Category Order, the order of attributes in each profile is shuffled for each participant, which removes any bias from always reading attributes in the same order.

Because every participant gets a different random design, across the whole sample each level appears a roughly equal number of times and in a wide range of combinations with other levels. That's what lets the model separate the effect of each level from the others. Profile Logic rules deliberately remove some combinations, so use them only for combinations that genuinely couldn't exist.

-- -- --

The model: Hierarchical Bayes multinomial logit

A Hierarchical Bayes model has two layers. The individual layer describes how each participant made their choices. The population layer describes how preferences vary across the people in your study. The two are estimated together, which is what makes it possible to get reliable scores for each individual from only a handful of choices each.

The individual layer: how one participant chooses

Each profile's appeal to participant i is the sum of that participant's part-worth utilities for the levels it contains:

U(i, profile) = Σ x(profile, k) × β(i, k)

Here x is the profile's coded design (which levels it contains) and β(i, k) is participant i's utility for parameter k. The probability that participant i picks profile j from a set is the multinomial logit formula:

P(i chooses j) = exp(U(i, j)) / Σ exp(U(i, every profile in the set))

The model works out which utilities make each participant's real choices most likely. Sets can contain any number of profiles, and the "None of the Above" option, when it's on, is simply one more alternative in every set.

Effect coding

Within each attribute, OpinionX uses effect coding. One level of each attribute (the first level you listed for it) acts as the reference: it's coded as −1 on that attribute's other columns instead of 0. After estimation, the reference level's utility is calculated as minus the sum of the other levels' utilities:

β(reference level) = −(β(level 2) + β(level 3) + …)

The result is that every attribute's level utilities sum to zero for each participant. A utility of 0 means "average for this attribute", positive means more appealing than average and negative means less. Which level you list first makes no difference to the results; it only decides which level is calculated afterwards.

The "None of the Above" constant

When "None of the Above" is on, OpinionX adds a single extra parameter for it: a constant that's 1 for the opt-out alternative and 0 for every product profile. Each participant gets their own None utility, which measures how willing they are to walk away rather than choose any of the products on offer. This is the only alternative-specific constant in the model; every product profile is described purely by its attribute levels.

The population layer: how preferences vary between people

Each participant's utilities are treated as drawn from a population distribution with its own mean and spread for every parameter:

β(i, k) ~ Normal(μ(k), σ(k))

μ(k) ~ Normal(0, 1)

σ(k) ~ HalfNormal(1)

  • μ (population mean) → the average preference for each level across your participants.

  • σ (population standard deviation) → how much participants disagree about that level.

  • Priors → Normal(0, 1) and HalfNormal(1) are weakly informative: they keep estimates on a sensible scale without pushing them towards any particular answer. With a realistic number of participants, the data quickly outweighs them.

The model is written in the non-centred form, β(i, k) = μ(k) + σ(k) × z(i, k) with z ~ Normal(0, 1). It describes exactly the same model, but it's much easier to sample accurately, especially when participants' preferences are similar to each other.

The population distribution is independent per parameter (a diagonal covariance matrix): the model estimates a spread for each level, but not population-level correlations between levels. This keeps the number of population parameters small, so estimates stay stable at the sample sizes most studies use. It doesn't stop individual results from showing patterns such as "people who prefer the premium brand also tolerate higher prices", because each participant's utilities are still estimated from their own choices.

Why the hierarchy matters: borrowing strength

One participant's 8 choices aren't enough to pin down a dozen or more utilities on their own. The population layer solves this. Each participant's estimates are pulled towards the population average by an amount that depends on how much information their own choices provide: participants who made fewer or less consistent choices are pulled in more, and participants whose choices clearly show a strong preference keep it. This "shrinkage" prevents extreme, overfitted scores and is the reason HB gives usable individual-level results from short surveys.

-- -- --

How the model is estimated

OpinionX estimates the model with Markov Chain Monte Carlo (MCMC), which builds up the full posterior distribution (every combination of utilities consistent with the data, weighted by how likely it is) by drawing thousands of samples from it.

  • Sampler: the No-U-Turn Sampler (NUTS), an adaptive form of Hamiltonian Monte Carlo that uses the gradient of the model to move through the posterior efficiently. OpinionX uses nutpie, an open-source NUTS implementation, to run it on a model written in PyMC.

  • Chains: 4 independent chains run in parallel from different starting points.

  • Warm-up: the first 1,000 iterations of each chain tune the sampler and are thrown away.

  • Draws: the next 1,000 iterations of each chain are kept, giving 4,000 posterior draws in total.

  • Point estimate: each participant's final utility for each level is the mean of their 4,000 posterior draws.

  • Reproducibility: the sampler uses a fixed random seed, so the same data gives the same estimates every time.

In larger studies, OpinionX fits the model on groups of participants rather than all at once, so results stay quick to calculate: groups hold up to 500 participants, fewer when your study has many levels (the group size is 750 − 9 × total number of levels, kept between 100 and 500). Each group is large enough to estimate the population layer well, and most studies fit in a single group.

You don't need to start anything. OpinionX re-estimates the model automatically as new responses arrive, and your charts update when it finishes.

-- -- --

How each result is calculated

Everything in your conjoint results comes from the individual-level utilities. Because each participant has their own utilities, filtering by a segment simply recalculates the averages below for the people in that segment; nothing has to be re-estimated.

Attribute importance

Attribute importance uses the standard range method, calculated for each participant and then averaged:

  1. For each participant, take the range of their utilities within each attribute (their highest level utility minus their lowest).

  2. Divide each attribute's range by the sum of that participant's ranges across all attributes. Each participant's importances add up to 100%.

  3. Average each attribute's importance across participants (or across the participants in your segment).

Importance depends on the levels you tested: an attribute with a wide spread of levels (say, $5 to $50) will usually look more important than the same attribute tested over a narrow spread ($20 to $25). Keep that in mind when you compare attributes.

Level utilities

The level scores in Survey Scores and the Preference Chart are each level's average utility across participants, scaled so they're easy to compare: each is divided by the sum, across all attributes, of each attribute's range of average utilities. On this scale, the spans of all attributes add up to 100%.

Because importance is averaged person by person, while the level scale is based on the average utilities, an attribute's importance and the span of its level scores can differ slightly. That's expected: importance reflects how much each individual cares, even when people disagree about which level is best.

Marginal Willingness To Pay

For Marginal Willingness To Pay, OpinionX fits a straight line through your price levels' average scaled utilities against their numeric prices. The slope converts utility into money, and each level's willingness to pay is its utility difference from the baseline level you choose, multiplied by −1 ÷ slope. The chart shows how well the line fits (its R²), so you can see when price utilities aren't close enough to a straight line to trust the conversion. In the model itself, price is estimated like any other attribute, with a separate utility for each price level.

Rejection Rate and Ranked Concepts

Rejection Rate is the share of sets in which participants chose "None of the Above". Ranked Concepts ranks complete product combinations using the same utilities.

-- -- --

Scenario Simulator

The Scenario Simulator predicts how participants would choose between products you define, using a first-choice (maximum utility) rule:

  1. For each participant, OpinionX adds up their utilities for each simulated profile's levels.

  2. The participant is assigned to the profile with the highest total. If profiles tie, the participant is split equally between them.

  3. Market share is the share of participants (or of your segment) assigned to each profile.

If your study uses "None of the Above", choose Include 'None of the above' votes in the simulator: each participant's None utility then competes with your products, so you can see how many people would buy nothing at all.

-- -- --

Model assumptions

Like every conjoint model, OpinionX's makes some assumptions. Knowing them helps you design studies that fit them:

  • Main effects only: a profile's utility is the sum of its level utilities, with no interaction terms. The model assumes, for example, that the value of extra storage doesn't depend on the brand.

  • Independence of irrelevant alternatives (IIA) at the individual level: within one participant's multinomial logit, the odds of choosing between two profiles don't depend on what else is in the set. Across your sample, differences between participants relax this, and the first-choice simulator counts individual choices directly, so it doesn't inherit the aggregate IIA problems of simpler models.

  • Independent normal heterogeneity: preferences vary between people following a normal distribution for each parameter, with no population-level correlations between them (see above).

  • Generic alternatives: product profiles are described only by their attribute levels. The only alternative-specific constant is the optional None constant.

  • Point estimates: results use each participant's posterior mean.

-- -- --

How this compares with standard practice

HB-MNL with effect coding, a normal population distribution and individual-level utilities is the established approach for choice-based conjoint, and it's what OpinionX uses. The specific choices worth knowing about if you're comparing it with other tools:

  • Sampler: many long-established HB tools use a Gibbs sampler with Metropolis–Hastings steps. OpinionX uses NUTS, a gradient-based Hamiltonian Monte Carlo sampler that typically explores hierarchical models more efficiently. Both target the same kind of posterior.

  • Population covariance: some HB implementations estimate a full covariance matrix between parameters; OpinionX uses a diagonal one (independent spreads), as explained above.

  • Design: rather than one fixed design split into versions, every participant gets their own randomised design.

  • Transparency: the model is built on open-source software (PyMC and nutpie), and this page lists its full specification.

Every OpinionX plan includes every conjoint feature, and one survey can combine conjoint analysis with other methods such as MaxDiff Analysis or Van Westendorp, answered by the same participants. Each participant's conjoint results sit alongside their other answers, so you can segment conjoint results by anything else they told you.

-- -- --

Getting reliable results

  • Use the calculator. The calculator in the block's setup recommends a number of participants from your design: participants = exposure × most levels in any attribute ÷ (profiles per set × sets per participant), where exposure is 160 for Minimum, 240 for Safe and 400 for Robust. Each level then appears often enough across your sample to estimate it well.

  • Keep attributes balanced. The attribute with the most levels drives the sample size you need, so avoid one attribute with far more levels than the rest.

  • Give each participant enough sets. More sets per participant means more information about each individual and less shrinkage towards the average.

  • Use Profile Logic sparingly. Every prohibited combination reduces the variety of profiles the model learns from.

  • Plan your segments in advance. If you want to compare groups, make sure each group has enough participants on its own.

-- -- --

FAQ

Is this a full conjoint analysis?

Yes. OpinionX uses choice-based conjoint with full profiles and Hierarchical Bayes estimation, producing individual-level utilities for every participant, the same core approach used in commercial choice-based conjoint studies.

Is Hierarchical Bayes estimation free?

Yes. It's used for every conjoint analysis on every plan, including Free, which includes up to 25 participants per survey.

Can I see credible intervals or the full posterior?

Not currently. Results show each participant's posterior mean.

Can I export each participant's utilities?

Not currently. You can export every participant's choices set by set (which profiles they chose and which they didn't), which you can analyse in your own software, plus the aggregated importances and level utilities.

Does OpinionX support interaction effects, latent class or adaptive conjoint?

Not currently. The model estimates main effects, and you can compare groups with segment filters instead of latent classes.

Why did my results change slightly after more people responded?

The model is re-estimated with everyone's data as new responses arrive. Each new participant adds information about the population, which can adjust everyone's estimates slightly through the population layer.

-- -- --

Still stuck?

Reach out via the in-app live chat, book a survey setup call, or use the prepaid consulting credits included on the Analyze plan (90 minutes per year) and the Accelerate plan to work alongside one of our expert researchers.

Did this answer your question?