I

I wrote a Julia program to simulate the US Electoral College

Hacker News

I wrote a Julia program to simulate the US Electoral College

## Hooray, Julia's Ecosystem For this simulation / estimation / optimization task, Julia was great! I used: * Julia for succinctly expressing the logic and simulation * Turing.jl for estimation based on polling data * DuckDB for storage and fast analytic queries (even on Julia DataFrames) * Mustache.jl for building the site and Vega visualizations I'm amazed at how far the Julia analytic ecosystem has come. Granted, some of these tools aren't Julia-exclusive (DuckDB, Mustache, Vega) but they worked well with it and were a pleasure to use. Julia's speed gets a lot of attention, and it is nice. However, I think the clear syntax and how nicely it interacts with other systems don't get enough attention. If you haven't played around with Julia recently, I recommend it (particularly for simulation). ## Why I Did This The electoral college presents an optimization problem with layers of uncertainty (my specialty!). It can be hard to reliably find the states where focused campaigning will increase the chances of winning the most. I want to help Biden win the election. Over $300MM in spending supporting Biden in the election will be managed by super PACs, which are legally prohibited from coordinating with the party or the campaign. It seemed like an external source of Democrat-focused electoral college analysis could be useful. So, as a citizen unaffiliated with any campaign, I volunteered my skills by building this. ## The Site I'm not trying to change your vote here, so I didn't put the website at the top. But, if you made it this far and are interested, here it is: https://swingstatesolver.com/

Share card

Actual performance

2points
1comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
81%81% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
52%52% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntUnlikely to reach the leaderboard · Strong signals: visual · Missing: mac, agents, macos
47%47% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
42%42% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: exclusive · Missing: plus, platform, intuitive
42%42% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
16%16% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

My
My first recursive program in x8665%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My first recursive program in x86

Hacker News2
I
I wrote a maze traversal program in Clojure63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I wrote a maze traversal program in Clojure

Hacker News91
My
My brother wrote this program from jail74%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My brother wrote this program from jail

Hacker News48
Pr
Program Synthesis for Ruby61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Program Synthesis for Ruby

Hacker News82
Pr
Program Microcontrollers from Your Headphone jack55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Program Microcontrollers from Your Headphone jack

Hacker News107
Pu
Punch a college that rejected you33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Punch a college that rejected you

Hacker News1
MEC
MEC31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

college

Indie Hackers
Vi
Visualizing the Impossible – How to Simulate Electrons63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Visualizing the Impossible – How to Simulate Electrons

Hacker News5
I
I Built a Click-to-Simulate 2024 Electoral College Calculator41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I Built a Click-to-Simulate 2024 Electoral College Calculator

Hacker News3
Co
College Student Program Across Various Country23%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

College Student Program Across Various Country

Hacker News1