Flip a coin 2n times; chance of n heads

  • Thread starter Thread starter Jamin2112
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around finding a formula for the probability of obtaining exactly n heads when flipping a coin 2n times. The participants explore the combinatorial aspects of the problem, particularly focusing on the use of the "n choose k" formula and the total number of possible outcomes.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Some participants attempt to understand the relationship between the number of heads and the total flips, questioning the assumption that the probability is simply 1/2. Others suggest using combinatorial reasoning to derive a formula based on the number of favorable outcomes versus total outcomes.

Discussion Status

Participants are actively engaging with the problem, sharing insights about the combinatorial nature of the flips and the probability calculations. There is a recognition of the need to derive a formula without relying solely on visual aids or diagrams, and some guidance has been provided regarding the application of the "n choose k" concept.

Contextual Notes

There is an ongoing discussion about the assumptions underlying the problem, particularly regarding the distribution of heads and tails in a series of flips. Participants express uncertainty about how to effectively count the outcomes that meet the criteria of having n heads in 2n flips.

Jamin2112
Messages
973
Reaction score
12

Homework Statement



I don't my book to give me the exact wording of the question, but the essence is finding a formula for the probability of n heads after flipping a coin n times.

Homework Equations



"n choose k" = n! / k!(n-k)!

The Attempt at a Solution



Obviously you have a 1:2 chance of flipping n heads. But I'm not sure how to show this, and I think I'm supposed to use the above equation. The number of possible combinations will be 22n; half of those will have n heads.
 
Physics news on Phys.org
The odds of flipping exactly n heads in 2n flips isn't 1/2. If n is large it's extremely small. Now if you forget trying to prove it's 1/2, can you solve the problem? You have some of the right ingredients.
 
Guys, guys, guys ...

I'll draw a picture out for y'all

screen-capture-10.png


After 2 flips, a 1/2 chance of getting 1 head

After 4 flips, a 6/16 chance of getting 2 heads

Not sure where those numbers come from, but ...

When there's an even number of flips --- for example, 3 --- it's impossible to have the same amount of heads as tails. Since you can have 2 heads or 2 tails, though, you can use the paths that give you 2 heads/tails and have a 1/2 chance of getting the same number of heads an tails when that path continues into the 4th flip.

(See what I'm saying? If you look at the 2nd T from the left on the 3rd flip line, you see that 2 H's preceded it, meaning you will have 2 H's and 2 T's for one of the paths that extends from that T to the next flip.)
 
I'm not sure what you are trying to say here. Your diagram method is correct. The odds of getting two heads in four flips is 6/16. The point of the problem is to compute that without drawing the whole diagram. Use the "n choose k" number and the 2^(2n) total possibilities observations to write a formula for the number of ways to get n heads in 2n flips.
 
Dick said:
I'm not sure what you are trying to say here. Your diagram method is correct. The odds of getting two heads in four flips is 6/16. The point of the problem is to compute that without drawing the whole diagram. Use the "n choose k" number and the 2^(2n) total possibilities observations to write a formula for the number of ways to get n heads in 2n flips.

Well, yeah, there are 22n possibilities to choose from and we want to choose the number that have half as many heads as total coins flipped. How do I find that number?

I understand how "n choose k" works, but don't see how it fits into this problem because somewhere, somehow, I have to sum up the number of heads.
 
Last edited:
You're thinking of generating a piece of data by:
(2n)-many times:
Flip a coin.
Write down whether it was heads or tails.​
Count how many heads there are.
If there are n heads, keep this sequence. Otherwise discard it.​

You are obviously having trouble counting the set of all possible results of this procedure. Can you think of any other way to generate the same set of data?
 
Hurkyl said:
You're thinking of generating a piece of data by:
(2n)-many times:
Flip a coin.
Write down whether it was heads or tails.​
and counting how many sequences have n heads in them.

You are obviously having trouble analyzing this procedure. Can you think of any other way to generate the same data?

Well, yeah. I could use Stats, but this a Math Reasoning class.

This keeps track of how many heads:

+1 +0

The average is: (+1+0)/2 = 1/2

After 2n flips, the expected value is (1/2)*2n = n

The Standard Error is: [ ( (1-1/2)2+(0-1/2)2 ) / 2 ]1/2 * √(2n)

etcetera ...
 
If you write down the 16 possible outcomes from four flips with 2 heads, you get
Code:
H H T T
H T H T
H T T H
T H H T
T H T H
T T H H
Can you see how \begin{pmatrix}4 \\ 2\end{pmatrix}=6 might apply here?
 
Jamin2112 said:
Well, yeah. I could use Stats...
You haven't changed how to generate the data at all -- all you changed is what information you are extracting from the data.
 
  • #10
vela said:
If you write down the 16 possible outcomes from four flips with 2 heads, you get
Code:
H H T T
H T H T
H T T H
T H H T
T H T H
T T H H
Can you see how \begin{pmatrix}4 \\ 2\end{pmatrix}=6 might apply here?

Oh ...

2=n, and that's the number you need to choose (since 2n=4).

But where did the 22*2 come into play for this problem?
 
  • #11
Jamin2112 said:
But where did the 22*2 come into play for this problem?

That's the 16 possible outcomes of 4 flips, out of which 6 = (4 choose 2) are favorable.
 
  • #12
owlpride said:
That's the 16 possible outcomes of 4 flips, out of which 6 = (4 choose 2) are favorable.

So the probability P(n) would be

"2n choose n" / 22n = [ (2n)! / n! (2n-n)! ] / 22n
 
  • #13
Jamin2112 said:
So the probability P(n) would be

"2n choose n" / 22n = [ (2n)! / n! (2n-n)! ] / 22n

That's it.
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
7K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K