Coin flipping probability game ; 7 flips vs 8 flips Your friend flips a coin 7 times and you flip a coin 8 times; the person who got the most tails wins. If you get an equal amount, your friend wins.
There is a 50% chance of you winning the game and a 50% chance of your friend winning.
How can I prove this? The way I see it, you get one more flip than your friend so you have a 50% chance of winning if there is a 50% chance of getting a tails.
I even wrote a little script to confirm this suspicion:
from random import choice

coin = ['H', 'T']

def flipCoin(count, side):
    num = 0
    for i in range(0, count):
        if choice(coin) == side:
            num += 1
    return num


games = 0
wins = 0
plays = 88888

for i in range(0, plays):
    you = flipCoin(8, 'T')
    friend = flipCoin(7, 'T')
    games += 1
    if you > friend:
        wins += 1

print('Games: ' + str(games) + ' Wins: ' + str(wins))
probability = wins/games * 100.0
print('Probability: ' + str(probability) + ' from ' + str(plays) + ' games.')

and as expected,
Games: 88888 Wins: 44603
Probability: 50.17887678876789 from 88888 games.

But how can I prove this?
 A: The probabilities have a binomial distribution, so we have $$\mathrm{Pr}[\text{friend gets } i \text{ tails}]=\binom{7}{i} 0.5^7$$ and $$\mathrm{Pr}[\text{I get } j \text{ tails}]=\binom{8}{j} 0.5^8.$$
Since these events are independent, we have 
\begin{align*}
\mathrm{Pr}[\text{friend gets } i \text{ tails and I get } j \text{ tails}] &= \mathrm{Pr}[\text{friend gets } i \text{ tails}] \times \mathrm{Pr}[\text{I get } j \text{ tails}] \\ & = \binom{7}{i} \binom{8}{j} 0.5^{15}.
\end{align*}
The possible $(i,j)$-values where I win are mutually exclusive, hence we find
$$\mathrm{Pr}[\text{I get more heads than my friend}]=\sum_{i=0}^7 \sum_{j=i+1}^8 \binom{7}{i} \binom{8}{j} 0.5^{15}=0.5$$
A: (I know the question already has an answer, but I enjoy the simplicity of this argument.)
Assume you flip simultaneously and label your throw by W if you get a tail when your friend gets a head. So to win you need to have at least 4W, but beware, if you get exactly 4W then they had to occur during the first 7 flips. 
This gives a total number of winning combinations:
$${7\choose 4} + {8\choose 5} + {8\choose 6} + {8\choose 7} + {8\choose 8} $$
Now divide by the total number of combinations: $2^8$.
A: Proof without any formulas or numbers: We just create a different game that will produce the exact same winner, and where it is obvious that you both have equal chances to win. 
You and your friend each toss eight times. If one has more tails than the other, that one is the winner. If the number of tails are equal (four each), you remove your friends last toss; if you have more tails you are the winner, if the number of tails is equal he is the winner. 
If a "tail" is removed, you are the winner. If "head" is removed, your friend is the winner. You had equal chances to be the winner after eight tosses, and if there was a draw after eight tosses, you have equal chances to end up the total winner as well. 
A: The probability distribution of the number of tails flipped by you is binomial with parameters $n = 8$, and $p$, where we will take $p$ to be the probability of obtaining tails in a single flip.  Then the random number of tails you flipped $Y$ has the probability mass function $$\Pr[Y = k] = \binom{8}{k} p^k (1-p)^{8-k}.$$  Similarly, the number of tails $F$ flipped by your friend is $$\Pr[F = k] = \binom{7}{k} p^k (1-p)^{7-k},$$ assuming that the coin you flip and the coin your friend flips have the same probability of tails.
Now, suppose we are interested in calculating $$\Pr[Y > F],$$ the probability that you get strictly more tails than your friend (and therefore, you win).  An exact calculation would then require the evaluation of the sum $$\begin{align*} \Pr[Y > F] &= \sum_{k=0}^7 \sum_{j=k+1}^8 \Pr[Y = j \cap F = k] \\ &= \sum_{k=0}^7 \sum_{j=k+1}^8 \binom{8}{j} p^j (1-p)^{8-j} \binom{7}{k} p^k (1-p)^{7-k}, \end{align*} $$  since your outcome $Y$ is independent of his outcome $F$.  For such a small number of trials, this is not hard to compute:  $$\begin{align*} \Pr[Y > F] &= p^{15}+7 p^{14} q+77 p^{13} q^2+203 p^{12} q^3+903 p^{11} q^4+1281 p^{10} q^5 \\ &+3115 p^9 q^6+2605 p^8 q^7+3830 p^7 q^8+1890 p^6 q^9+1722 p^5 q^{10} \\ &+462 p^4 q^{11}+252 p^3 q^{12}+28 p^2 q^{13}+8 p q^{14}, \end{align*}$$ where $q = 1-p$.  For $p = 1/2$--a fair coin--this is exactly $1/2$.
That seems surprising!  But there is an intuitive interpretation.  Think of your final toss as a tiebreaker, in the event that both of you got the same number of tails after 7 trials each.  If you win the final toss with a tail, you win because your tail count is now strictly higher.  If not, your tail count is still the same as his, and under the rules, he wins.  But the chances of either outcome for the tiebreaker is the same.
A: Another way to think of it: By swapping all heads and tails, the winner is always reversed. For example, 2T 5H would beat 2T 6H, but 2H 5T would lose to 2H 6T.  Or, 7H would beat 8H, but 7T would lose to 8T.
This gives a unique one-to-one mapping between the set where you win and the set where your friend wins. The sets are of equal size, so they must each have 50% probability.
A: Isolate your eighth toss.
Consider the two cases:


*

*The first seven tosses do not end in a tie. This decides the game because your eighth toss is irrelevant (your friend wins ties).

*The first seven tosses end in a tie. Your eighth toss decides the game.
In each case, you have a $50\%$ chance of winning.
A: we can simplify the process by reducing the number of flips progressively 8,7..7,6..1,0 until we reach the extreme position of 1 toss versus no tosses.  This by the rules is a 50/50 chance of a win for either player. 
A: Use a Markov chain.
For any outcome (n tails) after 7 flips with probability p(n), the  eighth flip generates n tails with probability 0.5 p(n) and n+1 tails with probability 0.5 p(n).
A: Here's an explicit proof that doesn't change the rules of the game:
A tosses 8 times, B tosses 7 times. If they get the same number of tails, B wins.
Consider the situation after each player has tossed 7 times. There's a probability $p$ that they've now got the same number of tails, i.e., that the score is tied. (One could calculate $p$, but it turns out that there's no need to.)
a) Case 1: The score is tied. In that case, A's 8th and final toss has a 50% chance of handing each of them the win.
b) Case 2: The score is not tied at this point. By symmetry, there's a 50% chance that A is ahead. Now note that A's 8th and final toss cannot change the outcome: If A was behind after seven rolls, the best A can achieve with another roll is a tie-- which still hands the game to B. Hence in case 2, each player has a 50% chance of winning the game.
Since in each case A has a 50% percent probability of winning, the over-all probability of a win is also 50%. (The over-all probability of a win is the weighted average of the two cases, which is just $0.5\cdot p + 0.5 \cdot (1-p)$, i.e. 0.5 regardless of $p$.)
A: Another intermediate answer between the laymans and the mathematicians :-)
$P_7$ probability after $7$ flips
$P_8$ probability after $8$ flips
$me$ number of my tails
$you$ number of my friend's tails
$$P_8(win\_me) = P_7(me>you)+\frac{1}{2}^{\,*}P_7(me=you) = \frac{1}{2}P_7(me<>you)+\frac{1}{2}P_7(me=you) = \frac{1}{2}(1 - P_7(me=you))+\frac{1}{2}P_7(me=you) = \frac{1}{2}$$
($^*$) due to the extra flip
A: Here's my attempt at a layman's explanation:

His I win a tie! advantage equals your I get one extra toss! advantage. 
These advantages cancel each other out, and they cancel each other out no matter how many tosses there are.

After n tosses, you have three possibilities: he's ahead, you're ahead, or it's a tie
1) He's ahead. You've got an extra toss, but the best you could possibly do is a tie, and he wins ties. You've lost, he's won.
2) You're ahead.  Game over, you won!
3) It's a tie. You get one more 50% chance
The odds of 1 happening is the same as 2 happening, because you've both had the same number of tosses.
And if 3 happens, there's only one extra toss, which you have a 50% chance of winning and a 50% chance of losing. The game goes on longer, but the odds are still half-and-half.
A: This is not a new answer but a mention of some generalizations and a defense of heropup's computational answer against the criticism it has received in the comments.  I realize I'm bucking the tide by pointing out reasons to prefer the computational answer to the intuitive one.  
The intuitive explanation relies on a numerical coincidence and does not generalize in a number of natural directions.  To flesh out the intuitive approach, let $W$ be the event that I win, and let $T$ be the event that you and I are tied after seven flips.  Then
$$\Pr[W]=\Pr[T]\cdot\frac{1}{2}+(1-\Pr[T])\cdot\frac{1}{2}=\frac{1}{2}.$$
The numerical coincidence is the equality of the two factors of $\frac{1}{2}.$  The $\frac{1}{2}$ in the first term is the tails probability on the $8^\text{th}$ flip, while the $\frac{1}{2}$ in the second term is the conditional probability that I win the first seven flips given that they aren't tied, which, by symmetry, equals the conditional probability that you win the first seven flips.  There is no logical connection between these two factors of $\frac{1}{2},$ but it is their accidental equality that makes the intuitive trick work.  Specifically, the equality of the two factors results in the cancelation of $\Pr[T],$ which is unpleasant to compute.
The accidental nature of this trick is a problem: what if we were using coins with tails probability $p\ne\frac{1}{2}?$  In that case we have
$$
\Pr[W]=\Pr[T]\cdot p+(1-\Pr[T])\cdot\frac{1}{2},
$$
and there is no cancelation of $\Pr[T].$  Or what if we use fair coins, but I have a two flip advantage?  Let $A_{\ge1}$ be the event that I am ahead by one or more tails after seven flips, let $A_0$ be the event that we are tied after seven flips, and let $A_{-1}$ be the event that you are ahead by exactly one tail after seven flips.  Then
$$
\Pr[W]=\Pr[A_{\ge1}]+\Pr[A_0]\cdot\frac{3}{4}+\Pr[A_{-1}]\cdot\frac{1}{4},
$$
which admits to no major simplification.  Admittedly, the original formulation does generalize nicely from $7$ and $8$ flips to $n$ and $n+1$ flips: the answer is always $\frac{1}{2}$ for any $n\ge0.$  The answer in the version where I have a two flip advantage, however, does depend on $n.$  It varies from $\frac{3}{4}$ when $n=0$ to $\frac{1}{2}$ as $n\to\infty.$  (An advantage of two, or any fixed number, of flips is negligible when $n$ is large.)
A: Well, let there be two players $A$ and $B$. Let them flip $7$ coins each. Whoever gets more tails wins, ties are discounted. It's obvious that both players have an equal probability of winning $p=0.5$.
Now let's extend this. As both players have equal probability of winning the first seven tosses, I think we can discard them and view the 8th toss as a tiebreaker. So let's give player $A$ the 8th toss: if he gets a tail, he wins, otherwise, he loses. So with $p = 0.5$, he will either win or lose this 8th toss. Putting it like this, we can see that the 8th toss for player $A$ is equivalent to giving both players another toss and discarding ties, so both players have winning probabilities of $0.5$.
A: I flip n+1 coins; my friend flips n. I only win if I get strictly more tails than my friend.
First, consider the number of tails I flip in my first n tosses as compared to the number of tails my friend flips in his n tosses. Let the event {flip the same number of tails in our first n tosses} have probability p. We do not need to calculate it explicitly.
By symmetry, the event {I flip strictly fewer tails in my first n tosses than my friend} has the same probability as the event {I flip strictly more tails in my first n tosses} and that probability is (1-p)/2. 
Now I win if either a) we flip the same number of tails in the first n tosses, then I flip a tail on my (n+1)st toss, or b) I flip strictly more tails than my friend in the first n tosses. Any other possibility results in a loss for me.
Therefore P(I win) = p * (1/2) + (1-p)/2 = 1/2.
Drawing a diagram of the outcomes may help; the trick is to forget about computing the probability of a tie in the first 7 (or n) tosses; it drops out.
If you care, the probability of getting the same number of tails in n tosses between two players is (2n choose n)/(2^(2n)). It's a nice combinatorical argument.
Finally I apologize for the lack of good formatting.
A: consider an alternative game:


*

*both toss 7 times

*if one player has more tails he wins, otherwise the winner is chosen by an additional toss.


in this game it is obvious that there is a 50-50 chance for any of the players to win. Also if you think of your 8th toss as the additional toss in the first game, it is clear that the games are equivalent.
EDIT: I see that robjohn had the same Idea before me..
A: Player A flips a coin 8 times, player B flips a coin 7 times.
"Either A throws more heads than B, or A throws more tails than B, but (since A has only one extra coin) not both.
By symmetry, these two mutually exclusive possibilities occur with equal probability.
Therefore the probability that A obtains more heads than B is ½."
Source : http://www.qbyte.org/puzzles/p018s.html
A: Here's a general proof that's similar to Jimmy He's, but uses a different principle to produce a bijection between wins and losses. It's less succinct and elegant than some other proofs here, but I think it reveals some interesting details about the way the extra toss affects the results. (Note also that this treats Heads as winning, rather than tails!)
First, player A tosses the coin n times; then player B tosses it n + 1 times. That makes a total of 2n + 1 tosses. Instead of treating these as separate turns, let's treat them as a partitioned sequence. For example:
\begin{align*}
\mathrm{HTTHHTH} \mathrm{HHTHHTTH}\ -> \mathrm{HTTHHTH}\ \ |\ \ \mathrm{HHTHHTTH}
\end{align*}
We can then determine the winner by asking whether there are strictly more heads after the partition than before. (In the above case, we have 4 and 5, and player B wins.) Now, what happens when we reverse the sequence? Crucially, there is an asymmetry: players swap all values except for the first one after the partition. I'll call this the asymmetrical value. Here are the relevant cases that cover all possibilities evenly. 


*

*The number of heads after the partition is greater than the number of heads before the partition by 2 or more.

*There is one more head after the partition than before, and the asymmetrical value is a $\mathrm{T}$.

*There is one more head after the partition than before, and the asymmetrical value is an $\mathrm{H}$.

*There are an equal number of heads before and after the partition, and the asymmetrical value is a $\mathrm{T}$.

*There are an equal number of heads before and after the partition, and the asymmetrical value is an $\mathrm{H}$.

*The number of heads after the partition is strictly less than the number of heads before.


In cases 1, 2, 5, and 6, rotation always turns winners into losers, thus creating a bijection in those cases. In case 1, the asymmetrical value doesn't matter because player B's lead is so big; rotation always passes a winning count to player A. Likewise, in case 6, the asymmetrical value doesn't matter because player A's lead is so big. 
In case 2, the asymmetrical value doesn't matter because it is a $\mathrm{T}$, so it doesn't affect the counts; player B's lead is transferred to player A. In case 5, the asymmetrical value does matter; it stays with player B upon rotation, and as a result, a loss for B (equal heads on both sides) turns into a win for B (two more heads after the partition than before).
Finally, we have cases 3 and 4. In these cases, we can't create a bijection directly because of the asymmetrical value. In case 3, player B has the lead, and maintains it after reversal because the asymmetrical value (an $\mathrm{H}$ in this case) doesn't change hands. In case 4, the counts are equal, making player A the winner; the asymmetrical value is a $\mathrm{T}$ so it doesn't affect the count upon reversal, and A still wins. 
Here, instead of creating a bijection between reversals, we create a bijection between the two cases. In both cases, the counts on either side of the asymmetrical value are equal, so every case 3 sequence can be converted into a case 4 sequence by changing the asymmetrical value, and vice versa. When the asymmetrical value is a $\mathrm{T}$, A wins; when it's an $\mathrm{H}$, B wins. 
That last move is similar to the "tiebreaker" move that other proofs have offered, but I think this approach shows how that tiebreaker works in a more detailed way.
A: Look at it as 8 rounds, that you can either win or lose.
For the first 7 rounds:
You win if: you flip tails, and your opponent flips heads
Your opponent wins if: you flip heads, and your opponent flips tails
Nobody wins if: You both flip the same.  
On the 8th round:
You win if: you flip tails
Your opponent wins if: you flip heads
The winner is whoever wins the most rounds.
The expected number of wins after the first 7 rounds is certainly the same as your opponent.  And the expected number of wins on the 8th round is the same as your opponent. Therefore as you're both expected to win the same number of rounds, you have equal chance of winning.
A: Based on the answers so far you can get the following induction.
If 2 players A and B play a game with these rules: most number of tails wins. 
Each player tosses the coin N times. We have P(Awin-Ntosses)=P(Bwin-Ntosses) = 50%.
You tried to demonstrate that if player B gets an extra coin toss the odds of him winning will  remain 50%. 
that would mean that P(Awin-Ntosses)=P(Bwin-N+1 tosses)
If that is indeed true then using induction you can obtain P(Awin-Ntosses)=P(Bwin-N+x tosses). Induction is valid for any N or x. So therefore we can state that the following statement is true: Two players A and B play a game of toss. A tosses the coin 0 times and B tosses the coin 
5 million times. The winner is the player that tosses most tails. Both players have the same  50% chance to win the game.
I strongly advise you to evaluate this statement and if you still consider it to be true, then it means you would be willing to play such a toss game for a small stake.
