AFOS-Analytics1 commited on
Commit
2ba0f1c
·
verified ·
1 Parent(s): 39a4c0b

Mention structural-context.csv (World Bank WGI + WDI) in dataset card

Browse files
Files changed (1) hide show
  1. README.md +110 -105
README.md CHANGED
@@ -1,105 +1,110 @@
1
- ---
2
- license:
3
- - cc-by-4.0
4
- - apache-2.0
5
- language:
6
- - en
7
- - de
8
- - pt
9
- - es
10
- pretty_name: "AFOS · Germany 2025 Electoral Divergence"
11
- tags:
12
- - elections
13
- - germany
14
- - prediction-markets
15
- - polls
16
- - political-risk
17
- - divergence
18
- - open-data
19
- - europe
20
- ---
21
-
22
- ![AFOS · Germany 2025 Electoral Divergence](banner.png)
23
-
24
- # AFOS · Germany 2025 Electoral Divergence Dataset
25
-
26
- 🌐 **[English](#english) · [Português](#português) · [Español](#español)**
27
-
28
- Open dataset cross-referencing **opinion polls × prediction markets** for Germany's **2025 federal election** (Bundestag, 23 February 2025 — a snap election after the November 2024 coalition collapse), in the same spirit as the AFOS Brazil 2026 dataset: sources reported side by side with **explicit divergence**, not blended into one average.
29
-
30
- Maintained by **[AFOS Analytics](https://afos-analytics.com)**. *No personal data — only public electoral information.* **Party-level** dataset: polls measure **party vote share**, the market prices the **probability of winning the most seats** — two different quantities, and the gap is the signal.
31
-
32
- ---
33
-
34
- ## English
35
-
36
- ![Polymarket implied probability of winning over the campaign](odds-trajectory.png)
37
-
38
- ![Market probability of winning versus poll vote share on the eve of the vote](odds-snapshot.png)
39
-
40
- **Contents (start with the polls):**
41
-
42
- | Path | Rows | Content |
43
- |------|------|---------|
44
- | `polls/germany-polls.csv` | 2,505 | Party vote-share polling, **long format** (one row per party × poll), 8 parties, 349 polls, 2024→Feb 2025. |
45
- | `polls/germany-polls.json` | — | Full structured polls (pollster, fieldwork, sample, per-party results). |
46
- | `data/germany-market-odds-timeseries.csv` | 420 | Daily Polymarket **"wins the most seats"** probability per party (6 parties, Dec 2024→Feb 2025) from the "Germany Parliamentary Election Winner" market. |
47
- | `data/germany-divergence-timeseries.csv` | 490 | **Market × poll divergence** per party — each poll's party vote share joined to that party's market odds on its date. |
48
- | `data/germany-poly-raw.json` | — | Raw Polymarket payload, kept for provenance. |
49
-
50
- <sub>Market data fetched from Polymarket's gamma-api + clob via a US-resolving function. There is no runoff — Germany elects the Bundestag in a single vote.</sub>
51
-
52
- ### ⚖️ Notable divergences (why divergence beats the average)
53
-
54
- The market here prices **which party wins the most seats**; the polls measure **party vote share**. In a multi-party system the two come apart sharply — and that gap is the point.
55
-
56
- - **AfD — second in votes, near-zero to win.** In the final polls the AfD held **~21% of the vote**, clearly the **second-largest party** — yet the market gave it only **~3%** of winning the most seats (a −18 pp market−poll gap). High vote share is not the same as a parliamentary plurality, and the market never confused the two. The AfD finished second (20.8%); it did not win the most seats.
57
- - **CDU/CSU — the mirror image.** ~**29.5%** of the vote but **~97%** to win the most seats (+67 pp): a moderate vote lead translated into near-certain plurality. The CDU/CSU won (28.5%) and Friedrich Merz became Chancellor.
58
- - **The small-party threshold (5%):** BSW and FDP hovered right at the **5% Bundestag threshold** in vote-share polls while the market priced their probability of *winning* at ~0% — two parties for whom "share" and "win" were never the same question. Both ultimately fell below 5%.
59
-
60
- **The reading:** vote share answers "how many votes," the market answers "who wins" — and in a fragmented parliament those diverge by design. A blended poll average tells you the AfD was second; only the market-versus-poll spread tells you it was second *and* had no path to the plurality.
61
-
62
- **Pollsters covered:** Forsa, INSA, Infratest dimap, Allensbach, YouGov, Ipsos, FGW (Forschungsgruppe Wahlen), GMS, Verian, and others.
63
-
64
- **Provenance & method:** poll figures compiled deterministically (rowspan/colspan-aware HTML parser) from the public Wikipedia aggregation *"Opinion polling for the 2025 German federal election."* Market odds from the public Polymarket market. Nothing imputed or smoothed; missing values left blank.
65
-
66
- **License (dual):** **data** → CC BY 4.0 (`LICENSE-CC-BY-4.0`); **code/scripts** → Apache 2.0 (`LICENSE-APACHE-2.0`), matching the repo root and the Hugging Face mirror. Underlying poll numbers are facts released by the named pollsters; the Wikipedia aggregation is CC BY-SA. Please attribute **AFOS Analytics** and the **original pollsters**.
67
-
68
- **Cite:** *AFOS Analytics. Germany 2025 Electoral Divergence Dataset. Hugging Face, 2026. CC BY 4.0.* (see `CITATION.cff`)
69
-
70
- **Disclaimer:** observational research. Not investment advice, not voting guidance.
71
-
72
- ---
73
-
74
- ## Português
75
-
76
- Dataset aberto cruzando **pesquisas × mercados de previsão** para a **eleição federal alemã de 2025** (Bundestag, 23/fev/2025 — eleição antecipada após o colapso da coalizão em nov/2024). **Nível partido:** as pesquisas medem **voto por partido**; o mercado precifica a **probabilidade de vencer mais cadeiras** — quantidades diferentes, e a diferença é o sinal.
77
-
78
- - `polls/germany-polls.csv` — voto por partido, formato largo, 8 partidos, 349 pesquisas (2024→fev 2025).
79
- - `data/germany-market-odds-timeseries.csv` / `germany-divergence-timeseries.csv` — probabilidade Polymarket de "vencer mais cadeiras" por partido e divergência mercado × pesquisa.
80
-
81
- ### ⚖️ Divergências em destaque (por que a divergência supera a média)
82
-
83
- - **AfD — 2º mais votado, quase zero para vencer.** Nas pesquisas finais a AfD tinha ~**21% do voto** (claramente o 2º maior partido) — mas o mercado lhe dava só **~3%** de vencer mais cadeiras (diferença −18pp). Voto alto não é maioria parlamentar, e o mercado nunca confundiu os dois. A AfD ficou em 2º (20,8%); não venceu.
84
- - **CDU/CSU — a imagem espelhada.** ~**29,5%** de voto mas **~97%** de vencer mais cadeiras (+67pp): liderança moderada de voto vira maioria quase certa. A CDU/CSU venceu (28,5%) e Friedrich Merz virou chanceler.
85
- - **O limiar de 5%:** BSW e FDP rondavam os **5% da cláusula de barreira** no voto enquanto o mercado precificava a chance de *vencer* em ~0% — dois partidos para quem "voto" e "vencer" nunca foram a mesma pergunta. Ambos ficaram abaixo de 5%.
86
-
87
- **A leitura:** voto responde "quantos votos", o mercado responde "quem vence" — e num parlamento fragmentado isso diverge por construção. Uma média das pesquisas diz que a AfD era 2ª; só a diferença mercado×pesquisa mostra que era 2ª *e* sem caminho para a maioria.
88
-
89
- ---
90
-
91
- ## Español
92
-
93
- Dataset abierto que cruza **encuestas × mercados de predicción** para la **elección federal alemana de 2025** (Bundestag, 23 feb 2025). **Nivel partido:** las encuestas miden **voto por partido**; el mercado valora la **probabilidad de ganar más escaños**.
94
-
95
- ### ⚖️ Divergencias destacadas
96
-
97
- - **AfD — segundo en votos, casi nulo para ganar.** ~**21% del voto** (2º partido) pero el mercado le daba solo **~3%** de ganar más escaños (−18pp). Voto alto no es mayoría parlamentaria. La AfD quedó 2ª (20,8%); no ganó.
98
- - **CDU/CSU — la imagen espejo.** ~**29,5%** de voto pero **~97%** de ganar más escaños (+67pp). Ganó (28,5%) y Merz fue canciller.
99
- - **El umbral del 5%:** BSW y FDP rondaban el 5% en voto mientras el mercado valoraba su probabilidad de *ganar* en ~0%. Ambos quedaron bajo el 5%.
100
-
101
- **Fuente:** agregación pública de Wikipedia; Polymarket. **Licencia:** CC BY 4.0 (atribuir a AFOS Analytics y a las encuestadoras). Investigación observacional; no es asesoría de inversión.
102
-
103
- ---
104
-
105
- **Sources / Fontes / Fuentes:** Pollsters (Forsa, INSA, Infratest dimap, Allensbach, …) · [Wikipedia aggregation](https://en.wikipedia.org/wiki/Opinion_polling_for_the_2025_German_federal_election) · Polymarket. Column definitions in [`DATA_DICTIONARY.md`](DATA_DICTIONARY.md).
 
 
 
 
 
 
1
+ ---
2
+ license:
3
+ - cc-by-4.0
4
+ - apache-2.0
5
+ language:
6
+ - en
7
+ - de
8
+ - pt
9
+ - es
10
+ pretty_name: "AFOS · Germany 2025 Electoral Divergence"
11
+ tags:
12
+ - elections
13
+ - germany
14
+ - prediction-markets
15
+ - polls
16
+ - political-risk
17
+ - divergence
18
+ - open-data
19
+ - europe
20
+ ---
21
+
22
+ ![AFOS · Germany 2025 Electoral Divergence](banner.png)
23
+
24
+ # AFOS · Germany 2025 Electoral Divergence Dataset
25
+
26
+ 🌐 **[English](#english) · [Português](#português) · [Español](#español)**
27
+
28
+ Open dataset cross-referencing **opinion polls × prediction markets** for Germany's **2025 federal election** (Bundestag, 23 February 2025 — a snap election after the November 2024 coalition collapse), in the same spirit as the AFOS Brazil 2026 dataset: sources reported side by side with **explicit divergence**, not blended into one average.
29
+
30
+ Maintained by **[AFOS Analytics](https://afos-analytics.com)**. *No personal data — only public electoral information.* **Party-level** dataset: polls measure **party vote share**, the market prices the **probability of winning the most seats** — two different quantities, and the gap is the signal.
31
+
32
+ ---
33
+
34
+ ## English
35
+
36
+ ![Polymarket implied probability of winning over the campaign](odds-trajectory.png)
37
+
38
+ ![Market probability of winning versus poll vote share on the eve of the vote](odds-snapshot.png)
39
+
40
+ **Contents (start with the polls):**
41
+
42
+ | Path | Rows | Content |
43
+ |------|------|---------|
44
+ | `polls/germany-polls.csv` | 2,505 | Party vote-share polling, **long format** (one row per party × poll), 8 parties, 349 polls, 2024→Feb 2025. |
45
+ | `polls/germany-polls.json` | — | Full structured polls (pollster, fieldwork, sample, per-party results). |
46
+ | `data/germany-market-odds-timeseries.csv` | 420 | Daily Polymarket **"wins the most seats"** probability per party (6 parties, Dec 2024→Feb 2025) from the "Germany Parliamentary Election Winner" market. |
47
+ | `data/germany-divergence-timeseries.csv` | 490 | **Market × poll divergence** per party — each poll's party vote share joined to that party's market odds on its date. |
48
+ | `data/germany-poly-raw.json` | — | Raw Polymarket payload, kept for provenance. |
49
+
50
+ <sub>Market data fetched from Polymarket's gamma-api + clob via a US-resolving function. There is no runoff — Germany elects the Bundestag in a single vote.</sub>
51
+
52
+ ### ⚖️ Notable divergences (why divergence beats the average)
53
+
54
+ The market here prices **which party wins the most seats**; the polls measure **party vote share**. In a multi-party system the two come apart sharply — and that gap is the point.
55
+
56
+ - **AfD — second in votes, near-zero to win.** In the final polls the AfD held **~21% of the vote**, clearly the **second-largest party** — yet the market gave it only **~3%** of winning the most seats (a −18 pp market−poll gap). High vote share is not the same as a parliamentary plurality, and the market never confused the two. The AfD finished second (20.8%); it did not win the most seats.
57
+ - **CDU/CSU — the mirror image.** ~**29.5%** of the vote but **~97%** to win the most seats (+67 pp): a moderate vote lead translated into near-certain plurality. The CDU/CSU won (28.5%) and Friedrich Merz became Chancellor.
58
+ - **The small-party threshold (5%):** BSW and FDP hovered right at the **5% Bundestag threshold** in vote-share polls while the market priced their probability of *winning* at ~0% — two parties for whom "share" and "win" were never the same question. Both ultimately fell below 5%.
59
+
60
+ **The reading:** vote share answers "how many votes," the market answers "who wins" — and in a fragmented parliament those diverge by design. A blended poll average tells you the AfD was second; only the market-versus-poll spread tells you it was second *and* had no path to the plurality.
61
+
62
+ **Pollsters covered:** Forsa, INSA, Infratest dimap, Allensbach, YouGov, Ipsos, FGW (Forschungsgruppe Wahlen), GMS, Verian, and others.
63
+
64
+ **Provenance & method:** poll figures compiled deterministically (rowspan/colspan-aware HTML parser) from the public Wikipedia aggregation *"Opinion polling for the 2025 German federal election."* Market odds from the public Polymarket market. Nothing imputed or smoothed; missing values left blank.
65
+
66
+ **License (dual):** **data** → CC BY 4.0 (`LICENSE-CC-BY-4.0`); **code/scripts** → Apache 2.0 (`LICENSE-APACHE-2.0`), matching the repo root and the Hugging Face mirror. Underlying poll numbers are facts released by the named pollsters; the Wikipedia aggregation is CC BY-SA. Please attribute **AFOS Analytics** and the **original pollsters**.
67
+
68
+ **Cite:** *AFOS Analytics. Germany 2025 Electoral Divergence Dataset. Hugging Face, 2026. CC BY 4.0.* (see `CITATION.cff`)
69
+
70
+ **Disclaimer:** observational research. Not investment advice, not voting guidance.
71
+
72
+ ---
73
+
74
+ ## Português
75
+
76
+ Dataset aberto cruzando **pesquisas × mercados de previsão** para a **eleição federal alemã de 2025** (Bundestag, 23/fev/2025 — eleição antecipada após o colapso da coalizão em nov/2024). **Nível partido:** as pesquisas medem **voto por partido**; o mercado precifica a **probabilidade de vencer mais cadeiras** — quantidades diferentes, e a diferença é o sinal.
77
+
78
+ - `polls/germany-polls.csv` — voto por partido, formato largo, 8 partidos, 349 pesquisas (2024→fev 2025).
79
+ - `data/germany-market-odds-timeseries.csv` / `germany-divergence-timeseries.csv` — probabilidade Polymarket de "vencer mais cadeiras" por partido e divergência mercado × pesquisa.
80
+
81
+ ### ⚖️ Divergências em destaque (por que a divergência supera a média)
82
+
83
+ - **AfD — 2º mais votado, quase zero para vencer.** Nas pesquisas finais a AfD tinha ~**21% do voto** (claramente o 2º maior partido) — mas o mercado lhe dava só **~3%** de vencer mais cadeiras (diferença −18pp). Voto alto não é maioria parlamentar, e o mercado nunca confundiu os dois. A AfD ficou em 2º (20,8%); não venceu.
84
+ - **CDU/CSU — a imagem espelhada.** ~**29,5%** de voto mas **~97%** de vencer mais cadeiras (+67pp): liderança moderada de voto vira maioria quase certa. A CDU/CSU venceu (28,5%) e Friedrich Merz virou chanceler.
85
+ - **O limiar de 5%:** BSW e FDP rondavam os **5% da cláusula de barreira** no voto enquanto o mercado precificava a chance de *vencer* em ~0% — dois partidos para quem "voto" e "vencer" nunca foram a mesma pergunta. Ambos ficaram abaixo de 5%.
86
+
87
+ **A leitura:** voto responde "quantos votos", o mercado responde "quem vence" — e num parlamento fragmentado isso diverge por construção. Uma média das pesquisas diz que a AfD era 2ª; só a diferença mercado×pesquisa mostra que era 2ª *e* sem caminho para a maioria.
88
+
89
+ ---
90
+
91
+ ## Español
92
+
93
+ Dataset abierto que cruza **encuestas × mercados de predicción** para la **elección federal alemana de 2025** (Bundestag, 23 feb 2025). **Nivel partido:** las encuestas miden **voto por partido**; el mercado valora la **probabilidad de ganar más escaños**.
94
+
95
+ ### ⚖️ Divergencias destacadas
96
+
97
+ - **AfD — segundo en votos, casi nulo para ganar.** ~**21% del voto** (2º partido) pero el mercado le daba solo **~3%** de ganar más escaños (−18pp). Voto alto no es mayoría parlamentaria. La AfD quedó 2ª (20,8%); no ganó.
98
+ - **CDU/CSU — la imagen espejo.** ~**29,5%** de voto pero **~97%** de ganar más escaños (+67pp). Ganó (28,5%) y Merz fue canciller.
99
+ - **El umbral del 5%:** BSW y FDP rondaban el 5% en voto mientras el mercado valoraba su probabilidad de *ganar* en ~0%. Ambos quedaron bajo el 5%.
100
+
101
+ **Fuente:** agregación pública de Wikipedia; Polymarket. **Licencia:** CC BY 4.0 (atribuir a AFOS Analytics y a las encuestadoras). Investigación observacional; no es asesoría de inversión.
102
+
103
+ ---
104
+
105
+ **Sources / Fontes / Fuentes:** Pollsters (Forsa, INSA, Infratest dimap, Allensbach, …) · [Wikipedia aggregation](https://en.wikipedia.org/wiki/Opinion_polling_for_the_2025_German_federal_election) · Polymarket. Column definitions in [`DATA_DICTIONARY.md`](DATA_DICTIONARY.md).
106
+
107
+
108
+ ## Structural context (World Bank)
109
+
110
+ Beyond the divergence data, this dataset ships `data/germany-structural-context.csv`: official, open World Bank indicators that frame the country — **governance** (Worldwide Governance Indicators, 0-100 scale) plus **economy & education** (World Development Indicators: population, GDP, GDP per capita, inflation, public education spending, expected years of schooling). These are annual structural indicators that contextualize the country; they do **not** predict the electoral outcome. Columns are documented in `DATA_DICTIONARY.md`.