Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Real public data

Willingness to pay from stated choices

Stated choices from 361 US households put a local electricity supplier at 2.5 to 2.7 cents per kWh on a 7 or 9 cent price, with a spread across people almost as large.

What each contract feature is worth, read from which contract people picked rather than from asking them for a price. The range is the two shapes I tried for how people differ: 2.5 if a few people may dislike a local supplier, 2.7 if nobody can; they fit about equally well. Each extra contract year cost 0.23 cents per kWh on average, yet 29% of people preferred the longer contract.

Key figures
Worth of a local supplier, per kWh
2.5¢
95% interval 2.2 to 2.8; middle 80% of people 0 to 5
Want a discount for a longer contract, under a normal spread
71%
0.23¢ per kWh per extra year on average; 29% prefer the longer contract
Fixed price a time-of-day rate is valued like
9.9¢
its 11¢ day and 5¢ night prices average 8¢ over the clock
Choices of new people predicted
48%
by the mixed and the simple model alike (25% by chance); the mixed model is better only at a person's whole set of choices

Main limitation These are stated choices from one survey of US electricity customers, more than two decades old: what people said they would pick, not what they paid. The fixed price took only two values, so every figure here is read off a 9 against 7 cent gap.

What each feature is worth, and how much people differ

Each row is one feature of the contract. The dot is the average person's willingness to pay with its 95% interval, the band is where the middle 80% of people fall, and the diamond is the simple model, which treats everyone as alike. The two variable rates are shown as the fixed price they are valued like, next to the plain average of their own prices (short upright tick).

Willingness to pay per feature, US cents per kWh
  • Middle 80% of people
  • Average, with 95% interval
  • Simple model
  • Plain average of the rate's prices
Willingness to pay per contract feature, with intervals and the spread across peopleFor each feature, a band shows where the middle 80% of people fall, a dot the average with its 95% interval, and a diamond the simple model. The tables under the chart list every value.What a feature is worth, cents per kWh off or on the fixed price−20246Local supplier: average 2.5 cents per kWh, 95% interval 2.2 to 2.8; middle 80% of people 0.0 to 5.0; simple model 2.3Local supplier2.5Well-known supplier: average 1.7 cents per kWh, 95% interval 1.6 to 1.9; middle 80% of people 0.1 to 3.4; simple model 1.6Well-known supplier1.7Each extra contract year: average −0.23 cents per kWh, 95% interval −0.28 to −0.18; middle 80% of people −0.78 to 0.32; simple model −0.17Each extra contract year−0.23What a variable rate is valued like, as a fixed price in cents per kWh481216fixed 7fixed 9Time-of-day rates: valued like a fixed price of 9.9 cents, 95% interval 9.4 to 10.3; middle 80% of people 5.8 to 13.9; simple model 8.7; plain average of the rate 8.0Time-of-day rates9.9Seasonal rates: valued like a fixed price of 9.9 cents, 95% interval 9.6 to 10.2; middle 80% of people 6.8 to 13.0; simple model 9.3; plain average of the rate 7.5Seasonal rates9.9
Willingness to pay per contract feature, with intervals and the spread across peopleFor each feature, a band shows where the middle 80% of people fall, a dot the average with its 95% interval, and a diamond the simple model. The tables under the chart list every value.Worth, cents per kWh−20246Local supplier: average 2.5 cents per kWh, 95% interval 2.2 to 2.8; middle 80% of people 0.0 to 5.0; simple model 2.3Local supplier2.5Well-known supplier: average 1.7 cents per kWh, 95% interval 1.6 to 1.9; middle 80% of people 0.1 to 3.4; simple model 1.6Well-known supplier1.7Each extra contract year: average −0.23 cents per kWh, 95% interval −0.28 to −0.18; middle 80% of people −0.78 to 0.32; simple model −0.17Each extra contract year−0.23Valued like a fixed price, cents481216fixed 7fixed 9Time-of-day rates: valued like a fixed price of 9.9 cents, 95% interval 9.4 to 10.3; middle 80% of people 5.8 to 13.9; simple model 8.7; plain average of the rate 8.0Time-of-day rates9.9Seasonal rates: valued like a fixed price of 9.9 cents, 95% interval 9.6 to 10.2; middle 80% of people 6.8 to 13.0; simple model 9.3; plain average of the rate 7.5Seasonal rates9.9
Supplier and contract: cents per kWh on the fixed price
FeatureAverage95% intervalSpread (sd)Middle 80% of peopleBelow zeroSimple model (interval)
Local supplier2.52.2 to 2.82.00.0 to 5.010%2.3 (2.1 to 2.5)
Well-known supplier1.71.6 to 1.91.30.1 to 3.49%1.6 (1.4 to 1.8)
Each extra contract year−0.23−0.28 to −0.180.43−0.78 to 0.3271%−0.17 (−0.20 to −0.15)
Variable rates: the fixed price, in cents per kWh, each is valued like
RateAverage95% intervalSpread (sd)Middle 80% of peoplePlain average of its pricesTake it over a fixed 9Take it over a fixed 7Simple model
Time-of-day rates9.99.4 to 10.33.25.8 to 13.98.039%18%8.7
Seasonal rates9.99.6 to 10.22.46.8 to 13.07.535%11%9.3

Spread is the standard deviation across people. "Below zero" is the share for whom the feature is a cost, under a normal spread. "Take it over a fixed 9" is the share who would pick the rate over an otherwise identical contract at a fixed 9 cents.

What it means

Who the supplier is matters a lot. A local supplier was worth about 2.5 cents per kWh to the average person and a well-known one about 1.7, on prices of 7 or 9 cents: for a local supplier, roughly a third of the price. People differed almost as much as the average. The middle 80% ran from about 0 to 5 cents for a local supplier and from 0.1 to 3.4 for a well-known one.

The shape of that spread is an assumption, and it moves the average. With a normal spread, about 10% of people would pay to avoid a local supplier and 9% a well-known one. With a log-normal spread, where nobody can dislike them, the averages rise to 2.7 and 2.0 cents, and the fit is about as good (the gap is smaller than the change from one set of random draws to another). So the share below zero is a product of the shape I chose, and the honest average for a local supplier is 2.5 to 2.7 cents.

Commitment has a price, and not everyone charges it. Each extra contract year cost 0.23 cents per kWh on average (95% interval 0.18 to 0.28), so a five-year contract needed about 1.2 cents off to match one with no contract. The survey told people that a contract fixed the price and charged a penalty for leaving early. 71% counted that as a cost; 29% (25% to 34%) counted it as a benefit.

Variable rates were valued above their own average price. A time-of-day rate (11 cents by day, 5 at night) was valued like a fixed price of 9.9 cents, and a seasonal rate (10 in summer, 8 in winter, 6 in spring and fall) like 9.9. Their plain averages over the clock and the calendar are 8 and 7.5 cents, so people treated them as if they cost 1.9 and 2.4 cents more. Part of the time-of-day gap can be real: a household that uses more power by day pays more than 8 cents on average under it. These two had the widest spread: 39% would take the time-of-day rate over a fixed 9 cent contract with everything else the same, and 18% over a fixed 7 cent one.

The mixed model is worth it for how people differ, and only for that. It fits the same choices far better than the simple model (log-likelihood −3,913 against −4,959, for 5 more parameters) and moves the averages little, except for the two variable rates (simple model 8.7 and 9.3 cents). On people it never saw, it predicts a single choice no better than the simple model (48% right for both, against 25% by chance), but it predicts a person's whole set of choices much better. For a quick average, the simple model is close; for the spread and the share who see a feature as a cost, you need the mixed model.

Terms used on this page

Stated choice
A survey that shows people a few made-up offers side by side and asks which one they would take. Prices and features change from question to question, so their trade-offs can be measured without asking anyone what they would pay.
Willingness to pay
How much higher a price someone would accept to get a feature, here in US cents per kWh on the fixed price. It is the feature's weight in the choice divided by the weight of price.
Conditional logit (the simple model)
A choice model in which everyone weighs each feature the same way. Each offer's chance of being picked rises with its features and falls with its price.
Mixed logit (the mixed model)
The same model with each feature's weight allowed to vary from person to person, following a chosen shape (normal or log-normal), and with each person's choices kept together. It estimates the average and the spread.
Spread (sd)
The standard deviation of willingness to pay across people. About 80% of people fall within 1.3 spreads of the average under a normal shape.
95% interval
The range of values the data supports for an estimate. A narrow interval means the estimate is pinned down; it says nothing about how much people differ, which is the spread.
Price equivalent
For the time-of-day and seasonal rates, which have no fixed price, the fixed price that would make a contract with the rate just as attractive.

What carries over to software pricing, and what does not

Carries over: the method and how to read it. A choice survey prices features without asking anyone for a price. It gives each feature a worth in money with an interval, shows how widely customers differ and what share see a feature as a cost, and puts a price on commitment, as contract length does here. Reading it well also carries over: test the shape assumed for the spread, check the code on a published answer first, and judge the model on whole people it never saw.

Does not carry over: the numbers. This is household electricity, a commodity bought by the kWh, surveyed decades ago. Software differs in the market, the era, the product, and how often people really switch, which a choice survey does not measure. People choosing on paper pay nothing, so stated choices can overstate what they would pay (hypothetical bias).

None of these figures is an input for any software price list. Where a pricing model needs a customer response it has not measured, keep the assumption and sweep it over a range; cite this study, if at all, as context.

Limits

How I built it

On this study the known-answer check passed at the 100 random draws the package's own exercise uses, but the draw-count check caught that 100 draws are too few for this data: at 1,000 draws, 7 of the 11 estimates moved more than two of the published standard errors and the log-likelihood rose 49 points above the published one, while across 500 to 2,000 draws and three seeds no willingness-to-pay figure moved more than 0.2 cents. The page reports 1,000 draws.

Use this at your company

To measure willingness to pay for your own product's features, paste this into an AI assistant along with your plan options.

This method comes from Diogo Travassos's study "Willingness to pay" (https://diogotravassos.dev/willingness-to-pay/). If you can open links, read it first: it works the method through end to end and shows the checks that caught mistakes. The steps below stand on their own if you can't.

Help me measure what our customers would pay for each feature of a plan, from the choices they make instead of asking them for a price.

Design:
1. List the features that really differ between plans we could sell (price, commitment length, support level, usage allowance) and two to four realistic levels for each.
2. Build choice tasks of three or four plans each from an efficient design, so no two features move together, and give each person about ten tasks.
3. Run it on a sample of real buyers, and set aside a share of whole people (never single answers) for testing.

Analysis:
4. Fit a conditional logit, then a mixed logit with each non-price feature varying across people and each person's answers kept together. Willingness to pay is minus the feature's coefficient over the price coefficient, with intervals by the delta method and by simulation.
5. Before trusting the code, reproduce a published estimate on a public dataset. Then check that the results stop moving as you add draws, change the seed and change the starting values, and try a second shape for the spread.

Report back: each feature's average worth with its interval, how widely people differ and what share see it as a cost, how well the held-out people's choices are predicted, and the limits. Stated choices can overstate willingness to pay, and prices outside the tested range are extrapolated.

In your report, say which study you followed and link it: https://diogotravassos.dev/willingness-to-pay/

Method and checks

Data

The Electricity data set ships with the R package mlogit (version 2.0-0, licence GPL 2 or later). Its documentation names Kenneth Train's home page as the source and cites Huber and Train, and Revelt and Train. Each respondent chose among 4 electricity supplier contracts that differ in fixed price, contract length (0, 1 or 5 years), a local supplier, a well-known supplier, time-of-day rates and seasonal rates. The file holds 4,308 choice situations from 361 respondents; 348 answered 12 situations and the other 13 at least 8. Whenever a contract offered a variable rate its fixed price is zero, so the rate's weight is its price equivalent.

The data is not redistributed. The code downloads the package source from CRAN, checks its fingerprint and reads only the data file; the data sources note gives the address, version, licence and citations.

Models and intervals
  • Conditional logit on all six attributes, fitted by Newton's method on the exact gradient and Hessian.
  • Mixed logit: normal weights for the five non-price attributes, a fixed price weight, each person's choices kept together, 1,000 scrambled Halton draws per person. Fitted on the exact gradient; standard errors from the Hessian. Normal, not log-normal, because it lets the data show a feature as a cost to some people (contract length is one), it is the published model, and a log-normal run is reported beside it.
  • Willingness to pay is minus the attribute's weight over the price weight. Intervals by the delta method and by simulation from the estimates' joint distribution (10,000 draws); the two agree to within 0.01 cents, so the page shows the simulation intervals.
  • Model comparison: log-likelihood −4,958.6 with 6 parameters for the simple model, −3,913.1 with 11 for the mixed model; equal chances would score −5,972.2.
Known answer

The package's Exercise 3 fits this exact mixed logit with 100 Halton draws and prints its estimates. The bar, set before any fit: every coefficient within two published standard errors, and the log-likelihood within 10 points. At 100 draws our code passes: the largest gap is 1.5 standard errors, and the log-likelihood is −3,969.2 against the published −3,961.7. At 1,000 draws, 7 of 11 coefficients move past that bar; the draw counts below show why.

Published estimate against this study's code (gaps in published standard errors)
CoefficientPublishedOurs, 100 drawsGapOurs, 1,000 drawsGap
Price−0.880−0.886−0.2−0.933−1.6
Contract length−0.217−0.2011.2−0.2170.0
Local2.0922.1841.12.3052.6
Well known1.4911.4920.01.6292.1
Time of day−8.582−8.5850.0−9.206−2.2
Seasonal−8.583−8.5620.1−9.240−2.3
Spread: contract length0.3730.3880.80.4011.5
Spread: local1.5591.500−0.71.8333.1
Spread: well known1.0510.931−1.51.2042.0
Spread: time of day2.6952.566−1.12.9702.3
Spread: seasonal1.9511.9580.12.2292.7
Draws, seeds and starting values

The log-likelihood of the mixed model rose with the number of draws (−3,930.8 at 250, −3,923.7 at 500, −3,913.1 at 1,000, −3,911.5 at 2,000) and moved by 8.5 points across three draw seeds. Willingness to pay settled sooner: across 500, 1,000 and 2,000 draws, three seeds and three starting points, no average or spread moved more than 0.20 cents from the reported fit (at 250 draws, 0.32). All three starting points reached the same optimum.

Holdout on whole people

The 361 respondents were split at random into 5 groups. Each group was held out in turn, both models were fitted on the rest, and the held-out people were scored. People, never single answers, are held out, so no one's other answers help predict them.

People the models never saw: mean over 5 folds (lowest to highest fold)
MeasureEqual chancesSimple modelMixed model
Log-likelihood per choice, one choice at a time−1.386−1.155 (−1.197 to −1.053)−1.152 (−1.196 to −1.057)
Choices where the likeliest contract was the one picked25%47.6% (45.5% to 52.4%)47.5% (45.5% to 52.7%)
Log-likelihood per choice, a person's whole set−1.386−1.155 (−1.197 to −1.053)−0.911 (−0.984 to −0.820)

The mixed model scores a held-out person's whole set of choices better in 5 of 5 folds; one choice at a time, it beats the simple model in 3 of 5, by a margin too small to matter.

Independent check

A second library, xlogit, fitted both models on the same data. Its conditional logit differs from this study's by less than one millionth on every coefficient. Its mixed logit, with 500 of its own Halton draws, lands within 0.9 of this study's standard errors on every coefficient.