My Life has been a Lie
by djmathman, Nov 5, 2015, 6:17 AM
15-251 Homework 8 Problem 6 wrote:
Donald Trump is running in a race against someone whose name no one can remember, so we will call him candidate "B". Trump has
votes and the other candidate has
votes, naturally
. Trump wants to make sure there is no confusion about who won. He wants to know, once the counting starts, what is the probability that at some point in the counting the two candidates have the same number of votes. Here we assume that the votes are counted one by one in a uniformly random order.



The natural instinct here is to use the Catalan-like idea of taking a polyline and reflecting it over the

Solution
Let
be the event that there is a tie. Let
be the event that the first vote counted is in Trump's favor, and define
analogously. By the Total Probability Formula,
To simplify this, we remark that by Bayes' Theorem,
so the expression above becomes
I now claim that
. To prove this, let
be the set of strings of votes for which
is first and a tie exists; define
similarly. Consider a string
. Note that since
begins with an
, the vote immediately preceding the last tie in the string must be a
. (Oops I said first tie in the HW writing session D:) Thus, consider the string
which consists of the sequence of votes applied in reverse. Now the string starts with a
, so
. Similarly, we can take a string
and reverse it to get a string
, so we have a bijection and the desired probability is
.
Now remark that
since
(if there were no tie the number of votes for
would always have to be greater than the number of votes for
, which is a contradiction). Furthermore, since all vote sequences are evenly distributed,
. Therefore ![\[P[T]=\frac12P[T]+\dfrac{b}{a+b}\quad\implies P[T]=\boxed{\dfrac{2b}{a+b}}.\]](//latex.artofproblemsolving.com/0/9/a/09a01c90c88f8de7bbc865343eda51987cb429d9.png)



![\[P[T]=P[T|A]P[A]+P[T|B]P[B].\]](http://latex.artofproblemsolving.com/2/6/b/26b333457050ae6000ca82b094e67acf00964f2d.png)
![\[P[T|A]=\dfrac{P[A|T]P[T]}{P[A]},\]](http://latex.artofproblemsolving.com/0/c/8/0c8434d951270ba73354200dce6816e934db4cd6.png)
![\[P[T]=P[A|T]P[T]+P[T|B]P[B].\]](http://latex.artofproblemsolving.com/0/2/7/0276ac7fefbef36e7fd6e7dbf6a899a76804ccff.png)
![$P[A|T]=\tfrac12$](http://latex.artofproblemsolving.com/c/b/b/cbbc949aff1ed0f7e908521b29ecd2f762bf6c9b.png)













Now remark that
![$P[T|B]=1$](http://latex.artofproblemsolving.com/a/e/b/aeb96f2aa80c38870ba41b79d4bc5c022c726dc6.png)



![$P[B]=\tfrac{b}{b+a}$](http://latex.artofproblemsolving.com/0/4/f/04f8db710362aedc2666a157193d616a2e8967cc.png)
![\[P[T]=\frac12P[T]+\dfrac{b}{a+b}\quad\implies P[T]=\boxed{\dfrac{2b}{a+b}}.\]](http://latex.artofproblemsolving.com/0/9/a/09a01c90c88f8de7bbc865343eda51987cb429d9.png)
This post has been edited 1 time. Last edited by djmathman, Nov 5, 2015, 6:22 AM