- #1
ENgez
- 75
- 0
Homework Statement
you flip a fair coin (one which has equal odds of bieng HEADS or TAILS.
q = odds of getting TAILS=0.5 , p = odds of getting HEADS=0.5
A1 is the event on which the first two flips are HEADS.
A2 is the event on which the first two flips are HEADS and TAILS in that order.
A3 is the event on which the first flip is TAILS.
we mark X as the number of flips until we get two consecutive HEADS
a) calculate : [tex] P(X=k|Ai) i=1,2,3[/tex] if not directly calculatable express using [tex] p_{x}(k) and p_{x}(k-1), p_{x}(k-2)[/tex]
b) calculate EX (expectancy of x)
Homework Equations
expectancy is for a descrete variable : EX=[tex]\sum k*P_{x}(k)[/tex]
The Attempt at a Solution
first of all [tex]\ 2<k<\infty [/tex] because you need atleast two flips.
[tex]\ P(X=k|A1)=1 [/tex]
now this is where it gets a bit tricky for me:
[tex]\ P(X=k|A2)=p*q*(q+sqrt(p*q))^{k-4} [/tex]
the p*q is becuase of the two first flips.
now we have k-4 flips remaining (we already "used up" two flips and we will "use up" another two flips to get the consecutive HEADS)
we define s=p*q. the k-4 remaining flips can be any combination of s and q so that there are exactly k-4 p's and q's, so s is actually 2 flips.
so all possible combinations are: [tex]\ k-4C1*s^{(k-3)/2}*q^{1} + k-4C2*s^{(k-2)/2}*q^{2} + ... = (q+sqrt(s))^{k-4} [/tex]
therefore [tex]\ P(X=k|A2) = p*q*(p+sqrt(p*q))^{k-4}*p^{2} = 1/16 [/tex]
and by the same reasoning [tex]\ P(X=k|A2) = q*(p+sqrt(p*q))^{k-4}*p^{2} = 1/8 [/tex]
these results seem a little too simple. am i doing something wrong here?
I haven't tried b) yet.