/ElectoralCollegeMonteCarlo

Simulates the presidential election with Monte Carlo simulations.

Primary LanguagePython

Electoral College Monte Carlo Simulator

Simulates the 2024 presidential election with Monte Carlo simulations.

Example:

> python ElectoralCollegeMonteCarloSimulator.py
Usage: ElectoralCollegeMonteCarloSimulator.py <num_iterations> [-a]

> python ElectoralCollegeMonteCarloSimulator.py 1000000
<<< Electoral College Monte Carlo Simulations >>>

Probability of red win = 45.28%
Probability of blue win = 53.17%
Probability of tie = 1.55%

Median electoral college vote for red wins = 283.0
Median electoral college vote for blue wins = 281.0

>