Compute the $Cov(X,Y)$ of the two random variables












1












$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.










share|cite|improve this question











$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


















1












$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.










share|cite|improve this question











$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
















1












1








1


1



$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.










share|cite|improve this question











$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






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








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




















  • $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












1 Answer
1






active

oldest

votes


















1












$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






share|cite|improve this answer











$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











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
});


}
});














draft saved

draft discarded


















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









1












$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






share|cite|improve this answer











$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
















1












$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






share|cite|improve this answer











$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














1












1








1





$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






share|cite|improve this answer











$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







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








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


















  • $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


















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.




draft saved


draft discarded














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





















































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

In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...