Methodology · version of 4 October 2026
How the 2026 Election Outlook forecasts the election
2026 Election Outlook brings together on one dashboard our forecast for Brazil's presidential election, the official count from TSE (Brazil's electoral court) with a projection of the final result, the prediction markets, the polls and the news. Every forecast is frozen, with a date and time, before the vote it predicts takes place, and is scored publicly afterwards. This page explains each piece: where the data come from, how the models work, what they do not do, and how we will measure whether we got it right.
1. What is forecast, and when
| Forecast | Model | Built from | Compared with |
|---|---|---|---|
| Round one: valid-vote shares, who finishes first, whether there is a runoff | Poll average + historical error (Student's t) | Each pollster's latest poll | Markets, other models, the result |
| Runoff: valid-vote shares and chance of winning | Poll average + historical error; from 5 October, a state-space model with pollster house effects | Lula vs Flávio polls | Markets, other models, the result on 25 October |
| Final result during the count | Municipal swing from 2022, pooled by state, simulated | TSE result files | The raw count; the final result |
We do not use machine learning. An election has a few hundred polls and a single outcome: it is a small-sample problem, and a transparent statistical model with honest uncertainty is the right tool.
The page's three questions
Every number on the page answers one of three questions, and says which: (1) round one (votes, who finishes first, whether there is a runoff); (2) the runoff between Lula and Flávio (votes and who wins it); (3) who becomes president, the whole election. Votes are always shares of valid votes; chances are probabilities. Each number also carries its state: forecast (frozen before the vote), live projection, counted, result, or market now. The scoreboard at the top always shows the votes of the round in play: during the count, our projection of the result, with what TSE has counted so far in the boxes right below.
The third question is computed from the other two:
chance of becoming president = chance of winning in round one + chance of a runoff × chance of winning the runoff
With the forecast frozen at 16:01, this gives Lula 49% and Flávio 51% (for Lula: 7.3% + 89.8% × 46.4%). During the count, the first two terms come from the live projection, and the runoff term stays the frozen forecast's. Since 7 October, with the runoff confirmed, the chance of becoming president is the chance of winning the runoff from the updated forecast. The calculation assumes a Lula vs Flávio runoff and treats the round-one and runoff errors as independent. That is a simplification: if the polls miss in one direction in round one, they tend to miss in the same direction in the runoff. This number was first displayed on the evening of 4 October, after the count began; it uses only the values in the file frozen at 16:01, which was not changed. Before that, the page showed the chance of winning the runoff (46% and 54%) under the label "chance of winning the presidency".
2. Data and update frequency
| Source | What we use | Frequency |
|---|---|---|
| TSE result-publication files | National, state and municipal results for all 5,757 municipalities (president); governor and senator by state; sections counted | Every 30 s; a municipality is re-read whenever its count changes; full sweep every 45 min |
| TSE open data | 2018 and 2022 results by municipality and electoral zone (votes, turnout, blank and null) | Once |
| Wikipedia (English), 2026 polling tables | Pollster, fieldwork dates, sample, voting intention by candidate | Frozen copy taken at 15:07 Brasília on 4 October, before the polls closed |
| TSE poll registry (PesqEle) | Registration, pollster, client, dates, sample | Copy of 4 October |
| Polymarket, Kalshi, PredictIt, Manifold | Best bid and best ask of each contract; price history | 30 s to 5 min |
| g1, Estadão, Poder360, BBC News Brasil, Correio Braziliense, Agência Brasil, Google News | Headline, outlet, time and link of election stories | 5 min |
Every response from every source is stored as received, with the time it was collected. The dashboard is rebuilt every minute from that archive, so any number can be reproduced later.
3. The forecast before the vote
The average
For each pollster we take its most recent poll with fieldwork ending on or after 27 September (12 pollsters for round one, 12 for the Lula vs Flávio runoff scenario). Each candidate's share of valid votes is computed over the sum of the listed candidates, excluding blank, null and undecided. The average is unweighted: each pollster counts once, so a pollster that publishes often does not dominate.
The error
The uncertainty that matters is not each poll's margin of error: it is the error all polls make together on election day. We model that shared error as a Student's t with 5 degrees of freedom, which gives more weight to large misses than a normal curve does:
L = L̄ + eL, F = F̄ + eF, (eL, eF) ~ t5(0, σ = 4.0 points, ρ = −0.2)
The size, 4 points per candidate, comes from the misses of the final polls in the last two elections: in 2022 Jair Bolsonaro received 43.2% of valid votes, 5 to 7 points above Datafolha, Ipec and Quaest; in 2018 he received 46.0%, about 6 points above Datafolha and Ibope, and Fernando Haddad 4 points above; Lula in 2022 finished 1.5 points below. The root mean square of those misses is 4.4 points.
For the runoff, three weeks of campaign away, we use σ = 3.0 points on Lula's share of valid votes.
There are 100,000 simulations with a fixed seed. The chance that Lula finishes first is the share of simulations in which L > F; the chance that round one settles the election, the share in which either passes 50%.
Why we do not correct for the 2018 and 2022 bias
In the last two elections the polls underestimated the right-wing candidate. Two elections are too few to call the bias permanent: pollsters have changed methods since, and a correction applied on our own judgement can become the error in the other direction. So the forecast applies no directional correction, but publishes alongside it the scenario "the polls miss as in 2022" (Lula −1.5 and Flávio +5.5 points). The prediction markets appear to price that scenario; it is the main difference between them and us.
The runoff: a forecast updated with every poll
Since 7 October the runoff forecast is redone whenever a new poll comes in; the forecast frozen on 4 October stays on the page as a reference. The model is a state-space model, in points of Lula's share of the votes for the two candidates:
poll i by pollster h on day t: yi = θt + δh + εi
opinion: θt = θt−1 + ηt, with an extra jump on the day after round one
vote on 25 October: V = θ25 Oct − β, with β = κ · b1 + e
θ is the average pollster's reading; it follows a random walk; before round one its daily drift is estimated from the polls themselves, and from the day after round one it is fixed at 0.74 points a day, measured in 2014, 2018 and 2022 (addendum of 9 October). δh is each pollster's effect, the systematic distance between what it measures and what the others measure; the effects sum to zero. εi is each poll's sampling error, from its sample size, plus an estimated extra noise. The jump on the day after round one (standard deviation 1 point, a judgment) allows for the result itself being news that moves opinion. The drift before round one, the extra noise and the spread between pollsters are estimated by maximum likelihood at every run.
What round one teaches. The same filter, run on the 56 round-one polls, separates trend from pollster effect and yields two things. Each pollster's round-one effect, 65% of which is the starting point for its runoff effect (addendum of 8 October: in the campaign's runoff polls, each pollster's effect follows its round-one effect but is smaller; the slope is 0.65). And b1: on 4 October the average pollster gave Lula 50.7% of the votes for the two candidates; the result was 49.0%, so the polls were 1.7 points in Lula's favour. Part of that error, κ, is assumed to come back in the runoff. κ was estimated from the two elections in which round-one polls badly missed the right-wing candidate, 2018 and 2022: in 2022 about 40% of the round-one error reappeared in the final runoff polls; in 2018 the round-one error, counted over the two candidates, was small and of the opposite sign. In practice κ comes from one election, so it enters with wide uncertainty (mean 0.38). e is the error of the final runoff polls, measured from 2006 to 2022 (Datafolha and Ibope/Ipec; root mean square 1.1 points), with Student-t tails; 2002 is left out because Ibope's last poll in valid votes could not be found.
How polls enter. The English Wikipedia poll page is read every three hours. A poll enters only after it appears in two reads in a row, so that a wrong edit reverted soon after does not move the forecast. Every forecast is saved once, with date and time, and never changed; a new one is made only when the set of polls changes.
Back-test on 2022. We ran the same model on the 2022 runoff (Lula 50.9%) as if it were 3, 2 and 1 week before and on the eve. With what was known before 2022 (no round-one carry-over, and the final-poll error measured from 2006 to 2018), the centre was off by 1.2 to 1.6 points, better than the plain poll average on one of the four dates and worse on the other three, and the model was overconfident: it gave Lula 99.8%, and the result fell outside the 95% band on two of the four dates. What fixes the centre in 2022 is precisely carrying over part of the round-one error; but the κ used today was estimated with 2022 in it, so that is no proof of forecasting skill. It is a bet backed by one election, and the evaluation plan scores it against the plain poll average and the markets.
4. The projection during the count
The raw count is not a random sample of the country: states and cities finish counting at different speeds, and in 2022 the lead changed hands during the night. The projection estimates the final result from what has already been counted.
logit pm = logit pm2022 + αstate + εm
- Municipal swing. In each municipality with votes counted, we measure how much each candidate's share moved from 2022, in log-odds (Lula compared with Lula; Flávio with Jair Bolsonaro).
- State swing. αstate is the vote-weighted mean of those swings, pulled towards the national mean while the state has few votes counted (half weight once the state has 200,000 valid votes counted).
- Votes still out. For each municipality: electorate of the sections not yet counted × turnout × valid-vote rate, scaled by how today compares with 2022 in the same state. In a partly counted municipality, the remaining votes blend the municipality's own swing with its state's, according to the share already counted.
- Uncertainty. 2,000 simulations draw each state's swing, a shared shock for the order of counting (which shrinks to zero at 100% counted) and each municipality's residual. The bands are the 2.5th and 97.5th percentiles.
Tests: with 100% counted, the projection returns the exact result; on a simulated count in which only small towns have reported, it lands closer to the final result than the raw count and inside its own interval. Tonight is the model's first night: its parameters are initial choices, not yet calibrated. After tonight it will be recalibrated on the minute-by-minute count of 4 October and run again on 25 October.
5. Prediction markets
For each contract we use the midpoint between the best bid and the best ask (the last trade when one side is empty). For two-candidate questions we divide Lula's and Flávio's prices by the sum of the two (the other names are worth about one point in total); the same calculation is used in the blocks, the table and the chart. Wide gaps between bid and ask, like PredictIt's, signal a less informative price and are shown in the table. Manifold uses play money. Polymarket's history uses the same calculation, hourly until 4 October and every two minutes from then on.
6. Comparison with the industry
Besides the markets, the comparison table lists the models and aggregators that publish figures for 2026: Plano Político (the only one that openly publishes probabilities), PollingData, The Economist, ABC Dados, Poll+Trend and UOL. Figures are as published by each source, with the date they were read. Where a source publishes shares of all votes, we convert them to valid votes by removing blank, null and undecided in the proportion it reports, and mark the conversion. A dash means the source does not publish the figure.
7. News
Every 5 minutes we read the public feeds of g1, Estadão, Poder360, BBC News Brasil, Correio Braziliense, Agência Brasil and two Google News searches. We keep headlines that mention the election (count, ballot boxes, TSE, candidates, pollsters, rounds). We store only the headline, outlet, time and link; the stories stay on each outlet's site. g1 reports its times with the wrong time zone; we correct it.
8. How we will be scored
- Freezing. Every forecast is written to a file with a date and time, under version control, before the vote. The round-one forecast was frozen at 16:01 Brasília on 4 October, an hour before the polls closed.
- Votes. Absolute error of Lula's and Flávio's shares of valid votes, and whether the result fell inside the 80% and 95% bands.
- Probabilities. Brier score and log score of each probability (Lula first, runoff, winner), for our forecast, for the simple poll average and for each market, at the same time.
- The count. For every minute of the night: error of the projection and of the raw count against the final result, and coverage of the bands.
An election is a single outcome: being right or wrong once says little about a model. That is why we publish every forecast, every score and the data, including when the result does not flatter us.
The runoff evaluation plan
Written and recorded on 7 October 2026 at 17:02 Brasília time, before the first updated runoff forecast, and not edited since; any change becomes a dated addendum.
- What is scored. Lula's share of the valid votes for the two candidates on 25 October, and who wins. The reference forecast is the last one published before midnight on 25 October; the whole series from 7 to 24 October is scored too, time-weighted. The frozen 4 October forecast is scored as a comparison.
- Scores. Brier and log score on the winner; absolute error on the share; whether the result falls in the 80% and 95% bands.
- Benchmarks, at the same instants. The frozen 4 October forecast; the plain average of each pollster's latest poll ending in the previous 7 days (share only); prediction markets, midpoint, Lula and Flávio divided by their sum (winner only).
- Counts as failure. The result outside the reference forecast's 95% band; a larger absolute error than the plain poll average; a worse Brier than the markets. Whatever happens is published on this page on 26 October.
- Fixed in advance. The model structure and the historical parameters: κ ~ Beta(1.05, 1.72), mean 0.38; final-poll error 1.08 points, Student-t with 5 degrees of freedom; first-round jump 1.0 point.
Addendum, 8 October 2026, written before any runoff poll fielded after round one. Each pollster's runoff effect now starts from 65% of its round-one effect rather than the whole of it. In the campaign's 56 runoff polls, fitted with no starting point, each pollster's effect follows its round-one effect (correlation 0.79) but is smaller: the slope is 0.65, and Quaest, Real Time and Ideia switch sides. The model specification called for this shrinkage; the first version of the code did not apply it. With the same polls, Lula's chance goes from 29.1% to 28.3% (Flávio's from 70.9% to 71.7%). κ, the final-poll error and the round-one shock do not change. The 7 October forecast stays in the scored series as published.
Addendum, 9 October 2026, written after the 9 October forecast (00:11 Brasília), the first with polls fielded after round one. With two polls (Datafolha 6–7 Oct and PoderData 5–7 Oct), Lula's chance fell from 28.3% to 4.5%. The centre moved because both, compared with their own earlier polls, showed the same swing of about 2.6 points; the drop was so large because the band was ±1.5 points 16 days before the vote. We tested whether that band is too narrow, with a rule written before the 2014 and 2018 polls were read (the 2022 ones had been seen in the back-test): the average of Datafolha and Ibope/Ipec in the first week after round one against the two pollsters' final polls; if the move fell outside the model's 80% band in at least 2 of 3 elections, the band would be too narrow. It did in 2014 (+3.9 points to the PT candidate) and in 2018 (+4.0); in 2022 the move was −0.5. So from the day after round one, the daily drift of opinion is fixed at 0.74 points a day, measured in those three elections, instead of the 0.157 estimated almost entirely before round one. With the same 58 polls, Lula's chance goes from 4.5% to 21.6% (Flávio's from 95.5% to 78.4%); the centre goes from 47.5% to 47.3%, and the 80% band from 45.6–49.3% to 42.8–51.7%. A wider band helps whoever is behind; the swings of 2014 and 2018 both went to the PT candidate, and the model uses only their size, not their direction. κ, the final-poll error, the round-one shock and the 65% do not change. The 9 October forecast and the earlier ones stay in the scored series as published.
9. Limitations
- The round-one forecast uses a simple average, with no house effects and no trend over time; the size of the error comes from only two elections.
- The count projection was not calibrated; its bands turned out too narrow late on 4 October, from 80% of stations counted.
- In the runoff, how much of the round-one error comes back (κ) rests, in practice, on one election; and starting each pollster's runoff effect from 65% of its round-one effect is an assumption, measured in one campaign.
- The drift of opinion after round one (0.74 points a day) comes from three elections, two with large swings; it is probably too wide, and it treats as chance what in 2014 and 2018 may have been a trend.
- Comparing Flávio Bolsonaro with Jair Bolsonaro in 2022 assumes the right-wing vote is spread across the country in a similar way.
- Wikipedia tables can contain typos and duplicated rows; rows that do not follow the table's format are discarded, not guessed.
- Other models' figures are as published; we have no access to their simulations.
10. Forecast register
| Frozen at | Forecast | Lula first in round one | There is a runoff | Lula wins the runoff | Lula president |
|---|---|---|---|---|---|
| 4 Oct 2026, 16:01 Brasília | Round one and runoff, from the polls | 64% | 90% | 46% | 49% |
| 7 Oct 2026 onwards | Runoff, redone with every new poll (state-space model) | – | – | on the dashboard | on the dashboard |
| 8 Oct 2026 | Addendum to the evaluation plan: 65% of each pollster's round-one effect carries over to the runoff (before, 100%); with the same polls, 29.1% → 28.3%. | – | – | on the dashboard | on the dashboard |
| 9 Oct 2026 | Addendum to the evaluation plan: the daily drift of opinion after round one is fixed at 0.74 points, measured in 2014, 2018 and 2022 (before, 0.157, estimated from the polls); with the same polls, 4.5% → 21.6%. | – | – | on the dashboard | on the dashboard |
2026 Election Outlook is a project by Tiago Dantas (LinkedIn).