# Thread: Conditional probability of joint geometric random variables

1. ## Conditional probability of joint geometric random variables

Suppose that X and Y are independent random variables with the same parameter p.
What is the value of
$P[X=i|X+Y=n]$

Want to make sure my solution is correct
$P[X=i|X+Y=n]=\frac{P[X=i]P[Y=n-i]}{P[X+Y=n]}$
$=\frac{(1-p)^{i-1}p(1-p)^{n-i-1}p}{(1-p)^{n-1}p}$
$=p(1-p)$

Correct?

2. ## Re: Conditional probability of joint geometric random variables

Originally Posted by I-Think
Suppose that X and Y are independent random variables with the same parameter p.
What is the value of
$P[X=i|X+Y=n]$

Want to make sure my solution is correct
$P[X=i|X+Y=n]=\frac{P[X=i]P[Y=n-i]}{P[X+Y=n]}$
$=\frac{(1-p)^{i-1}p(1-p)^{n-i-1}p}{(1-p)^{n-1}p}$
$=p(1-p)$

Correct?

the sum of geometric rvs (for n>=2) is given by:

$P(X+Y=n)=\sum_{x=1}^{n-1} P(X=x, Y=n-x)=\sum_{x=1}^{n-1} P(X=x)\cdot P(Y=n-x)$

$\;=\; \sum_{x=1}^{n-1}p(1-p)^{x-1}p(1-p)^{n-x-1}\;=\;.......$ ,which is your denominator

3. ## Re: Conditional probability of joint geometric random variables

So the denominator becomes
$\sum_{x=1}^{n-1} p(1-p)^{x-1} p ({1-p})^{n-x-1}= \sum_{x=1}^{n-1} p^2({1-p})^{n}$
$=p^2(1-p)^n$

4. ## Re: Conditional probability of joint geometric random variables

Originally Posted by I-Think
So the denominator becomes
\sum_{x=1}^{n-1} p(1-p)^{x-1} p {1-p}^{n-x-1}= \sum_{x=1}^{n-1} p^2{1-p}^{n}
=p^2(1-p)^n

No. try the calculations again.

5. ## Re: Conditional probability of joint geometric random variables

Round 2
Denominator = $p^2(n-1)(1-p)^{n-2}$

And the final answer is $\frac{1}{n-1}?$

6. ## Re: Conditional probability of joint geometric random variables

Originally Posted by I-Think
Round 2
Denominator = $p^2(n-1)(1-p)^{n-2}$

And the final answer is $\frac{1}{n-1}?$