How it works?
MEP uses a table of probabilities that indicate how likely either candidate is to win each state.
In the time span of only a few seconds, it runs huge numbers of simulations of possible outcomes of the election, in terms of which states will cast their votes, in an all or nothing fashion, for each candidate. For each possible outcome it calculates how many electoral votes each candidate would get, and calculates which candidate would win (or if there would be a tie).
By repeated sampling of possible outcomes according to the estimated probabilities, the program rapidly settles on an overall probability that each candidate will win the election, and the probability of a tie.
This is called Monte Carlo simulation.
Related Work
MEP was a precursor to a series of Monte Carlo prediction tools I wrote including my my 2006 World Cup Soccer Predictor and Betting Advisor.
Check out the new free software and fun stuff released as part of our NANY (New Apps for the New Year) 2018 event on January 1, 2018: here.
Since 2007 we have held an annual event that we call NANY (New Apps for the New Year), where we ask the coders who hang out on DonationCoder to create some new piece of free software and share it with the world on January 1st of the new year. NANY is really the funnest thing we do on this site, and it's one of the few times we can all play together. There are no winners or losers, it's simply a celebration of programming and creating new software and sharing it with the world.
Mouser's 2004 Election Predictor
Mouser's 2004 Election Predictor (MEP) was an offline Monte Carlo simulation program for estimating the likelihood that a given candidate will win the United States Presidential Election Electoral College, based on estimates of how each state is leaning, and taking into account the electoral college all-or-nothing voting system. It allowed users to fill in a table of how likely each state is to vote for a given candidate, and based on these numbers, ran large numbers of (Monte Carlo) simulations for each state, and calculated the odds of each candidate winning the electoral college. It used online poll results to estimate probabilities and was used on election night as states results come in to constantly give updated estimate of candidates chances.
Note: Nowadays such Monte Carlo simulations are not uncommon and would be performed by an online website, rather than a standalone desktop utility.

