> Unofficial English translation of the locked protocol [protocol.json](protocol.json). Only the original JSON file is binding; it is unchanged.

# VS-WORLD v1 protocol (English rendering)

Each top-level JSON key is a heading; nested keys are listed as `key`: value. Labels that appear as quoted strings in the original are given in English with the Swedish original in parentheses.

## study

VS-WORLD v1 (VoteShift World — "VoteShift världen": forward-looking forecasts for national elections)

## status

PROSPECTIVE. Every forecast is locked and published before election day and scored against the official outcome. No forecast may be changed after locking.

## written

2026-11-28

## author

Thomas Hedlund Leijon, FieldShift.org

## decisions

Thomas 2026-11-28: national parliamentary and presidential elections; fallback model with clear labelling where polls are missing; automatic weekly run with locking 7 days before election day; comparison against a simple poll average, the previous result, prediction markets and published forecasters.

## population

- **`include`**: National elections to the lower house or unicameral parliament and direct presidential elections in sovereign states with election day on or after 2026-12-08 (the first election day that can be locked 7 days after the protocol's locking).
- **`exclude`**: Referendums, regional and local elections, indirect presidential elections, elections to an upper house only.
- **`calendar`**: data/calendar_*.json, updated weekly. Elections added later are included if they can be locked in time.
- **`competitiveness_flag`**: Elections in which, according to the election article or independent election observers, there is no real opposition are labelled 'non-competitive' ('icke-konkurrensutsatt'). They are forecast but reported and scored separately.

## lock

- **`time`**: Election day minus 7 days, at 23:59 UTC. For presidential elections with two rounds, each round is locked separately 7 days before the respective round.
- **`cutoff`**: Only polls whose fieldwork period ended no later than the locking. If the publication date is missing, the last day of the fieldwork period plus 1 day is used; this is recorded.
- **`proof`**: The forecast is saved as JSON, SHA-256-hashed and committed to the GitHub repository (voteshift-world/locks/) before election day. The commit time is the public proof.
- **`late`**: If a forecast cannot be locked at least 1 day before election day, no forecast is made for that election; this is recorded as 'not locked in time' ('ej låst i tid').
- **`date_change`**: If election day is moved after locking, the locked forecast stands; a new forecast may be locked 7 days before the new date and is reported as version 2. Both are scored.

## targets

- **`Q1_shares`**: Vote share (percent) in the first round for every party or candidate that has at least 2% in the previous election or in the poll average, plus 'others' ('övriga').
- **`Q2_winner`**: Probability of which party or candidate receives the most votes (first round for presidential elections).
- **`Q3_threshold`**: Where a national electoral threshold exists: the probability that each party reaches the threshold.

## model_VoteShift

- **`name`**: VoteShift B2-världen v1 (VoteShift B2 World v1)
- **`lineage`**: The same PollEngine B2 as in VS-US26-BT (the method sheet, "metodbladet", v0.2), generalised to shares per party.
- **`window_days`**: 60; if there are fewer than 3 polls, 180 days are used; if there are fewer than 3 even then, the fallback model is used.
- **`time_weight`**: `0.5 ** (ålder_dagar / 14)`, `ålder = låsdatum − fältperiodens slut` (age_days; age = lock date − end of fieldwork period)
- **`sample_weight`**: `sqrt(min(n, 3000))`; if n is missing, 1000 is used
- **`pollster_cap`**: at most the 3 most recent polls per polling firm
- **`house_effect`**: `h_p,j = k_p/(k_p+5)` · mean deviation of polling firm p from the time-weighted average of the other polling firms, per party j; subtracted from the firm's figures. Requires at least 2 polling firms.
- **`estimate`**: weighted mean of house-adjusted shares, normalised to 100
- **`uncertainty`**: Monte Carlo 20 000 draws. Each party j: share + N(0, σ_j), σ_j = sqrt(p_j(1−p_j)/n_eff + σ_hist,j²), σ_hist,j = clip(2.5 · sqrt(p_j/25), 0.8, 4.0) percentage points, where p_j is the share in percent. Negative shares are set to 0 and the draw is normalised to 100. σ_hist is based on the order of magnitude of historical polling errors in Jennings & Wlezien (2018, Nature Human Behaviour).
- **`seed`**: 20261128 + the election's serial number

## model_fallback

- **`name`**: VoteShift reserv (inga mätningar) (VoteShift fallback (no polls))
- **`when`**: fewer than 3 eligible polls within 180 days
- **`estimate`**: previous election result for the same parties/candidates; new parties get 0
- **`uncertainty`**: as above but σ = 2 · σ_hist,j
- **`label`**: Always labelled 'fallback model – no polls' ('reservmodell – inga mätningar') and scored in a separate group.

## benchmarks

- **`M0_previous`**: Previous election result with the same uncertainty as the fallback model.
- **`M1_poll_average`**: Unweighted mean of polls whose fieldwork period ended within 14 days before locking (at least 3; otherwise the 5 most recent), same uncertainty as VoteShift.
- **`M2_markets`**: Prediction market price (mid price) for the winner at the time of locking, where a liquid market exists (e.g. Polymarket). The price is saved with source and timestamp. Used only for Q2.
- **`M3_forecasters`**: Published forecasts from established forecasters, retrieved at the time of locking with source, link and timestamp. Used for the measures they report.

## scoring

- **`outcome_source`**: Official final result from the electoral authority; secondarily Wikipedia with reference to the electoral authority. Retrieved no earlier than when the vote count is complete and no later than 60 days after the election.
- **`Q1`**: Mean absolute error (percentage points) over the listed parties.
- **`Q2`**: Brier (sum over outcomes of (p − y)²) and log score (−ln p for the winner, p ≥ 0.001).
- **`Q3`**: Brier per party.
- **`groups`**: Reported separately: (a) elections with polls, (b) fallback model, (c) non-competitive.

## claim_rule

- **`best`**: The word 'best' ('bäst') may be used about a comparison only when: (1) at least 30 scored elections in group (a); (2) VoteShift has a lower mean Brier for Q2 and a lower mean error for Q1 than the comparison model; (3) the difference has a 95% interval that excludes 0 in a paired bootstrap over elections (2 000 draws, seed 20261128). Against M2 and M3, at least 15 common elections are additionally required, and only common elections are compared.
- **`before`**: Before the requirements are met, running results are shown with the text 'too early to tell' ('för tidigt att avgöra').
- **`no_cherry_picking`**: All locked forecasts are scored, including failed ones. No forecast may be removed.

## integrity

The protocol is locked with SHA-256 before the first forecast. Changes are made only as a new version with date and reason in deviations.md and apply only to forecasts locked thereafter.
