HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
TheEconomist
us-potus-model
HTML2020–2024
TheEconomist / us-potus-model

us-potus-model

Code for a dynamic multilevel Bayesian model to predict US presidential elections. Written in R and Stan.

4Distinct people
4Mentions
0Explicit recommenders
1.3KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Code for a dynamic multilevel Bayesian model to predict US presidential elections. Written in R and Stan.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 9–Nov 16 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/16/2026, 7:57:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year4 dated mentions

Observed mentions: 2020-06-14 11:51:39 UTC to 2024-06-16 20:29:13 UTC.

01232020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 3 mentions; 2 submissions, 1 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC321
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC000
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC101

What Hacker News says

1 sources
This sounds like a more thorough update to the 2020 model they published here: https://github.com/TheEconomist/us-potus-model Nate Silver was both the best and worst thing that happened to these predictions. The modus operandi of people in media (New York and Hollywood) is "gut checks" - Dean Baquet is only going to publish a model, no matter what the math says, that agrees with his "gut" that Clinton was going to win 2016. He was so crazy wrong but like, he's not getting fired. Laypeople and cranks conflate making a mistake that everyone in media made with a conspiracy between Democrats and the media, unable to grasp incompetence. Of course, if Dean Baquet had spent five minutes talking to a political scientist of some merit, asking, "is the voter turnout of traditional demographic groups like women and old people is really as predictive
Read the rest
of elections as Nate Silver said it was?" He would have learned that Australia has had compulsory voting for decades and it is as conservative as ever. Now that "gut checks" have disentangled themselves from New York graphics departments - can you believe its the graphics department, masquerading as a "data science" department, that runs election forecast stories?! - maybe forecasts will be better everywhere. If I were doing this, I'd frame it as a Kaggle competition built on PyroPL. And I'd require top performance in democratic election forecasting everywhere, not just the US. The Economist is right, it's all about fundamentals, but which fundamentals, and can you prevent the choice of fundamentals from reflecting the publisher's political aspirations? Personally I'm skeptical that the Economist's choice of GDP growth makes any sense, and net approval rating sounds like a poll, so... there must be something better.
In How The Economist’s presidential forecast works

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.