Combined probability distribution

Uncle_John
Messages
15
Reaction score
0

Homework Statement


Let's have a box in shape of a square(viewed from the top) from the corner of which a smaller square was cut out.The side of a bigger square is 2a, side of the smaller square is a long.
We've got evenly distributed corn seeds all over the box,randomly selected seed is defined by coordinates x,y \in [0,2a]


Homework Equations


a.) Write down the combined probability distribution for w(x,y)
b.) Write down the projected probability distribution for u(x)(independent of y)
c.) calculate the correlation coefficient r_{x,y}

The Attempt at a Solution


a.) 1/3a^₂
b.) u(x)= 1/3a if x \in [0,a]
u(x) = 2/3a if x \in [a,2a]
c.) since r_{x,y} =\frac{\sigma_{x,y}}{\sigma_{x} \sigma_{y}}, i calculated each variance seperately:
\sigma_{x} = \int xu(x)dx
\sigma_{y} = \int yu(y)dx
\sigma_{x,y} = \int\int (x - \overline{x})(y - \overline{y})w(x,y)dxdy

Is that right?
 
Physics news on Phys.org


Uncle_John said:

Homework Statement


Let's have a box in shape of a square(viewed from the top) from the corner of which a smaller square was cut out.The side of a bigger square is 2a, side of the smaller square is a long.
We've got evenly distributed corn seeds all over the box,randomly selected seed is defined by coordinates x,y \in [0,2a]

Homework Equations


a.) Write down the combined probability distribution for w(x,y)
b.) Write down the projected probability distribution for u(x)(independent of y)
[/b]
a.) 1/3a^2

What is in the denominator? You need parentheses.

I'm not sure what you mean by the "combined" probability distribution. If you mean the joint density function, you don't have it. It would be a function of x and y. This would be reflected in the domain when you write it carefully.

b.) u(x)= 1/3a if x \in [0,a]
u(x) = 2/3a if x \in [a,2a]

Yes, that is the marginal density of x (if you put correct parentheses in). And you get a symmetric formula for y.
 
Last edited:


Uncle_John said:

c.) since r_{x,y} =\frac{\sigma_{x,y}}{\sigma_{x} \sigma_{y}}, i calculated each variance seperately:
\sigma_{x} = \int xu(x)dx
\sigma_{y} = \int yu(y)dx
\sigma_{x,y} = \int\int (x - \overline{x})(y - \overline{y})w(x,y)dxdy

Is that right?


No. Your formulas for σx and σy are wrong. And you will need to be careful what limits you use on the last one.
 


Yes, sorry, i meant joint probability distribution. So if i follow the formal definition:
w_{x,y}(x,y) = w_{y|x}(x,y)w_{x}(x)

Then:
w_{x|y}(x,y) = \begin{cases}<br /> 1/a, \text{if } x \in [0,a) \\<br /> 1/(2a), \text{if } x\in [a,2a]<br /> \end{cases}<br />

Also, w_{x} is known:

w_{x}(x) = \begin{cases}<br /> 1/(3a), \text{if} x \in [0,a) \\<br /> 2/(3a), \text{if} x \in [a,2a]<br /> \end{cases}<br />

Is that better?
 
Last edited:


Uncle_John said:
Yes, sorry, i meant joint probability distribution. So if i follow the formal definition:
w_{x,y}(x,y) = w_{y|x}(x,y)w_{x}(x)

Then:
w_{x|y}(x,y) = \begin{cases}<br /> 1/a, \text{if } x \in [0,a) \\<br /> 1/(2a), \text{if } x\in [a,2a]<br /> \end{cases}<br />

Is that better?

But you need to be more careful here. The conditional density of x|y depends on both x and y. It matters whether y is in (0,a) or (a,2a).
 
Last edited:


w_{x|y}(x,y) = \begin{cases}<br /> 0, \text{if} x \in [0,a) \text{and} y \in [0,a] \\<br /> 1/a, \text{if } x \in [0,a) \text{and} y \in [a,2a] \\<br /> 1/(2a), \text{if } x\in [a,2a]<br /> \end{cases}<br />

? Better. But how should i write the final answer? w_{x,y}
What is wrong with \sigma?
 


Uncle_John said:
w_{x|y}(x,y) = \begin{cases}<br /> 0, \text{if} x \in [0,a) \text{and} y \in [0,a] \\<br /> 1/a, \text{if } x \in [0,a) \text{and} y \in [a,2a] \\<br /> 1/(2a), \text{if } x\in [a,2a]<br /> \end{cases}<br />

? Better. But how should i write the final answer? w_{x,y}
What is wrong with \sigma?

Yes, that' s better for the conditional density. But perhaps I was a bit cryptic in my earlier comments about the joint density. Your formula of 1/(3a2) was correct but it gives the appearance of not depending on x or y. You need to indicate the proper (x,y) domain and you will have it without going this conditional density stuff.

The formulas you have written for the σ's look like formulas for the means instead of the standard deviations.
 


Ok, so it would look something like :

w_{x,y}(x,y) = \begin{cases}<br /> 0, \text{if } x \in [0,a] \text{and } y \in [0,a] \\<br /> 1/(3a^₂), \text{otherwise}<br /> \end{cases}<br />


\sigma_{x}^2 = \overline{x^2} - \overline{x}^₂

and for \sigma_{x,y} = \int \int (x - \overline{x})(y - \overline{y}) w_{x,y} dx dy

i integrate over [0,a]x [a,2a]first, and then over [a,2a]x [0,2a], is that allright?

Can i post other probability problems in here or should i open a new thread?
 


Uncle_John said:
Ok, so it would look something like :

w_{x,y}(x,y) = \begin{cases}<br /> 0, \text{if } x \in [0,a] \text{and } y \in [0,a] \\<br /> 1/(3a^₂), \text{otherwise}<br /> \end{cases}<br />

I know you understand it, but the "otherwise" above doesn't include x or y greater than 2a or less than 0

\sigma_{x}^2 = \overline{x^2} - \overline{x}^₂

and for \sigma_{x,y} = \int \int (x - \overline{x})(y - \overline{y}) w_{x,y} dx dy

i integrate over [0,a]x [a,2a]first, and then over [a,2a]x [0,2a], is that allright?

Yes, that is correct.

Can i post other probability problems in here or should i open a new thread?

You should start a new thread. Others are more likely to join a new thread and it's general forum policy anyway.
 
Back
Top