Probability - expectation and variance from a coin toss

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
MeMoses
Messages
127
Reaction score
0

Homework Statement



A coin is flipped repeatedly with probability [tex]p[/tex] of landing on heads each flip.

Calculate the average [tex]<n>[/tex] and the variance [tex]\sigma^2 = <n^2> - <n>^2[/tex] of the attempt n at which heads appears for the first time.


Homework Equations



[tex]\sigma^2 = <n^2> - <n>^2[/tex]

The Attempt at a Solution


I have the probability that head will appear for the first time on the nth attempt to be [tex]p(1-p)^{n-1}[/tex]. Aside from that I'm not sure where to go.
 
Physics news on Phys.org
Your expression for the probability that the head occurs for the first time on the ##n##th attempt looks correct to me. To find ##\langle n \rangle##, plug your expression into the definition of the expected value:
$$\sum_{n=1}^{\infty} n p(1-p)^{n-1}$$
To evaluate the sum, try to express it in terms of a power series.
 
MeMoses said:

Homework Statement



A coin is flipped repeatedly with probability [tex]p[/tex] of landing on heads each flip.

Calculate the average [tex]<n>[/tex] and the variance [tex]\sigma^2 = <n^2> - <n>^2[/tex] of the attempt n at which heads appears for the first time.


Homework Equations



[tex]\sigma^2 = <n^2> - <n>^2[/tex]

The Attempt at a Solution


I have the probability that head will appear for the first time on the nth attempt to be [tex]p(1-p)^{n-1}[/tex]. Aside from that I'm not sure where to go.

There are more-or-less standard formulas for sums like ##\sum_{n=1}^{\infty} n x^n## and
##\sum_{n=1}^{\infty} n^2 x^n##. These may be found in books, and in on-line sources. Basically, they are easy to get manually, by looking at ##S(x) = \sum_{n=1}^{\infty} x^n## and then looking at what you get from ##dS/dx##, etc.