Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 2 new columns ({'volume_usd', 'date'}) and 5 missing columns ({'pollster', 'poll_date', 'divergence_pp', 'polymarket_date', 'poll_pct'}).

This happened while the csv dataset builder was generating data using

hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence/data/peru-market-odds-timeseries.csv (at revision 3a403dd7a50bc9e2835c160380a5970e7e53384d), ['hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/data/peru-divergence-timeseries.csv', 'hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/data/peru-market-odds-timeseries.csv', 'hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/data/peru-structural-context.csv', 'hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/news/peru-2026-press-coverage.csv', 'hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/polls/peru-first-round-polls.csv', 'hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/polls/peru-runoff-polls.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1837, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              date: string
              candidate: string
              polymarket_pct: double
              volume_usd: int64
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 752
              to
              {'poll_date': Value('string'), 'pollster': Value('string'), 'candidate': Value('string'), 'poll_pct': Value('float64'), 'polymarket_pct': Value('float64'), 'polymarket_date': Value('string'), 'divergence_pp': Value('float64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1839, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 2 new columns ({'volume_usd', 'date'}) and 5 missing columns ({'pollster', 'poll_date', 'divergence_pp', 'polymarket_date', 'poll_pct'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence/data/peru-market-odds-timeseries.csv (at revision 3a403dd7a50bc9e2835c160380a5970e7e53384d), ['hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/data/peru-divergence-timeseries.csv', 'hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/data/peru-market-odds-timeseries.csv', 'hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/data/peru-structural-context.csv', 'hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/news/peru-2026-press-coverage.csv', 'hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/polls/peru-first-round-polls.csv', 'hf://datasets/AFOS-Analytics1/peru-2026-electoral-divergence@3a403dd7a50bc9e2835c160380a5970e7e53384d/polls/peru-runoff-polls.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

poll_date
string
pollster
string
candidate
string
poll_pct
float64
polymarket_pct
float64
polymarket_date
string
divergence_pp
float64
2026-01-06
Datum Internacional/El Comercio
Keiko Fujimori
8.8
18.5
2026-01-06
9.7
2026-01-06
Datum Internacional/El Comercio
Roberto Sánchez
0.8
1.1
2026-01-06
0.3
2026-01-06
Datum Internacional/El Comercio
Rafael López Aliaga
12
50
2026-01-06
38
2026-01-06
Datum Internacional/El Comercio
Jorge Nieto
0
0.6
2026-01-06
0.6
2026-01-06
Datum Internacional/El Comercio
Ricardo Belmont
2.2
0.7
2026-01-06
-1.5
2026-01-06
Datum Internacional/El Comercio
Carlos Álvarez
6.2
5.7
2026-01-06
-0.5
2026-01-06
Datum Internacional/El Comercio
Alfonso López Chau
3.8
9.3
2026-01-06
5.5
2026-01-06
Datum Internacional/El Comercio
José Luna
0.9
0.8
2026-01-06
-0.1
2026-01-06
Datum Internacional/El Comercio
Yonhy Lescano
3
1
2026-01-06
-2
2026-01-06
Datum Internacional/El Comercio
César Acuña
2.5
1.5
2026-01-06
-1
2026-01-08
Ipsos Perú/Perú 21
Keiko Fujimori
7
14.5
2026-01-08
7.5
2026-01-08
Ipsos Perú/Perú 21
Roberto Sánchez
2
1.1
2026-01-08
-0.9
2026-01-08
Ipsos Perú/Perú 21
Rafael López Aliaga
10
55
2026-01-08
45
2026-01-08
Ipsos Perú/Perú 21
Carlos Álvarez
4
5.1
2026-01-08
1.1
2026-01-08
Ipsos Perú/Perú 21
Alfonso López Chau
3
11.3
2026-01-08
8.3
2026-01-08
Ipsos Perú/Perú 21
José Luna
2
0.3
2026-01-08
-1.7
2026-01-08
Ipsos Perú/Perú 21
César Acuña
2
0.3
2026-01-08
-1.7
2026-01-16
CPI/RPP
Keiko Fujimori
7.1
17
2026-01-16
9.9
2026-01-16
CPI/RPP
Rafael López Aliaga
13.6
50.5
2026-01-16
36.9
2026-01-16
CPI/RPP
Carlos Álvarez
3.9
6.1
2026-01-16
2.2
2026-01-16
CPI/RPP
Alfonso López Chau
3.1
11
2026-01-16
7.9
2026-01-16
CPI/RPP
José Luna
2.8
0.4
2026-01-16
-2.4
2026-01-16
CPI/RPP
Yonhy Lescano
1.2
3.4
2026-01-16
2.2
2026-01-16
CPI/RPP
César Acuña
3.7
1.3
2026-01-16
-2.4
2026-01-20
Datum Internacional/América TV
Keiko Fujimori
8
12
2026-01-20
4
2026-01-20
Datum Internacional/América TV
Roberto Sánchez
0.8
1.5
2026-01-20
0.7
2026-01-20
Datum Internacional/América TV
Rafael López Aliaga
11.7
44.5
2026-01-20
32.8
2026-01-20
Datum Internacional/América TV
Jorge Nieto
0.3
1
2026-01-20
0.7
2026-01-20
Datum Internacional/América TV
Ricardo Belmont
1.5
1.5
2026-01-20
0
2026-01-20
Datum Internacional/América TV
Carlos Álvarez
5.7
7.5
2026-01-20
1.8
2026-01-20
Datum Internacional/América TV
Alfonso López Chau
4.6
11.6
2026-01-20
7
2026-01-20
Datum Internacional/América TV
José Luna
1.6
1.5
2026-01-20
-0.1
2026-01-20
Datum Internacional/América TV
Yonhy Lescano
2.5
2.8
2026-01-20
0.3
2026-01-20
Datum Internacional/América TV
César Acuña
3
1.1
2026-01-20
-1.9
2026-01-20
CIT/Panamericana
Keiko Fujimori
9.3
12
2026-01-20
2.7
2026-01-20
CIT/Panamericana
Rafael López Aliaga
15.1
44.5
2026-01-20
29.4
2026-01-20
CIT/Panamericana
Ricardo Belmont
1.1
1.5
2026-01-20
0.4
2026-01-20
CIT/Panamericana
Carlos Álvarez
6.6
7.5
2026-01-20
0.9
2026-01-20
CIT/Panamericana
Alfonso López Chau
4.8
11.6
2026-01-20
6.8
2026-01-20
CIT/Panamericana
José Luna
2
1.5
2026-01-20
-0.5
2026-01-20
CIT/Panamericana
Yonhy Lescano
3
2.8
2026-01-20
-0.2
2026-01-20
CIT/Panamericana
César Acuña
6
1.1
2026-01-20
-4.9
2026-01-21
IEP/La República
Keiko Fujimori
8.1
14
2026-01-21
5.9
2026-01-21
IEP/La República
Roberto Sánchez
0.6
2.2
2026-01-21
1.6
2026-01-21
IEP/La República
Rafael López Aliaga
14.7
45
2026-01-21
30.3
2026-01-21
IEP/La República
Jorge Nieto
0.5
0.4
2026-01-21
-0.1
2026-01-21
IEP/La República
Ricardo Belmont
2.4
1.5
2026-01-21
-0.9
2026-01-21
IEP/La República
Carlos Álvarez
4
6.9
2026-01-21
2.9
2026-01-21
IEP/La República
Alfonso López Chau
4
10.2
2026-01-21
6.2
2026-01-21
IEP/La República
José Luna
0.8
1.5
2026-01-21
0.7
2026-01-21
IEP/La República
Yonhy Lescano
3.2
2.5
2026-01-21
-0.7
2026-01-21
IEP/La República
César Acuña
1.4
1.4
2026-01-21
0
2026-01-27
IDICE/La Razón
Keiko Fujimori
7.8
14
2026-01-27
6.2
2026-01-27
IDICE/La Razón
Rafael López Aliaga
11.2
47
2026-01-27
35.8
2026-01-27
IDICE/La Razón
Ricardo Belmont
0.4
2
2026-01-27
1.6
2026-01-27
IDICE/La Razón
Carlos Álvarez
4.4
6.3
2026-01-27
1.9
2026-01-27
IDICE/La Razón
Alfonso López Chau
3
10.5
2026-01-27
7.5
2026-01-27
IDICE/La Razón
José Luna
2.3
1.1
2026-01-27
-1.2
2026-01-27
IDICE/La Razón
Yonhy Lescano
0.4
3.8
2026-01-27
3.4
2026-01-27
IDICE/La Razón
César Acuña
4.6
0.5
2026-01-27
-4.1
2026-01-31
Imasolu/Exitosa
Keiko Fujimori
8.9
11
2026-01-31
2.1
2026-01-31
Imasolu/Exitosa
Rafael López Aliaga
13.6
48
2026-01-31
34.4
2026-01-31
Imasolu/Exitosa
Ricardo Belmont
1.6
0.5
2026-01-31
-1.1
2026-01-31
Imasolu/Exitosa
Carlos Álvarez
5.4
2.8
2026-01-31
-2.6
2026-01-31
Imasolu/Exitosa
Alfonso López Chau
3.9
25.3
2026-01-31
21.4
2026-01-31
Imasolu/Exitosa
José Luna
2.8
0.6
2026-01-31
-2.2
2026-01-31
Imasolu/Exitosa
Yonhy Lescano
1.8
3.7
2026-01-31
1.9
2026-01-31
Imasolu/Exitosa
César Acuña
4.5
0.4
2026-01-31
-4.1
2026-02-02
CPI/RPP
Keiko Fujimori
6.6
13.5
2026-02-02
6.9
2026-02-02
CPI/RPP
Rafael López Aliaga
14.6
44.5
2026-02-02
29.9
2026-02-02
CPI/RPP
Ricardo Belmont
1.5
0.5
2026-02-02
-1
2026-02-02
CPI/RPP
Carlos Álvarez
3.6
3.7
2026-02-02
0.1
2026-02-02
CPI/RPP
Alfonso López Chau
3.7
29
2026-02-02
25.3
2026-02-02
CPI/RPP
José Luna
2.9
1.4
2026-02-02
-1.5
2026-02-02
CPI/RPP
Yonhy Lescano
1.8
2
2026-02-02
0.2
2026-02-02
CPI/RPP
César Acuña
3.9
0.4
2026-02-02
-3.5
2026-02-03
Datum Internacional/El Comercio
Keiko Fujimori
9.2
11.5
2026-02-03
2.3
2026-02-03
Datum Internacional/El Comercio
Roberto Sánchez
1.1
1
2026-02-03
-0.1
2026-02-03
Datum Internacional/El Comercio
Rafael López Aliaga
11.9
46
2026-02-03
34.1
2026-02-03
Datum Internacional/El Comercio
Jorge Nieto
0.3
0.4
2026-02-03
0.1
2026-02-03
Datum Internacional/El Comercio
Ricardo Belmont
1.5
0.5
2026-02-03
-1
2026-02-03
Datum Internacional/El Comercio
Carlos Álvarez
5.8
3.5
2026-02-03
-2.3
2026-02-03
Datum Internacional/El Comercio
Alfonso López Chau
3.8
21.5
2026-02-03
17.7
2026-02-03
Datum Internacional/El Comercio
José Luna
1.9
1.3
2026-02-03
-0.6
2026-02-03
Datum Internacional/El Comercio
Yonhy Lescano
2.3
1.9
2026-02-03
-0.4
2026-02-03
Datum Internacional/El Comercio
César Acuña
3.8
0.4
2026-02-03
-3.4
2026-02-06
Ipsos Perú/Perú 21
Keiko Fujimori
8
13.5
2026-02-06
5.5
2026-02-06
Ipsos Perú/Perú 21
Roberto Sánchez
2
0.9
2026-02-06
-1.1
2026-02-06
Ipsos Perú/Perú 21
Rafael López Aliaga
12
46.5
2026-02-06
34.5
2026-02-06
Ipsos Perú/Perú 21
Carlos Álvarez
4
4.9
2026-02-06
0.9
2026-02-06
Ipsos Perú/Perú 21
Alfonso López Chau
4
25.3
2026-02-06
21.3
2026-02-06
Ipsos Perú/Perú 21
José Luna
2
0.5
2026-02-06
-1.5
2026-02-06
Ipsos Perú/Perú 21
César Acuña
4
0.4
2026-02-06
-3.6
2026-02-09
CIT/Panamericana
Keiko Fujimori
8
13.5
2026-02-09
5.5
2026-02-09
CIT/Panamericana
Rafael López Aliaga
15.3
45.5
2026-02-09
30.2
2026-02-09
CIT/Panamericana
Ricardo Belmont
1.6
0.4
2026-02-09
-1.2
2026-02-09
CIT/Panamericana
Carlos Álvarez
5
4.4
2026-02-09
-0.6
2026-02-09
CIT/Panamericana
Alfonso López Chau
6
25.9
2026-02-09
19.9
2026-02-09
CIT/Panamericana
José Luna
3
0.9
2026-02-09
-2.1
2026-02-09
CIT/Panamericana
César Acuña
6.1
0.3
2026-02-09
-5.8
End of preview.

AFOS · Peru 2026 Electoral Divergence

AFOS · Peru 2026 Electoral Divergence Dataset

🌐 English · Español · Português

Open dataset cross-referencing opinion polls × prediction markets for Peru's 2026 general election (first round 12 April 2026; runoff 7 June 2026, Keiko Fujimori vs Roberto Sánchez), built in the same spirit as the AFOS Brazil 2026 dataset: sources are reported side by side with explicit divergence, not blended into a single average.

Maintained by AFOS Analytics. This is part of AFOS's expansion of its electoral-divergence method beyond Brazil. No personal data, only public electoral information.

Outcome (validated). The runoff was one of the closest in Peruvian history. Final publishable polls showed a statistical tie (Ipsos valid-vote simulacro about 51.4 / 48.6) while the market gave Fujimori about 68% to win. After Roberto Sánchez contested the count (seeking to void the overseas vote and petitioning the Inter-American Commission on Human Rights), the JNE rejected the appeals and on 3 July 2026 proclaimed Keiko Fujimori president-elect with 50.135% to Sánchez's 49.865% (about 49,000 votes); inauguration 28 July. Two opposite divergences in one election: in the first round the market misread the frontrunner (López Aliaga, favorite → 3rd); in the runoff it was right on direction but overstated the margin, while the polls' tie matched the result.

Resultado (validado). El balotaje fue uno de los más ajustados de la historia peruana. Las encuestas finales publicables mostraban un empate técnico (simulacro de votos válidos de Ipsos cerca de 51,4 / 48,6), mientras el mercado daba a Fujimori cerca de 68% de ganar. Tras la impugnación del conteo por Roberto Sánchez (pidiendo anular el voto en el exterior y recurriendo a la CIDH), el JNE rechazó los recursos y, el 3 de julio de 2026, proclamó a Keiko Fujimori presidenta electa con 50,135% frente al 49,865% de Sánchez (cerca de 49 mil votos); investidura el 28 de julio. Dos divergencias opuestas en una elección: en la primera vuelta el mercado erró al favorito (López Aliaga, favorito → 3º); en el balotaje acertó la dirección pero sobreestimó el margen, mientras el empate de las encuestas coincidió con el resultado.

Desfecho (validado). O 2º turno foi um dos mais apertados da história peruana. As pesquisas finais publicáveis davam empate técnico (simulacro de votos válidos da Ipsos cerca de 51,4 / 48,6), enquanto o mercado dava Fujimori a cerca de 68% de chance de vencer. Depois de Roberto Sánchez contestar a apuração (pedindo a nulidade do voto no exterior e recorrendo à CIDH), a JNE rejeitou os recursos e, em 3 de julho de 2026, proclamou Keiko Fujimori presidente eleita com 50,135% contra 49,865% de Sánchez (cerca de 49 mil votos); posse em 28 de julho. Duas divergências opostas na mesma eleição: no 1º turno o mercado errou o favorito (López Aliaga, favorito → 3º); no 2º turno acertou a direção mas superestimou a margem, enquanto o empate das pesquisas bateu com o resultado.


Press coverage layer

The qualitative third axis of the AFOS cross (market x polls x press) is now a structured file: news/peru-2026-press-coverage.csv, 8 dated headlines from 6 national outlets across the cycle (polls, election, result, analysis), in ES. Headlines and links only (outlets retain copyright); dates are publication/coverage dates, best-effort. It complements the quantitative market-vs-poll divergence; it is not sentiment-scored.


English

Polymarket implied probability of winning over the campaign

Market probability of winning versus poll vote share on the eve of the vote

Contents (start with the polls):

Path Rows Content
polls/peru-first-round-polls.csv 327 First-round voting intention, long format (one row per candidate × poll), all 14 candidates, 36 polls, Jan→Apr 2026.
polls/peru-runoff-polls.csv 16 Runoff head-to-head (Fujimori vs Sánchez), Apr→Jun 2026.
polls/peru-polls.json n/a Full structured polls (first round + runoff) with methodology.
data/peru-market-odds-timeseries.csv 2,490 Daily Polymarket win-probability per candidate (16 candidates, Dec 2025→Jun 2026) from the "Peru Presidential Election Winner" market.
data/peru-divergence-timeseries.csv 324 Market × poll divergence per candidate, each first-round poll joined to the candidate's market odds on its date.
data/peru-poly-raw.json n/a Raw Polymarket payload (event + per-candidate price histories), kept for provenance.

Market data fetched from Polymarket's gamma-api + clob (US-resolving function). Divergence covers the first round; no clean head-to-head runoff win-probability market exists to join the runoff polls.

⚖️ Notable divergences (why divergence beats the average)

The point of this dataset is the gap between what the market prices (probability of winning) and what polls measure (first-round vote share), read across the full daily series, not a single snapshot.

  • Rafael López Aliaga, the market's sustained favorite that the polls never matched. For months the market priced his win probability at 40-55% while his first-round vote-share polling stayed in the low-to-mid teens (7-17%). He placed third and missed the runoff, the market's conviction ran well ahead of his actual support. A real, sustained divergence.
  • Keiko Fujimori, polls about 16% × market about 22%: steadier in both; she led the first round and advanced. The 7 June runoff against Roberto Sánchez ended in a virtual tie and, after Sánchez's challenges, the JNE proclaimed Keiko Fujimori president-elect on 3 July 2026 (50.135% × 49.865%, about 49,000 votes).
  • Ricardo Belmont, poll 9% × market 5.1%: the market priced him below his vote share, never a contender in its eyes.
  • A caution on noise: outsider Carlos Álvarez briefly spiked to 31.6% in the market on a single day (5 Apr) against about 8% in polls, then fell to low single digits within days. Thin-market prints can diverge sharply without being a sustained signal, which is exactly why the full daily series matters, not one snapshot.

The reading: the spread is the signal, but reading it means telling the sustained gap (López Aliaga) from transient noise (Álvarez). A blended average hides both.

Pollsters covered: Ipsos Perú, Datum Internacional, CPI, IEP, CIT, Imasolu, CELAG, IDICE, CB Global Data (with publishing client where applicable).

Provenance & method: poll figures are compiled deterministically (rowspan/colspan-aware HTML parser) from the public Wikipedia aggregation "Opinion polling for the 2026 Peruvian general election" and cross-checked against the AS/COA poll tracker; every figure traces to a named pollster's release. Market odds come from the public Polymarket markets. Nothing is imputed or smoothed; missing values are left blank.

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.

Cite: AFOS Analytics. Peru 2026 Electoral Divergence Dataset. Hugging Face, 2026. CC BY 4.0. (see CITATION.cff)

Disclaimer: observational research. Not investment advice, not voting guidance.


Español

Dataset abierto que cruza encuestas × mercados de predicción para la elección general del Perú 2026 (primera vuelta 12 abr 2026; segunda vuelta 7 jun 2026, Keiko Fujimori vs Roberto Sánchez), con divergencia explícita entre fuentes en lugar de un promedio único.

  • polls/peru-first-round-polls.csv, intención de voto en primera vuelta, formato largo, los 14 candidatos, 36 encuestas (ene→abr 2026).
  • polls/peru-runoff-polls.csv, segunda vuelta cara a cara (Fujimori vs Sánchez), 16 encuestas.
  • data/peru-market-odds-timeseries.csv / data/peru-divergence-timeseries.csv, probabilidad de Polymarket por candidato y divergencia mercado × encuesta.

⚖️ Divergencias destacadas (por qué la divergencia supera al promedio)

Lo importante es la brecha entre lo que valora el mercado (probabilidad de ganar) y lo que miden las encuestas (voto de primera vuelta), leída en toda la serie diaria, no en una foto.

  • Rafael López Aliaga, el favorito sostenido del mercado que las encuestas nunca confirmaron. Durante meses el mercado valoró su probabilidad de ganar en 40-55% mientras su voto de primera vuelta se quedaba en la franja baja-media de la decena (7-17%). Quedó tercero y no llegó al balotaje, la convicción del mercado iba muy por delante de su apoyo real. Una divergencia real y sostenida.
  • Keiko Fujimori, encuestas cerca de 16% × mercado cerca de 22%: más estable en ambos; lideró la primera vuelta y avanzó. El balotaje del 7 jun frente a Roberto Sánchez terminó en empate técnico y, tras las impugnaciones de Sánchez, el JNE proclamó a Keiko Fujimori presidenta electa el 3 jul 2026 (50,135% × 49,865%, cerca de 49 mil votos).
  • Ricardo Belmont, encuesta 9% × mercado 5,1%: el mercado lo valoró por debajo de su voto.
  • Una advertencia sobre el ruido: el outsider Carlos Álvarez subió brevemente a 31,6% en el mercado en un solo día (5 abr) frente a cerca de 8% en encuestas, y cayó a un dígito en pocos días. Los precios de mercados poco líquidos pueden divergir con fuerza sin ser una señal sostenida, por eso importa la serie diaria completa.

La lectura: la brecha es la señal, pero leerla implica distinguir la divergencia sostenida (López Aliaga) del ruido transitorio (Álvarez). Un promedio oculta ambas.

Encuestadoras: Ipsos Perú, Datum Internacional, CPI, IEP, CIT, Imasolu, CELAG, IDICE, CB Global Data. Fuente: agregación pública de Wikipedia + tracker AS/COA; cada cifra remite a la publicación de una encuestadora con nombre. Licencia: CC BY 4.0 (atribuir a AFOS Analytics y a las encuestadoras originales). Investigación observacional; no es asesoría de inversión ni orientación de voto.


Português

Dataset aberto cruzando pesquisas × mercados de previsão para a eleição geral do Peru 2026 (1º turno 12/abr; 2º turno 07/jun, Keiko Fujimori × Roberto Sánchez), com divergência explícita entre fontes. Pesquisas (14 candidatos, 36 do 1º turno + 16 do 2º turno) compiladas deterministicamente da agregação pública da Wikipedia + tracker AS/COA; odds do Polymarket. Licença CC BY 4.0 (atribuir AFOS Analytics + institutos originais). Pesquisa observacional; não é recomendação de investimento nem orientação de voto.

⚖️ Divergências em destaque (por que a divergência supera a média)

O ponto é a diferença entre o que o mercado precifica (probabilidade de vencer) e o que as pesquisas medem (voto de 1º turno), lida na série diária inteira, não numa foto.

  • Rafael López Aliaga, o favorito sustentado do mercado que as pesquisas nunca confirmaram. Por meses o mercado precificou a chance de vencer dele em 40-55% enquanto o voto de 1º turno ficava na casa baixa-média da dezena (7-17%). Ficou em 3º e não foi ao 2º turno, a convicção do mercado ia bem à frente do apoio real. Divergência real e sustentada.
  • Keiko Fujimori, pesquisas cerca de 16% × mercado cerca de 22%: mais estável nos dois; liderou o 1º turno e avançou. O 2º turno de 07/jun contra Roberto Sánchez terminou em empate técnico e, após as contestações de Sánchez, a JNE proclamou Keiko Fujimori presidente eleita em 03/jul 2026 (50,135% × 49,865%, cerca de 49 mil votos).
  • Ricardo Belmont, pesquisa 9% × mercado 5,1%: o mercado o precificou abaixo do voto.
  • Um alerta sobre ruído: o azarão Carlos Álvarez deu um spike breve de 31,6% no mercado num único dia (5/abr) contra cerca de 8% nas pesquisas, e caiu pra um dígito em poucos dias. Preços de mercados pouco líquidos podem divergir forte sem ser sinal sustentado, por isso a série diária completa importa.

A leitura: a diferença é o sinal, mas lê-la é distinguir a divergência sustentada (López Aliaga) do ruído passageiro (Álvarez). A média esconde as duas.


Sources / Fuentes: Pollsters (Ipsos Perú, Datum, CPI, IEP, CIT, …) · Wikipedia aggregation · AS/COA poll tracker · Polymarket. Column definitions in DATA_DICTIONARY.md.

Structural context (World Bank)

Beyond the divergence data, this dataset ships data/peru-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.

Downloads last month
237