Calculate Probability of Winning Head and Tails Game

  • Context: High School 
  • Thread starter Thread starter haiha
  • Start date Start date
  • Tags Tags
    Game Head
Click For Summary

Discussion Overview

The discussion revolves around calculating the probabilities associated with a game of heads and tails, where two players flip a coin multiple times. Participants explore the probabilities of winning, losing, or tying based on the number of heads each player flips, focusing on both theoretical and computational aspects.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents a problem involving two players flipping a coin n times and seeks to calculate the probabilities of winning, losing, and tying.
  • Another participant suggests starting by finding the probability that one player rolls a certain number of heads and then determining the probability that the other player rolls more heads.
  • A participant attempts to calculate the probability of both players having the same number of heads, expressing concern about the complexity of the formula.
  • One participant confirms the correctness of the sum but questions whether it needs to be evaluated or can be left in summation form.
  • A request is made for a general formula for the probability of a specific number of heads that can be computed programmatically.
  • A participant identifies the probability distribution as a Binomial distribution and provides the formula for calculating the probability of getting m heads.
  • Another participant expresses confusion about calculating the probability when both players have zero heads, indicating a misunderstanding of the notation used.
  • One participant suggests using a normal distribution to approximate the probability of equal scores, providing a formula for this approximation.
  • A later reply requests clarification on how to perform the integration for the normal distribution approximation.

Areas of Agreement / Disagreement

Participants express various approaches to the problem, with no consensus reached on the best method for calculating the probabilities. Some participants agree on the use of the Binomial distribution, while others explore different approximations and methods.

Contextual Notes

There are unresolved mathematical steps and assumptions regarding the calculations of probabilities, particularly in the transition from Binomial to normal distribution approximations.

haiha
Messages
136
Reaction score
1
I ve got this simple problem and I can can not find the solution.
Two men play head and tails. Each man flips the coin n times, every time he has head, he should add one point to his score. At the end, they compare the scores, whose score has more points , the man is the winner.
A is the probability of a man lose or win, B is the probability when the two have the same points. Calculate A and B?
Thanks
 
Physics news on Phys.org
The first thing you want to do is show us where you're stuck. As a hint, find the probability that person 1 rolls m heads, then find the probability that the other rolls more than m heads.
 
Thanks for your answering me
My way is to find the B value meaning the two are equal. So i tried to calculate the probabiltiy of 1st man to have m heads, then the 2nd also must have m heads, which is called Pm. Then I will sum up Pm with m running from 0 to n. But the formula is very long and i think there must be mistakes somewhere..
P0 = 1/2^(2n)
P1=2.n/2^2n
P2=..
 
Your sum is correct. Are you sure you have to actually evaluate the sum, or can you just leave your answer in terms of the sum?

This is not a trivial sum to compute.

- Warren
 
Last edited:
Can anyone find the general formula for Pm?, at least one that can be computed using a program.
 
"Pm" is simple -- it's a Binomial distribution:

<br /> p \left( m \right) = \left( {\begin{array}{*{20}c}<br /> n \\<br /> m \\<br /> <br /> \end{array} } \right)p^m \left( {1 - p} \right)^{n - m} = \left( {\begin{array}{*{20}c}<br /> n \\<br /> m \\<br /> <br /> \end{array} } \right)2^{ - n} <br />

where p is the probability of heads (1/2), n is the number of flips, and m is the number of heads.

Remember that the probability of both men getting m heads is actually [p(m)]^2.

- Warren
 
Last edited:
So I can not calculate P0, when the two men both have no heads ?

Oh I m sorry, I thought (n/m) is a division!.
 
Last edited:
chroot said:
This is not a trivial sum to compute.

You can get an approximate answer by replacing the binomial distribution by a normal distribution. The pdf of the "two scores are equal" distribution is the square of the pdf of the normal distribution.

Since (e^{-x^2})^2 = e^{-2x^2} this is similar to a normal distribution so you can integrate it.

The approximate probability of equal scores after n tosses is 1/\sqrt{n\pi}.
 
please explain me how do this
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 57 ·
2
Replies
57
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
2
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K