The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Election predictions
11-05-2020, 05:03 PM
Post: #1
Election predictions
Given a partial vote count, what percentage of the remaining votes does a candidate need to win the election?

Let:
Rc = percent of counted votes that are for the republican.
Ro = percent of uncounted votes that are for the republican.
Dc = percent votes counted so far that are for the democrat.
Do = percent of uncounted votes that are for the democrat.
N = percent of all votes counted so far.
T = total # votes cast.

A candidate wins if they have slightly more votes than the opponent. So let's set them equal:
Total R votes = Total D votes
Rc*N*T + Ro*(1-N)*T = Dc*N*T + Do*(1-N)*T
(Rc-Dc)N = (Do-Ro)(1-N)
Do-Ro = (Rc-Dc)*N/(1-N)

That gives us the spread. To easily get a real number, let's assume that all outstanding votes are cast for one of these two candidates (Do+Ro = 1):
Do = 1/2 + (Rc-Dc)*N / (2*(1-N))

Or to allow expressing all values as a percent:
Do = 50 + (Rc-Dc)*N / (2*(100-N))
Ro = 50 + (Dc-Rc)*N / (2*(100-N))

Input: Rc [Enter] Dc [Enter] N XEQ A
Output: Do

Example: Trump currently has 49.7% in PA and Biden has 49.1% in Georgia with 95% of the votes counted. What percentage of the remaining votes does Biden need to win?

49.7 [Enter] 49.1 [Enter] 95 XEQ A
Answer: 55.7
So Biden needs 55.7% of the outstanding votes to win Georgia.

Code:
LBL A
Rv
-
R^
*
LastX
100
X<>Y
-
/
2
/
50
+
RTN
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Election predictions - David Hayden - 11-05-2020 05:03 PM
RE: Election predictions - mfleming - 11-05-2020, 08:16 PM
RE: Election predictions - David Hayden - 11-06-2020, 12:37 AM
RE: Election predictions - Albert Chan - 11-06-2020, 02:03 PM
RE: Election predictions - Dave Shaffer - 11-07-2020, 02:20 PM
RE: Election predictions - Albert Chan - 11-06-2020, 11:57 AM
RE: Election predictions - Dave Britten - 11-06-2020, 03:48 PM
RE: Election predictions - Dave Britten - 11-07-2020, 02:52 PM
RE: Election predictions - robve - 11-08-2020, 07:52 PM
RE: Election predictions - Dave Britten - 11-08-2020, 08:15 PM
RE: Election predictions - robve - 11-09-2020, 06:23 PM
RE: Election predictions - StephenG1CMZ - 11-09-2020, 07:53 AM
RE: Election predictions - Dave Britten - 11-09-2020, 12:35 PM



User(s) browsing this thread: 1 Guest(s)