Probability: What is the conditional distribution of X?

In summary: As you suggested, P(X=x \cap X+Y=m)=P(X=x \cap Y=m-x)= \frac{\lambda_1^x}{x!}e^{-\lambda_1} *\frac{\lambda_2^{m-x}}{(m-x)!} e^{-\lambda_2}=\lambda_2^m e^{-\lambda_1-\lambda_2} (\frac{\lambda_1}{\lambda_2})^x \frac{1}{m!} {m \choose x} P(X+Y=m) = \sum_{x=0}^{m} \frac{\lambda_1^x}{x!} e^{-\
  • #1
sanctifier
58
0

Homework Statement



If random variables [itex] X [/itex] and [itex] Y [/itex] are independent and both belong to Possion distribution of parameters [itex] \lambda_1 [/itex] and [itex] \lambda_2 [/itex], then what is the conditional distribution of [itex] X [/itex] when the condition [itex] X + Y = m[/itex] is given?

Homework Equations



Possion distribution of parameter [itex] \lambda [/itex]: [itex] P(x)= \frac{\lambda^x}{x!} e^{-\lambda} [/itex]

The Attempt at a Solution



Answer:

Because [itex] P(X=x|X+Y=m) = \frac{P(X=x \cup X+Y=m)}{P(X+Y=m)} [/itex]

Let [itex] \begin{cases}u=x \\v=x+y \end{cases} [/itex] then [itex] \begin{cases}x=u \\y=v-u \end{cases} [/itex]

[itex] Jacobian= \begin{bmatrix} \frac{dx}{du} & \frac{dx}{dv} \\ \frac{dy}{du} & \frac{dy}{dv} \end{bmatrix} = \begin{bmatrix}1 & 0 \\-1 & 1 \end{bmatrix} = 1 [/itex]

The joint distribution of [itex] X [/itex] and [itex] Y [/itex] is [itex] g(x,y)= \frac{\lambda_1^x}{x!} \frac{\lambda_2^y}{y!}e^{-\lambda_1 - \lambda_2} [/itex]

Then [itex]f(u,v)=g(u,v-u)|Jacobian|=\frac{\lambda_1^u}{u!} \frac{\lambda_2^{v-u}}{(v-u)!}e^{-\lambda_1 - \lambda_2} [/itex]

Hence the marginal distribution of [itex] v [/itex] is:

[itex] f_v(v)=\sum_{u=0}^{m}f(u,v)=e^{-\lambda_1-\lambda_2}\lambda_2^v \sum_{u=0}^{m} {( \frac{\lambda_1}{\lambda_2} )}^u \frac{1}{u!(v-u)!} [/itex]

[itex] P(X=x|X+Y=m)=P(U=u|V=m)= \frac{f(u,m)}{f_v(m)} [/itex]

Does the sum [itex] \sum_{u=0}^{m} {( \frac{\lambda_1}{\lambda_2} )}^u \frac{1}{u!(v-u)!} [/itex] have a concise form?

Is the answer correct? Thank you in advance!
 
Physics news on Phys.org
  • #2
sanctifier said:
Does the sum [itex] \sum_{u=0}^{m} {( \frac{\lambda_1}{\lambda_2} )}^u \frac{1}{u!(v-u)!} [/itex] have a concise form?

Is the answer correct? Thank you in advance!

Notice that:## \frac{1}{u!(v-u)!} = \frac{1}{v!} {v \choose u} ##.

When finding the marginal, you should be summing to infinity, which actually just means summing through v (since v choose u will be zero thereafter).

Therefore your sum is: ## \frac{1}{v!} \sum_{u=0}^{v} {v \choose u} {(\frac{\lambda_1}{\lambda_2})}^u 1^{v-u} = \frac{1}{v!}(\frac{\lambda_1}{\lambda_2} + 1)^v ##.

Here I used the binomial formula. We can further simplify this though.

## \frac{1}{v!}(\frac{\lambda_1}{\lambda_2} + 1)^v = \frac{1}{v!} (\frac{\lambda_1 + \lambda_2}{\lambda_2})^v ##.

Putting this into your formula for the marginal of ##X+Y## we see that ##X+Y## is Poisson with paramater ##\lambda_1 + \lambda_2##. In fact this holds for any finite sum of Poisson random variables, and you just proved the base case for induction.
 
Last edited:
  • #3
This is correct.

kduna, thank you a lot!
 
  • #4
sanctifier said:

Homework Statement



If random variables [itex] X [/itex] and [itex] Y [/itex] are independent and both belong to Possion distribution of parameters [itex] \lambda_1 [/itex] and [itex] \lambda_2 [/itex], then what is the conditional distribution of [itex] X [/itex] when the condition [itex] X + Y = m[/itex] is given?

Homework Equations



Possion distribution of parameter [itex] \lambda [/itex]: [itex] P(x)= \frac{\lambda^x}{x!} e^{-\lambda} [/itex]

The Attempt at a Solution



Answer:

Because [itex] P(X=x|X+Y=m) = \frac{P(X=x \cup X+Y=m)}{P(X+Y=m)} [/itex]

Let [itex] \begin{cases}u=x \\v=x+y \end{cases} [/itex] then [itex] \begin{cases}x=u \\y=v-u \end{cases} [/itex]

[itex] Jacobian= \begin{bmatrix} \frac{dx}{du} & \frac{dx}{dv} \\ \frac{dy}{du} & \frac{dy}{dv} \end{bmatrix} = \begin{bmatrix}1 & 0 \\-1 & 1 \end{bmatrix} = 1 [/itex]

The joint distribution of [itex] X [/itex] and [itex] Y [/itex] is [itex] g(x,y)= \frac{\lambda_1^x}{x!} \frac{\lambda_2^y}{y!}e^{-\lambda_1 - \lambda_2} [/itex]

Then [itex]f(u,v)=g(u,v-u)|Jacobian|=\frac{\lambda_1^u}{u!} \frac{\lambda_2^{v-u}}{(v-u)!}e^{-\lambda_1 - \lambda_2} [/itex]

Hence the marginal distribution of [itex] v [/itex] is:

[itex] f_v(v)=\sum_{u=0}^{m}f(u,v)=e^{-\lambda_1-\lambda_2}\lambda_2^v \sum_{u=0}^{m} {( \frac{\lambda_1}{\lambda_2} )}^u \frac{1}{u!(v-u)!} [/itex]

[itex] P(X=x|X+Y=m)=P(U=u|V=m)= \frac{f(u,m)}{f_v(m)} [/itex]

Does the sum [itex] \sum_{u=0}^{m} {( \frac{\lambda_1}{\lambda_2} )}^u \frac{1}{u!(v-u)!} [/itex] have a concise form?

Is the answer correct? Thank you in advance!

You made some errors.
(1)
[tex] P(X=x|X+Y=m) = \frac{P(X=x \cup X+Y=m)}{P(X+Y=m)} \longleftarrow \text{ wrong}[/tex]
Can you spot the mistake?

(2) Jacobians and all those things are wrong for this problem; they apply to continuous random variables having probability density functions, but in your case all the random variables are discrete and do not have densities at all---instead, they have probability mass functions.
 
  • #5
Ray Vickson said:
You made some errors.
(1)
[tex] P(X=x|X+Y=m) = \frac{P(X=x \cup X+Y=m)}{P(X+Y=m)} \longleftarrow \text{ wrong}[/tex]
Can you spot the mistake?

(2) Jacobians and all those things are wrong for this problem; they apply to continuous random variables having probability density functions, but in your case all the random variables are discrete and do not have densities at all---instead, they have probability mass functions.

To (1)

Did you mean [tex] P(X=x|X+Y=m) = \frac{P(X=x \bigcap X+Y=m)}{P(X+Y=m)} [/tex]

To (2)

Then what shall I do if the standard means doesn't work?
 
  • #6
sanctifier said:
To (1)

Did you mean [tex] P(X=x|X+Y=m) = \frac{P(X=x \bigcap X+Y=m)}{P(X+Y=m)} [/tex]

To (2)

Then what shall I do if the standard means doesn't work?

Standard means DO work; just use them correctly. For integer m, can you compute ##P(X+Y=m)?## For integer ##x, m## can you compute ##P(X = x \; \& \; X+Y=m)?##

Hint: how would you express the event ##\{ X+Y = m\}## in terms of events like ##\{ X = j \}## and ##\{ Y = k \}##? You came very close to having it in your original post, but you did not finish the job.

It was your use of Jacobians, etc., that was wrong, not some of the final formulas you got. In other words, you almost had the right answers for the wrong reasons. Doing that on an exam would still cost you points.
 
  • #7
Thank you for your insistent reply.

As you suggested,

[itex] P(X=x \cap X+Y=m)=P(X=x \cap Y=m-x)= \frac{\lambda_1^x}{x!}e^{-\lambda_1} *\frac{\lambda_2^{m-x}}{(m-x)!} e^{-\lambda_2}=\lambda_2^m e^{-\lambda_1-\lambda_2} (\frac{\lambda_1}{\lambda_2})^x \frac{1}{m!} {m \choose x} [/itex]

[itex] P(X+Y=m) = \sum_{x=0}^{m} \frac{\lambda_1^x}{x!} e^{-\lambda_1} \frac{\lambda_2^{m-x}}{(m-x)!} e^{-\lambda_2} =\lambda_2^m e^{-\lambda_1-\lambda_2}\sum_{x=0}^m (\frac{\lambda_1}{\lambda_2} )^x \frac{1}{m!} {m \choose x} = \lambda_2^m e^{-\lambda_1-\lambda_2} \frac{1}{m!} ( \frac{\lambda_1}{\lambda_2}+1 )^m [/itex]

[itex] P(X=x|X+Y=m) = \frac{P(X=x \cap X+Y=m)}{P(X+Y=m)} = \frac{P(X=x \cap Y=m-x)}{P(X+Y=m)} = \frac{(\frac{\lambda_1}{\lambda_2})^x {m \choose x} }{ ( \frac{\lambda_1}{\lambda_2}+1 )^m} [/itex]

Is this correct?
 
Last edited:
  • #8
sanctifier said:
Thank you for your insistent reply.

As you suggested,

[itex] P(X=x \cap X+Y=m)=P(X=x \cap Y=m-x)= \frac{\lambda_1^x}{x!}e^{-\lambda_1} *\frac{\lambda_2^{m-x}}{(m-x)!} e^{-\lambda_2}=\lambda_2^m e^{-\lambda_1-\lambda_2} (\frac{\lambda_1}{\lambda_2})^x \frac{1}{m!} {m \choose x} [/itex]

[itex] P(X+Y=m) = \sum_{x=0}^{m} \frac{\lambda_1^x}{x!} e^{-\lambda_1} \frac{\lambda_2^{m-x}}{(m-x)!} e^{-\lambda_2} =\lambda_2^m e^{-\lambda_1-\lambda_2}\sum_{x=0}^m (\frac{\lambda_1}{\lambda_2} )^x \frac{1}{m!} {m \choose x} = \lambda_2^m e^{-\lambda_1-\lambda_2} \frac{1}{m!} ( \frac{\lambda_1}{\lambda_2}+1 )^m [/itex]

[itex] P(X=x|X+Y=m) = \frac{P(X=x \cap X+Y=m)}{P(X+Y=m)} = \frac{P(X=x \cap Y=m-x)}{P(X+Y=m)} = \frac{(\frac{\lambda_1}{\lambda_2})^x {m \choose x} }{ ( \frac{\lambda_1}{\lambda_2}+1 )^m} [/itex]

Is this correct?

Yes, it is correct. Good work. However, it can all be made neater and more revealing.

First, you should note that your formula for ##P(X+Y=m)## simplifies to
[tex] P(X+Y=m) = \frac{\mu^m e^{-\mu}}{m!}, \;\; \mu = \lambda_1 + \lambda_2,[/tex]
so ##X+Y = \text{Poisson}(\lambda_1 + \lambda_2)##. This is a standard result.

Next: notice that your final formula for ##P(X=k|X+Y=m)## can be written as
[tex] P(X=k | X+Y=m) = {m \choose k} p^k (1-p)^{m-k}, \;\; p = \frac{\lambda_1}{\lambda_1+\lambda_2}, [/tex]
so ##X | X+Y = m## is binomial, with parameters ##m## and ##p = \lambda_1/(\lambda_1+\lambda_2)##.
 
Last edited:
  • #9
Thank you very much, Ray.
 

1. What is the definition of conditional distribution?

The conditional distribution of a random variable X is the probability distribution of X given that another random variable Y takes on a specific value.

2. How is the conditional distribution calculated?

The conditional distribution can be calculated by dividing the joint probability of X and Y by the marginal probability of Y. This can also be represented as P(X|Y) = P(X,Y)/P(Y).

3. What is the significance of the conditional distribution in probability?

The conditional distribution allows us to understand the relationship between two random variables and how one affects the distribution of the other. It helps in making predictions and understanding the behavior of a system.

4. Can the conditional distribution be visualized?

Yes, the conditional distribution can be visualized through a conditional probability plot or a conditional probability histogram. These graphs show the probability of X given a specific value of Y.

5. How does the conditional distribution relate to the concept of independence?

If X and Y are independent, the conditional distribution of X given Y is simply the marginal distribution of X. This means that the value of Y does not affect the distribution of X. However, if X and Y are dependent, the conditional distribution of X given Y will be different from the marginal distribution of X.

Similar threads

  • Calculus and Beyond Homework Help
Replies
19
Views
763
  • Calculus and Beyond Homework Help
Replies
5
Views
611
  • Calculus and Beyond Homework Help
Replies
4
Views
679
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
690
  • Calculus and Beyond Homework Help
Replies
4
Views
822
  • Calculus and Beyond Homework Help
Replies
2
Views
344
Replies
1
Views
613
  • Calculus and Beyond Homework Help
Replies
6
Views
588
  • Calculus and Beyond Homework Help
Replies
11
Views
810
Back
Top