TheRealPolitics

Methodology

How we model elections, produce forecasts and design strategies and marketing campaigns.

1. Data layer

For every country in Europe, North, Central and South America and the major electoral democracies of Africa we store the head-of-state and legislative systems, regional executives and assemblies, municipal councils and mayors, and European Parliament seats — each with the seat formula, threshold, term, bonus or run-off rule and the years it was in force. Elections are stored at national, regional and municipal level with turnout and party results, so each historical contest is analysed under the rule that applied at the time. The target depth is 50+ years.

Each country and region carries a profile: population and registered voters, age structure, urbanisation, migration, GDP, growth, unemployment, inflation, inequality, education, religion and language composition, union density, internet and social-media penetration, press freedom, trust, democracy and corruption indices; a narrative of history, society, culture, economy, education, anthropology and political culture; the main cleavages and issues; the main media with reach, ownership and lean; social-platform penetration; and external influences from alliances and international organisations. Sources include International IDEA, IFES ElectionGuide, ParlGov, CLEA, IPU Parline, World Bank, Eurostat, UN DESA, V-Dem, RSF, Transparency International, the Reuters Institute and regional barometers. Seeded rows stay flagged to verify until an analyst confirms them.

2. Electoral systems & seat allocation

Highest-average methods allocate seats one by one to the party with the largest quotient v / d(s), where s is the number of seats already won:

D'Hondt: d(s)=s+1 · Sainte-Laguë: d(s)=2s+1 · Modified Sainte-Laguë: d(0)=1.4 (Norway), 1.2 (Sweden) · Imperiali: d(s)=s+2

Largest-remainder methods use a quota (Hare V/S, Droop ⌊V/(S+1)⌋+1), give each party ⌊v/q⌋ seats and the rest by largest remainders. Legal thresholds apply first; the “Others” bucket never receives seats.

Majority-bonus systems are modelled explicitly. Greece (Law 4804/2021): the first party with at least 25% receives 20 bonus seats plus one per 0.5 points above 25%, up to 50 seats at 40%; the remaining seats are shared by Hare largest remainder among parties above 3%. Applied to the published (rounded) June 2023 vote shares, the engine reproduces the official result to within one seat: ND 158, PASOK 32, Spartiates 12, Elliniki Lysi 12, Niki 10 and Plefsi Eleftherias 8 exactly, SYRIZA 47 and KKE 21 against the official 48 and 20 — the last remainder seat depends on decimals that rounded shares do not carry. Exact replication requires official vote counts. Italian and French municipal bonuses and San Marino’s majority rule are implemented similarly.

For single-member plurality and two-round systems without district inputs we use the generalised cube law seats ∝ vᵏ (k = 3 for FPTP, 2.5 for two-round); parallel systems combine both tiers. We also report the effective number of parties 1/Σp² and the Gallagher index √(½Σ(vᵢ−sᵢ)²).

3. Poll aggregation

wᵢ = 0.5^(ageᵢ / half-life) · √(min(nᵢ,5000)/1000) · rating(pollsterᵢ)

Shares are normalised to decided voters. With three or more pollsters, house effects are estimated iteratively as each pollster’s weighted deviation from consensus, shrunk by k/(k+2), and removed before re-averaging. The standard error combines sampling variance and between-poll dispersion over the effective number of polls (Σw)²/Σw². Internal campaign polls stay private to their campaign.

4. Fundamentals

FactorDefault effect (calibrate per country)
Leader net approval+0.08 pp per point
GDP growth (incumbent)+0.6 pp per point
Change in unemployment (incumbent)−0.9 pp per point
Inflation above 2% (incumbent)−0.35 pp per point
Years in office beyond 4 (incumbent)−0.5 pp per year

5. Social segments (class, education, age, urban/rural …)

share(party) = Σₛ Nₛ·tₛ·supportₛ(party) / Σₛ Nₛ·tₛ

A simplified post-stratification (MRP-style) model combines segment support with population weights and turnout, and reports how each party’s share moves if a segment’s turnout rises by 10%.

6. Events, social reactions and timing

Scandals, debates, protests, endorsements, economic shocks or international crises are logged with an impact in percentage points and a half-life; their effect decays as impact·0.5^(days/half-life).

7. Ensemble and Monte Carlo simulation

w_polls(d) = 0.5 + 0.45·(1 − min(d,365)/365) · w_segments = 0.25·(1 − w_polls) + 0.1 · w_fundamentals = remainder

Uncertainty per party: σ = √(SE² + (e₀·√(μ/25))²·(1 + d/100)), e₀ = 2 pp. We draw 10,000 scenarios with a small correlated industry-wide error and pass each through the country’s seat rule, reporting mean and 90% intervals of votes and seats and the probabilities of first place, threshold, majority and hung parliament.

8. Micro-agents (agent-based simulation)

Aggregate models describe averages; micro-agents reveal the mechanisms. The platform generates tens of thousands of synthetic voters from aggregate segments (population weight, ideology distribution, initial party support, turnout, media diet, susceptibility). No real individual is represented — agents are statistical draws from published aggregates.

Each agent has an ideological position xᵢ, a current intention, a media diet across channels (TV, social, door-to-door, …) and a small-world social network (mostly within its own segment, with some cross-segment ties). Every simulated week an agent reconsiders with probability proportional to its susceptibility and chooses party j by multinomial logit:

U_ij = α_sj − β(xᵢ − p_j)² + γ(v_j + shock_j(t)) + λ·[j = current] + η·Σ_c mediaᵢ(c)·ln(1 + effort_j(c)) + κ·(share of i's contacts choosing j)

The intercepts α_sj are calibrated so that, without campaign effort and shocks, each segment reproduces its observed support — campaign effects are therefore measured relative to a stable baseline. On election day each agent votes with probability σ(logit(t_s) + μ·ground mobilisation − α·alienation), where alienation grows with the distance to the nearest party.

Outputs (averaged over replications): vote and seat distributions, turnout, week-by-week trajectory, results by segment, the voter-flow matrix (initial → final intention), and the campaign lift of a focal party — the difference between runs with and without its campaign, decomposed by channel. Parameters β, γ, λ, η, κ, μ, α and the reconsideration rate are exposed and should be calibrated on past campaigns.

9. Markov voter flows

Voters move between parties and abstention according to a row-stochastic matrix P (from panel surveys, ecological inference, the micro-agent flow matrix or expert judgement). The distribution evolves as vₜ₊₁ = vₜ·P; we report the trajectory, stationary distribution, mixing time and largest net flows.

10. Game theory

Positioning and message games are solved by fictitious play (zero-sum: optimal mixed strategies and game value with bounds; non-zero-sum: pure Nash equilibria and the 2×2 mixed equilibrium). Resource competition (Colonel Blotto): region r is won with probability σ(leanᵣ + εᵣ(ln(1+xᵣ) − ln(1+yᵣ))); each side’s best response is computed exactly by dynamic programming and iterated to equilibrium.

11. Dynamic programming

Budget allocation: F(j,b) = maxₓ F(j−1,b−x) + gⱼ(x) with g(x) = cap·(1 − e^(−x/sat)). Spend scheduling: Vₜ(b) = maxₓ [g(x)·δ^(T−t) + Vₜ₊₁(b−x)]. Election timing: optimal stopping Vₜ(s) = max(win(s), Σ P(s,s′)·Vₜ₊₁(s′)).

12. Strategy and marketing-campaign method

  1. Situation analysis — electoral rule and incentives, history and swing areas, country/region profile, cleavages, media, external influences.
  2. Segmentation — aggregate segments only; never individual profiling.
  3. Positioning and key messages — informed by message games, segment sensitivities and micro-agent experiments.
  4. Objectives — measurable, with baseline, target, weight, priority and due date; weighted progress tracked automatically.
  5. Actions and channels — budget per action; allocation and timing from §11; regional effort from §10; channel lift from §8.
  6. Marketing plan — channel mix, aggregate audiences, creative brief, compliant with political-advertising transparency rules.
  7. Procedures — legal checklist with deadlines.
  8. Feedback loop — new polls, events and monitoring update forecasts; objectives are re-scored and resources re-optimised.

13. Validation, limitations and ethics

Seat-allocation code is tested against official results (see the electoral system examples). Forecast coefficients and micro-agent parameters must be back-tested per country before operational use. Every output shows its inputs and uncertainty. The platform models aggregates, not individuals, and its Terms prohibit disinformation, voter suppression and unlawful targeting.

14. Voting games and power indices

Seats are not power. A parliament is modelled as a weighted voting game [q; w₁,…,wₙ]: parties have seat weights wᵢ and a coalition wins if its seats reach the quota q (by default ⌊S/2⌋+1; supermajorities such as 2/3 can be set). We report:

Shapley–Shubik and Banzhaf are computed exactly by dynamic programming over (coalition size, weight) — a generating-function count of the coalitions of the other parties — so the cost is O(n³·q) and parliaments of hundreds of seats are handled without enumerating orderings. Minimal-winning-coalition indices and coalition lists enumerate coalitions and are produced for up to 22 parties.

Coalition theory. For every minimal winning coalition we mark the minimum winning one (Riker’s size principle: fewest surplus seats), minimal connected winning coalitions (Axelrod: adjacent on a left–right axis you supply) and Gamson’s law portfolio shares (proportional to seats contributed). Examples from real parliaments: in the 2025 Bundestag AfD (152 seats) and SPD (120) have the same Shapley–Shubik power (23.3%); in Greece 2023 ND, with 158 of 300 seats, is a dictator (100%) and every other party is a dummy. In the election simulation we report expected power, averaged over the Monte Carlo seat outcomes. These are a-priori measures of structural bargaining position, not predictions of behaviour.

15. Modern forecasting methods: what we use and how we evaluate

Election-night style simulation. The demo and the platform draw thousands of scenarios in which vote shares are perturbed with a logistic-normal error that has a shared (systematic) and a party-specific component and grows with the distance to election day. Each draw goes through the country’s legal seat rule, giving distributions of seats, majority probabilities and the most likely governing coalitions.

Multilevel regression and poststratification (MRP). Our segment model is a simplified poststratification. The research frontier uses hierarchical models with structured priors — e.g. autoregressive priors over ordered categories such as age — which reduce bias in small cells (Gao, Kennedy, Simpson & Gelman, Bayesian Analysis). Analysts can import MRP estimates produced externally as segment inputs.

Proper scoring and calibration. A forecast is judged after the election by Brier score and log score for event probabilities, CRPS for full seat distributions, and a reliability table with the expected calibration error (do events forecast at 70% happen about 70% of the time?). These are available as an analysis in the Lab (/analytics/score).

Conformal prediction intervals. Given past absolute forecast errors, split-conformal prediction returns an interval with finite-sample coverage ≥ 1−α without assuming normal errors, provided past and future errors are exchangeable. Election-night models have combined bootstrap and conformal inference (Cherian, Bronner & Candès), and weighted variants handle drift between elections (Barber, Candès, Ramdas & Tibshirani, Annals of Statistics 2023).

Agent-based models. Section 8 describes our micro-agent model. We do not use large-language-model “silicon samples” as a substitute for polling: recent studies find that synthetic LLM respondents can match averages but show less variance and structural inconsistencies than real survey data (e.g. Bisbee et al., Political Analysis 2024). LLM-generated text may be used only for drafting and summarising, never as data.

16. Secure and verifiable analysis

17. AI campaign assistant

An optional assistant built on a large language model (Anthropic Claude, called through the server; the key never reaches the browser) works on top of the platform’s analytical engine, in four modes and in Greek, English, German and Spanish:

Grounding. Figures come only from platform tools, the stored data or cited sources; the model is instructed not to invent polls, quotes or statistics and to separate facts, model estimates and recommendations. Tool results and web pages are treated as data, never as instructions. Safeguards. The assistant refuses deceptive activity (fake personas or outlets, concealed sponsorship, fabricated statements or undisclosed synthetic media of real people, false claims about candidates or the voting process, voter suppression) and targeting of individuals or special-category data; targeting is by aggregate segments only. Usage is metered per user with a monthly cap, every request is logged in the audit trail, and administrators can disable the assistant or web research and block domains.

18. Scenario & strategy lab

Effect sources. A source (event, article, interview, poll, campaign action) carries an effect Δp in percentage points for each party p, a start day t0, a half-life h (0 = lasting), an uncertainty σ and a reliability r (probability that the effect materialises). On election day (T days ahead) the remaining effect is Δp·0.5(T−t0)/h, or 0 if t0 > T. Effects can be measured from polls: pooled before/after shares (n-weighted) give δ = p̂after − p̂before with SE² = deff·[p1(1−p1)/n1 + p2(1−p2)/n2] (design effect 1.5 by default); with a control group the estimate is a difference-in-differences. Only significant effects (|z| ≥ 1.96) are saved by default; the estimate is observational and is labelled as such.

Scenarios. Baseline shares, the electoral system, selected sources (with a scale factor and optional time shift), user parameters with a linear effect per unit, and objectives (vote share, seats, rank, majority, beat a rival, turnout, coalition majority). Each Monte Carlo draw applies every source with probability r and a multiplicative uncertainty, adds correlated polling error growing with time to election, normalises to 100 and allocates seats with the country’s rule. Outputs: distributions of shares and seats, P(first), P(majority), the probability of each objective and of all objectives jointly. Attribution is leave-one-out with common random numbers: the scenario is re-run without each source, so differences reflect the source, not simulation noise. Sensitivity runs each parameter at its minimum and maximum. Scenario comparisons also use common random numbers.

Strategy from objectives. Levers have a saturating response g(u) = c·(1−e−u/s) (maximum effect c, saturation s) and an optional turnout effect. Candidate allocations come from dynamic programming (maximum share; share + turnout), an equal split and a focused split on the two most efficient levers; each is added to the scenario as a source and evaluated by Monte Carlo against the objectives. Bisection finds the extra effect needed for a 50% and 80% chance of meeting all objectives. A chosen candidate can be saved as a draft campaign strategy with objectives and channel actions.

Voting strategy game. Each round, every party allocates a budget across levers. Persuasion channels move a pool of voters that grows with total spending (diminishing returns) and is shared in proportion to u0.8 (share of voice); ground mobilisation scales with the size of the base; negative campaigning transfers support from the target with a backfire probability that rises with intensity; rapid response recovers part of a recent shock; random events are drawn from the user’s sources or a generic deck; opinion reverts towards the baseline each round and unspent budget can be carried over. AI opponents follow archetypes (balanced, aggressive, defensive, mimic, greedy best response, late surge). At the end the election is simulated through the electoral system and Shapley–Shubik power is computed. Debrief: returns per lever versus opponents, saturation waste, attack outcomes, recovery, early-vs-late efficiency, and counterfactual replays of the same game (same seed, events and opponents) under standard policies, from which lessons learned and regret are derived. Tournaments evaluate policies across many seeds and random opponent mixes. The game is a training model: its parameters are assumptions to be calibrated with measured sources.