Signature
w_hat = (b_high - b_low) / (s_high - s_low)
| Inputs | Definition | Unit |
|---|---|---|
b_high | Median or mean answer of the arm given the higher starting value | the survey's own unit |
b_low | Median or mean answer of the arm given the lower starting value, the same statistic as b_high | the survey's own unit |
s_high | Starting value shown to the high arm, such as an opening bid | the unit of b_high |
s_low | Starting value shown to the low arm, below s_high | the unit of b_high |
w_hat | Share of the distance between the two starting values retained in the gap between the arms, as a proportion | none |
|---|
Function
Anchoring bias mapping from an underlying value and a starting value to a stated amount
Maps a respondent's underlying value v, a starting value s shown by the survey and an anchoring weight w to the stated amount b and its shift d_b, and works back from randomised starting values to the weight and a corrected mean. Stated amounts feed live records that are not drafted again, HE-FM-WTP-002 for mean willingness to pay and aggregate benefit, HE-FM-CBA-001 for net present value, HE-FM-UTIL-001 for a time trade-off value and HE-FM-QALY-001 for QALYs. The weighted average has the algebraic form of HE-FM-LOCF-001 and HE-FM-BARG-001, whose weights are a fraction of an arm with a missing final value and a manufacturer's bargaining weight, so neither record holds this quantity. Scale anchoring at 1 for full health and 0 for dead is HE-AS-QALY-002 and is a separate idea. Notation follows the Anchoring Bias article.
Computational function
Computational function for the anchoring weight and corrected mean from an arm table
Takes a table of randomised arms, each with a starting value, an answer summary and a size, and fits the size-weighted least squares line of arm means on starting values. The slope is the estimated anchoring weight, which reduces to HE-FM-ANC-002 for two arms, and the corrected mean follows HE-FM-ANC-003. A regression on individual answers with the starting value as the only predictor gives the same slope as this table (derived, checked in Python on a simulated data set), and Augestad and colleagues assessed anchoring by regressing individual values on the starting point. The covariance over variance form is that of HE-FM-HINQ-002, which regresses group mean health on a group's midpoint rank rather than on a survey number. The Math / Code line shows three arms; the R and Python versions take any number.
Inputs and outputs:
n_1,n_2andn_3are the arm sizes, in respondents;s_1,s_2ands_3are the starting values andb_1,b_2andb_3the arm mean answers, in the survey's own unit.Nis the sample size,s_barthe average start,b_poolthe pooled mean,S_xxandS_xythe weighted sums of squares and products,w_hatthe estimated weight andv_barthe corrected mean. The R and Python versions return the same outputs for vectorsn,sandb.Assumption: Arms are comparable apart from the starting value (HE-AS-ANC-004) and lie on one line (HE-AS-ANC-007) with a weight below 1 (HE-AS-ANC-008). At least two arms with people in them must have different starts. If all starts are equal, or there is a single arm,
w_hatis NA in R and None in Python, andv_barlikewise. The R, Python and Excel versions count the starts as equal when their mean squared distance froms_baris at most 1E-12, because rounding can leave a tiny non-zero sum, which without this guard returned a weight of 0.1667 in R and Python for three arms of equal size all at 0.7 with answers of 0.2, 0.3 and 0.4 (computed here). Ifw_hatis 1 or more,v_baris NA or None. A negativew_hatstill returns av_bar, which lies outside HE-AS-ANC-002 and is not read as a corrected mean (HE-AS-ANC-006). All sizes zero or empty inputs returnNof 0 withw_hatandv_barNA or None, and withs_barandb_poolNaN in R and 0 in Python.Worked example (Article's arms with a middle start added): Illustrative. A middle arm at the average start of GBP 160 lies on the article's line, so the weight stays at 0.3 and the corrected mean at GBP 150.
n_1 = 100; s_1 = 20; b_1 = 111; n_2 = 100; s_2 = 160; b_2 = 153; n_3 = 100; s_3 = 300; b_3 = 195; N = 300; s_bar = 160; b_pool = 153; S_xx = 3920000; S_xy = 1176000; w_hat = 0.3; v_bar = 150Worked example (Norwegian groups 0, 5 and 10 after strict exclusions): Means and sizes from Augestad and colleagues' Table 2. The fitted slope is 0.1484 and
v_baris 0.1665 (both computed here and not figures in the paper). The three means do not lie on one line, with group 5 above group 10, so HE-AS-ANC-007 does not hold, and exclusions differ by group, so HE-AS-ANC-004 is in doubt. The example shows how sizes enter the slope, and itsv_baris arithmetic only and no estimate of an underlying mean; the authors leave the absolute effect open.n_1 = 21; s_1 = 0; b_1 = 0.08; n_2 = 48; s_2 = 0.5; b_2 = 0.27; n_3 = 43; s_3 = 1; b_3 = 0.26; N = 112; s_bar = 0.5982; b_pool = 0.2305; S_xx = 14.9196; S_xy = 2.2141; w_hat = 0.1484; v_bar = 0.1665Worked example (Empty middle arm reduces to the two-arm index): Illustrative. With no respondents in the middle arm the result equals HE-FM-ANC-002 on the article's figures.
n_1 = 200; s_1 = 20; b_1 = 111; n_2 = 0; s_2 = 160; b_2 = 153; n_3 = 200; s_3 = 300; b_3 = 195; N = 400; s_bar = 160; b_pool = 153; S_xx = 7840000; S_xy = 2352000; w_hat = 0.3; v_bar = 150Worked example (All 11 Norwegian groups, for the R and Python code): The Math / Code line holds three arms, so this example is for reading against the R and Python versions. With the strict sizes 21, 34, 38, 37, 38, 48, 34, 46, 28, 44 and 43, starts 0 to 1 in steps of 0.1 and means 0.08, 0.09, 0.2, 0.19, 0.25, 0.27, 0.29, 0.32, 0.3, 0.28 and 0.26, the code returns
Nof 411, a pooled mean of 0.2392,w_hatof 0.1857 andv_barof 0.1723. The pooled mean agrees with the 0.24 of Table 2. The study's coefficient of 0.194 comes from a model that also holds age, sex, education and a random intercept for each respondent, and the two-decimal rounding of the Table 2 means could alone move this slope by up to 0.014 (computed here), so the gap of 0.008 is not attributed to either. The means peak at group 7 and then fall, so HE-AS-ANC-007 does not hold andv_baris arithmetic only. The three-arm examples above run on the calculator chain.Excel: With arm rows in ranges named
StartValue,ArmMeanandArmSize, enter=SUMPRODUCT(ArmSize,StartValue)/SUM(ArmSize)in a cell namedAvgStart,=SUMPRODUCT(ArmSize,ArmMean)/SUM(ArmSize)inPooledArmMean,=IF(SUMPRODUCT(ArmSize,(StartValue-AvgStart)^2)/SUM(ArmSize)>1E-12,SUMPRODUCT(ArmSize,StartValue-AvgStart,ArmMean-PooledArmMean)/SUMPRODUCT(ArmSize,(StartValue-AvgStart)^2),NA())inArmSlopeWeightand=IF(ArmSlopeWeight<1,(PooledArmMean-ArmSlopeWeight*AvgStart)/(1-ArmSlopeWeight),NA())inCorrectedArmMean. Equal starts in every arm with people in it give #N/A inArmSlopeWeightandCorrectedArmMean, and all sizes blank or zero give #DIV/0! inAvgStart.R:
anchor_arms <- function(n, s, b) { N <- sum(n); sb <- sum(n*s)/N; bp <- sum(n*b)/N; sxx <- sum(n*(s-sb)^2); sxy <- sum(n*(s-sb)*(b-bp)); w <- if (N > 0 && sxx/N > 1e-12) sxy/sxx else NA; v <- if (!is.na(w) && w < 1) (bp-w*sb)/(1-w) else NA; list(N = N, s_bar = sb, b_pool = bp, w_hat = w, v_bar = v) }Python:
def anchor_arms(n, s, b): N = sum(n); sb = sum(x*y for x, y in zip(n, s))/N if N > 0 else 0.0; bp = sum(x*y for x, y in zip(n, b))/N if N > 0 else 0.0; sxx = sum(x*(y-sb)**2 for x, y in zip(n, s)); sxy = sum(x*(y-sb)*(z-bp) for x, y, z in zip(n, s, b)); w = sxy/sxx if N > 0 and sxx/N > 1e-12 else None; v = (bp-w*sb)/(1-w) if w is not None and w < 1 else None; return N, sb, bp, w, vPlain Python with no imports, returning the sample size, average start, pooled mean, weight and corrected mean.Test (Equal arm sizes match the SLOPE function): With the first example's arms, each of size 100,
ArmSlopeWeightis compared with SLOPE on the arm means and starts, which ignores sizes and so agrees only when sizes are equal. Expected result TRUE. A slope without centring returns 0.7345 and FALSE, and doubling the cell to 0.6 or halving it to 0.15 also gives FALSE. Excel check=ABS(ArmSlopeWeight-SLOPE(ArmMean,StartValue))<1E-9Test (Residuals orthogonal to the starts with unequal arms): With the second example's arms, the size-weighted residuals from the fitted line sum to zero against the centred starts. Expected result TRUE. An unweighted slope of 0.18 leaves a sum of about minus 0.47 and FALSE, doubling the cell leaves about minus 2.21 and halving it about 1.11, all FALSE. Excel check
=ABS(SUMPRODUCT(ArmSize,StartValue-AvgStart,ArmMean-PooledArmMean-ArmSlopeWeight*(StartValue-AvgStart)))<1E-6Test (Corrected mean of the article's arms): With the first example's arms,
CorrectedArmMeanis compared with the hand value 150. Expected result TRUE. A cell without the division by 1 minus the weight returns 105 and FALSE, and doubling it to 300 or halving it to 75 also gives FALSE. Excel check=ABS(CorrectedArmMean-150)<0.05Common error (Fitting the arm means without their sizes): Augestad and colleagues' groups 0, 5 and 10 hold 21, 48 and 43 respondents after strict exclusions. An unweighted SLOPE on the three means returns 0.18, against the size-weighted 0.1484, which is the slope a regression on the same individuals would give (computed here).
Source: Augestad LA, Stavem K, Kristiansen IS, Samuelsen CH, Rand-Hendriksen K. Influenced from the start: anchoring bias in time trade-off valuations. Quality of Life Research. 2016;25(9):2179-2191. Full text read in PubMed Central, PMC4980414. Abstract, on anchoring bias assessed by OLS regression with the starting point as the independent variable; section Main experiment and Table 2, for the groups, sizes and mean values; section LT-TTO regression model and Table 3, for the coefficient of 0.194 and the covariates.
N = n_1 + n_2 + n_3; s_bar = (n_1 * s_1 + n_2 * s_2 + n_3 * s_3) / N; b_pool = (n_1 * b_1 + n_2 * b_2 + n_3 * b_3) / N; S_xx = n_1 * (s_1 - s_bar)^2 + n_2 * (s_2 - s_bar)^2 + n_3 * (s_3 - s_bar)^2; S_xy = n_1 * (s_1 - s_bar) * (b_1 - b_pool) + n_2 * (s_2 - s_bar) * (b_2 - b_pool) + n_3 * (s_3 - s_bar) * (b_3 - b_pool); w_hat = S_xy / S_xx; v_bar = (b_pool - w_hat * s_bar) / (1 - w_hat)
Try this function
Implementations
Excel
Anchoring index from named arm cells
With the arm summaries in cells named HighArmAnswer and LowArmAnswer and the starting values in HighStart and LowStart, the formula returns the index as a proportion in a cell named AnchoringIndex, or #N/A if the starting values are equal. For the article's arms, with 195, 111, 300 and 20, it returns 0.3. Multiply by 100 for the percentage form.
=IF(HighStart<>LowStart,(HighArmAnswer-LowArmAnswer)/(HighStart-LowStart),NA())
Assumptions
Arms comparable apart from the starting value
Reading the index as the weight w needs arms that differ only in the starting value, which random allocation gives apart from sampling error. Augestad and colleagues randomised respondents to 11 starting points and report that respondents with lower starting points triggered their exclusion criteria more often, so an analysis after exclusions can lose part of that protection (derived).
Same summary statistic and two different starting values
Both arms use the same statistic, medians in the index as Lieder and colleagues print it and means in the article. The starting values must differ. If they are equal the ratio has a zero divisor and the Excel Implementation returns #N/A.
Index read against the range of the anchoring weight
The arithmetic does not bound the index. A value below 0 or above 1 lies outside the range of HE-AS-ANC-002, so it is reported as it stands and is not read as a weight under HE-FM-ANC-001 (derived).
Worked examples
Estimated weight in the anchoring article example
Illustrative figures from the article. Arm means of GBP 111 and GBP 195 at opening bids of GBP 20 and GBP 300 give a gap of GBP 84 over a bid distance of GBP 280, so the index is 0.3 and returns the weight assumed in HE-FM-ANC-001.
b_high = 195; b_low = 111; s_high = 300; s_low = 20; w_hat = 0.3
Mean form of the index for the Swedish antisecretory drug bidding game
In Stålhammar's bidding game, mean willingness to pay was SEK 70 among the 42 patients who started at SEK 20 and SEK 289 among the 40 who started at SEK 1,000. The mean form of the index is 0.2235, computed here from those means and not a figure in the paper, so the gap retained about 22% of the distance between the bids. Reading it as a weight rests on HE-AS-ANC-004, which has to be checked against how the study allocated its patients.
b_high = 289; b_low = 70; s_high = 1000; s_low = 20; w_hat = 0.2235
Extreme starting point groups in the Norwegian lead-time time trade-off
In Augestad and colleagues' main experiment, group 0 started at a time trade-off value of 0 and group 10 at a value of 1. Table 2 gives means across health states of 0.08 and 0.26 after the strict exclusions, so the index is 0.18 (computed here), near the study's adjusted coefficient of 0.194 across all 11 groups. Without exclusions the means of minus 0.08 and 0.24 give 0.32 against a coefficient of 0.373. The paper's text gives the difference between the lowest and highest groups as 0.19 (strict) and 0.37 (inclusive), and the article reports the strict figure, while the rounded Table 2 means give 0.18 and 0.32. Exclusions removed 8 of 29 in group 0 and 2 of 45 in group 10, so the strict figure is read with HE-AS-ANC-004 in mind.
b_high = 0.26; b_low = 0.08; s_high = 1; s_low = 0; w_hat = 0.18
Limiting case of equal answers in both starting value arms
When both arms give the same answer the index is 0, which is what no anchoring predicts. The figures are illustrative and the case checks an implementation.
b_high = 150; b_low = 150; s_high = 300; s_low = 20; w_hat = 0
Common errors
Dividing the arm gap by one opening bid
The divisor is the distance between the two starts. In the article's example the GBP 84 gap over the high bid alone gives 0.28 and over the low bid alone gives 4.2, against the correct 0.3 (derived).
Comparing a median index with a mean index without saying which
When weights differ across respondents the two forms can part. In a simulation of 20,001 lognormal values with log mean 5 and log standard deviation 0.6, half of respondents at a weight of 0 and half at 0.6, and bids of 20 and 300, the mean form returned 0.30 and the median form 0.43 (computed here for illustration).
Reading the anchoring index as the bias of one survey
The index measures the pull, while the bias of a survey depends also on the distance of its start from the true value, HE-FM-ANC-001. In the article's example one index of 0.3 goes with an overstatement of GBP 45 at the high bid and an understatement of GBP 39 at the low bid.
Sources
Lieder and colleagues on the anchoring index of Jacowitz and Kahneman
Lieder F, Griffiths TL, M Huys QJ, Goodman ND. The anchoring bias reflects rational use of cognitive resources. Psychonomic Bulletin & Review. 2018;25(1):322-349. Section Provided anchors, equation 5, which prints the index of Jacowitz and Kahneman as the median estimate with the high anchor minus the median estimate with the low anchor, divided by the high anchor minus the low anchor, times 100%, described as the percentage of the distance from the low to the high anchor that is retained in estimates. The authors report that Jacowitz and Kahneman found an average index of about 50%.
Jacowitz and Kahneman on a measure of anchoring in estimation tasks
Jacowitz KE, Kahneman D. Measures of anchoring in estimation tasks. Personality and Social Psychology Bulletin. 1995;21(11):1161-1166. Abstract, which sets anchors at predetermined percentiles of a calibration group's estimates, the 15th and 85th in that study, and says the procedure provides a natural measure of the size of the effect.
Stålhammar on bidding game means from low and high starting bids
Stålhammar NO. An empirical note on willingness to pay and starting-point bias. Medical Decision Making. 1996;16(3):242-247. Abstract, with the bidding game starting at SEK 20 or SEK 1,000, an average of SEK 70 among the 42 patients who started low and SEK 289 among the 40 who started high.
Augestad and colleagues on starting point groups and regression in time trade-off
Augestad LA, Stavem K, Kristiansen IS, Samuelsen CH, Rand-Hendriksen K. Influenced from the start: anchoring bias in time trade-off valuations. Quality of Life Research. 2016;25(9):2179-2191. Full text read in PubMed Central, PMC4980414. Section Main experiment, for randomisation to starting point groups 0 to 10. Table 2, for the starting value on the time trade-off scale, group sizes and mean values. Table 3 and section LT-TTO regression model, for coefficients on the starting point value of 0.194 (strict) and 0.373 (inclusive), for a 1-year rise in the start, worth 0.1 on the scale, raising the value by 0.019 (strict), and for a difference between the lowest and highest groups of 0.19 (strict) and 0.37 (inclusive).
Canonical Identity
Stable URI · Machine-readable · Resolvable · CC BY 4.0
