How Does the Distribution of Heads in Coin Flipping Change with Large N?

Click For Summary

Homework Help Overview

The discussion revolves around the statistical distribution of heads in a large number of coin flips, specifically focusing on how this distribution behaves as the number of flips (N) increases. The original poster attempts to derive an expression for the distribution near the peak, which is expected to be centered around N/2.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the mathematical derivation of the distribution, noting corrections and expansions in logarithmic terms. There is a focus on the implications of large N on the shape and width of the distribution peak.

Discussion Status

Some participants provide detailed corrections to the original poster's calculations, suggesting that the final expression for the distribution may differ from initial expectations. There is an ongoing exploration of how the peak's width behaves as N changes, with differing interpretations being considered.

Contextual Notes

Participants question the assumptions about the peak's behavior as N becomes very large, particularly regarding the relationship between the number of heads and the total number of coins. There is a discussion about the implications of these assumptions on the derived expressions.

chingcx
Messages
21
Reaction score
0

Homework Statement



Flip N fair coins. The distribution for different numbers of heads and tails should be peaked at N/2. When N is very large, the peak will be very high. Let x = N(head)-N/2, required to find an expression for this distribution near the peak, i.e. x<<N.

Homework Equations



Strling Approx
ln(1+x)=x for small x

The Attempt at a Solution



30bjvyr.jpg


clearly incorrect because square of (N/2)! must be smaller than the product of (N/2+x)! and (N/2-x)!, but I can't find where goes wrong.
 
Physics news on Phys.org
1. Going over to the 5th line, you omitted [itex]-x \ln{(\frac{N}{2}+x)}[/itex] and [itex]x \ln{(\frac{N}{2}-x)}[/itex]. These give rise to additional corrections.
[itex]-x \ln{(\frac{N}{2}+x)}+x\ln{(\frac{N}{2}-x)}=-x\ln{\left(\frac{1+2x/N}{1-2x/N}\right)}\approx -x\ln{(1+4x/N)}\approx -4x^2 /N[/itex]

2. In the 7th line, you need to be more careful when expanding to the 2nd order. You should proceed as below.
[itex]\ln \left(\frac{N/2}{N/2+x}\right) = \ln \left(\frac{1}{1+2x/N}\right) \approx \ln \left( 1-\frac{2x}{N}+\frac{4x^2}{N^2} \right) \approx -\frac{2x}{N}+\frac{4x^2}{N^2}-\frac{1}{2} {\left(-\frac{2x}{N}+\frac{4x^2}{N^2} \right)}^{2}[/itex]

[itex]\approx -\frac{2x}{N}+\frac{4x^2}{N^2}-\frac{1}{2} \frac{4x^2}{N^2} = -\frac{2x}{N}+\frac{2x^2}{N^2}[/itex]

and similarly

[itex]\ln \left(\frac{N/2}{N/2-x}\right) \approx \frac{2x}{N}+\frac{2x^2}{N^2}[/itex]


Then, the final answer becomes [itex]-2x^2 /N[/itex] rather than [itex]4x^2 /N[/itex].
 
weejee said:
1. Going over to the 5th line, you omitted [itex]-x \ln{(\frac{N}{2}+x)}[/itex] and [itex]x \ln{(\frac{N}{2}-x)}[/itex]. These give rise to additional corrections.
[itex]-x \ln{(\frac{N}{2}+x)}+x\ln{(\frac{N}{2}-x)}=-x\ln{\left(\frac{1+2x/N}{1-2x/N}\right)}\approx -x\ln{(1+4x/N)}\approx -4x^2 /N[/itex]

2. In the 7th line, you need to be more careful when expanding to the 2nd order. You should proceed as below.
[itex]\ln \left(\frac{N/2}{N/2+x}\right) = \ln \left(\frac{1}{1+2x/N}\right) \approx \ln \left( 1-\frac{2x}{N}+\frac{4x^2}{N^2} \right) \approx -\frac{2x}{N}+\frac{4x^2}{N^2}-\frac{1}{2} {\left(-\frac{2x}{N}+\frac{4x^2}{N^2} \right)}^{2}[/itex]

[itex]\approx -\frac{2x}{N}+\frac{4x^2}{N^2}-\frac{1}{2} \frac{4x^2}{N^2} = -\frac{2x}{N}+\frac{2x^2}{N^2}[/itex]

and similarly

[itex]\ln \left(\frac{N/2}{N/2-x}\right) \approx \frac{2x}{N}+\frac{2x^2}{N^2}[/itex]


Then, the final answer becomes [itex]-2x^2 /N[/itex] rather than [itex]4x^2 /N[/itex].
Thanks, but it doesn't make sense... when N is very large, the peak should be very narrow, but from the equation, N becomes larger then the exponential decreases much slower.
 
You are right. The width of the peak actually increases, as sqrt(N).
Yet, if you consider (# of heads)/(# of coins), the width decreases as 1/sqrt(N).
 

Similar threads

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