The data is fed into the model, which simulates thousands of outcomes. The possible outcomes give an estimate of most likely result along with lower and upper estimates.
Our final forecast puts National on 56 seats in parliament, with a Labour-Green coalition at 54 seats.
NZ First is now projected to get 7.5 per cent of the party vote and nine seats.
The estimates are median estimates. The lower and upper estimates are shown in the visualisation and give better estimates of uncertainty surrounding the projections.
To form a government, a party or coalition needs at least 61 out of 120 seats, or to reach a confidence-and-supply agreement.
Individual polls are showing more volatility than normal due to leadership changes.
But at this late stage, the Herald Election Forecast is largely the same as it was at the beginning - it is highly unlikely that Labour or National will form a government without NZ First support.
The model also includes predictions for candidates by every electorate. These are based on previous election results and take into account any polling that has taken place for a particular electorate.
There is different methodology for Epsom, which is unlike most other electorates because of tactical voting.
The visualisation also includes candidate and party vote predictions for Maori electorates. However, this is perhaps the hardest part of forecasting because of tactical voting and lack of consistent polling at electorate level.