Choice-Based Conjoint Analysis from CSV
Operator: Abdulla Al Fahad. How tools are built and checked
Asking people which features they want gets you every feature; asking them to choose between complete products makes them trade price against brand, screen and battery, and the choices reveal how much each is worth. That is choice-based conjoint, and its output is a set of part-worth utilities, one per attribute level, that you can turn into importance scores, a willingness to pay and the share a new product would take.
The page covers both ends. A design generator builds balanced choice tasks with an optional none option and exports them for a survey tool; the analysis fits a multinomial logit to the choices, optionally finds 2 to 4 latent classes, and runs a market simulator.
Hierarchical Bayes estimation of individual-level utilities is not included. The aggregate and latent-class models give group-level answers.
Key features
- A design generator for up to 10 attributes of up to 8 levels, 1 to 50 versions, 2 to 30 tasks and 2 to 6 concepts per task, with an optional none row
- Level balance within each version, minimal level overlap inside tasks, and repair of repeated concepts, reported as balance counts and overlap rates
- Multinomial logit with effects coding, giving part-worths with standard errors, z values and McFadden rho-squared
- Attribute importance from the range of each attribute's part-worths, and willingness to pay from a linear price attribute
- Latent class logit with 2, 3 or 4 classes by EM from up to 8 random starts, with shares, class part-worths, AIC and BIC
- A market simulator for up to 6 products with logit share of preference and first-choice share, aggregate or class-weighted
Design and data layout, effects coding and how to read part-worths and shares
The data are in long format: one row per alternative shown, with a respondent column, a task column, one column per attribute, and a chosen column holding 1 for the picked alternative and 0 for the others. A none option is a row with every attribute cell blank. Each respondent and task needs 2 or more alternatives and exactly one chosen; incomplete tasks are skipped and the first few are listed. Up to 20,000 respondents, 200,000 tasks and 400,000 rows are read.
Categorical attributes are effects coded, so the part-worths of an attribute sum to zero and the last level is implied by the others; its standard error comes from the covariance of the rest. A numeric attribute you mark as linear, usually price, gets one coefficient per unit, centred on the average level, which is what makes willingness to pay possible.
The design CSV is long format too: Version, Task, Concept and one column per attribute, with a row labelled None when the none option is on. Import it into a survey tool and keep a column that records the version each respondent saw.
How it works
The aggregate model maximises the logit likelihood by Newton's method, with the standard errors from the inverse Hessian after scaling. It reports non-convergence and flags a perfectly separating level as unstable instead of printing huge numbers.
Latent classes are fitted by EM: each respondent gets a posterior probability of belonging to each class, and each class re-estimates its coefficients weighted by those probabilities. Starting values are the aggregate estimate shaken by an amount proportional to each column's spread, so a per-dollar price coefficient is not perturbed as hard as a 0 or 1 level. The run stops at the iteration limit, the time budget or when cancelled.
Common use cases
- A product manager choosing between a $299 phone with 10 hours of battery and a $349 one with 15, by reading willingness to pay for the extra battery.
- Before relaunching pricing, a SaaS team tests four plan features and three price points with 300 respondents.
- A researcher splitting respondents into 2 to 4 classes to see whether a price-sensitive segment exists and how big it is.
- A brand team comparing a premium and a budget concept in the simulator, with and without the none option.
- Recovering known utilities from simulated choices, a student checks a design before fielding.
How to use this tool
- In Design the survey, list the attributes and levels, choose versions, tasks and concepts, and download the design CSV for your survey tool.
- After fielding, open Analyse choices and drop the long-format responses.
- Match the respondent, task and chosen columns, tick the attributes, and tick numeric, linear for price.
- Read the part-worths, importance and willingness to pay.
- Fit 2 to 4 latent classes and compare BIC.
Example
A phone maker analysing a simulated survey (generated by the page, not real shoppers): 600 respondents, 12 tasks of 3 phones plus a none option
respondent,task,concept,Brand,Screen,Battery,Price,chosen
R0001,1,1,Fabrikam,LCD,20 hours,399,0
R0001,1,2,Contoso,OLED,10 hours,349,0
R0001,1,3,Northwind,LCD,15 hours,299,1
R0001,1,4,,,,,0
... 28,800 rows in all: 600 respondents x 12 tasks x 4 alternatives, with chosen = 1 on the alternative pickedImportance, part-worths, willingness to pay and latent classes
Importance: Price 54.2%, Brand 22.8%, Battery 15.7%, Screen 7.3%
Part-worths: Northwind 0.415, Contoso 0.021, Fabrikam -0.436; $299 +1.013, $349 0, $399 -1.013; none -1.349
Willingness to pay: Northwind $42.0 over Fabrikam, 20 hours $29.0 over 10 hours
Two latent classes: 64.5% (price importance 29.1%) and 35.5% (price importance 82.5%)Common pitfalls
The design generator balances levels and minimises overlap but is not orthogonal or D-efficient, and it cannot prohibit combinations or add fixed holdout tasks.
Importance depends on the levels you chose: widening the price range raises price's importance, so compare importance only within one study.
Willingness to pay is relative to each attribute's least liked level and assumes a linear price effect over the range tested; it is not a market price.
Aggregate logit assumes everyone shares one set of utilities, so shares from it can mislead when segments differ. Latent classes address that, but class labels can swap between runs.
The model estimates main effects only. Interactions, such as a brand premium that depends on price, are not fitted.
A none option's utility is only meaningful when every task offered one.
- Mark price numeric and linear when its levels are evenly spread. One coefficient is estimated more precisely than one per level, and willingness to pay needs it.
- Compare the BIC of 2, 3 and 4 classes and take the smallest; a class under about 5% of respondents is flagged as possibly noise.
Common errors and how to fix them
- There are 12 choice tasks for 9 parameters. Collect more tasks before fitting.
- The model needs at least five more tasks than parameters. Add respondents or tasks, or drop an attribute.
- Row 8: the chosen column holds "2". Use 1 for the chosen alternative and 0 for the others.
- Recode the chosen column. Only 1, 0, yes, no, true and false are accepted.
- The attribute "Colour" has only one level in the data.
- Untick it; an attribute that never varies cannot be estimated.
- Each column can be used once: respondent, task, chosen and the attributes must all be different columns.
- Untick the concept or version column from the attribute list.
Best practices
- Aim for at least 300 respondents for aggregate analysis and about 500 or more if you want classes; 12 tasks each is a common load.
- Check the design's level counts and overlap before fielding, and record which version each respondent saw.
Testing a design on respondents with known answers
The page can generate simulated respondents who choose by utilities you know, plus random noise of the kind the logit assumes, and the model is then asked to recover them. With 2,000 simulated respondents the true utilities Northwind 0.6, Fabrikam -0.6, LCD -0.4, 20 hours 0.4, 10 hours -0.5, price -0.012 per dollar and none -1.2 came back as 0.631, -0.610, -0.403, 0.402, -0.494, -0.012 and -1.176, each within about 0.04. With 900 respondents of whom exactly one third were price-sensitive, the two-class model found shares of 68.9% and 31.1%.
Do the same before fielding a real design: if your design cannot recover utilities you chose yourself, real answers will not rescue it.
Frequently asked questions
Why does willingness to pay need a linear price?
Willingness to pay divides a utility difference by the utility of one currency unit, which only exists when price has a single per-unit coefficient.
What is the none option?
It is a row with blank attributes. Its coefficient is the utility of buying nothing; with it in the simulator, the shares of the products and none add up to 100%.
How many respondents do I need?
The page refuses fewer tasks than parameters plus five, which is a floor and not a recommendation. For stable standard errors on 7 parameters, a few hundred respondents with 10 or more tasks each is typical.
Why does first choice give 100% to one product?
First choice gives every respondent group's entire weight to its highest-utility product. With one class that is all or nothing; with classes it is split by class share. Share of preference is the smoother figure.
Is this the same as MaxDiff?
No. MaxDiff on this site ranks single items by best and worst picks. Conjoint lets you vary several attributes at once, so you can value a price change against a feature.
Can I import a design built elsewhere?
Analysis only needs the long-format response file. Any design works, since the model reads the levels each respondent actually saw.