User Tools

Site Tools


gibson:teaching:fall-2012:math445:lab8

**This is an old revision of the document!** ----

A PCRE internal error occured. This might be caused by a faulty plugin

====== Math 445 Lab 8; Presidential election ====== Your job is to predict the outcome of today's Presidential election, given the last-minute polling data. Specifically, given a list of states, their electoral votes, the composite polling percentages for each candidate, and the margins of error those polling percentages, you are to run a large number (''Nelections'') of simulations of the election. For each state, award each of the two candidates the specified composite polling percent plus a random number in the range between -margin and +margin. Then award that state's electoral votes to the candidate with the larger percentage of votes. Add up all the electoral votes for each candidate, and award the nth election

gibson/teaching/fall-2012/math445/lab8.1351788057.txt.gz · Last modified: 2012/11/01 09:40 by gibson