Scaling, Surveys and Choice
How do you turn "I prefer this one" into a number, and what happens between a question and its answer?
In 1927 Louis Thurstone asked students which of two offences was worse, for every pair, and derived a scale from their inconsistencies. Luce replaced his normal curves with one axiom; McFadden made the logit a forecasting tool. The part fits Case V and Bradley-Terry to Guilford's vegetables, derives the logit from Gumbel noise, breaks the axiom with a red bus and a blue bus, builds the decoy and compromise effects from one comparing chooser, recovers part-worths in a conjoint study, follows a survey answer through Tourangeau's four steps, shows acquiescence and careless responding manufacturing correlations, and puts an error bar on the net promoter score.
What you need. Part 12's signal detection, Part 26's choice models and Part 45's graded responses; the normal and logistic distributions, and maximum likelihood.
- Hook
- Thurstone asks which crime is worse
- Ideas, models and mathematics
- comparative judgment, Luce's axiom, Bradley–Terry, random utility and the logit, conjoint and MaxDiff, context effects, the survey response process, Likert scales and response styles
- Psyche gains
psyche.scaling; a conjoint engine- On you
- the decoy effect; a paired-comparison scale
What you will be able to do
Psych 101 and the major
- Explain how paired comparisons give a scale, and why inconsistency is information.
- Describe the decoy and compromise effects, and why they break Luce's axiom.
- Name the four steps of answering a survey question and an error at each.
Graduate
- Derive Case V from two normal impressions and fit it; fit Bradley-Terry by the MM algorithm.
- Show by simulation that Gumbel random utility gives the logit, and recover part-worths and willingness to pay from a simulated conjoint study.
- Show how acquiescence and straightlining distort correlations, and how balanced keys help.
Research
- Argue what a model of context effects must explain, and design a test of its prediction about deliberation time.
Practice
- Plan a conjoint or a survey: design, wording experiments, data-quality rules and reported uncertainty.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Psych 101 and the major 11 min · Graduate 25 min · Research 27 min · Practice 12 min.
- 0Which crime is worse?Psych 101 and the major2 min
- 1On you: twelve comparisons, and four numbersPsych 101 and the major1 min
- 2The law of comparative judgmentGraduate2 min
- 3Luce's choice axiomGraduate2 min
- 4Random utilityGraduate1 min
- 5Where the axiom failsPsych 101 and the major1 min
- 6Models of context effectsGraduate1 min
- 7Conjoint analysisGraduate2 min
- 8Between the question and the answerPsych 101 and the major1 min
- 9Question effectsPsych 101 and the major1 min
- 10Rating scalesGraduate1 min
- 11Data quality onlineGraduate2 min
- 12One number to rule them all?Graduate1 min
- 13The LedgerGraduate1 min
- 14In practice: pricing, polls and leaderboardsPractice1 min
- 15Frontier: causes, preferences and simulated respondentsResearch1 min
- Recap, problems, and the road aheadAll tracks3 min
Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.
Lecture
The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film.
Which crime is worse?Psych 101 and the major2 min
In 1927 Louis Thurstone, in Chicago, gave students a list of offences. For every pair, which is the more serious? No one can say how serious arson is on a scale. But everyone can say which of two offences is worse. People disagree, and the same person may not answer the same way twice. Thurstone saw that the inconsistency is the information. From the proportions who choose each side, he derived a scale of seriousness: a number for something that has no units.
From those comparisons grew a whole science of choice. Thurstone: each option evokes a fluctuating impression, and the choice follows the larger. In 1959 Duncan Luce replaced the impressions with a single axiom about choice. In 1974 Daniel McFadden used the same model to predict how people would travel, work that later won a Nobel Prize in economics. And in 1982 a decoy that no one picks was shown to change what people do pick. The axiom fails, and preferences bend with the menu.
So this part asks how to turn I prefer this one into a number, and what happens between a question and its answer. Paired comparisons, Thurstone's law and Luce's axiom. Random utility, the logit, and where it fails. Decoys, compromises, and the conjoint studies that price products. And what happens between a survey question and its answer.
This is Part 46 of Psychology, Built: scaling, surveys and choice. We'll derive Thurstone's law and fit it to real preferences. We'll fit Luce's model by a simple algorithm that always climbs. We'll show that random utility with the right noise gives the logit. We'll build the decoy and compromise effects from one model. We'll run a conjoint study and price its attributes. And we'll follow a survey question to its answer, through response styles and the net promoter score.
What it does: Thurstone's comparisons; from a choice to a number; the question; objectives
1On you: twelve comparisons, and four numbersPsych 101 and the major1 min
First, a small version of Thurstone's task. For each pair, pick one, quickly. Four options make six pairs. Count how often each one won. And check yourself. If you chose the sea over the city, and the city over home, did you choose the sea over home? On the course site you can make twelve comparisons of your own, see them turned into a scale, and meet a decoy.
Now four numbers to write down. One: nine vegetables, every pair. What share of people preferred corn to turnips? Two: two options split fifty-fifty. Add a third that's worse than the first on both attributes. What becomes of the first option's share? Three: two unrelated traits, each measured by six items keyed the same way, and some people agree with everything. How strongly do the scales correlate? And four: a net promoter score from two hundred customers. What's its margin of error, in points? Pause here, and write them down.
What it does: Six pairs on you; four predictions
2The law of comparative judgmentGraduate2 min
Thurstone's idea. Each option evokes an impression that varies from moment to moment: a normal distribution, with a mean s. The choice goes to the larger impression. The difference of two independent normals is normal, with twice the variance. That's his Case Five: equal spreads, no correlation. Invert the normal curve, and each proportion gives a distance on the scale. It's Part 12's signal detection, between two stimuli. Fifty percent means no distance. Eighty-four percent means one unit. And a hundred percent means the scale can't say how far.
Here is the method on real preferences. J. P. Guilford's students compared every pair of nine vegetables. Each square is the share who preferred the row to the column. Case Five turns the thirty-six proportions into nine numbers: turnips at the bottom, corn at the top. And those nine numbers reproduce all the proportions to within about three and a half points on average. One dimension is nearly enough. The scale has an arbitrary zero and unit. It's an interval scale, in Part 3's terms.
How many judges does a scale need? Take nine stimuli spread evenly, and simulate panels of judges under Case Five. With five judges, each scale value is off by about a third of a standard deviation. With twenty-five, about an eighth. With a hundred, a sixteenth. The error halves each time the panel quadruples: the square-root law, as for any average. So a small panel can order stimuli that are far apart, but not ones a tenth of a standard deviation apart.
What it does: Two fluctuating impressions; nine vegetables; how many judges?
3Luce's choice axiomGraduate2 min
Luce's starting point was an axiom, not a mechanism. The odds of choosing one option over another don't depend on what else is offered. It's called independence from irrelevant alternatives. If that holds, every option has a strength, fixed up to a common factor. A ratio scale, from one assumption about choice. For pairs, it's Bradley and Terry's model of 1952, and in another form, the chess ratings of Arpad Elo. Take logs, and the strengths become a scale like Thurstone's, with the logistic curve in place of his normal one.
Fitting Luce's model is easy. Count each option's wins, and the comparisons between each pair. Then update every strength by this rule, again and again. Each update increases the likelihood. It's a minorize-maximize algorithm. On the vegetables, it takes about ninety updates, and Luce's scale and Thurstone's agree almost perfectly. The slope between them is the old rule of thumb: a logistic curve is a normal curve stretched by about one point seven.
Luce's model now runs leaderboards, so how many votes does one need? Twenty entrants with Bradley-Terry strengths. Each vote compares a random pair, and the board is the fit. After four hundred votes the order is nearly right. But the true best is on top less than half the time. After three thousand two hundred votes, about four times in five. The whole order is learned fast and the top slowly, because neighbours at the top differ little and few votes compare them. Report intervals, not just ranks.
What it does: One axiom; fitting it by an algorithm that always climbs; a leaderboard from random votes
4Random utilityGraduate1 min
Economists reached the same formula by another road. Each option's utility is a systematic part, from its attributes, plus a random part. If the random parts are independent and follow the Gumbel distribution, the law of the largest of many shocks, then the chance that an option is best is exactly the logit. Psyche checks it with four hundred thousand simulated choices. The shares match the formula to the third decimal. So Luce's axiom and random utility meet. The same formula, from a mechanism.
Daniel McFadden made the model a tool. In the conditional logit, utility is a weighted sum of an option's attributes, such as travel time, cost and walking, with the weights fitted from people's observed choices. Before the Bay Area's BART rail system opened, his model of commuters predicted its share of trips. The forecast came close to the share actually observed, while the engineering forecasts were far too high. The method spread to transport planning, marketing, energy and health economics, and won him the Nobel Prize in 2000.
What it does: Gumbel noise gives the logit; McFadden's forecast
5Where the axiom failsPsych 101 and the major1 min
The axiom's most famous failure. A commuter is indifferent between a car and a red bus: half and half. Add a blue bus, identical except in colour. The axiom keeps the odds of car to red bus at one to one, so each option gets a third. But the blue bus only splits the bus riders. The car keeps half, and each bus gets a quarter. The axiom fails when options are similar, because their random parts are correlated, not independent. Nested and mixed logit models allow for it.
Menus also bend preferences in ways that similarity can't explain. Take two options, A and B, each better on one attribute. In 1982 Joel Huber, John Payne and Christopher Puto added a decoy slightly worse than A on both attributes. A's share went up. No one picks the decoy, yet it matters. In 1989 Itamar Simonson added an extreme option instead, and A, now in the middle, gained. It's the compromise effect. And Amos Tversky had shown in 1972 that a new option takes most from the options it resembles. Each one breaks Luce's axiom: the menu changes the odds between the same two options.
What it does: The red bus and the blue bus; decoys and compromises
6Models of context effectsGraduate1 min
What kind of chooser bends with the menu? Psyche deliberates by comparing. At each moment it looks at one pair of options on one attribute. The better one gains, the worse one loses, and losses loom larger than gains. A decoy for A loses to A on everything, so A gains, from fifty percent to about three quarters. A decoy for B does the opposite. An extreme option on the far side of A puts A in the middle, where it never loses by much, and A's share rises. One mechanism, two effects, and no change in what A or B is worth.
The model also says when these effects should appear. Both grow with deliberation. More comparisons give the menu more chances to act. The compromise effect needs many comparisons. With few, it vanishes. That's a testable prediction: time pressure should shrink context effects. Experiments have found that for the compromise effect. The sequential-sampling models of Part 25, extended to several options, make the same kind of prediction.
What it does: A chooser who compares; more thought, more context
7Conjoint analysisGraduate2 min
Conjoint analysis turns the logit into a tool for designing products. Each task shows three products, built from levels of four attributes: price, battery, camera and brand. Pick one. Each person does twelve tasks, with the levels varied by design, so the effect of each attribute can be separated. The choices are fitted by the conditional logit, with one part-worth for each level.
Does it work? Psyche simulates six hundred people, each with their own part-worths around a known average, the yellow lines. The logit's estimates sit close to the averages, a little shrunk, because people differ. A mixed logit would model that spread. Willingness to pay is a ratio of part-worths. A two-day battery is worth about a hundred and sixty dollars, a great camera about ninety, close to the planted values. One assumption to keep in view: the attributes' worths add up.
With the part-worths, a firm can simulate a market. Three phones on sale, with these predicted shares. Cut the first to five hundred dollars, and its share rises to about half, taken from both rivals in proportion. That's the logit's axiom again, red buses and all. Real markets add what a survey can't: awareness, availability, and the choice not to buy at all. Conjoint is a model of stated choices. Check it against what people actually do.
How many respondents does a conjoint study need? Run the same study forty times at each size. The bars hold the middle eighty percent of the estimates. With fifty people, the two-day battery is worth anything from about a hundred and twenty dollars to nearly two hundred. With eight hundred, within about fifteen dollars of the planted hundred and fifty. A willingness to pay is a ratio of two estimates, and noisier than either. Price the precision before pricing the product.
What it does: A choice task; part-worths recovered; a market simulated; how many respondents?
8Between the question and the answerPsych 101 and the major1 min
A survey question looks like a measurement. It's really a small task. The respondent must comprehend it. In the past week, often, household: each word is read differently by different people. Retrieve: search memory for relevant episodes, with all of Part 20's errors of forgetting and timing. Judge: combine what came to mind into an answer, by counting, estimating, or going by a general impression. And report: map the judgment onto the offered categories, and perhaps edit it to look good. Roger Tourangeau's model places every survey error at one of these steps, each with its own remedies.
Doing all four steps carefully takes effort. Jon Krosnick argued in 1991 that when motivation or ability is low, respondents take shortcuts. He called it satisficing, Herbert Simon's word from Part 24. Weak satisficing: the first acceptable answer, agreeing, the middle category. Strong satisficing: don't know, the same answer down a whole grid, or random clicks. It rises with difficulty and fatigue: late in a long questionnaire, on hard questions, among less motivated respondents. The remedies are in the design: shorter surveys, clear questions, and reasons to care.
What it does: Four steps; optimizing or satisficing
9Question effectsPsych 101 and the major1 min
The same question, asked differently, gets different answers. In 1941 Donald Rugg asked Americans whether the country should forbid public speeches against democracy, or whether it should allow them. More people would not allow such speeches than would forbid them, though the questions are logically the same. Order: the same two questions in either order get different answers, because the first sets the frame for the second. Anchors: the categories offered suggest what's normal. A scale of television hours that starts at up to half an hour moves answers down. And social desirability: voting, exercise and charity are over-reported, drinking under-reported, more so face to face than online.
One habit can manufacture a finding. Psyche makes two unrelated traits, with six items each, and some people who agree with whatever is said. Lee Cronbach described this response set in 1946. With every item keyed the same way, the style adds to both scores, and they correlate about zero point two five, though the traits don't. Balance the keys, with half the items reversed, and the style cancels in each sum. A correlation between two questionnaires can be a correlation between two ways of answering.
What it does: Wording and order; agreeing with everything
10Rating scalesGraduate1 min
Thurstone's scaling was slow. In 1932 Rensis Likert proposed a shortcut. Instead of weeks of judges' work, ask people to agree or disagree with many statements, and add up the answers. The sum was nearly as good, and far cheaper, and it became the standard format of surveys. Each item is a graded response, as in Part 45: thresholds on a latent attitude, not equal steps. And response styles live in the categories. Some people use the extremes, others the middle, whatever their attitude.
How many points should a scale have? Psyche cuts a continuous attitude into equally likely categories, and asks how much of it survives. Two points keep a correlation of about zero point eight. Five keep about zero point nine four, seven about zero point nine six. Beyond that, almost nothing more. Real respondents add their own costs: more points mean more effort, and more room for styles. Five or seven labelled points is the usual compromise.
What it does: Likert's shortcut; how many points?
11Data quality onlineGraduate2 min
Online panels made surveys cheap, and raised a question: who is answering, and are they reading? Psyche makes two six-item scales whose traits correlate zero point three, and lets some respondents give the same answer to every item in the grid. As the straightliners reach thirty percent, alpha rises from zero point seven five to above zero point nine. The scale looks more reliable. And the correlation between the scales rises from zero point two four to zero point seven five: a relation created by not reading. Careless answers aren't noise that weakens results. They can manufacture them.
So how are careless respondents found? Attention checks, such as select disagree for this item. They catch some, annoy others, and can make attentive people answer differently afterwards. Response times: impossibly fast pages are the cheapest flag. Consistency: the same question asked twice, or a reversed item answered the same way as its twin. Bots and fraud: duplicate answers, copied text, impossible combinations. It's harder now that language models can write plausible answers. And one rule: decide the exclusions before looking at the results, as in Part 43, and report how many.
How many checks? On a five-point item, a random responder passes a check by luck one time in five. Say an attentive person slips one time in fifty. One check catches four random responders in five. Three catch over ninety-nine percent. But five checks exclude nearly a tenth of attentive people, and those who slip aren't a random tenth. Two or three checks, fixed in advance, is the usual answer. And note that a straightliner who happens to always pick the instructed answer passes every one.
What it does: Careless answers make scales look better; finding the careless; how many checks?
12One number to rule them all?Graduate1 min
In 2003 Fred Reichheld published the one number you need to grow. One question: how likely are you to recommend us, from nought to ten? The eleven answers become three groups. Subtract the percentage of detractors, nought to six, from the percentage of promoters, nine and ten. The claim was that this predicts a company's growth better than other measures of satisfaction. In 2007 Timothy Keiningham and colleagues tested it over time, and it did no better than the alternatives. The Ledger's verdict: failed.
It's also a noisy number. From two hundred customers, the score has a standard error of about five and a half points: a margin of error of about plus or minus eleven. So a month-to-month change of five points is usually noise. Collapsing eleven points into three groups loses a little information. With two hundred customers each, it picks the better of two products about ninety percent of the time, slightly less often than the plain mean. A reasonable number to track, if it's reported with its error. Not a law of growth.
What it does: The net promoter score; a noisy number
13The LedgerGraduate1 min
What the four have in common. Two are about the instrument: wording and response styles change answers, reliably. One is about choice. The decoy is real where dominance is easy to see, and fragile elsewhere. One is a business claim, made without the data to test it. The effects of the instrument replicate best. They are about how people answer, which is what surveys measure most directly.
What it does: Four rows; what they have in common
14In practice: pricing, polls and leaderboardsPractice1 min
Where these models run. Pricing: choice-based conjoint before a launch, to decide which features to offer at what price, checked against sales afterwards. Survey design: cognitive interviews before fielding, where people think aloud while answering, to catch misread words. Polling: wording and order fixed and published, and split samples to measure their effect. Sampling and weighting are Statistics, Built's Part 18. And transport and health: discrete-choice models of how people travel, and of which treatments patients would choose.
One more place these models run. Chess ratings, sports rankings, and the arenas that rank AI chatbots by people's votes all fit Bradley and Terry's model to wins and losses. So they face Thurstone's questions. Is one dimension enough? Are the comparisons independent? Who chooses the pairs matters. If strong players meet only each other, the scale stretches. And the voters are a sample. An arena's rating is a fact about its voters' preferences, not everyone's. Report the uncertainty. A gap smaller than its error isn't a ranking.
What it does: Where the models run; leaderboards are paired comparisons
15Frontier: causes, preferences and simulated respondentsResearch1 min
Three frontiers. Conjoint for causes. Political scientists randomize the attributes of candidates or immigrants in conjoint tasks, and read the average effect of each attribute as causal. Learning preferences. Recommender systems learn from clicks, and language models are tuned to human preferences with a Bradley-Terry model of which of two answers people prefer. Thurstone's method is inside them. And simulated respondents: language models answering survey questions in the voice of a person. Cheap, fast, and of unknown validity. Part 60 returns to them.
Open questions. When do stated choices in a survey predict what people actually buy, vote for, or do? Can one model of comparison explain all three context effects, and how they depend on time? How should a model of preferences handle people who disagree, rather than average them away? And when, if ever, can simulated respondents stand in for real ones?
What it does: Three frontiers; open questions
Recap, problems, and the road aheadAll tracks3 min
First, your four numbers. Ninety-three percent preferred corn to turnips. With a decoy beneath it, Psyche's first option kept half the choices after brief deliberation, and about three quarters after long. Unrelated scales keyed one way correlated about zero point two five, through acquiescence alone. And a net promoter score from two hundred customers has a margin of error of about eleven points. Choices have structure, menus bend them, and answers carry the fingerprints of the instrument.
Part forty-six in twelve lines. Inconsistent comparisons carry the information. Thurstone turned proportions into distances between normal impressions. Luce derived a ratio scale from one axiom, fitted by a climbing algorithm. Random utility with Gumbel noise gives the logit. Similar options break the axiom. Decoys and compromises show the menu bending the choice, and a comparing chooser produces both, more with time. Conjoint prices attributes from choices. Answering a survey means comprehending, retrieving, judging and reporting. Wording, order, styles and satisficing all leave marks. Careless answers can manufacture correlations. And one number is still a number with an error.
Kant's wager. The first objection, that mathematics can't apply to the mind, met Thurstone's law, Bradley-Terry, the logit and conjoint, fitted and checked. Green. The second, that the mind can't be experimented on, met split-ballot experiments on wording and order, and menus varied by design. Green. And the third, about introspection. Comparisons ask less of it than ratings do, but survey answers are reports, with known distortions. Amber.
Where this comes back. People over time, and within one person, are next, in Part 47. Fitting and comparing models of behaviour, including models of choice, is Part 48. The weight of evidence across studies is Part 50. And language models as participants are Part 60.
Seven problems, with full solutions in this part's README. One applies Thurstone's law. One checks Luce's axiom. One computes logit shares. One redoes the red bus. One prices a camera. One finds a net promoter score and its error. And the last, with the star, asks you to design a survey that measures its own wording and order effects. Pause here if you'd like to try them.
The books and papers behind this part are listed here and in the README. Kenneth Train's book is the standard on discrete choice, free online; Tourangeau, Rips and Rasinski's is the psychology of answering surveys; and Schuman and Presser's experiments are still the best demonstration of question effects.
Three parts of the graduate toolkit done. This one turned preferences and answers into numbers, and showed where those numbers bend. Next, time and the individual. When is a finding about people a finding about a person? Part 47: people over time.
Where it goes next. People over time are Part 47; fitting and comparing models of behaviour Part 48; language models as respondents Part 60.
Key results
The part's results in one place, for revision.
Try it
Lab 46 · Scaling, Surveys and Choice
Scale nine vegetables two ways, derive the logit by simulation and watch it fail for similar options, produce context effects from a comparing chooser, price attributes with a conjoint study, and see a response style create a correlation.
python -m videos.psychology.labs 46
needs numpy, scipy, matplotlib · download lab46.py ·
source on GitHubCase V order, lowest to highest turnips, cabbage, beets, asparagus, carrots, spinach, string beans, peas, corn
Case V scale; Bradley-Terry log strengths (centred) -0.99, -0.47, -0.33, -0.01, 0.13, 0.16, 0.41, 0.46, 0.64; -1.74, -0.78, -0.53, -0.00, 0.22, 0.26, 0.69, 0.78, 1.11
correlation of the two scales; MM updates 0.9997; 93
Gumbel simulation against the logit 0.186/0.186, 0.309/0.307, 0.505/0.506
car, red bus, blue bus: logit; nearly identical buses 0.333 each; 0.497, 0.251, 0.252
comparing chooser, 40 comparisons: A, B 0.50, 0.50
comparing chooser, 40 comparisons: + decoy below A 0.75, 0.23, 0.02
comparing chooser, 40 comparisons: + extreme beyond A 0.38, 0.32, 0.31
conjoint estimates (truth -0.6, 0.9, 0.5, 0.3, -0.2) -0.53, 0.84, 0.48, 0.28, -0.19
willingness to pay: battery, camera ($) 160, 92
unrelated scales with acquiescence: one-way keys; balanced 0.26; -0.00
Two scaling models agree on the vegetables; the logit holds for distinct options and fails for similar ones; a chooser who compares bends with the menu; and a response style can manufacture a correlation.
The code (83 lines; it asserts its own result)
"""Lab 46: scaling and choice: Thurstone's Case V and Bradley-Terry on Guilford's vegetables, the logit from Gumbel
noise, the red bus, a comparing chooser's decoy and compromise effects, a conjoint study, and acquiescence."""
import numpy as np
from videos.coursekit import labs
from explainer.psychology import opendata
from explainer.psychology.psyche import scaling as Sc
TITLE = "Scaling, Surveys and Choice"
GOAL = ("Scale nine vegetables two ways, derive the logit by simulation and watch it fail for similar options, "
"produce context effects from a comparing chooser, price attributes with a conjoint study, and see a response "
"style create a correlation.")
TASKS = [
"Give the comparing chooser no loss aversion (loss = 1). Do the decoy and compromise effects survive?",
"Make the buses less alike (correlation 0.5). Where do the shares fall between the logit and the identical case?",
"Reverse three of the six items in only one of the two scales. What happens to the spurious correlation?",
]
def run(seed=0):
out = labs.Lab()
d = opendata.vegetables_guilford()
th = Sc.thurstone_scale(d["P"] * 100)
bt = Sc.btl_fit(d["P"] * 100)
order = np.argsort(th)
out.row("Case V order, lowest to highest", ", ".join(d["names"][i] for i in order))
out.row("Case V scale; Bradley-Terry log strengths (centred)",
", ".join(f"{v:.2f}" for v in th[order]) + "; " + ", ".join(f"{v:.2f}" for v in (bt["log"] - bt["log"].mean())[order]))
assert np.corrcoef(th, bt["log"])[0, 1] > 0.99
out.row("correlation of the two scales; MM updates", f"{np.corrcoef(th, bt['log'])[0, 1]:.4f}; {bt['iters']}")
V = np.array([0.0, 0.5, 1.0])
out.row("Gumbel simulation against the logit", ", ".join(f"{a:.3f}/{b:.3f}" for a, b in
zip(Sc.gumbel_choice_shares(V, seed=seed), Sc.logit_probs(V))))
rb = Sc.normal_choice_shares([0.0, 0.0, 0.0], [[1, 0, 0], [0, 1, 0.999], [0, 0.999, 1]], seed=seed)
out.row("car, red bus, blue bus: logit; nearly identical buses", "0.333 each; " + ", ".join(f"{v:.3f}" for v in rb))
A, B = [6, 4], [4, 6]
for name, opts in (("A, B", [A, B]), ("+ decoy below A", [A, B, [5.5, 3.5]]), ("+ extreme beyond A", [A, B, [8, 2]])):
sh = Sc.pairwise_sampler(opts, steps=40, n=30_000, noise=0.1, seed=seed)
out.row(f"comparing chooser, 40 comparisons: {name}", ", ".join(f"{v:.2f}" for v in sh))
levels = [3, 2, 2, 3]
design = Sc.conjoint_design(levels, 300, 3, seed=seed + 46)
X = Sc.dummy_code(design, levels, numeric={0: [4.0, 6.0, 8.0]})
beta = np.array([-0.6, 0.9, 0.5, 0.3, -0.2])
Xs, ys = Sc.simulate_conjoint(X, beta, np.array([0.2, 0.5, 0.4, 0.4, 0.4]), 600, seed=seed + 47)
f = Sc.fit_clogit(Xs, ys)
out.row("conjoint estimates (truth -0.6, 0.9, 0.5, 0.3, -0.2)", ", ".join(f"{v:.2f}" for v in f["b"]))
out.row("willingness to pay: battery, camera ($)", f"{-100 * f['b'][1] / f['b'][0]:.0f}, {-100 * f['b'][2] / f['b'][0]:.0f}")
rng = np.random.default_rng(seed + 48)
t1, t2, style = rng.standard_normal((3, 20000))
r = {}
for name, keys in (("one-way", [1] * 6), ("balanced", [1, -1] * 3)):
a = Sc.styled_answers(t1, style, keys, seed=1).sum(1)
b = Sc.styled_answers(t2, style, keys, seed=2).sum(1)
r[name] = np.corrcoef(a, b)[0, 1]
assert r["one-way"] > 0.15 and abs(r["balanced"]) < 0.05
out.row("unrelated scales with acquiescence: one-way keys; balanced", f"{r['one-way']:.2f}; {r['balanced']:.2f}")
out.note = ("Two scaling models agree on the vegetables; the logit holds for distinct options and fails for similar "
"ones; a chooser who compares bends with the menu; and a response style can manufacture a correlation.")
fig, ax = labs.figure(2, size=(11, 4.0))
ax[0].scatter(th, bt["log"] - bt["log"].mean(), color=labs.BLUE)
for i, n in enumerate(d["names"]):
ax[0].annotate(n, (th[i], bt["log"][i] - bt["log"].mean()), fontsize=7)
ax[0].set(title="Guilford's vegetables: two scales", xlabel="Case V", ylabel="Bradley-Terry log strength")
steps = [2, 5, 10, 20, 40, 80]
ax[1].plot(steps, [Sc.pairwise_sampler([A, B, [5.5, 3.5]], steps=s, n=20_000, noise=0.1, seed=seed)[0] for s in steps],
"o-", color=labs.GREEN, label="decoy below A")
ax[1].plot(steps, [Sc.pairwise_sampler([A, B, [8, 2]], steps=s, n=20_000, noise=0.1, seed=seed)[0] for s in steps],
"o-", color=labs.BLUE, label="A in the middle")
ax[1].set(title="context effects grow with deliberation", xlabel="comparisons", ylabel="share choosing A")
ax[1].legend(fontsize=8)
out.fig = fig
return out
if __name__ == "__main__":
print(run())
Now change it
- Give the comparing chooser no loss aversion (loss = 1). Do the decoy and compromise effects survive?
- Make the buses less alike (correlation 0.5). Where do the shares fall between the logit and the identical case?
- Reverse three of the six items in only one of the two scales. What happens to the spurious correlation?
Problems, with solutions
Try each problem before opening its solution.
-
Case V. Under Thurstone's Case V, 84% prefer \(j\) to \(i\). How far apart are they, in units of \(\sigma\)?
Solution
Φ⁻¹(0.84) ≈ 1, so s_j - s_i = σ√2 × 1 ≈ 1.41σ.
-
Luce. Luce strengths \(v = (1, 2, 4)\). Find \(P(2 \succ 1)\), the shares from the menu \(\{1, 2, 3\}\), and check that the odds of 2 over 1 are the same in both.
Solution
P(2 ≻ 1) = 2/3. From {1, 2, 3}: 1/7, 2/7 and 4/7. The odds of 2 over 1 are 2 in both, as the axiom requires.
-
Logit shares. A logit with utilities \(0\), \(\ln 2\) and \(\ln 3\). Find the choice shares.
Solution
e^0, e^(ln 2), e^(ln 3) are 1, 2, 3: shares 1/6, 1/3 and 1/2.
-
Red bus. Car and red bus are equally liked. Add an identical blue bus. Give the logit's car share and the true one.
Solution
The logit gives the car 1/3; with identical buses the car keeps 1/2 and each bus takes 1/4.
-
Willingness to pay. A conjoint gives \(-0.6\) per $100 of price and \(0.5\) for a great camera. What is the camera worth?
Solution
0.5/0.6 × $100 = $83.
-
NPS. 400 customers: 30% promoters, 25% detractors. Find the NPS and its standard error.
Solution
30 - 25 = 5. SE = 100 × √((0.30 + 0.25 - 0.05²)/400) = 100 × √(0.5475/400) = 3.7 points.
-
★ A split-ballot survey. Design a split-ballot survey that measures support for a policy and estimates the effect of its wording and of question order, with balanced keys.
Solution
Randomize respondents to four versions: "allow" or "forbid" wording crossed with the policy question before or after a related question; within each, the attitude scale has half its items reversed. Estimate the policy support in each cell; the wording effect is the difference between wordings averaged over order, the order effect the difference between orders, and their interaction tests whether one changes the other; preregister the contrasts and the sample size for the smallest effect of interest (Part 43).
Notes and sources
Sources
- L. L. Thurstone, A law of comparative judgment, Psychological Review 34 (1927) 273-286; L. L. Thurstone, The method of paired comparisons for social values, Journal of Abnormal and Social Psychology 21 (1927) 384-400; J. P. Guilford, Psychometric Methods (2nd edition, McGraw-Hill, 1954).
- R. A. Bradley and M. E. Terry, Rank analysis of incomplete block designs I, Biometrika 39 (1952) 324-345; R. D. Luce, Individual Choice Behavior (Wiley, 1959); D. R. Hunter, MM algorithms for generalized Bradley-Terry models, Annals of Statistics 32 (2004) 384-406.
- D. McFadden, Conditional logit analysis of qualitative choice behavior, in P. Zarembka (ed.), Frontiers in Econometrics (Academic Press, 1974) 105-142; D. McFadden, The measurement of urban travel demand, Journal of Public Economics 3 (1974) 303-328; K. E. Train, Discrete Choice Methods with Simulation (2nd edition, Cambridge, 2009).
- A. Tversky, Elimination by aspects: a theory of choice, Psychological Review 79 (1972) 281-299; J. Huber, J. W. Payne and C. Puto (1982); I. Simonson, Choice based on reasons: the case of attraction and compromise effects, Journal of Consumer Research 16 (1989) 158-174; R. M. Roe, J. R. Busemeyer and J. T. Townsend, Multialternative decision field theory, Psychological Review 108 (2001) 370-392; S. Frederick, L. Lee and E. Baskin (2014); S. Yang and M. Lynn (2014).
- R. D. Luce and J. W. Tukey, Simultaneous conjoint measurement, Journal of Mathematical Psychology 1 (1964) 1-27; P. E. Green and V. Srinivasan, Conjoint analysis in marketing, Journal of Marketing 54 (1990) 3-19; J. Hainmueller, D. J. Hopkins and T. Yamamoto, Causal inference in conjoint analysis, Political Analysis 22 (2014) 1-30.
- R. Tourangeau, L. J. Rips and K. Rasinski, The Psychology of Survey Response (Cambridge, 2000); J. A. Krosnick, Response strategies for coping with the cognitive demands of attitude measures in surveys, Applied Cognitive Psychology 5 (1991) 213-236; D. Rugg (1941); H. Schuman and S. Presser (1981); H.-J. Hippler and N. Schwarz (1986).
- R. Likert, A technique for the measurement of attitudes, Archives of Psychology 140 (1932); L. J. Cronbach (1946); J. B. Billiet and M. J. McClendon (2000); B. Weijters, M. Geuens and N. Schillewaert (2010); A. W. Meade and S. B. Craig, Identifying careless responses in survey data, Psychological Methods 17 (2012) 437-455.
- F. F. Reichheld (2003); T. L. Keiningham, B. Cooil, T. W. Andreassen and L. Aksoy (2007).
About this partfrom its README
In 1927 Louis Thurstone asked students which of two offences was more serious, for every pair, and derived a scale of seriousness from their inconsistencies. Duncan Luce later replaced Thurstone's normal curves with a single axiom, and Daniel McFadden turned the result into the logit model that forecasts how people travel and what they buy. Then a decoy that no one chose was shown to change what people did choose. This part turns preferences and answers into numbers, and shows where the numbers bend.
The viewer makes paired comparisons and predicts four numbers. Then Thurstone's Case V, derived as signal detection between two stimuli and fitted to Guilford's vegetables; Luce's axiom and Bradley-Terry by the MM algorithm; random utility, with Gumbel noise giving the logit (simulated) and McFadden's forecast; the red bus and the blue bus (computed); the decoy, compromise and similarity effects, and a comparing chooser that produces the first two and predicts their growth with deliberation (computed); a choice-based conjoint study recovering part-worths and willingness to pay, and a market simulation (computed); Tourangeau's four steps and Krosnick's satisficing; wording, order and acquiescence (computed); the number of scale points (computed); careless respondents who inflate alpha and manufacture correlations (computed); and the net promoter score and its error (computed).
What is computed and built
explainer/psychology/psyche/scaling.py: Thurstone's Case V (probabilities, simulation, scaling), Bradley-Terry by Hunter's MM algorithm, Luce's axiom checked, the logit and Gumbel random utility, correlated-noise choice shares, McFadden's conditional logit by Newton, a pairwise-comparison sampler that produces the attraction and compromise effects, a conjoint designer and simulator, acquiescent answers, straightlining and the net promoter score with its standard error. Tested intests/psychology/test_scaling.py.explainer/psychology/opendata.pyreads Guilford's vegetable comparisons from psychTools 2.6.4.- The Ledger gains four rows.
- The course's interactive: twelve paired comparisons of the reader's own, turned into a Bradley-Terry scale, then a menu with a decoy; nothing is stored.
Chapter notes
| # | Chapter | What it does |
|---|---|---|
| 0 | Which crime is worse? | Thurstone's comparisons; from a choice to a number; the question; objectives |
| 1 | On you: twelve comparisons, and four numbers | Six pairs on you; four predictions |
| 2 | The law of comparative judgment | Two fluctuating impressions; nine vegetables; how many judges? |
| 3 | Luce's choice axiom | One axiom; fitting it by an algorithm that always climbs; a leaderboard from random votes |
| 4 | Random utility | Gumbel noise gives the logit; McFadden's forecast |
| 5 | Where the axiom fails | The red bus and the blue bus; decoys and compromises |
| 6 | Models of context effects | A chooser who compares; more thought, more context |
| 7 | Conjoint analysis | A choice task; part-worths recovered; a market simulated; how many respondents? |
| 8 | Between the question and the answer | Four steps; optimizing or satisficing |
| 9 | Question effects | Wording and order; agreeing with everything |
| 10 | Rating scales | Likert's shortcut; how many points? |
| 11 | Data quality online | Careless answers make scales look better; finding the careless; how many checks? |
| 12 | One number to rule them all? | The net promoter score; a noisy number |
| 13 | The Ledger | Four rows; what they have in common |
| 14 | In practice: pricing, polls and leaderboards | Where the models run; leaderboards are paired comparisons |
| 15 | Frontier: causes, preferences and simulated respondents | Three frontiers; open questions |
| Recap, problems, and the road ahead | Your numbers; twelve lines; Kant's three objections; payoffs; problems; references; Part 47 |
NotesWhere the numbers come from
| What | Source |
|---|---|
| Guilford's vegetables: nine vegetables, every pair; corn preferred to turnips by 92.6%; the Case V scale from turnips (-0.99) to corn (0.64); the nine values reproduce the 72 proportions within 3.5 points on average; Bradley-Terry by MM in 93 updates, correlation 0.9997 with Case V and slope 1.72 | opendata.vegetables_guilford (psychTools 2.6.4, fetched from CRAN and SHA-256 checked); Psyche (scaling.thurstone_scale, scaling.btl_fit), item veg |
| Gumbel random utility: utilities 0, 0.5 and 1; 400,000 simulated choices give 0.186, 0.307, 0.506 against the logit's 0.186, 0.307, 0.506 | Psyche (scaling.gumbel_choice_shares), item gumbel |
| Red bus, blue bus: the logit's thirds against 0.49, 0.25, 0.25 with nearly identical buses (correlated normal noise) | Psyche (scaling.normal_choice_shares), item redbus |
| The comparing chooser: A (6, 4) and B (4, 6) split 50:50; a decoy below A raises A to 50% after 5 comparisons and 76% after 40; a decoy below B lowers A to 22%; an extreme option beyond A puts A in the middle, 38% against 31% (40 comparisons; no effect after 5) | Psyche (scaling.pairwise_sampler, 60,000 simulated choices per menu), item decoy |
| Conjoint: phones with price ($400, $600, $800), battery, camera and brand; 600 simulated people with varying part-worths, 12 tasks each (7,200 choices); estimates -0.53 per $100, 0.84, 0.48, 0.28, -0.19 against averages -0.6, 0.9, 0.5, 0.3, -0.2; willingness to pay about $160 for a two-day battery and $92 for a great camera (planted: $150 and $83); market shares 36%, 27%, 37%, and 49% for the first phone at $500 | Psyche (scaling.conjoint_design, scaling.fit_clogit), item conjoint |
| Scale points: the correlation of a rating with a continuous attitude, 0.80 for 2 points, 0.89 for 3, 0.94 for 5, 0.96 for 7, 0.97 for 11 | 200,000 simulated answers, item points |
| Acquiescence: two unrelated traits, six items each; with an agreeing style (loading 0.4) and one-way keys the scales correlate 0.25; balanced keys 0.01 | Psyche (scaling.styled_answers, 20,000 simulated people), item acq |
| Careless respondents: two six-item scales with traits correlated 0.3; as straightliners rise from 0 to 30%, alpha rises from 0.75 to 0.92 and the scales' correlation from 0.24 to 0.75 | Psyche (scaling.straightline, 5,000 simulated people), item careless |
| The net promoter score: a simulated population with 23% promoters and 42% detractors (NPS -20); standard error 11.3 points from 50 customers, 5.5 from 200, 2.5 from 1,000; with 200 customers each, the better of two products ranked first 90% of the time by NPS and 91% by the mean | Psyche (scaling.nps, scaling.nps_se), item nps |
| How many judges: nine stimuli spread evenly over 2.4 SDs, panels of 5 to 400 judges under Case V (100 panels each); the scale values miss by 0.35, 0.22, 0.14, 0.09, 0.06, 0.03 SD with 5, 10, 25, 50, 100, 400 judges | Psyche (scaling.simulate_pairs, scaling.thurstone_scale), item judges |
| A leaderboard from random votes: 20 entrants with Bradley-Terry log-strengths from -1.5 to 1.5, 50 to 3,200 votes on random pairs, fitted by MM with a pseudo-vote of 0.05 each way on every pair (100 boards each); rank correlation 0.66 after 50 votes, 0.94 after 400, 0.99 after 3,200; the true best ranked first 17%, 42% and 81% of the time | Psyche (scaling.btl_fit), item arena |
| How many respondents: the conjoint study rerun 40 times at 50 to 800 people; the middle 80% of the battery's willingness to pay spans $119 to $194 with 50 people and $144 to $159 with 800 (planted $150) | Psyche (scaling.simulate_conjoint, scaling.fit_clogit), item wtp_n |
| Attention checks: with k checks a random responder (passing each with probability 1/5) is caught with probability 1 - 0.2^k, and an attentive person (slipping one time in fifty, an assumption) is excluded with probability 1 - 0.98^k: 80% and 2% for one check, 99.2% and 5.9% for three, 99.97% and 9.6% for five | arithmetic, item checks |
| Every published number on screen | the studies listed under Sources, quoted as reported |
The phones, the holiday comparisons on screen and the offences in the hook are illustrations; Thurstone's offence list is named only by example.
Notes
| Finding | Original | Status |
|---|---|---|
| Adding an option that is clearly worse than one alternative, but not the other, raises the share of the alternative that dominates it. | Huber, Payne and Puto 1982 | contested |
| Asking whether something should be forbidden or whether it should be allowed gives different answers, though the questions are logically the same. | Rugg 1941 | replicated |
| Some respondents tend to agree with statements regardless of their content, and the tendency is stable enough to distort scales keyed in one direction. | Cronbach 1946 | replicated |
| One question, how likely a customer is to recommend a company, predicts its growth better than other measures of customer satisfaction. | Reichheld 2003 | failed |
Shown without a row, with the reason recorded in explainer/psychology/ledger.py: Thurstone; McFadden; Simonson and
Tversky; Tourangeau, Rips and Rasinski; Krosnick; Likert; Hainmueller, Hopkins and Yamamoto.
Notes
The web-search budget for this session was spent on earlier parts, so the facts in this part come from the standard literature and were not re-checked online today; each is listed here to be checked against its source: Thurstone's 1927 papers, his offence list and the students; Guilford's vegetable data (the judges and their number, as documented in psychTools); Luce (1959) and Bradley and Terry (1952); Hunter (2004); McFadden's BART forecast (a predicted share near 6.3% against an observed 6.2%, and the official forecast of about 15%) and his 2000 Nobel Prize; Tversky (1972); Huber, Payne and Puto (1982); Simonson (1989) and the evidence that time pressure weakens the compromise effect; Frederick, Lee and Baskin (2014) and Yang and Lynn (2014); Luce and Tukey (1964); Green and Srinivasan (1990); Tourangeau, Rips and Rasinski (2000); Krosnick (1991); Rugg's 1941 percentages; Schuman and Presser (1981) and Hippler and Schwarz (1986); the television-hours anchor study (Schwarz and colleagues, 1985); Likert (1932); Cronbach (1946); Billiet and McClendon (2000); Weijters, Geuens and Schillewaert (2010); Meade and Craig (2012); Reichheld (2003) and Keiningham et al. (2007); Hainmueller, Hopkins and Yamamoto (2014); the use of Bradley-Terry models in chatbot arenas and preference tuning; and every page range in Sources.
Companion material in this repository
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: Thurstone's crimes. On you: twelve paired comparisons.
- The law of comparative judgment (Case V): discriminal processes, choice proportions to scale values (derived; it is signal detection, Part 12, between two stimuli).
- Luce's choice axiom (1959): independence from irrelevant alternatives implies a ratio scale. Bradley–Terry–
Luce, fitted by the MM algorithm (link to
statkit.optim). - Random utility: Gumbel noise gives the logit (derived); McFadden's conditional logit and the BART forecast.
- Where the axiom fails: red bus and blue bus; similarity, attraction (the decoy) and compromise effects. On you: the decoy.
- Models of context effects: elimination by aspects; sequential-sampling accounts (Part 25's accumulators with several options).
- Conjoint analysis: decomposing a product into attributes; designs, part-worths, willingness to pay, market simulation; MaxDiff.
- The survey response process (Tourangeau): comprehend, retrieve, judge, report. A model of each failure.
- Question effects: wording, order, scale anchors; acquiescence; social desirability; satisficing (Krosnick).
- Rating scales: Likert's method (1932); the number of points; response styles, and separating style from trait (Part 45's graded model).
- Data quality online: careless responding, bots, panel conditioning; attention checks and their side effects.
- One number to rule them all: the net promoter score against its evidence.
Psyche: psyche.scaling: Thurstone Case V; BTL; multinomial and mixed logit; a conjoint designer and
estimator with recovery of planted part-worths on the Pool; a response-process simulator with satisficing and
acquiescence.
On you: your own scale from paired comparisons; the decoy effect.
Ledger: the attraction (decoy) effect (replicated with numerical attributes; weaker with realistic stimuli);
question-order and wording effects (replicated); acquiescence (replicated); the net promoter score as the best
predictor of growth (failed).
In practice: pricing and product research, survey design, public-opinion polling (with Statistics, Built Part
18 for sampling), rating systems and leaderboards.
Frontier: conjoint for causal questions in political science; preference learning in recommender systems;
language models as survey respondents (Part 60).
Reading: Thurstone 1927; Luce 1959; McFadden 1974; Tversky 1972; Huber, Payne & Puto 1982; Train, Discrete
Choice Methods with Simulation; Green & Srinivasan 1990; Tourangeau, Rips & Rasinski 2000; Krosnick 1991; Likert
1932.
Build the film
python -m videos.psychology.psych46.compute # the part's numbers, into .cache/psych46
python tools/build.py psych46 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py psych46 Hook # one chapter, silent, with a contact sheet
Scenes: videos/psychology/psych46. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
python -m videos.psychology.psych46.compute # every number (a minute; fetches the data once)
python tools/qa_scene.py psych46 Models # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py psych46 -q l # the whole part, silent preview
python tools/build.py psych46 # 1080p30 with narration
python tools/qa_scene.py psych46 Effects --lang zh # the Chinese edition of one chapter
python tools/make.py psych46 # both editions, with the checks a long build needs
python -m videos.psychology.labs 46 # the lab: Case V, Bradley-Terry, the logit, decoys, conjoint
python tools/check_ledger.py psych46 # every study shown has its Ledger row, or a reason
python -m pytest tests/psychology # Psyche's scaling module, the Ledger, the Archive
The Chinese edition is zh_lines.py (the narration, line by line) and the series table
videos/psychology/psychology_text_zh.json (the text on screen); the terms are in
PSYCHOLOGY_ZH_GUIDE.md.