Always possible to obtain marginals from joint pmf?

  • Thread starter Thread starter jimholt
  • Start date Start date
  • Tags Tags
    Joint
Click For Summary

Homework Help Overview

The discussion revolves around the possibility of obtaining marginal probability mass functions (pmfs) from a given joint pmf of two Bernoulli random variables, X and Y. Participants explore the relationship between joint and marginal distributions, particularly in the context of independence.

Discussion Character

  • Conceptual clarification, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to derive the marginals from the joint pmf and questions whether it is always possible to obtain them. They express confusion regarding the implications of independence on the joint distribution derived from the marginals.
  • Some participants clarify that the joint distribution cannot be obtained by simply multiplying the marginals due to the lack of independence between X and Y.
  • Further discussion arises around the calculation of covariance and expectations, with participants questioning their own reasoning and calculations.

Discussion Status

The discussion is active, with participants providing clarifications and corrections to each other's reasoning. There is an ongoing exploration of the implications of independence on the joint distribution and the calculations related to covariance.

Contextual Notes

Participants are working under the assumption that they are dealing with discrete random variables and are navigating the complexities of joint and marginal distributions in probability theory.

jimholt
Messages
12
Reaction score
0
Obtain marginal probability mass function (pmf) given joint pmf

Not really a homework question, but it does have a homeworky flavor, doesn't it...

Homework Statement

Given a join probability mass function of two variables, is it always possible to obtain the marginals?
E.g., if I have a joint mass function for two Bernoulli random variables X and Y, like this:

<br /> f(x,y) = \begin{cases} 1/2 &amp; \mbox{if } (x,y) = (0, 1) \\ <br /> 1/2 &amp; \mbox{if } (x,y) = (1, 0) \\ <br /> 0 &amp; \mbox{otherwise} \end{cases}<br />

Can I obtain the marginals for X and Y?


The attempt at a solution

I want to say yes, but if the marginals for X and Y are

<br /> f(x) = \begin{cases} 1/2 &amp; \mbox{if } x = 0 \\ <br /> 1/2 &amp; \mbox{if } x = 1 \\ <br /> 0 &amp; \mbox{otherwise} \end{cases}<br />

and
<br /> f(y) = \begin{cases} 1/2 &amp; \mbox{if } y = 0 \\ <br /> 1/2 &amp; \mbox{if } y = 1 \\ <br /> 0 &amp; \mbox{otherwise} \end{cases}<br />

Then that produces a joint mass function

<br /> f(x,y) = \begin{cases} 1/4 &amp; \mbox{if } (x,y) \in \{(0, 0), (0, 1), (1, 0), (1, 1) \} \\ 0 &amp; \mbox{otherwise} \end{cases}<br />

which is clearly wrong.

So what's the right way to get at the marginals, assuming they, er, exist?
 
Last edited:
Physics news on Phys.org
Your marginal probabilities are correct. But you don't get the joint distribution from the marginals by multiplying them together because they aren't independent. You can see that easily because, for example, if you know X = 1 you know Y isn't in the joint distribution.
 
Ah yes, thanks for that. I am rustier than I thought. Using the equation f(x,y) = f(x | y) \cdot f(y) then since f(x=0|y=1) = f(x=1|y=0) = 1 and f(x=0|y=0) = f(x=1|y=1) = 0, I do indeed get the correct joint pmf.

But now, I am a little bit confused about the covariance between X and Y...

We know E(X)=1/2 and E(Y)=1/2. And since XY can only take the values 0 or 1, E(XY) = f(x=1)f(y=1)=(1/2)(1/2)=1/4 (is this right?).

Then using the equation Cov(X,Y) = E(XY) - E(X)E(Y), I get Cov(X,Y)=1/4-1/4=0, implying that X and Y are uncorrelated. Could that be right?
 
The probability that XY = 1 is zero from your joint distribution. 1*0 or 0*1 (or 0*0). E(XY) = 0.
 
Doh. Made the same mistake twice, didn't I?

I think I have it now. Cov(X,Y)=-1/4 and then

\rho_{XY}=\frac{Cov(X,Y)}{\sigma_X\sigma_Y}=-1.

Makes a lot more sense.

Thanks for your help, LCKurtz!
 

Similar threads

Replies
9
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
7
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K