@wio can you look over my probability problem here, thanks!
Find pmf of Z=X-Y where X is the number of heads obtained by tossing an unfair coin 5 times (where probability of getting a head is 1/3)
I know how to solve this, just want to make sure I don't make some silly mistakes along the way. So here we go...
Z can take on the values below: -5 (T T T T T) -3 (H T T T T) -1 (H H T T T) 1 (H H H T T) 3 (H H H H T) 5 (H H H H H)
\[P(Z=-5)=(2/3)^5\]\[P(Z=5)=(1/3)^5\]
probability mass function?
\[P(Z=-3)=\binom{5}{1}(\frac{1}{3})^1*(1-\frac{1}{3})^{5-1}=\frac{5}{3}*(\frac{2}{3})^4\] and yes prob mass function
Do they say what Y is?
oh yea sorry forgot to add X is heads, Y is tails
Long day lol
Oh, so Y and X are completely dependent on each other.
Yes, Y=5-X
Does what I'm doing look alright so far?
Hmmm, I guess so.
My thinking is a bit more different... \(Y=5-X\).
uh yea lol 5 is not random i meant y = 5 - x
Sorry, hahah
So we can say \(\Pr(Z=5x-x^2) = \Pr(X=x)\), though I guess this doesn't help much.
\[P(Z=3)=\binom{5}{4}*(\frac{1}{3})^{4}*(\frac{2}{3})^{5-4}\]
Yeah, it looks like you would use binomial distribution, but it is going to be discontinuous.
P(Z=-1) means we got 2 heads out of 5 (2-3=-1), so:\[P(Z=-1)=\binom{5}{2}(1/3)^2(2/3)^3\]
Yea and P(Z=z) is 0 for all z not in {-5, -3, -1, 1, 3, 5}
You have to write it as a piecewise function
like P(z) = { blah if z = -5, etc.?
Yeah
yea sure I'll do that in my notes lol, I'm just terrible at latex formatting for those things
Just want to make sure I'm not screwing up any of these values: P(Z=1) means 3 heads out of 5:\[P(Z=1)=\binom{5}{3}(1/3)^3(2/3)^2\]
Do those look right?
Yeah, so far they're looking right.
And I think that's all we have right for possible Z values 0 heads => 0 - 5 = -5 1 head => 1 - 4 = -3 2 heads => 2 - 3 = -1 3 heads => 3 - 2 = 1 4 heads => 4 - 1 = 3 5 heads => 5 - 0 = 5
I think you've got this down.
Cool thanks for all the help wio!
Join our real-time social learning platform and learn together with your friends!