Choice-Based Conjoint Analysis, Mixed Logit, and WTP: Complete Guide
Design efficient discrete choice experiments, specify panel mixed logit models without IIA bias, and avoid infinite-variance willingness-to-pay ratio explosions in R and Python.
HumanPen Team
· 14 min read
Quick Summary: Choice-Based Conjoint Workflow and Mixed Logit Architecture
Choice-Based Conjoint (`CBC`) analysis and Discrete Choice Experiments (`DCE`) ground quantitative valuation in random utility theory (`U_njt = V_njt + ε_njt`), where decision maker `n` selects alternative `j` in choice task `t` to maximize perceived utility. While traditional market research often relied on basic orthogonal arrays and standard multinomial logit (`MNL`), modern empirical practice requires addressing three severe methodological vulnerabilities: dominated alternative profiles during survey fielding, violation of the Independence from Irrelevant Alternatives (`IIA`) assumption, and extreme variance instability when calculating Willingness-to-Pay (`WTP`) as a ratio of coefficients. Transitioning from fixed-coefficient conditional logit to panel Mixed Logit (`MMNL`, also termed Random Parameters Logit) allows researchers to account for unobserved taste heterogeneity across individuals and model realistic substitution patterns. Furthermore, estimating utility directly in WTP space rather than preference space eliminates the risk of Cauchy-like distribution explosions caused by dividing attribute parameters by near-zero price sensitivities.
| Specification Model | Taste Variation & Assumptions | Substitution & Panel Structure | WTP Estimation Method & Risks |
|---|---|---|---|
| Multinomial / Conditional Logit (MNL/CL) | Fixed homogeneous coefficients across all respondents; constant error variance across tasks. | Strict IIA property (proportional substitution); assumes independent errors across repeated tasks per individual. | Post-estimation ratio (-β_k / β_price); delta method symmetric CI; invalid if IIA fails or tastes vary. |
| Panel Mixed Logit (Preference Space) | Random taste distributions (normal, lognormal, triangular) capturing individual heterogeneity. | Relaxes IIA with flexible cross-alternative substitution; integrates over panelID choice product. | Post-estimation ratio of distributions; dividing by normal price yields Cauchy explosions with infinite variance. |
| Panel Mixed Logit (WTP Space) | Utility re-parameterized so attribute coefficients directly represent dollar valuation (ω = β / α). | Fully relaxes IIA; accounts for repeated choice clustering across choice tasks per respondent. | Direct estimation of marginal WTP distributions; finite moments; avoids ratio instability via multistart search. |
Executing an empirical choice study requires an integrated pipeline across experimental design, survey deployment, econometric estimation, and welfare measurement. Relying on outdated fractional factorial orthogonal designs often generates unrealistic choice tasks where one product dominates all competitors, squandering statistical efficiency. Similarly, fitting repeated choice tasks without clustering on respondent identifiers dramatically understates standard errors, while applying simple delta-method confidence intervals to skewed ratio distributions produces misleading policy and pricing conclusions. By adopting Bayesian D-efficient designs with coordinate exchange algorithms and specifying panel mixed logit models in WTP space, analysts achieve robust identification and actionable economic valuations.
Experimental Design: Bayesian D-Efficiency, Sample Sizing, and Dominated Profiles
The validity of any discrete choice experiment depends directly on the quality of its underlying experimental design matrix. Traditional orthogonal arrays ensure zero correlation among attribute levels, but they operate under the naive assumption that all preference parameters equal zero (`β = 0`). In real-world market and health valuation surveys, this zero-prior assumption leads to inefficient choice sets and frequently produces "dominated profiles"—choice tasks where an alternative is strictly superior on all non-price attributes while simultaneously being cheaper than competing options. Because rational respondents will universally pick the dominant option, such tasks provide zero statistical information regarding trade-offs. To maximize the Fisher information matrix `I(β, X)`, modern discrete choice design optimizes Bayesian D-efficiency (`D_B`-error), which minimizes the expected inverse determinant of the information matrix `E_{β ~ π(β)}[(det I(β, X))^(-1/K)]` over informative prior parameter distributions `π(β)`.
"Discrete choice experiments are widely used in a broad area of research fields to capture the preference structure of respondents. The design of such experiments will determine to a large extent the accuracy with which the preference parameters can be estimated. This paper presents a new R package, called idefix, which enables users to generate optimal designs for discrete choice experiments."
Implementing an efficient experimental design requires balancing attribute level balance, utility balance, and respondent cognitive burden:
- Search Algorithms in R: The Coordinate Exchange Algorithm (`CEA`) implemented in `idefix::CEA()` and the Modified Fedorov algorithm in `idefix::Modfed()` iteratively update attribute levels across choice tasks to minimize D-error. The `cbcTools` package (`cbcTools 0.7.1`) streamlines this workflow via `cbc_profiles()` and `cbc_design(method = "cea")`, allowing researchers to specify prohibited attribute combinations and incorporate non-zero priors from pilot studies to actively suppress dominated alternatives.
- Heuristic Sample Sizing: Before fielding, analysts should verify statistical power using the established Orme / Johnson heuristic rule of thumb: `N >= (500 × c) / (T × J)`, where `c` represents the maximum number of levels across any main-effect attribute (or the largest product of levels for two-way interactions), `T` is the number of choice tasks per respondent, and `J` is the number of non-empty alternatives per task. For example, an experiment with `c = 4`, `T = 8`, and `J = 3` requires a minimum sample of `N >= (500 × 4) / (8 × 3) = 83.3`, or at least 84 respondents per customer segment.
- Simulation-Based Power Calculations: Because heuristic formulas only provide a lower-bound sanity check, researchers should conduct Monte Carlo simulation power testing using `cbcTools::cbc_power()`. By simulating choice responses across hypothesized effect sizes, analysts can evaluate whether the expected parameter standard errors satisfy target confidence thresholds (such as standard error `<= 0.05` on critical price coefficients) before spending budget on participant recruitment.
- Inclusion of Opt-Out Alternatives: Adding a `"None / Opt-out"` option (`no_choice = TRUE` in `cbc_design()`) is essential in consumer goods and environmental valuation studies to simulate realistic purchase behavior. Modeling an opt-out requires estimating an Alternative-Specific Constant (`ASC`) that captures baseline utility relative to selecting no product, preventing forced-choice bias from inflating market share projections.
Once the design matrix is generated, choice tasks are grouped into randomized blocks to reduce survey fatigue. For researchers structuring broad validation frameworks, ensuring experimental integrity connects directly with rigorous power analysis and randomization checks seen across modern empirical testing protocols, such as those detailed in our guide to A/B testing and experiment data analysis.
Econometric Estimation: Conditional Logit, IIA Testing, and Panel Mixed Logit
After survey administration, raw response data must be reshaped from wide questionnaire format into long econometric format, where each choice situation contains `J` distinct rows linked by an observation identifier (`obsID`). The dependent variable `choice` is coded as binary (`1` for the chosen alternative, `0` otherwise), with exactly `sum(choice) == 1` per choice task. Because respondent-specific demographic characteristics (such as income, age, or education) do not vary across alternatives within a choice task, they cancel out of the choice probability denominator unless explicitly interacted with an Alternative-Specific Constant (`ASC`) or an attribute variable. This foundational principle aligns with broader discrete response frameworks discussed in our guide to multinomial logistic regression and proportional odds modeling.
"Mixed logit is a highly flexible model that can approximate any random utility model (McFadden & Train, 2000). It obviates the three limitations of standard logit by allowing for random taste variation, unrestricted substitution patterns, and correlation in unobserved factors over time. Unlike probit, it is not restricted to normal distributions. Its derivation is straightforward, and simulation of its choice probabilities is computationally simple."
In McFadden's standard Conditional Logit model, choice probabilities follow the closed-form logistic expression `P_nit = exp(β' x_nit) / sum(exp(β' x_njt))`. A defining mathematical consequence of this formulation is the Independence from Irrelevant Alternatives (`IIA`), which dictates that the ratio of choice probabilities between any two options `P_nit / P_nkt = exp(β'(x_nit - x_nkt))` depends strictly on those two alternatives and remains invariant to the presence or attributes of any third option. When IIA is violated—as famously illustrated by the blue bus / red bus paradox—introducing an identical substitute draws proportional share from all alternatives rather than exclusively from the closest competitor. Researchers historically tested IIA using the Hausman–McFadden specification test (`H = (β_hat_R - β_hat_U)' [Cov(β_hat_R) - Cov(β_hat_U)]^(-1) (β_hat_R - β_hat_U) ~ χ²_k`), comparing parameter estimates on the full choice set against a restricted subset.
"If the independance of irrelevant alternatives applies, the probability ratio of every two alternatives depends only on the characteristics of these alternatives. Consequentely, the results obtained on the estimation with all the alternatives or only on a subset of them are consistent, but more efficient in the first case. On the contrary, only the results obtained from the estimation on a relevant subset are consistent."
However, empirical economists frequently encounter negative test statistics when computing `mlogit::hmftest()`, because the finite-sample difference between the estimated covariance matrices `Cov(β_hat_R) - Cov(β_hat_U)` is not guaranteed to be positive semi-definite. Consequently, contemporary research bypasses IIA testing by estimating Panel Mixed Logit models (`MMNL` / `RPL`):
- Panel Likelihood Integration: In a choice-based conjoint experiment where respondent `n` completes `T` distinct choice tasks, individual taste preferences `β_n ~ f(β | θ)` remain invariant across tasks. The unconditional choice probability integrates over the joint product of choices across all `T` tasks: `P_ni(θ) = ∫ (∏ L_nit(β)) f(β | θ) dβ`.
- The PanelID Misspecification Trap: If an analyst fails to specify `panelID = "respID"` in `logitr()` or `mlogit()`, the estimation routine treats each choice task as an independent individual. For a study of 400 respondents answering 10 tasks each (`4,000` observations), omitting the panel structure draws `4,000` independent taste coefficients instead of `400` person-level draws, artificially inflating degrees of freedom and severely understating standard errors.
- Maximum Simulated Likelihood Estimation: Because the integral lacks an analytical closed form, it is approximated via Maximum Simulated Likelihood (`MSLE`): `P_sim_n = (1 / R) ∑ ∏ L_nit(β_n^(r))`. Modern estimation employs quasi-Monte Carlo sequences (such as Sobol or Halton draws) with `R >= 500` to `1,000` draws to ensure parameter stability and log-likelihood convergence.
- Python Estimation Environments: In Python, researchers estimate fixed-coefficient conditional logit via `statsmodels 0.15.0` (`statsmodels.discrete.conditional_models.ConditionalLogit(endog, exog, groups=obs_id).fit()`). For panel mixed logit, EPFL's `biogeme 3.3.5` provides high-performance simulation with automatic differentiation, analytic Hessians, and robust sandwich standard errors, while `xlogit 0.2.7` offers an alternative GPU-accelerated interface.
Willingness-to-Pay: Avoiding Ratio Explosions in WTP Space and Reproducible Execution
Calculating marginal Willingness-to-Pay (`WTP`) translates estimated utility coefficients into monetary valuations. In a standard preference-space model (`U_njt = β_n' x_njt - α_n p_njt + ε_njt`), marginal WTP for attribute `k` is defined as the marginal rate of substitution: `WTP_k = β_k / α` (or `-β_k / β_price` when price enters with a negative coefficient). While intuitive, calculating WTP as a post-estimation ratio in Mixed Logit introduces severe statistical instability. If the price parameter is assigned a normal distribution `β_price ~ N(μ, σ²)`, the distribution places non-zero probability density around zero. Dividing an attribute parameter by a normally distributed denominator yields a Cauchy-like ratio distribution with undefined mean and infinite variance, generating absurd simulated WTP values exceeding hundreds of thousands of dollars.
"The package is faster than other similar packages such as mlogit, gmnl, mixl, and apollo, and it supports utility models specified with 'preference space' or 'willingness-to-pay (WTP) space' parameterizations, allowing for the direct estimation of marginal WTP. The typical procedure of computing WTP post-estimation using a preference space model can lead to unreasonable distributions of WTP across the population in mixed logit models."
To establish credible, bounded willingness-to-pay distributions, researchers employ three distinct methodological remedies:
- Delta Method vs. Krinsky-Robb Simulation: In fixed-parameter models, the delta method (`apollo::apollo_deltaMethod` or `logitr::wtp()`) provides a first-order Taylor expansion `Var(β_hat_k / α_hat) ≈ (1 / α_hat²) × [Var(β_hat_k) - 2 × (β_hat_k / α_hat) × Cov(β_hat_k, α_hat) + (β_hat_k / α_hat)² × Var(α_hat)]`. However, delta-method intervals are strictly symmetric and understate error when price coefficient uncertainty is elevated. The parametric simulation bootstrap by Krinsky & Robb (1986), implemented via `logitr::ci(model, pars, method = "kr")`, draws 10,000 vectors `(β_sim, α_sim) ~ N(θ_hat, Σ_hat)` to accurately capture the asymmetric skew of empirical ratio distributions.
- Direct Estimation in WTP Space: Developed by Train & Weeks (2005) and implemented in `logitr 1.2.0`, utility is re-parameterized as `U_njt = λ_n × (ω_n' x_njt - p_njt) + ε_njt`, where `λ_n` represents the scale/price parameter and `ω_n` directly represents marginal WTP in currency units. Estimating `ω_n` directly ensures that assumed distributions (such as normal or lognormal) apply directly to dollar valuations, guaranteeing finite population moments and eliminating ratio divisions entirely.
- Multistart Optimization: Because the log-likelihood function in WTP space is non-convex and exhibits multiple local optima, analysts must execute multistart searches: `logitr(data = choice_df, outcome = "choice", obsID = "obsID", panelID = "respID", pars = c("feat_a", "feat_b"), scalePar = "price", randPars = c(feat_a = "n", feat_b = "n"), numMultiStarts = 10, numDraws = 500, drawType = "sobol")`.
- Survey Instrument Integration: When conjoint attributes are paired with respondent psychometric scales or perceptual ratings, analysts should review our guide on Likert scale survey data analysis and visualization to ensure survey scoring and interaction variables maintain construct validity.
To operationalize these econometric models without engineering overhead, research teams frequently coordinate choice data cleaning, experimental matrix validation, and mixed logit estimation through dedicated workflow tools. With HumanPen Start Project, researchers streamline collaborative statistical modeling pipelines: Attach your data and papers, describe what you need, approve the plan before work starts, and get the reviewed report, charts, and code ready to preview online or download. The system accepts Excel, CSV, Word, PDF, and zip files up to 5 GB total per project, executing estimation routines inside isolated CPU-based Python and R sandboxes. All project transmissions are encrypted in transit, data is retained for 6 months after last activity with a 3-day deletion reminder, and every deliverable serves strictly as a transparent reference scaffold where researchers inspect and verify every parameter estimate and code line.
Frequently Asked Questions
How should I choose between fixing the price coefficient or estimating in WTP space? Fixing the price coefficient in preference space guarantees a constant marginal utility of money across respondents, preventing division-by-zero explosions when computing `WTP_k = β_k / α`. However, this assumption is economically unrealistic in markets with substantial income disparity or price sensitivity variation. If taste variation across prices is theoretically expected, you should specify a direct WTP-space model in `logitr 1.2.0` with `scalePar = "price"` and multistart search (`numMultiStarts >= 10`). This parameterization estimates WTP distributions directly in currency terms with well-behaved finite moments while allowing scale and price sensitivity to vary across the sample.
Why does the Hausman-McFadden IIA test return a negative chi-squared statistic? In finite empirical samples, the estimated difference matrix `Cov(β_hat_R) - Cov(β_hat_U)` between the restricted alternative subset and the full choice model is frequently not positive semi-definite. When the difference matrix fails this condition, the quadratic form `H` in `mlogit::hmftest()` can yield a negative test statistic, which is asymptotically invalid and prevents computing a standard p-value. Methodologists recommend interpreting negative test values as evidence of finite-sample instability rather than proof of IIA compliance, and advise proceeding directly to panel Mixed Logit (`MMNL`) specifications that do not impose the IIA restriction.
How many choice tasks should each survey respondent evaluate to prevent fatigue? Most discrete choice experiments present between 8 and 12 choice tasks per respondent. Exceeding 14 to 16 tasks frequently triggers respondent fatigue, causing participants to adopt simplifying heuristics (such as evaluating only price or ignoring complex secondary attributes) that distort taste parameter estimates. To maintain high statistical efficiency across large attribute spaces without overburdening individual participants, analysts divide the master experimental design into orthogonal or D-efficient blocks using `cbcTools::cbc_design()` or `idefix::CEA()`, assigning each respondent to a single block of 8 to 10 tasks.
Can individual demographic characteristics like income or age be included in choice-based conjoint models? Yes, but they cannot enter the utility function as simple main effects. Because demographic variables like income or age are constant across all alternatives `j` in a given choice task `t`, their values subtract to zero in the logit probability formula `exp(β' x_nit) / sum(exp(β' x_njt))`. To measure demographic effects, you must interact the characteristic with an Alternative-Specific Constant (such as the opt-out `"None"` option to test if higher-income consumers opt out less frequently) or interact demographics directly with attribute variables (such as interacting income with price to test for diminishing marginal price sensitivity).
Primary Sources and Technical Documentation
- Kenneth Train (2009) · Discrete Choice Methods with Simulation (2nd ed., UC Berkeley Portal)
- McFadden & Train (2000) · Mixed MNL Models for Discrete Response (Journal of Applied Econometrics)
- Hausman & McFadden (1984) · Specification Tests for the Multinomial Logit Model (Econometrica)
- Krinsky & Robb (1986) · On Approximating the Statistical Properties of Elasticities (Review of Economics and Statistics)
- Train & Weeks (2005) · Discrete Choice Models in Preference Space and Willingness-to-Pay Space
- John Paul Helveston (2023) · logitr: Fast Estimation of Multinomial and Mixed Logit Models in R (Journal of Statistical Software)
- Traets, Sanchez & Vandebroek (2020) · Generating Optimal Designs for Discrete Choice Experiments in R: The idefix Package (JSS)
- Yves Croissant (2020) · Estimation of Multinomial Logit Models in R: The mlogit Package (Journal of Statistical Software)
- Hess & Palma (2019) · Apollo: A Flexible Platform for Estimating and Applying Choice Models (Journal of Choice Modelling)
- Michel Bierlaire (EPFL) · Biogeme: A Platform for Discrete Choice Modeling and Optimization
KEEP READING