Checking whether $X$ and $Y$ are independent given the joint pdf and calculating conditional expectation











up vote
1
down vote

favorite
1












Consider the joint pdf of $(X, Y)$ given by



$$f(x, y) = begin{cases} y^{-1}text{exp}left(-yright) & 0 < x < y \[1em]
0, & text{ otherwise.} end{cases} $$



a) Compute $mathbb{E}[X^{3} | Y = y]$



b) Are $X$ and $Y$ independent?





So, my attempt for $(a)$ was to first compute $f_{x mid y}(x mid y)$ as follows:



$$f_{x|y}(x|y) = frac{f(x,y)}{int_{-infty}^{infty}f(x,y) mathop{dx}} = frac{1}{y}.$$



So,



$$mathbb{E}[X^{3} mid Y = y] = int_{0}^{y} x^{3}frac{1}{y} mathop{dx} = boxed{y^3/4}$$





For $(b)$, I try to decompose $f(x, y)$ into the product of two marginals. We have



$$f_{Y}(y) = int_{0}^{y} f(x, y) mathop{dx} = e^{-y}.$$



But, I can't compute



$$f_{X}(x) = int_{x}^{infty} f(x,y) mathop{dy}. $$



Wolfram Alpha can't compute it in a nice way either. Is my answer for $(a)$ correct? How can I do $(b)$?










share|cite|improve this question






















  • Since you already found in part a) that $Xmid Ysim text{Uniform}(0,Y)$ (you did not mention that $0<x<y$ in the support), this should be enough to conclude on part b).
    – StubbornAtom
    Nov 21 at 19:28

















up vote
1
down vote

favorite
1












Consider the joint pdf of $(X, Y)$ given by



$$f(x, y) = begin{cases} y^{-1}text{exp}left(-yright) & 0 < x < y \[1em]
0, & text{ otherwise.} end{cases} $$



a) Compute $mathbb{E}[X^{3} | Y = y]$



b) Are $X$ and $Y$ independent?





So, my attempt for $(a)$ was to first compute $f_{x mid y}(x mid y)$ as follows:



$$f_{x|y}(x|y) = frac{f(x,y)}{int_{-infty}^{infty}f(x,y) mathop{dx}} = frac{1}{y}.$$



So,



$$mathbb{E}[X^{3} mid Y = y] = int_{0}^{y} x^{3}frac{1}{y} mathop{dx} = boxed{y^3/4}$$





For $(b)$, I try to decompose $f(x, y)$ into the product of two marginals. We have



$$f_{Y}(y) = int_{0}^{y} f(x, y) mathop{dx} = e^{-y}.$$



But, I can't compute



$$f_{X}(x) = int_{x}^{infty} f(x,y) mathop{dy}. $$



Wolfram Alpha can't compute it in a nice way either. Is my answer for $(a)$ correct? How can I do $(b)$?










share|cite|improve this question






















  • Since you already found in part a) that $Xmid Ysim text{Uniform}(0,Y)$ (you did not mention that $0<x<y$ in the support), this should be enough to conclude on part b).
    – StubbornAtom
    Nov 21 at 19:28















up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





Consider the joint pdf of $(X, Y)$ given by



$$f(x, y) = begin{cases} y^{-1}text{exp}left(-yright) & 0 < x < y \[1em]
0, & text{ otherwise.} end{cases} $$



a) Compute $mathbb{E}[X^{3} | Y = y]$



b) Are $X$ and $Y$ independent?





So, my attempt for $(a)$ was to first compute $f_{x mid y}(x mid y)$ as follows:



$$f_{x|y}(x|y) = frac{f(x,y)}{int_{-infty}^{infty}f(x,y) mathop{dx}} = frac{1}{y}.$$



So,



$$mathbb{E}[X^{3} mid Y = y] = int_{0}^{y} x^{3}frac{1}{y} mathop{dx} = boxed{y^3/4}$$





For $(b)$, I try to decompose $f(x, y)$ into the product of two marginals. We have



$$f_{Y}(y) = int_{0}^{y} f(x, y) mathop{dx} = e^{-y}.$$



But, I can't compute



$$f_{X}(x) = int_{x}^{infty} f(x,y) mathop{dy}. $$



Wolfram Alpha can't compute it in a nice way either. Is my answer for $(a)$ correct? How can I do $(b)$?










share|cite|improve this question













Consider the joint pdf of $(X, Y)$ given by



$$f(x, y) = begin{cases} y^{-1}text{exp}left(-yright) & 0 < x < y \[1em]
0, & text{ otherwise.} end{cases} $$



a) Compute $mathbb{E}[X^{3} | Y = y]$



b) Are $X$ and $Y$ independent?





So, my attempt for $(a)$ was to first compute $f_{x mid y}(x mid y)$ as follows:



$$f_{x|y}(x|y) = frac{f(x,y)}{int_{-infty}^{infty}f(x,y) mathop{dx}} = frac{1}{y}.$$



So,



$$mathbb{E}[X^{3} mid Y = y] = int_{0}^{y} x^{3}frac{1}{y} mathop{dx} = boxed{y^3/4}$$





For $(b)$, I try to decompose $f(x, y)$ into the product of two marginals. We have



$$f_{Y}(y) = int_{0}^{y} f(x, y) mathop{dx} = e^{-y}.$$



But, I can't compute



$$f_{X}(x) = int_{x}^{infty} f(x,y) mathop{dy}. $$



Wolfram Alpha can't compute it in a nice way either. Is my answer for $(a)$ correct? How can I do $(b)$?







probability probability-theory probability-distributions






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 20 at 0:58









joseph

3809




3809












  • Since you already found in part a) that $Xmid Ysim text{Uniform}(0,Y)$ (you did not mention that $0<x<y$ in the support), this should be enough to conclude on part b).
    – StubbornAtom
    Nov 21 at 19:28




















  • Since you already found in part a) that $Xmid Ysim text{Uniform}(0,Y)$ (you did not mention that $0<x<y$ in the support), this should be enough to conclude on part b).
    – StubbornAtom
    Nov 21 at 19:28


















Since you already found in part a) that $Xmid Ysim text{Uniform}(0,Y)$ (you did not mention that $0<x<y$ in the support), this should be enough to conclude on part b).
– StubbornAtom
Nov 21 at 19:28






Since you already found in part a) that $Xmid Ysim text{Uniform}(0,Y)$ (you did not mention that $0<x<y$ in the support), this should be enough to conclude on part b).
– StubbornAtom
Nov 21 at 19:28












1 Answer
1






active

oldest

votes

















up vote
1
down vote













(a) is quite correct.





For (b) you have that $f_{X,Y}(x,y)=y^{-1}e^{-y}mathbf 1_{0leq xleq y}$ and $f_Y(y)=e^{-y}mathbf 1_{0leq y}$ .   Okay.



Don't worry about having trouble finding the marginal density function for $X$.  
Just ask, can there be any mono-variate function wrt $x$, $g(x)$, such that $y^{-1}e^{-y}mathbf 1_{0leq xleq y}=g(x)~e^{-y}mathbf 1_{0leq y}$ ? Therefore, can $X,Y$ be independent?




Also notice $f_{Xmid Y=2}(3)=0$ while $f_{Xmid Y=4}(3)>0$.







share|cite|improve this answer





















  • I don't understand the whole thing about monovariate functions, but from the spoiler part, I can see that the conclusion is that they're not independent. How'd you get $f_{Xmid Y = 2}(3) = 0$? Shouldn't it be $1/3?$
    – joseph
    Nov 20 at 2:33













Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3005782%2fchecking-whether-x-and-y-are-independent-given-the-joint-pdf-and-calculating%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













(a) is quite correct.





For (b) you have that $f_{X,Y}(x,y)=y^{-1}e^{-y}mathbf 1_{0leq xleq y}$ and $f_Y(y)=e^{-y}mathbf 1_{0leq y}$ .   Okay.



Don't worry about having trouble finding the marginal density function for $X$.  
Just ask, can there be any mono-variate function wrt $x$, $g(x)$, such that $y^{-1}e^{-y}mathbf 1_{0leq xleq y}=g(x)~e^{-y}mathbf 1_{0leq y}$ ? Therefore, can $X,Y$ be independent?




Also notice $f_{Xmid Y=2}(3)=0$ while $f_{Xmid Y=4}(3)>0$.







share|cite|improve this answer





















  • I don't understand the whole thing about monovariate functions, but from the spoiler part, I can see that the conclusion is that they're not independent. How'd you get $f_{Xmid Y = 2}(3) = 0$? Shouldn't it be $1/3?$
    – joseph
    Nov 20 at 2:33

















up vote
1
down vote













(a) is quite correct.





For (b) you have that $f_{X,Y}(x,y)=y^{-1}e^{-y}mathbf 1_{0leq xleq y}$ and $f_Y(y)=e^{-y}mathbf 1_{0leq y}$ .   Okay.



Don't worry about having trouble finding the marginal density function for $X$.  
Just ask, can there be any mono-variate function wrt $x$, $g(x)$, such that $y^{-1}e^{-y}mathbf 1_{0leq xleq y}=g(x)~e^{-y}mathbf 1_{0leq y}$ ? Therefore, can $X,Y$ be independent?




Also notice $f_{Xmid Y=2}(3)=0$ while $f_{Xmid Y=4}(3)>0$.







share|cite|improve this answer





















  • I don't understand the whole thing about monovariate functions, but from the spoiler part, I can see that the conclusion is that they're not independent. How'd you get $f_{Xmid Y = 2}(3) = 0$? Shouldn't it be $1/3?$
    – joseph
    Nov 20 at 2:33















up vote
1
down vote










up vote
1
down vote









(a) is quite correct.





For (b) you have that $f_{X,Y}(x,y)=y^{-1}e^{-y}mathbf 1_{0leq xleq y}$ and $f_Y(y)=e^{-y}mathbf 1_{0leq y}$ .   Okay.



Don't worry about having trouble finding the marginal density function for $X$.  
Just ask, can there be any mono-variate function wrt $x$, $g(x)$, such that $y^{-1}e^{-y}mathbf 1_{0leq xleq y}=g(x)~e^{-y}mathbf 1_{0leq y}$ ? Therefore, can $X,Y$ be independent?




Also notice $f_{Xmid Y=2}(3)=0$ while $f_{Xmid Y=4}(3)>0$.







share|cite|improve this answer












(a) is quite correct.





For (b) you have that $f_{X,Y}(x,y)=y^{-1}e^{-y}mathbf 1_{0leq xleq y}$ and $f_Y(y)=e^{-y}mathbf 1_{0leq y}$ .   Okay.



Don't worry about having trouble finding the marginal density function for $X$.  
Just ask, can there be any mono-variate function wrt $x$, $g(x)$, such that $y^{-1}e^{-y}mathbf 1_{0leq xleq y}=g(x)~e^{-y}mathbf 1_{0leq y}$ ? Therefore, can $X,Y$ be independent?




Also notice $f_{Xmid Y=2}(3)=0$ while $f_{Xmid Y=4}(3)>0$.








share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 20 at 1:57









Graham Kemp

84.6k43378




84.6k43378












  • I don't understand the whole thing about monovariate functions, but from the spoiler part, I can see that the conclusion is that they're not independent. How'd you get $f_{Xmid Y = 2}(3) = 0$? Shouldn't it be $1/3?$
    – joseph
    Nov 20 at 2:33




















  • I don't understand the whole thing about monovariate functions, but from the spoiler part, I can see that the conclusion is that they're not independent. How'd you get $f_{Xmid Y = 2}(3) = 0$? Shouldn't it be $1/3?$
    – joseph
    Nov 20 at 2:33


















I don't understand the whole thing about monovariate functions, but from the spoiler part, I can see that the conclusion is that they're not independent. How'd you get $f_{Xmid Y = 2}(3) = 0$? Shouldn't it be $1/3?$
– joseph
Nov 20 at 2:33






I don't understand the whole thing about monovariate functions, but from the spoiler part, I can see that the conclusion is that they're not independent. How'd you get $f_{Xmid Y = 2}(3) = 0$? Shouldn't it be $1/3?$
– joseph
Nov 20 at 2:33




















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3005782%2fchecking-whether-x-and-y-are-independent-given-the-joint-pdf-and-calculating%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa