This project was completed for stochastic simulation. Using polling data from various sources, me and two of my classmates created a code within Wolfram Mathematica to complete this project. The general code we used to predict our swing states is shown, where "r" represents the percentage of polling for republicans and "b" represents the percentage of polling for democrats. Note that r+b doesn't necessarily equal 100. This project was completed in March of 2024.
The original "serious" graph is shown, but beyond that, we implement different silly situations, thus changing our code to take those into account. The numbers on the x-axis indicate the difference in electoral votes between republicans and democrats, and the y-axis indicates the number of simulations that predicted that specific difference in electoral votes. Please note that the negative values indicate the difference the democratic party won by, so any simulation that predicts -20, indicates an election where the democrats won by 20 electoral votes.