1
Choice shares · Dirichlet-multinomial
What share of people choose each option, with how much certainty.
wi = 2−agei/h · (1 if did, else ω)
p̂k = nk + α/KN + α neff = (Σw)2Σw2
- nk: weighted answers for option k; N = Σnk; K: options
- α: pull towards an even split; h: half-life in days; ω: weight of a “would”
- 90% range: 5th–95th percentile of Beta(nk + α/K, N − nk + α(K−1)/K)
Checked: ranges covered the true share 89–90% of the time; error at 5 answers fell from 13.5 to 10.3 points. Shown from 5 answers.
2
Outcome per option · hierarchical Beta-binomial
How often an option goes well, borrowing strength from its topic.
μtopic = St + κ μglobalnt + κ, μglobal = S + 1n + 2
posterior = Beta( s + β μtopic, m − s + β(1 − μtopic) )
- s: weighted good outcomes (well = 1, mixed = ½); m: weighted outcomes
- κ = 10; β: prior strength, learned
Checked: shown from 3 outcomes; β learned by Brier score (method 3).
3
Recursive learning · prequential scoring
Tunes the settings by predicting every answer from only the answers before it.
L(θ) = −1T Σt ln pθ(yt | y1…yt−1) θ* = argminθ L(θ)
- θ = (α, h, ω, β) over a grid
- adopted only after 30+ scored answers; every run logged against a baseline
Checked: picked the right α on simulated data and predicted 18% better than guessing.
4
Crowd prediction · extremized log-odds pooling
What the crowd expects, from members’ own predictions made before they knew.
pcrowd = σ( an · 1n Σ logit(fi) ), an = 1 + (a − 1)nn + 5
- fi ∈ [0.02, 0.98]; σ(x) = 1/(1 + e−x)
- a > 1 sharpens the average, since each person sees only part of the picture; learned from {1 … 3}
Checked: the crowd scored Brier 0.214 against 0.247 for individuals; the best a was 1.5.
5
Scoring · Brier and calibration
How good predictions were, once outcomes are known.
Brier = 1N Σ (fi − yi)2 (0.25 coin flip, 0 perfect)
- counts only predictions made before the outcome; scored for the individual, the earlier crowd, and a running base rate
- calibration: mean prediction against actual rate in tenths, with a Jeffreys range
Checked: end-to-end with live test data.
6
Say vs do · Momentum · Demand
Intentions against actions, recent shifts, and rising searches.
gap = pd − pw ± 1.645 √( pw(1−pw)nw+1 + pd(1−pd)nd+1 )
z = p1 − p0√( p̄(1−p̄)(1/n1 + 1/n0) ) ratio = (a+1)/14(b+1)/56
- shares Jeffreys-smoothed: (k + ½)/(n + 1)
- |z| ≥ 1.96 flagged significant; 30 days against earlier; rising words: last 14 against the 56 before
Checked: standard tests; each needs a minimum count before it shows.
7
Profile predictor · naive Bayes
A first guess at what someone with a given background chooses.
ln P(k | x) ∝ ln π̂k + Σj ln P̂(xj | k)P̂(xj)
- Laplace smoothing; a factor is used only when 20+ panel members share it
- replaced by the decision’s boosted model once it has one
Checked: falls back to everyone’s shares when groups are small.
8
Boosted decision trees · second-order gradient boosting
Learns curves and interactions between factors by itself.
Fm(x) = Fm−1(x) + η fm(x) wleaf = −GH + λ
gain = GL2HL+λ + GR2HR+λ − G2H+λ
- gi = pi − yi, hi = pi(1 − pi); G, H: sums in a leaf
- η = 0.1, depth 3, λ = 1, ≥ 8 rows per leaf, early stopping (patience 20)
- outcome model and one choice model per decision with 150+ answers
Checked: on non-linear simulated data, 0.581 log loss against 0.632 for linear.
9
Model selection · temporal holdout
Uses a complex model only when it is clearly better.
oldest 80% train · newest 20% test
linear if Llin < 0.99 Lbase; boosted if Lgbm < 0.99 Lsimpler
- candidates: base rate, linear (logistic/softmax, L2 = 0.01, Adam), boosted trees
- the winner is refitted on all rows (newest 5,000)
Checked: kept boosted for non-linear data, linear for linear data, and the base rate with only 240 rows.
10
Explaining the models · partial dependence and Friedman’s H
How each factor bends the prediction, and which factors interact.
PDj(v) = 1n Σi F̂(xi with xj = v)
H2jk = Σ [PDjk − PDj − PDk]2Σ PDjk2
- PDs centred; H = 0 means the factors only add up, 1 means it’s all interaction; above about 0.3 is real
- the 3D surface is PDjk for the most interacting pair
Checked: a planted interaction scored 0.99 offline and 0.81 live; other pairs 0.1–0.27.
11
Dependencies · information and association
Which decisions’ answers go together, of any shape, and in which direction.
Î = H(A) + H(B) − H(A,B) − (r−1)(c−1)2N normalised = Îmin(H(A), H(B))
V = √χ2N(min(r,c) − 1) U(B|A) = ÎH(B) G = 2N I ~ χ2(r−1)(c−1)
- mutual information with Miller–Madow bias correction; Cramér’s V symmetric; Theil’s U directional
- lift = P(b|a)/P(b) with a 90% range; 20+ shared members per pair
Checked: a planted dependency scored 0.47; independent pairs about 0; directional U 0.99 against 0.50 as built.
12
3D map · classical multidimensional scaling
Places decisions so that dependent ones sit close together.
Dij = 1 − normalised Î B = −½ J D(2) J, J = I − 1n𝟙𝟙T
coordinates = top-3 eigenvectors of B × √λ
- eigenvectors by power iteration with deflation
Checked: recovered planted clusters exactly (0.10 within, 0.90 across).
13
Journeys and transitions
Each person's path on a decision, from their first "would" to acting, withdrawing, or still deciding.
status ∈ {acted, withdrew, open} p̂s = ns + ½N + 1
- acted: first "did" after "would"; withdrew: removed the answer and never came back
- 90% range: Beta(ns + ½, N − ns + ½)
- follow-through = acted on the option first intended ÷ acted
Checked: planted follow-through of 0.70 estimated at 0.700.
14
Time to act · Aalen-Johansen cumulative incidence
How many have acted by each day, counting open journeys only for as long as they've been followed, with withdrawal as a competing risk.
Fact(t) = Σtj ≤ t Ŝ(tj−1) dact,jnj Ŝ(t) = Πtj ≤ t (1 − dact,j + dwd,jnj)
- nj: journeys still open just before day tj
- 90% ranges: 200 bootstrap resamples of journeys
- median: first day Fact ≥ ½
Checked: against exact answers, error 0.02 at 30 and 90 days; ranges covered 88–95%; median 30.3 days vs 30.5 true.
15
Weekly hazard · life table
When people act: of those still deciding at the start of a week, the share who act that week.
hw = dw + ½n′w + 1, n′w = nw − cw2
- cw: journeys that withdrew or stopped being followed that week
- shown while 20+ are still deciding
Checked: week-1 hazard 0.163 vs 0.161 true.
16
Reporting outcomes · Kaplan-Meier
After acting, how soon people report how it went.
Ŝ(t) = Πtj ≤ t (1 − djnj) Var = Ŝ2 Σ djnj(nj − dj)
- shown as 1 − Ŝ, with Greenwood's variance
- outcome split among reports: Dirichlet with ½ per outcome
Checked: median 13.9 days vs 13.9 true.
17
Who acts faster · log-rank test
Whether groups (topics, people's own predictions) differ in time to act.
Ug = Σj (dgj − dj ngjnj) χ2 = UTV−1U ~ χ2k−1
Vgh = Σj dj nj − djnj − 1 ngjnj(δgh − nhjnj)
- groups of 20+ journeys, up to 8; withdrawn and open journeys are censored
- p-value: exact regularised gamma
Checked: false alarms 2.5–5% at p < 0.05 with no real difference; detected a 1.6× faster group 83% of the time with 100 per group.
18
Who's ahead · Dirichlet posterior
The chance each option truly has the largest share, and how many more answers would settle it.
θ ~ Dirichlet(c1 + ½, …, cK + ½) P(k leads) = P(θk = maxj θj)
n* = 1.6452 (p1 + p2 − d2)d2, d = p1 − p2
- ck: answers for option k; 2,000 draws, seeded by decision
- n*: total answers for the leader to be 95% certain if shares hold
Checked: when it says 98%, the true leader led 98% of the time; 71% → 77%, 52% → 48%. At n*, half of runs reached 95% (0.51).
19
Shifts · chi-square and change point
Whether recent answers differ from earlier ones, whether "did" differs from "would", and the moment answers shifted most.
χ2 = Σ (O − E)2E (one test per decision, K − 1 df)
Λ(τ) = 2 Σk [ak ln akτ + bk ln bkn − τ − ck ln ckn]
- a, b: answers per option before and after split τ; τ̂ = argmax Λ
- p-value: 199 random reorderings, so searching every split is allowed for; 40+ answers
Checked: false alarms 5.3% at p < 0.05 with no change; found a 20-point shift 69% of the time in 200 answers, within 15 answers of where it was.
20
Prediction quality · Murphy decomposition
What the Brier score is made of.
Brier = 1NΣb nb(f̄b − ȳb)2 − 1NΣb nb(ȳb − ȳ)2 + Var(y) + ε
- reliability − resolution + uncertainty; b: tenths of the prediction
- ε: spread of predictions within each tenth; skill = 1 − Brier / uncertainty
Checked: the parts add back to the score (0.2003 vs 0.2002, rounding).
21
Recalibration line · logistic regression
Whether predictions are too sure or not sure enough.
P(went well) = σ(a + b · logit f)
- Newton's method; mixed outcomes count ½ (quasi-likelihood)
- 90% ranges from the inverse information matrix
Checked: planted slope 0.6 recovered as 0.605 (0.556–0.655); slope ranges covered 90% at 300 predictions.
22
False discovery control · Benjamini-Hochberg
Keeps chance findings rare when many tests run at once.
q(i) = minj ≥ i m · p(j)j
- p(1) ≤ … ≤ p(m): the m p-values of one family, sorted
- a finding is shown when q < 0.10
Checked: 1,000 tests with 100 real effects: 9.0% of findings were false (theory 9%); p < 0.05 alone gave 47 false findings per run.
23
What people will do
The expected mix of actions within 90 days, from today's mix of intentions.
P(do j) = Σi wi ai [ f · 1(i = j) + (1 − f) sij ]
- wi: share intending option i; ai: chance of acting within 90 days (cumulative incidence, withdrawal as a competing risk, open journeys censored)
- f: chance the action matches the intention; sij: where switchers go
- each decision is pulled towards the overall rates with the weight of 10 journeys; 90% range from 600 joint posterior draws
Checked: 90% ranges covered the true action shares 90–92% of the time with 60 to 600 journeys; error 0.036 against 0.047 for counting actions seen so far (60 journeys).
Limits: associations among people who chose to answer, not causes and not a representative sample; outcomes are self-reported on a three-point scale. Not advice, and not a forecast of any market.