Finding $mathrm{Cov}(X,Y)$ and $E(Xmid Y=y)$ given the joint density of $(X,Y)$
The continuous random variables $X$ and $Y$ have joint density function $f_{xy} = 1$ for $0 < x < 1$ and $2x < y < 2$, and zero otherwise.
I am stuck on the above question, with parts a and b below:
a) Find the $cov(x,y)$.
Work:
$cov(x,y) = E(XY) - E(X)E(Y)$
$= int_0^1int_{2x}^2 xydydx - int_0^1int_{2x}^2 xdydxint_0^1int_{2x}^2 ydydx$
= $frac{-1}{18}$
However I am given the answer $frac{1}{18}$. Did I make a mistake in my computation or is the answer incorrect?
b) Find $E(X|Y = y)$.
Work:
$E(X|Y=y) = int_{-infty}^{infty}xf_{x|y}(x|y)dx$
This is where I am puzzled. I know that $f_{x|y}(x|y) = frac{f_{xy}(xy)}{f_yy}$, and $f_yy= int_{-infty}^{infty}f_{x,y}(x,y)dx$. That means $f_yy = 1$ and therefore $f_{x|y}(x|y) = 1$. However I am given the answer $E(X|Y=y) = frac{y}4$. Again, did I make a computational mistake or am I not getting something?
Thanks.
probability-distributions
add a comment |
The continuous random variables $X$ and $Y$ have joint density function $f_{xy} = 1$ for $0 < x < 1$ and $2x < y < 2$, and zero otherwise.
I am stuck on the above question, with parts a and b below:
a) Find the $cov(x,y)$.
Work:
$cov(x,y) = E(XY) - E(X)E(Y)$
$= int_0^1int_{2x}^2 xydydx - int_0^1int_{2x}^2 xdydxint_0^1int_{2x}^2 ydydx$
= $frac{-1}{18}$
However I am given the answer $frac{1}{18}$. Did I make a mistake in my computation or is the answer incorrect?
b) Find $E(X|Y = y)$.
Work:
$E(X|Y=y) = int_{-infty}^{infty}xf_{x|y}(x|y)dx$
This is where I am puzzled. I know that $f_{x|y}(x|y) = frac{f_{xy}(xy)}{f_yy}$, and $f_yy= int_{-infty}^{infty}f_{x,y}(x,y)dx$. That means $f_yy = 1$ and therefore $f_{x|y}(x|y) = 1$. However I am given the answer $E(X|Y=y) = frac{y}4$. Again, did I make a computational mistake or am I not getting something?
Thanks.
probability-distributions
1
a) $frac12-frac13cdot frac43=color{red}{+}frac1{18}$.
– farruhota
Dec 1 '18 at 6:05
add a comment |
The continuous random variables $X$ and $Y$ have joint density function $f_{xy} = 1$ for $0 < x < 1$ and $2x < y < 2$, and zero otherwise.
I am stuck on the above question, with parts a and b below:
a) Find the $cov(x,y)$.
Work:
$cov(x,y) = E(XY) - E(X)E(Y)$
$= int_0^1int_{2x}^2 xydydx - int_0^1int_{2x}^2 xdydxint_0^1int_{2x}^2 ydydx$
= $frac{-1}{18}$
However I am given the answer $frac{1}{18}$. Did I make a mistake in my computation or is the answer incorrect?
b) Find $E(X|Y = y)$.
Work:
$E(X|Y=y) = int_{-infty}^{infty}xf_{x|y}(x|y)dx$
This is where I am puzzled. I know that $f_{x|y}(x|y) = frac{f_{xy}(xy)}{f_yy}$, and $f_yy= int_{-infty}^{infty}f_{x,y}(x,y)dx$. That means $f_yy = 1$ and therefore $f_{x|y}(x|y) = 1$. However I am given the answer $E(X|Y=y) = frac{y}4$. Again, did I make a computational mistake or am I not getting something?
Thanks.
probability-distributions
The continuous random variables $X$ and $Y$ have joint density function $f_{xy} = 1$ for $0 < x < 1$ and $2x < y < 2$, and zero otherwise.
I am stuck on the above question, with parts a and b below:
a) Find the $cov(x,y)$.
Work:
$cov(x,y) = E(XY) - E(X)E(Y)$
$= int_0^1int_{2x}^2 xydydx - int_0^1int_{2x}^2 xdydxint_0^1int_{2x}^2 ydydx$
= $frac{-1}{18}$
However I am given the answer $frac{1}{18}$. Did I make a mistake in my computation or is the answer incorrect?
b) Find $E(X|Y = y)$.
Work:
$E(X|Y=y) = int_{-infty}^{infty}xf_{x|y}(x|y)dx$
This is where I am puzzled. I know that $f_{x|y}(x|y) = frac{f_{xy}(xy)}{f_yy}$, and $f_yy= int_{-infty}^{infty}f_{x,y}(x,y)dx$. That means $f_yy = 1$ and therefore $f_{x|y}(x|y) = 1$. However I am given the answer $E(X|Y=y) = frac{y}4$. Again, did I make a computational mistake or am I not getting something?
Thanks.
probability-distributions
probability-distributions
edited Dec 1 '18 at 10:21
StubbornAtom
5,41911138
5,41911138
asked Dec 1 '18 at 4:57
pecopeco
758
758
1
a) $frac12-frac13cdot frac43=color{red}{+}frac1{18}$.
– farruhota
Dec 1 '18 at 6:05
add a comment |
1
a) $frac12-frac13cdot frac43=color{red}{+}frac1{18}$.
– farruhota
Dec 1 '18 at 6:05
1
1
a) $frac12-frac13cdot frac43=color{red}{+}frac1{18}$.
– farruhota
Dec 1 '18 at 6:05
a) $frac12-frac13cdot frac43=color{red}{+}frac1{18}$.
– farruhota
Dec 1 '18 at 6:05
add a comment |
1 Answer
1
active
oldest
votes
The densities are usually denoted with subscripts in capital letters for the random variables.
For part (a), it is an algebraic error on your part. For part (b), you are not paying attention to the supports of the random variables in your calculations. Hence the absurd answers.
Define the indicator $$mathbf1_{xin A}=begin{cases}1&,text{ if }xin A\0&,text{ otherwise }end{cases}$$
Then joint density of $(X,Y)$ is $$f_{X,Y}(x,y)=mathbf1_{0<x<1,,,2x<y<2}$$
So density of $Y$ is
begin{align}
f_{Y}(y)&=int f_{X,Y}(x,y),dx,mathbf1_{0<y<2}
\&=int_0^{y/2},dx,mathbf1_{0<y<2}
\&=frac{y,mathbf1_{0<y<2}}{2}
end{align}
Thus giving the density of $Xmid Y$ for each $yin(0,2)$:
$$f_{Xmid Y}(x)=frac{2,mathbf1_{0<x<y/2}}{y}$$
sorry, but can you explain why the bounds of $f_{Y}(y)$ = 0 and $frac{y}{2}$?
– peco
Dec 2 '18 at 21:09
@peco Look at the support of $(X,Y)$. There is dependency between $x$ and $y$, so you have to account for that when you integrate over $x$. $$0<x<1, 2x<y<2implies 0<x<y/2,0<y<2$$
– StubbornAtom
Dec 2 '18 at 21:53
ok, so that means since $2x<y , x<frac{y}{2}$. thanks!
– peco
Dec 2 '18 at 21:58
add a comment |
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',
autoActivateHeartbeat: false,
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3021004%2ffinding-mathrmcovx-y-and-ex-mid-y-y-given-the-joint-density-of-x-y%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
The densities are usually denoted with subscripts in capital letters for the random variables.
For part (a), it is an algebraic error on your part. For part (b), you are not paying attention to the supports of the random variables in your calculations. Hence the absurd answers.
Define the indicator $$mathbf1_{xin A}=begin{cases}1&,text{ if }xin A\0&,text{ otherwise }end{cases}$$
Then joint density of $(X,Y)$ is $$f_{X,Y}(x,y)=mathbf1_{0<x<1,,,2x<y<2}$$
So density of $Y$ is
begin{align}
f_{Y}(y)&=int f_{X,Y}(x,y),dx,mathbf1_{0<y<2}
\&=int_0^{y/2},dx,mathbf1_{0<y<2}
\&=frac{y,mathbf1_{0<y<2}}{2}
end{align}
Thus giving the density of $Xmid Y$ for each $yin(0,2)$:
$$f_{Xmid Y}(x)=frac{2,mathbf1_{0<x<y/2}}{y}$$
sorry, but can you explain why the bounds of $f_{Y}(y)$ = 0 and $frac{y}{2}$?
– peco
Dec 2 '18 at 21:09
@peco Look at the support of $(X,Y)$. There is dependency between $x$ and $y$, so you have to account for that when you integrate over $x$. $$0<x<1, 2x<y<2implies 0<x<y/2,0<y<2$$
– StubbornAtom
Dec 2 '18 at 21:53
ok, so that means since $2x<y , x<frac{y}{2}$. thanks!
– peco
Dec 2 '18 at 21:58
add a comment |
The densities are usually denoted with subscripts in capital letters for the random variables.
For part (a), it is an algebraic error on your part. For part (b), you are not paying attention to the supports of the random variables in your calculations. Hence the absurd answers.
Define the indicator $$mathbf1_{xin A}=begin{cases}1&,text{ if }xin A\0&,text{ otherwise }end{cases}$$
Then joint density of $(X,Y)$ is $$f_{X,Y}(x,y)=mathbf1_{0<x<1,,,2x<y<2}$$
So density of $Y$ is
begin{align}
f_{Y}(y)&=int f_{X,Y}(x,y),dx,mathbf1_{0<y<2}
\&=int_0^{y/2},dx,mathbf1_{0<y<2}
\&=frac{y,mathbf1_{0<y<2}}{2}
end{align}
Thus giving the density of $Xmid Y$ for each $yin(0,2)$:
$$f_{Xmid Y}(x)=frac{2,mathbf1_{0<x<y/2}}{y}$$
sorry, but can you explain why the bounds of $f_{Y}(y)$ = 0 and $frac{y}{2}$?
– peco
Dec 2 '18 at 21:09
@peco Look at the support of $(X,Y)$. There is dependency between $x$ and $y$, so you have to account for that when you integrate over $x$. $$0<x<1, 2x<y<2implies 0<x<y/2,0<y<2$$
– StubbornAtom
Dec 2 '18 at 21:53
ok, so that means since $2x<y , x<frac{y}{2}$. thanks!
– peco
Dec 2 '18 at 21:58
add a comment |
The densities are usually denoted with subscripts in capital letters for the random variables.
For part (a), it is an algebraic error on your part. For part (b), you are not paying attention to the supports of the random variables in your calculations. Hence the absurd answers.
Define the indicator $$mathbf1_{xin A}=begin{cases}1&,text{ if }xin A\0&,text{ otherwise }end{cases}$$
Then joint density of $(X,Y)$ is $$f_{X,Y}(x,y)=mathbf1_{0<x<1,,,2x<y<2}$$
So density of $Y$ is
begin{align}
f_{Y}(y)&=int f_{X,Y}(x,y),dx,mathbf1_{0<y<2}
\&=int_0^{y/2},dx,mathbf1_{0<y<2}
\&=frac{y,mathbf1_{0<y<2}}{2}
end{align}
Thus giving the density of $Xmid Y$ for each $yin(0,2)$:
$$f_{Xmid Y}(x)=frac{2,mathbf1_{0<x<y/2}}{y}$$
The densities are usually denoted with subscripts in capital letters for the random variables.
For part (a), it is an algebraic error on your part. For part (b), you are not paying attention to the supports of the random variables in your calculations. Hence the absurd answers.
Define the indicator $$mathbf1_{xin A}=begin{cases}1&,text{ if }xin A\0&,text{ otherwise }end{cases}$$
Then joint density of $(X,Y)$ is $$f_{X,Y}(x,y)=mathbf1_{0<x<1,,,2x<y<2}$$
So density of $Y$ is
begin{align}
f_{Y}(y)&=int f_{X,Y}(x,y),dx,mathbf1_{0<y<2}
\&=int_0^{y/2},dx,mathbf1_{0<y<2}
\&=frac{y,mathbf1_{0<y<2}}{2}
end{align}
Thus giving the density of $Xmid Y$ for each $yin(0,2)$:
$$f_{Xmid Y}(x)=frac{2,mathbf1_{0<x<y/2}}{y}$$
answered Dec 1 '18 at 10:29
StubbornAtomStubbornAtom
5,41911138
5,41911138
sorry, but can you explain why the bounds of $f_{Y}(y)$ = 0 and $frac{y}{2}$?
– peco
Dec 2 '18 at 21:09
@peco Look at the support of $(X,Y)$. There is dependency between $x$ and $y$, so you have to account for that when you integrate over $x$. $$0<x<1, 2x<y<2implies 0<x<y/2,0<y<2$$
– StubbornAtom
Dec 2 '18 at 21:53
ok, so that means since $2x<y , x<frac{y}{2}$. thanks!
– peco
Dec 2 '18 at 21:58
add a comment |
sorry, but can you explain why the bounds of $f_{Y}(y)$ = 0 and $frac{y}{2}$?
– peco
Dec 2 '18 at 21:09
@peco Look at the support of $(X,Y)$. There is dependency between $x$ and $y$, so you have to account for that when you integrate over $x$. $$0<x<1, 2x<y<2implies 0<x<y/2,0<y<2$$
– StubbornAtom
Dec 2 '18 at 21:53
ok, so that means since $2x<y , x<frac{y}{2}$. thanks!
– peco
Dec 2 '18 at 21:58
sorry, but can you explain why the bounds of $f_{Y}(y)$ = 0 and $frac{y}{2}$?
– peco
Dec 2 '18 at 21:09
sorry, but can you explain why the bounds of $f_{Y}(y)$ = 0 and $frac{y}{2}$?
– peco
Dec 2 '18 at 21:09
@peco Look at the support of $(X,Y)$. There is dependency between $x$ and $y$, so you have to account for that when you integrate over $x$. $$0<x<1, 2x<y<2implies 0<x<y/2,0<y<2$$
– StubbornAtom
Dec 2 '18 at 21:53
@peco Look at the support of $(X,Y)$. There is dependency between $x$ and $y$, so you have to account for that when you integrate over $x$. $$0<x<1, 2x<y<2implies 0<x<y/2,0<y<2$$
– StubbornAtom
Dec 2 '18 at 21:53
ok, so that means since $2x<y , x<frac{y}{2}$. thanks!
– peco
Dec 2 '18 at 21:58
ok, so that means since $2x<y , x<frac{y}{2}$. thanks!
– peco
Dec 2 '18 at 21:58
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3021004%2ffinding-mathrmcovx-y-and-ex-mid-y-y-given-the-joint-density-of-x-y%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
a) $frac12-frac13cdot frac43=color{red}{+}frac1{18}$.
– farruhota
Dec 1 '18 at 6:05