Both describe the same model: the plain-language guide explains how the forecast works without the mathematics; the full specification is the technical paper the code implements.

On this page12 sections

How HitungKerusi works

The plain-language version of the forecast methodology

Last updated: 2026-11-08 (two ways of counting seats — the median and the most-likely-winner tally)


HitungKerusi ("count the chairs") estimates how many seats each political coalition could win at Malaysia's next elections — the 222 seats of the Dewan Rakyat, and the state assemblies of Melaka, Sarawak, Johor, Negeri Sembilan and Sabah.

It does not ask "which party is popular today?" and stop there. It asks a longer question:

Given how people actually voted last time, how has support moved since, what do the polls say, and what does all of that mean for each individual seat?

The answer is never a single number. Every forecast on this site is a range with a probability — "PH wins this seat in 70% of plausible outcomes", "BN ends up with 30 to 36 seats" — because the honest answer to "who will win?" months before an election is a distribution, not a prediction.

1. The idea in one paragraph

Start from the real votes cast at the last election, seat by seat. Then add newer evidence in layers of decreasing reliability: first what by-elections and recent state elections actually showed, then what opinion polls suggest, then what the news cycle is doing. Each layer can only adjust what the layers before it established, and each adjustment has a hard limit. Finally, play the election out ten thousand times with realistic randomness and count the seats in each run.

Two design choices follow from Malaysian politics in particular:

  • The unit is the bloc, not the party. Coalitions reshape between (and even during) parliaments — the 2020 Sheraton Move redrew the board with no election at all. So the model forecasts seven blocs: PH, BN, PN, GPS, GRS, WARISAN and a residual Others. Which parties belong to which bloc is maintained as reviewed data, so a realignment is a curation event, not a code change.
  • History carries the forecast; polls and news refine it. Malaysian public polling is scarce, uneven, and concentrated in peninsular Malay-majority seats. The model is built to produce a defensible forecast from electoral history alone, with everything else as a bounded correction.

2. The four layers and the simulation

StepWhat it contributesHow far it can move the forecast
Layer 1 — Electoral historyThe starting vote share for every bloc in every seatThis is the foundation
Layer 2 — SwingReal, observed movement from by-elections and recent state electionsHeavily discounted when the evidence is thin
Layer 3 — PollsWhere national support stands todayAt most 70% of the national estimate; history always keeps 30%
Layer 4 — NewsWhich seats the news cycle is pushing, and in which directionNever more than ±2 percentage points on any seat
Simulation10,000 plausible elections, each with realistic randomnessTurns shares into win probabilities and seat ranges

The order matters. History sets the baseline; later layers can nudge it, but no single layer — however loud — can override the rest.

3. First, fixing history so it speaks today's language

Before any forecasting happens, past results must be translated onto today's coalition map. A vote cast in 2018 for Bersatu (then in Pakatan Harapan) belongs in today's PN column. A 2018 vote for PAS also counts for PN. A 2018 vote for Sarawak's BN parties counts for GPS. Parties that no longer have a competitive home fall into Others.

These translated results are called notional results: given the votes actually cast at election X, how would they be distributed across today's blocs?

This matters more than it sounds. Once GE14 (2018) is re-bucketed onto today's blocs, the notional seat count reads PH 100, PN 56, BN 34, GPS 19, WARISAN 8 — the Malay-belt consolidation that became the 2022 "green wave" was already visible inside the 2018 votes. The model only ever reads notional results, so when the coalition map changes, the history is recomputed and the model itself stays untouched.

Every election in the database also passes quality gates before it is used: bloc totals in each seat must match the official valid-vote count to within 0.1%, ballots cannot exceed the electorate, recorded winners must actually hold the most votes, and turnout must be plausible. A failure stops the pipeline rather than poisoning the forecast.

4. Layer 1 — where each seat starts

This is the foundation of everything else.

Recent elections weigh more. The model uses several past elections, but gives them a weight that fades with age. In a forecast made today, GE15 (2022) carries full weight; GE14 (2018) counts for roughly 15% as much, and GE13 (2013) about 2%. Malaysian politics realigns quickly — older elections inform the texture of the seat map, not the current contest.

Seats are gently pulled toward the national average. A seat with thin or stale history is nudged toward its bloc's nationwide share, so that one unusual result cannot dominate. The pull is deliberately small — about 1.5 to 4 percentage points in a typical seat — enough to soften idiosyncratic numbers without redrawing the map. This is the "Bayesian" in layered Bayesian model: data-rich seats keep their own numbers; data-poor seats borrow strength from the whole.

An illustrative seat (not real HitungKerusi data):

BlocVotes at the last electionStarting share
PH24,00040%
BN21,00035%
PN15,00025%
Total60,000100%

PH starts this seat with a five-point lead. The next three layers decide whether that lead grows, shrinks, or flips.

Does the foundation hold up on its own? Yes. Replaying GE15 using history alone — no swing, no polls, no news — the model's 80% ranges contained every bloc's actual seat total: PH won 81 against a forecast range of 80–88; PN 74 against 68–75; BN 30 against 29–36; and GPS, GRS, WARISAN and Others all landed inside their bands.

Why this matters: every seat gets its own starting point. The model never assumes that the whole country votes the same way.

5. Layer 2 — measuring real movement

Between general elections, Malaysia offers very little hard evidence of how votes are moving. By-elections are the main exception, and only three Dewan Rakyat by-elections have been held since GE15: Kuala Terengganu (August 2023), Pulai (September 2023) and Kemaman (December 2023).

The like-for-like rule. By-elections are easy to misread. Under the unity government, blocs routinely sit out contests they cede to a partner — which mechanically inflates everyone else's share. At Kuala Terengganu, PAS "won" with 84.96% partly because BN did not stand. Read naively, that looks like a phantom 20-point swing to PN.

HitungKerusi avoids this by comparing only the blocs that contested both the by-election and the original election, re-basing both results to that shared set, and measuring the change within it. On that basis the 2023 by-elections read PN +5.3 points, PH −4.2, BN −8.0 (Kemaman only) — a real but modest consolidation in the Malay belt, an order of magnitude smaller than the naive reading.

Three seats are not a country. The national swing taken from by-elections is shrunk by sample size: with three seats, it carries about 43% of its face value. Each state's own residual is shrunk toward the national figure as well, so a Terengganu movement is not automatically applied to Selangor or Sarawak.

State elections count too — at a discount. When a state has voted more recently than the last general election, that result is evidence for its parliamentary seats. The model applies it with two discounts: a 50% haircut because state contests have different line-ups and seat deals than federal ones, and a fade with a one-year half-life so that the evidence ages. As of October 2026 this layer reads Johor BN +11 / PN −9, Sabah GRS +4.6 / PH −5.6, and small, fading PN gains in the northern states from the 2023 state polls.

Why this matters: the model separates national movement from regional movement. The 2022–23 green wave was regionally concentrated, and treating it as uniform is exactly the mistake the backtests punish.

6. Layer 3 — what polls can and cannot do

Polls never touch an individual seat. They adjust the national vote shares, and that adjustment flows down to seats through the same swing mechanism as Layer 2.

Fresh and large beats old and small. A poll's weight halves every 45 days and grows with the square root of its sample size. Polls older than 270 days are ignored entirely.

Polls are capped. However many polls are available, they can never fully replace the history:

  • One poll can move the national estimate by at most 25%.
  • Three or more polls can move it by at most 70% — the cap.
  • The historical baseline therefore always retains at least 30% of the blended national estimate.

Why so cautious? Malaysian polling is sparse and methodologically uneven, and rarely more than two pollsters publish in a cycle — too few to estimate each pollster's systematic bias ("house effects"), so these are not yet modelled. The model never needs a poll to produce a forecast; polls sharpen it when they exist.

7. Layer 4 — the news layer

This is the layer visitors feel between elections, and the one with the strictest limits.

What it does. Every cycle the platform collects political news from RSS feeds (many narrow Google News queries, plus publishers' own feeds), links each story to the seats, parties and coalitions it names, and scores how favourable or unfavourable it is — at the level the story is actually about. Two taggers share the job:

  • A rule-based tagger that is always on: whole-word matching against registries of seat, party and coalition names, with a small Malay/English political lexicon for sentiment. Free, deterministic, reproducible.
  • An AI tagger (when configured) that refines the rule-based reading: entity extraction, sentiment, and a one-sentence "why it matters". The rule-based tagger remains the floor; the AI only refines.

Party stories are scored as party stories. Parties are permanent; coalitions are alliances that change. A story about Bersatu's own fortunes is scored for Bersatu, not automatically for Perikatan Nasional — crucial when coalition partners are publicly at odds (PAS and Bersatu have been split since October 2026). Only stories about a coalition as a whole — seat pacts between blocs, alliance break-ups, registration — are scored for the coalition. How much a party's news counts toward its coalition is a reviewed setting, and where the party is the coalition's standard-bearer in a seat (it led that coalition's vote there last time), its news counts there at full strength. So a Bersatu win story moves Bersatu-held seats, not PAS-held ones.

How it moves a seat. For each seat, the stories that name it over the past 28 days are combined (how relevant × how positive or negative, for the bloc or party the story is about). That score is then compared with every other seat's, so the question answered is "which seats is the news pushing hardest, relative to the rest?" — not "is this bloc being praised?".

The two-point ceiling. No amount of coverage can move any bloc's share in any seat by more than two percentage points. Headlines can nudge a close contest; they cannot overturn a safe one.

National stories are read, not applied. A story that names no constituency — the Registrar of Societies deregistering Perikatan Nasional on 20 October 2026 is the clearest example — is collected, tagged and shown on the site, but cannot move a seat forecast. Partly that is mechanical (the signal is summed per named seat), and partly it is deliberate: "is the country moving?" is the polls' job, not the news layer's. So that readers never mistake this for blindness, each chamber's "Why this forecast" caption reports the national coverage the model saw and states that it was not applied.

A note on that example: deregistering a coalition removes its vehicle — the shared symbol and the coordination it enforces — not its component parties' right to contest, which stay registered and can run under their own symbols. And because the model forecasts blocs (votes aggregated across whatever symbols they were cast for), the bloc does not vanish from the arithmetic.

Why this matters: media attention and voter support do not move together. The cap keeps the forecast anchored to votes while letting the news layer flag where the ground is shifting.

8. From vote shares to seats: the simulation

A vote-share estimate is not yet an election forecast. The last step turns shares into seats using Monte Carlo simulation — rather than computing one supposedly certain result, the model plays out 10,000 plausible elections and counts what happens.

In each simulated election it:

  1. Starts from the estimated share of every bloc in every seat (Layers 1–4 combined).
  2. Adds a shared state-level shock — seats in the same state move together, as they do in reality.
  3. Adds a smaller seat-level shock for local idiosyncrasy.
  4. Re-normalises so shares sum to 100%, and awards the seat to the bloc with the most votes. Malaysian contests are routinely three- or four-cornered, so the model simulates the whole share vector rather than a head-to-head.
  5. Counts seats per bloc, then repeats.

Two settings govern how wide the randomness is:

  • Regional versus local. 40% of the uncertainty is shared across a state; 60% is specific to the seat.
  • Further away means wider. Near an election the typical seat-level uncertainty is about 4.5 percentage points. It grows with time to polling day, reaching roughly 14–15 points at a four-year horizon — anchored on the real GE14→GE15 seat-level swing, whose spread was 16 points.

An illustrative seat (not real HitungKerusi data): the model estimates PH 39%, BN 37%, PN 24%. In some simulations PH's support lands higher and it wins comfortably; in others BN's does and BN takes the seat. If PH wins in 7,000 of the 10,000 runs, its win probability is 70%.

That does not mean PH gets 70% of the vote. It means that, under the model's assumptions, PH comes first in 70% of plausible outcomes.

Summing over all seats and all 10,000 runs gives everything the dashboards show: each seat's win probability, each bloc's seat range, and the headline probabilities — of a hung parliament, of the governing blocs reaching a simple majority or two-thirds, and of each bloc being the largest.

Two honest ways to count seats — and why the site shows both. Because the model plays out 10,000 elections, a bloc does not get one seat total; it gets a range. Two summaries of that range are useful, and they can differ by a seat or two:

  • the median — the middle of the bloc's seat range, shown inside the 80% band it sits in. This is the estimate that carries uncertainty, and it is what the Seats by bloc panel lists.
  • the most-likely-winner tally — count the seats where the bloc is the single most likely winner, one seat at a time. This is what the hemicycle and the coloured seat strip draw: "if every seat went the way it is most likely to".

They differ because a bloc can lead many seats by a whisker while its total is usually a little lower. Melaka is the clearest example: BN leads 21 seats, and its median total is 20. Both are correct, so every figure on the site says which one it is — the headline count, the chamber tiles and "Gov seats" use the most-likely-winner tally, so they always match the graphic beside them; the bloc panel and the spotlight's "median seats" line are the distribution view.

The "Why this forecast" captions beneath each hemicycle and on each seat page are generated the same way every run: short sentences assembled from the run's own numbers (what the baseline says, what swing and news contributed, what changed since the previous run and which story it coincides with), in English and Bahasa Malaysia. No AI writes them, so a quiet week reads as a quiet week.

The one exception is the headline at the very top of the Overview. A language model writes that single sentence fresh each cycle, so the front page does not say the same words every day. It is given the day's figures — how many days to polling, which bloc leads, its seats against the majority line — and is not allowed to use any other number: every digit in its answer is checked against that list, and an answer carrying a figure nobody computed is thrown away. When that happens, or when the model cannot be reached, the site falls back to a plain sentence built from the same numbers. So the front page is either arithmetic-checked prose or arithmetic — never unchecked prose.

9. How do we know it works? Backtesting

The model is tested against elections that have already happened. The harness pretends only the earlier election is known, applies the national swing that actually occurred, and scores the seat-by-seat calls against the real winners.

Historical testSeats called correctly
GE12 → GE13 (2008 → 2013)85.1%
GE13 → GE14 (2013 → 2018)68.9%
GE14 → GE15 (2018 → 2022)69.8%
Johor state election, 2022 → 202694.6% (53 of 56 seats)
Negeri Sembilan state election, 2023 → 202669.4%
Random guess, for comparison~14%

Three things to take from this:

  • The model's skill tracks the stability of the party system. In the steady 2008→2013 era it is excellent, with fully calibrated ranges. It weakens precisely at the two systemic breaks — the 2018 change of government and the 2022 realignment — where coalitions recombined and vote shares alone cannot describe the new chemistry.
  • Johor and Negeri Sembilan are the same lesson in miniature. Johor's 2026 result was already visible in its 2022 votes and the model called 53 of 56 seats. In Negeri Sembilan, the 2026 BN–PN alliance fought straight contests that merged two blocs' votes — exactly the kind of change history cannot foresee — and accuracy dropped accordingly.
  • These tests use the real national swing, so they measure the seat-allocation machinery, not the much harder job of predicting the national mood in advance. They are the project's own replays, run on its own harness, and are not independently audited.

Only parties on the ballot can win. Malaysian coalitions do not contest everywhere: in Melaka 2026 one bloc stands in 23 of 28 seats and sits out the rest. Because the model starts from historical vote shares, every bloc would otherwise keep a share in every seat — and could even be declared the winner of a seat it is not standing in. So once an election's candidates are filed, each seat is restricted to the blocs actually contesting it, the others drop to zero, and the remaining shares are scaled back up. One safeguard matters more than the feature: if the filed list looks incomplete (any seat with only one candidate), the model ignores it entirely and forecasts the old way — a half-imported candidate list must never delete a real contender. That is why the "phantom" seat can no longer be called for an absent party, and why the correction only appears once the candidate data is verified.

10. What the model deliberately does not know

The full specification lists these as assumptions and limitations; they are worth reading as plain statements of where the forecast can be wrong.

  • Constituency boundaries are assumed frozen through the forecast horizon.
  • Candidate effects are treated as noise. A star candidate or a weak one is not modelled; candidate news enters only through the news layer, under its two-point cap.
  • Turnout is implicit. Shares are of valid votes; a surge or slump in turnout (the 2022 drop to 73.9%, for instance) is a known risk not yet modelled.
  • Polls are scarce and possibly biased — hence the caps and the refusal to depend on them.
  • The news layer detects relative pressure, not earthquakes. A genuine coalition collapse enters the model through the reviewed coalition map and a recompute of notional results, not through sentiment scores. A daily watch flags unfamiliar political names for human review; nothing unreviewed ever reaches the data.
  • Sabah and Sarawak are hard to see from national news. Their forecasts rest almost entirely on history, which is arguably the right call. One known artifact: the Others bucket lumps every minor candidate together, so in fragmented seats it can out-count the real winner on paper (Sarawak 2021 reads GPS 70 notional versus 76 actual); the pull toward the chamber average corrects most of this.
  • State assemblies rest on a single election each, so between elections they move almost entirely through the news layer until by-elections or polls arrive.
  • Party-hopping between elections changes today's seating chart but not the forecast, which is about the next election.

11. How to read the numbers on this site

  • Win probability (per seat) — the share of the 10,000 simulated elections a bloc won that seat. 70% means "wins in seven out of ten plausible futures", not "70% of the vote".
  • Expected share (per seat) — the model's central estimate of a bloc's vote share after all four layers.
  • Seat range (per bloc) — the band in which a bloc's total landed in 80% of simulations, with the median marked. Ranges widen the further away polling day is.
  • P(hung parliament) — the share of simulations in which no bloc reaches a majority on its own (112 of 222 federally; each assembly has its own line).
  • "Why this forecast" — the generated caption under each hemicycle explaining what the forecast stands on and what moved since the last run.

Good questions to put to the forecast:

  • Which seats are genuinely competitive, and which are safe?
  • Which bloc is gaining or losing ground, and where?
  • How likely is a hung parliament, or a change of government?
  • How much does the picture change if national support shifts by a few points?

The wrong question is "what will the exact seat count be?". The median is the centre of a range, not a prediction, and the range is the honest part of the answer.

Glossary

TermMeaning
BlocA coalition (PH, BN, PN, GPS, GRS, WARISAN) or the residual Others bucket — the unit the model forecasts
Notional resultA past election's votes re-bucketed onto today's blocs, so that history speaks today's language
BaselineA seat's starting shares from electoral history alone (Layer 1)
SwingThe change in a bloc's share between two elections, measured like-for-like among the blocs that contested both
Half-lifeThe time it takes for a piece of evidence to lose half its weight (45 days for polls; one year for state-election swings)
ShrinkageThe gentle pull of a thinly-evidenced estimate toward a broader average
Monte Carlo simulationPlaying an uncertain process out thousands of times with randomness, and reading off how often each outcome occurs
Win probabilityThe fraction of simulated elections a bloc won a given seat
80% rangeThe band containing a bloc's seat total in 80% of simulations
Hung parliamentNo single bloc holding a majority of seats

Every parameter and formula mentioned here is specified precisely in the full specification — switch to it using the toggle at the top of this page.