# BidenFraction: a resource for interested in the US presidential election

**URL:** <https://community.wolfram.com/t/bidenfraction-a-resource-for-interested-in-the-us-presidential-election/16970>\
**Category:** Staff Picks\
**Tags:** fun-and-play, social-sciences, algebra, graphics-and-visualization, staff-pick, events-and-media, computational-humanities, wolfram-repositories, societies-and-civilizations\
**Created:** [November 5, 2020, 11:04pm UTC](https://community.wolfram.com/t/bidenfraction-a-resource-for-interested-in-the-us-presidential-election/16970 "2020-11-05T23:04:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![schandler](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/schandler/32/38011_2.png) [@schandler](https://community.wolfram.com/u/schandler)\
**Post date:** [November 5, 2020, 11:04pm UTC](https://community.wolfram.com/t/bidenfraction-a-resource-for-interested-in-the-us-presidential-election/16970/1 "2020-11-05T23:04:11Z")

</div>

![ScreenShot2020-11-06at10.49.16AM.jpg](https://global.discourse-cdn.com/wolfram/original/2X/5/5e588336dd04a40d598239d197b6647faf1395e2.jpeg)

[Here is a ResourceFunction](https://www.wolframcloud.com/obj/schandler/DeployedResources/Function/BidenFraction?fbclid=IwAR29ipk-NMlWyGdta6AWN8yXIST1PKWJRkUhdfuYaUSj2UezpVw4iIm3k2U). I will never be able to polish it in time for the real Wolfram Function Repository and, if I did, it would need to be far more general. But here is a resource function dealing with the 2020 US Presidential election. The computation is done as a “Biden fraction,” but one can readily obtain the Trump fraction if one is so inclined. No advanced math whatsoever, but it still strikes me as useful. I’ve also written a little FormFunction to create a very unpolished [web app](https://www.wolframcloud.com/obj/schandler/BidenVictoryCalculator). The code of the function and form page is embedded below.

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/c1f9d0bc-18a4-447a-b515-69c8e5ffb712)

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [November 6, 2020, 5:13pm UTC](https://community.wolfram.com/t/bidenfraction-a-resource-for-interested-in-the-us-presidential-election/16970/2 "2020-11-06T17:13:50Z")

</div>

![news-congrads-kkluyshnik-02-04-19.jpg](https://global.discourse-cdn.com/wolfram/original/3X/6/a/6a310c2d0904616faf4e6e148260c9f29ab9f4eb.jpeg) – you have earned _ **Featured Contributor Badge** _ ![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)  
Your exceptional post has been selected for our editorial column _ **Staff Picks** _ [http://wolfr.am/StaffPicks](http://wolfr.am/StaffPicks) and [Your Profile](http://community.wolfram.com/web/schandler) is now distinguished by a _ **Featured Contributor Badge** _ and is displayed on the [Featured Contributor Board](https://community.wolfram.com/people). Thank you!

---

<div class="post-metadata">

**Author:** ![ahmed](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/ahmed/32/5858_2.png) [@ahmed](https://community.wolfram.com/u/ahmed)\
**Post date:** [November 6, 2020, 5:33pm UTC](https://community.wolfram.com/t/bidenfraction-a-resource-for-interested-in-the-us-presidential-election/16970/3 "2020-11-06T17:33:07Z")

</div>

Biden needs half of the votes remaining in Georgia to win the race. Thanks [@Seth Chandler](https://community.wolfram.com/web/schandler) for the function and form page.

 ![Screenshot2020-11-06193018.jpg](https://global.discourse-cdn.com/wolfram/original/3X/8/3/83e2c319acdbaf3cdb2be64141f4a2dab5e6f665.jpeg)

---

<div class="post-metadata">

**Author:** ![dckubler](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dckubler](https://community.wolfram.com/u/dckubler)\
**Post date:** [December 22, 2020, 6:17pm UTC](https://community.wolfram.com/t/bidenfraction-a-resource-for-interested-in-the-us-presidential-election/16970/4 "2020-12-22T18:17:18Z")

</div>

I used the resource above with data from Pennsylvania Secretary of State —

I entered the ballots counted for Trump and Biden up through November 3rd in Pennsylvania.  
Trump 2,730,751 - Biden 1,408,658.

Trump won 66 of 67 counties the first day, Biden won 1 county. The total above was 60.6% of the final when all mail ballots were counted.  
The final data gave Biden 13 counties with amazing margins, the extra votes were not uniformly distributed some counties really loved the mail

Biden needed only 76% of those votes, enough to win but not needing 100%.  
The mail votes were Trump 594,156 - Biden 1,993,186. Biden had 77% just short of 2,000,000, wow, what a victory. But this resource could have predicted that.

 ![pct votes.png](https://global.discourse-cdn.com/wolfram/original/3X/8/a/8a450116e3364ee6ab0f0a127a3b5bf684e53091.png)
