Compute the $Cov(X,Y)$ of the two random variables
$begingroup$
Let $X,Y$ be absolutely continuous random variables. $X$ is $Uniform[0,12]$ and $f_{Y|X}(y|x)=frac{1}{x}$, for $yin [0,x]$ and $0$ otherwise.
We are asked to find $Cov(X,Y)$.
$Cov(X,Y)=E(XY)-E(X)E(Y)$.
Usually in these types of problems, I'm given $Y=X^2, X+3$, or a function of $X$. Here I am given the conditional function.
So, $f_{Y|X}=dfrac{f_{XY}(x,y)}{f_{X}(x)}$, by definition.
We know the $f_X(x)=dfrac{1}{12}; 0leq x leq 12$, as it is uniform.
Then, we get that $dfrac{1}{x}=dfrac{f_{XY}(x,y)}{(1/12)}to f_{XY}(x,y)=dfrac{1}{12x}$
This is as far as I got.
To find $f_Y$, I need to integrate $f_{XY}$ over a range ($x$ values). What is this range?
We have firstly that $0 leq y leq x$, and then we have $0 leq x leq 12$. How can I combine these two?
I don't know what to integrate $f_Y$ over.
probability probability-theory statistics random-variables covariance
$endgroup$
add a comment |
$begingroup$
Let $X,Y$ be absolutely continuous random variables. $X$ is $Uniform[0,12]$ and $f_{Y|X}(y|x)=frac{1}{x}$, for $yin [0,x]$ and $0$ otherwise.
We are asked to find $Cov(X,Y)$.
$Cov(X,Y)=E(XY)-E(X)E(Y)$.
Usually in these types of problems, I'm given $Y=X^2, X+3$, or a function of $X$. Here I am given the conditional function.
So, $f_{Y|X}=dfrac{f_{XY}(x,y)}{f_{X}(x)}$, by definition.
We know the $f_X(x)=dfrac{1}{12}; 0leq x leq 12$, as it is uniform.
Then, we get that $dfrac{1}{x}=dfrac{f_{XY}(x,y)}{(1/12)}to f_{XY}(x,y)=dfrac{1}{12x}$
This is as far as I got.
To find $f_Y$, I need to integrate $f_{XY}$ over a range ($x$ values). What is this range?
We have firstly that $0 leq y leq x$, and then we have $0 leq x leq 12$. How can I combine these two?
I don't know what to integrate $f_Y$ over.
probability probability-theory statistics random-variables covariance
$endgroup$
$begingroup$
Not a duplicate, mse accidently posted it twice, I don't even know how thats possible
$endgroup$
– K Split X
Dec 6 '18 at 0:59
$begingroup$
Don't forget the condition that $0 le y le x$ in your formula for $f_{XY}(x,y)$.
$endgroup$
– zoidberg
Dec 6 '18 at 1:48
add a comment |
$begingroup$
Let $X,Y$ be absolutely continuous random variables. $X$ is $Uniform[0,12]$ and $f_{Y|X}(y|x)=frac{1}{x}$, for $yin [0,x]$ and $0$ otherwise.
We are asked to find $Cov(X,Y)$.
$Cov(X,Y)=E(XY)-E(X)E(Y)$.
Usually in these types of problems, I'm given $Y=X^2, X+3$, or a function of $X$. Here I am given the conditional function.
So, $f_{Y|X}=dfrac{f_{XY}(x,y)}{f_{X}(x)}$, by definition.
We know the $f_X(x)=dfrac{1}{12}; 0leq x leq 12$, as it is uniform.
Then, we get that $dfrac{1}{x}=dfrac{f_{XY}(x,y)}{(1/12)}to f_{XY}(x,y)=dfrac{1}{12x}$
This is as far as I got.
To find $f_Y$, I need to integrate $f_{XY}$ over a range ($x$ values). What is this range?
We have firstly that $0 leq y leq x$, and then we have $0 leq x leq 12$. How can I combine these two?
I don't know what to integrate $f_Y$ over.
probability probability-theory statistics random-variables covariance
$endgroup$
Let $X,Y$ be absolutely continuous random variables. $X$ is $Uniform[0,12]$ and $f_{Y|X}(y|x)=frac{1}{x}$, for $yin [0,x]$ and $0$ otherwise.
We are asked to find $Cov(X,Y)$.
$Cov(X,Y)=E(XY)-E(X)E(Y)$.
Usually in these types of problems, I'm given $Y=X^2, X+3$, or a function of $X$. Here I am given the conditional function.
So, $f_{Y|X}=dfrac{f_{XY}(x,y)}{f_{X}(x)}$, by definition.
We know the $f_X(x)=dfrac{1}{12}; 0leq x leq 12$, as it is uniform.
Then, we get that $dfrac{1}{x}=dfrac{f_{XY}(x,y)}{(1/12)}to f_{XY}(x,y)=dfrac{1}{12x}$
This is as far as I got.
To find $f_Y$, I need to integrate $f_{XY}$ over a range ($x$ values). What is this range?
We have firstly that $0 leq y leq x$, and then we have $0 leq x leq 12$. How can I combine these two?
I don't know what to integrate $f_Y$ over.
probability probability-theory statistics random-variables covariance
probability probability-theory statistics random-variables covariance
edited Dec 6 '18 at 1:53
K Split X
asked Dec 6 '18 at 0:37
K Split XK Split X
4,20611132
4,20611132
$begingroup$
Not a duplicate, mse accidently posted it twice, I don't even know how thats possible
$endgroup$
– K Split X
Dec 6 '18 at 0:59
$begingroup$
Don't forget the condition that $0 le y le x$ in your formula for $f_{XY}(x,y)$.
$endgroup$
– zoidberg
Dec 6 '18 at 1:48
add a comment |
$begingroup$
Not a duplicate, mse accidently posted it twice, I don't even know how thats possible
$endgroup$
– K Split X
Dec 6 '18 at 0:59
$begingroup$
Don't forget the condition that $0 le y le x$ in your formula for $f_{XY}(x,y)$.
$endgroup$
– zoidberg
Dec 6 '18 at 1:48
$begingroup$
Not a duplicate, mse accidently posted it twice, I don't even know how thats possible
$endgroup$
– K Split X
Dec 6 '18 at 0:59
$begingroup$
Not a duplicate, mse accidently posted it twice, I don't even know how thats possible
$endgroup$
– K Split X
Dec 6 '18 at 0:59
$begingroup$
Don't forget the condition that $0 le y le x$ in your formula for $f_{XY}(x,y)$.
$endgroup$
– zoidberg
Dec 6 '18 at 1:48
$begingroup$
Don't forget the condition that $0 le y le x$ in your formula for $f_{XY}(x,y)$.
$endgroup$
– zoidberg
Dec 6 '18 at 1:48
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Hint:
You know $0 le x le 12$ and $0 le y le x$, which you can combine into $0 le y le x le 12$
Write the joint density with an indicator function taking the value $1$ when the condition is met and $0$ otherwise
$$f_{XY}(x,y)=dfrac{1}{12x} I{[0 le y le x le 12]}$$
Then you want to integrate this over $x$ to get the marginal density for $Y$ and then adjust the limits of integration to respect the indicator function
$$f_{Y}(y)=int_{x=-infty}^{infty} dfrac{1}{12x} I{[0 le y le x le 12]} , dx= int_{x=y}^{12} dfrac{1}{12x} I{[0 le y le 12]} , dx$$
and that integral is not particularly difficult: you will be left with a function of $y$ multiplied by an indicator function depending on $y$ showing where the marginal density is non-zero
Alternative hint:
You know that $E[Y mid X=x]=frac{x}{2}$ so $E[Y mid X]=frac{X}{2}$
This will give you $E[Y]=frac12E[X]$ and $E[XY]=frac12E[X^2]$
So $text{Cov}(X,Y)=frac12E[X^2]-frac12(E[X])^2 = frac12text{Var}(X)$ which you can calculate
$endgroup$
$begingroup$
I really liked Henry's Alternative hint. Similarly, one could define $Z= Y-X/2$. It's not too hard to see that Cov(Z,X)=0, so Cov(X,Y) = Cov(X,X/2+Z) = Cov(X,X/2) = $sigma_X^2/2$.
$endgroup$
– irchans
Dec 7 '18 at 21:15
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%2f3027876%2fcompute-the-covx-y-of-the-two-random-variables%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
$begingroup$
Hint:
You know $0 le x le 12$ and $0 le y le x$, which you can combine into $0 le y le x le 12$
Write the joint density with an indicator function taking the value $1$ when the condition is met and $0$ otherwise
$$f_{XY}(x,y)=dfrac{1}{12x} I{[0 le y le x le 12]}$$
Then you want to integrate this over $x$ to get the marginal density for $Y$ and then adjust the limits of integration to respect the indicator function
$$f_{Y}(y)=int_{x=-infty}^{infty} dfrac{1}{12x} I{[0 le y le x le 12]} , dx= int_{x=y}^{12} dfrac{1}{12x} I{[0 le y le 12]} , dx$$
and that integral is not particularly difficult: you will be left with a function of $y$ multiplied by an indicator function depending on $y$ showing where the marginal density is non-zero
Alternative hint:
You know that $E[Y mid X=x]=frac{x}{2}$ so $E[Y mid X]=frac{X}{2}$
This will give you $E[Y]=frac12E[X]$ and $E[XY]=frac12E[X^2]$
So $text{Cov}(X,Y)=frac12E[X^2]-frac12(E[X])^2 = frac12text{Var}(X)$ which you can calculate
$endgroup$
$begingroup$
I really liked Henry's Alternative hint. Similarly, one could define $Z= Y-X/2$. It's not too hard to see that Cov(Z,X)=0, so Cov(X,Y) = Cov(X,X/2+Z) = Cov(X,X/2) = $sigma_X^2/2$.
$endgroup$
– irchans
Dec 7 '18 at 21:15
add a comment |
$begingroup$
Hint:
You know $0 le x le 12$ and $0 le y le x$, which you can combine into $0 le y le x le 12$
Write the joint density with an indicator function taking the value $1$ when the condition is met and $0$ otherwise
$$f_{XY}(x,y)=dfrac{1}{12x} I{[0 le y le x le 12]}$$
Then you want to integrate this over $x$ to get the marginal density for $Y$ and then adjust the limits of integration to respect the indicator function
$$f_{Y}(y)=int_{x=-infty}^{infty} dfrac{1}{12x} I{[0 le y le x le 12]} , dx= int_{x=y}^{12} dfrac{1}{12x} I{[0 le y le 12]} , dx$$
and that integral is not particularly difficult: you will be left with a function of $y$ multiplied by an indicator function depending on $y$ showing where the marginal density is non-zero
Alternative hint:
You know that $E[Y mid X=x]=frac{x}{2}$ so $E[Y mid X]=frac{X}{2}$
This will give you $E[Y]=frac12E[X]$ and $E[XY]=frac12E[X^2]$
So $text{Cov}(X,Y)=frac12E[X^2]-frac12(E[X])^2 = frac12text{Var}(X)$ which you can calculate
$endgroup$
$begingroup$
I really liked Henry's Alternative hint. Similarly, one could define $Z= Y-X/2$. It's not too hard to see that Cov(Z,X)=0, so Cov(X,Y) = Cov(X,X/2+Z) = Cov(X,X/2) = $sigma_X^2/2$.
$endgroup$
– irchans
Dec 7 '18 at 21:15
add a comment |
$begingroup$
Hint:
You know $0 le x le 12$ and $0 le y le x$, which you can combine into $0 le y le x le 12$
Write the joint density with an indicator function taking the value $1$ when the condition is met and $0$ otherwise
$$f_{XY}(x,y)=dfrac{1}{12x} I{[0 le y le x le 12]}$$
Then you want to integrate this over $x$ to get the marginal density for $Y$ and then adjust the limits of integration to respect the indicator function
$$f_{Y}(y)=int_{x=-infty}^{infty} dfrac{1}{12x} I{[0 le y le x le 12]} , dx= int_{x=y}^{12} dfrac{1}{12x} I{[0 le y le 12]} , dx$$
and that integral is not particularly difficult: you will be left with a function of $y$ multiplied by an indicator function depending on $y$ showing where the marginal density is non-zero
Alternative hint:
You know that $E[Y mid X=x]=frac{x}{2}$ so $E[Y mid X]=frac{X}{2}$
This will give you $E[Y]=frac12E[X]$ and $E[XY]=frac12E[X^2]$
So $text{Cov}(X,Y)=frac12E[X^2]-frac12(E[X])^2 = frac12text{Var}(X)$ which you can calculate
$endgroup$
Hint:
You know $0 le x le 12$ and $0 le y le x$, which you can combine into $0 le y le x le 12$
Write the joint density with an indicator function taking the value $1$ when the condition is met and $0$ otherwise
$$f_{XY}(x,y)=dfrac{1}{12x} I{[0 le y le x le 12]}$$
Then you want to integrate this over $x$ to get the marginal density for $Y$ and then adjust the limits of integration to respect the indicator function
$$f_{Y}(y)=int_{x=-infty}^{infty} dfrac{1}{12x} I{[0 le y le x le 12]} , dx= int_{x=y}^{12} dfrac{1}{12x} I{[0 le y le 12]} , dx$$
and that integral is not particularly difficult: you will be left with a function of $y$ multiplied by an indicator function depending on $y$ showing where the marginal density is non-zero
Alternative hint:
You know that $E[Y mid X=x]=frac{x}{2}$ so $E[Y mid X]=frac{X}{2}$
This will give you $E[Y]=frac12E[X]$ and $E[XY]=frac12E[X^2]$
So $text{Cov}(X,Y)=frac12E[X^2]-frac12(E[X])^2 = frac12text{Var}(X)$ which you can calculate
edited Dec 7 '18 at 20:54
answered Dec 7 '18 at 20:07
HenryHenry
100k480165
100k480165
$begingroup$
I really liked Henry's Alternative hint. Similarly, one could define $Z= Y-X/2$. It's not too hard to see that Cov(Z,X)=0, so Cov(X,Y) = Cov(X,X/2+Z) = Cov(X,X/2) = $sigma_X^2/2$.
$endgroup$
– irchans
Dec 7 '18 at 21:15
add a comment |
$begingroup$
I really liked Henry's Alternative hint. Similarly, one could define $Z= Y-X/2$. It's not too hard to see that Cov(Z,X)=0, so Cov(X,Y) = Cov(X,X/2+Z) = Cov(X,X/2) = $sigma_X^2/2$.
$endgroup$
– irchans
Dec 7 '18 at 21:15
$begingroup$
I really liked Henry's Alternative hint. Similarly, one could define $Z= Y-X/2$. It's not too hard to see that Cov(Z,X)=0, so Cov(X,Y) = Cov(X,X/2+Z) = Cov(X,X/2) = $sigma_X^2/2$.
$endgroup$
– irchans
Dec 7 '18 at 21:15
$begingroup$
I really liked Henry's Alternative hint. Similarly, one could define $Z= Y-X/2$. It's not too hard to see that Cov(Z,X)=0, so Cov(X,Y) = Cov(X,X/2+Z) = Cov(X,X/2) = $sigma_X^2/2$.
$endgroup$
– irchans
Dec 7 '18 at 21:15
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%2f3027876%2fcompute-the-covx-y-of-the-two-random-variables%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
$begingroup$
Not a duplicate, mse accidently posted it twice, I don't even know how thats possible
$endgroup$
– K Split X
Dec 6 '18 at 0:59
$begingroup$
Don't forget the condition that $0 le y le x$ in your formula for $f_{XY}(x,y)$.
$endgroup$
– zoidberg
Dec 6 '18 at 1:48