Given a joint density function, what is the conditional expectation $E[Y|x]$?












1












$begingroup$


The random variables $X$ and $Y$ have the joint density $$f_{X,Y}(x,y)=
left{begin{matrix}e^{-y}, mbox{ } 0leq x leq y le infty
\ 0, mbox{ otherwise}end{matrix}right.$$

Evaluate the conditional expectation $E[Y|x]$.



I'm not sure if I'm doing this correctly. Please let me know if something is off in my solution. Thanks for reading.



My solution:
(My expected value is negative, which I'm pretty sure can never be the case. Also in line 4 and 8, are the domains correct?)



$$E[Y|x] = int_{-infty}^{infty}yf_{Y|X}(y|x)dy.$$



$$f_{Y|X}(y|x) = frac{f_{X,Y}(x,y)}{f_{X}(x)}.$$



$$f_{X}(x) = int_{-infty}^{infty}f_{X,Y}(x,y)dy$$



$$= int_{0}^{infty}e^{-y}dy $$



$$=left [ -e^{-y} right]Big|_0^infty $$



$$ = -e^{-infty}-(-e^{0})=1. $$
$$f_{X}(x) = 1, x geq 0.$$
Thus,



$$E[Y|x] = int_{0}^{infty}-ye^{-y}dy$$



$$= -int_{0}^{infty}ye^{-y}dy$$
After integration by parts,
$$E[Y|x] = left [ ye^{-y}+e^{-y} right]Big|_0^infty$$
$$=0-[e^{0} + 0]=-1$$
Therefore, $E[Y|x] = -1.$



Thanks in advance for reading this long problem and responding!










share|cite|improve this question











$endgroup$












  • $begingroup$
    As usual, your mistake is a consequence of the fact that you do not include the conditions on the joint PDF in the PDF itself. Here, the joint PDF $f_{X,Y}$, defined on the whole plane $mathbb R^2$, is $$f_{X,Y}(x,y)=e^{-y},mathbf 1_{0<x<y}$$ Using this correct formula in the following computations yields automatically the correct result. For example, starting from it, one gets $$f_X(x)=int_mathbb R f_{X,Y}(x,y)dy=mathbf 1_{x>0}int_x^infty e^{-y}dy=e^{-x}mathbf 1_{x>0}$$ Compare with your (flawed) computations.
    $endgroup$
    – Did
    Jan 23 at 9:20








  • 2




    $begingroup$
    Another point: the titles of your questions are systematically uninformative. Please stop the practice of choosing as title the first half of the first sentence of the post and choose instead a title describing what the question asks. For an example, see the revised title of the present question.
    $endgroup$
    – Did
    Jan 23 at 9:30












  • $begingroup$
    Why (re)introduce wrong notations in your title? FYI, $E(Ymid x)$ is meaningless.
    $endgroup$
    – Did
    Jan 25 at 23:33
















1












$begingroup$


The random variables $X$ and $Y$ have the joint density $$f_{X,Y}(x,y)=
left{begin{matrix}e^{-y}, mbox{ } 0leq x leq y le infty
\ 0, mbox{ otherwise}end{matrix}right.$$

Evaluate the conditional expectation $E[Y|x]$.



I'm not sure if I'm doing this correctly. Please let me know if something is off in my solution. Thanks for reading.



My solution:
(My expected value is negative, which I'm pretty sure can never be the case. Also in line 4 and 8, are the domains correct?)



$$E[Y|x] = int_{-infty}^{infty}yf_{Y|X}(y|x)dy.$$



$$f_{Y|X}(y|x) = frac{f_{X,Y}(x,y)}{f_{X}(x)}.$$



$$f_{X}(x) = int_{-infty}^{infty}f_{X,Y}(x,y)dy$$



$$= int_{0}^{infty}e^{-y}dy $$



$$=left [ -e^{-y} right]Big|_0^infty $$



$$ = -e^{-infty}-(-e^{0})=1. $$
$$f_{X}(x) = 1, x geq 0.$$
Thus,



$$E[Y|x] = int_{0}^{infty}-ye^{-y}dy$$



$$= -int_{0}^{infty}ye^{-y}dy$$
After integration by parts,
$$E[Y|x] = left [ ye^{-y}+e^{-y} right]Big|_0^infty$$
$$=0-[e^{0} + 0]=-1$$
Therefore, $E[Y|x] = -1.$



Thanks in advance for reading this long problem and responding!










share|cite|improve this question











$endgroup$












  • $begingroup$
    As usual, your mistake is a consequence of the fact that you do not include the conditions on the joint PDF in the PDF itself. Here, the joint PDF $f_{X,Y}$, defined on the whole plane $mathbb R^2$, is $$f_{X,Y}(x,y)=e^{-y},mathbf 1_{0<x<y}$$ Using this correct formula in the following computations yields automatically the correct result. For example, starting from it, one gets $$f_X(x)=int_mathbb R f_{X,Y}(x,y)dy=mathbf 1_{x>0}int_x^infty e^{-y}dy=e^{-x}mathbf 1_{x>0}$$ Compare with your (flawed) computations.
    $endgroup$
    – Did
    Jan 23 at 9:20








  • 2




    $begingroup$
    Another point: the titles of your questions are systematically uninformative. Please stop the practice of choosing as title the first half of the first sentence of the post and choose instead a title describing what the question asks. For an example, see the revised title of the present question.
    $endgroup$
    – Did
    Jan 23 at 9:30












  • $begingroup$
    Why (re)introduce wrong notations in your title? FYI, $E(Ymid x)$ is meaningless.
    $endgroup$
    – Did
    Jan 25 at 23:33














1












1








1





$begingroup$


The random variables $X$ and $Y$ have the joint density $$f_{X,Y}(x,y)=
left{begin{matrix}e^{-y}, mbox{ } 0leq x leq y le infty
\ 0, mbox{ otherwise}end{matrix}right.$$

Evaluate the conditional expectation $E[Y|x]$.



I'm not sure if I'm doing this correctly. Please let me know if something is off in my solution. Thanks for reading.



My solution:
(My expected value is negative, which I'm pretty sure can never be the case. Also in line 4 and 8, are the domains correct?)



$$E[Y|x] = int_{-infty}^{infty}yf_{Y|X}(y|x)dy.$$



$$f_{Y|X}(y|x) = frac{f_{X,Y}(x,y)}{f_{X}(x)}.$$



$$f_{X}(x) = int_{-infty}^{infty}f_{X,Y}(x,y)dy$$



$$= int_{0}^{infty}e^{-y}dy $$



$$=left [ -e^{-y} right]Big|_0^infty $$



$$ = -e^{-infty}-(-e^{0})=1. $$
$$f_{X}(x) = 1, x geq 0.$$
Thus,



$$E[Y|x] = int_{0}^{infty}-ye^{-y}dy$$



$$= -int_{0}^{infty}ye^{-y}dy$$
After integration by parts,
$$E[Y|x] = left [ ye^{-y}+e^{-y} right]Big|_0^infty$$
$$=0-[e^{0} + 0]=-1$$
Therefore, $E[Y|x] = -1.$



Thanks in advance for reading this long problem and responding!










share|cite|improve this question











$endgroup$




The random variables $X$ and $Y$ have the joint density $$f_{X,Y}(x,y)=
left{begin{matrix}e^{-y}, mbox{ } 0leq x leq y le infty
\ 0, mbox{ otherwise}end{matrix}right.$$

Evaluate the conditional expectation $E[Y|x]$.



I'm not sure if I'm doing this correctly. Please let me know if something is off in my solution. Thanks for reading.



My solution:
(My expected value is negative, which I'm pretty sure can never be the case. Also in line 4 and 8, are the domains correct?)



$$E[Y|x] = int_{-infty}^{infty}yf_{Y|X}(y|x)dy.$$



$$f_{Y|X}(y|x) = frac{f_{X,Y}(x,y)}{f_{X}(x)}.$$



$$f_{X}(x) = int_{-infty}^{infty}f_{X,Y}(x,y)dy$$



$$= int_{0}^{infty}e^{-y}dy $$



$$=left [ -e^{-y} right]Big|_0^infty $$



$$ = -e^{-infty}-(-e^{0})=1. $$
$$f_{X}(x) = 1, x geq 0.$$
Thus,



$$E[Y|x] = int_{0}^{infty}-ye^{-y}dy$$



$$= -int_{0}^{infty}ye^{-y}dy$$
After integration by parts,
$$E[Y|x] = left [ ye^{-y}+e^{-y} right]Big|_0^infty$$
$$=0-[e^{0} + 0]=-1$$
Therefore, $E[Y|x] = -1.$



Thanks in advance for reading this long problem and responding!







probability-theory probability-distributions conditional-expectation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 25 at 20:26







beepboopbeepboop

















asked Jan 23 at 7:40









beepboopbeepboopbeepboopbeepboop

10810




10810












  • $begingroup$
    As usual, your mistake is a consequence of the fact that you do not include the conditions on the joint PDF in the PDF itself. Here, the joint PDF $f_{X,Y}$, defined on the whole plane $mathbb R^2$, is $$f_{X,Y}(x,y)=e^{-y},mathbf 1_{0<x<y}$$ Using this correct formula in the following computations yields automatically the correct result. For example, starting from it, one gets $$f_X(x)=int_mathbb R f_{X,Y}(x,y)dy=mathbf 1_{x>0}int_x^infty e^{-y}dy=e^{-x}mathbf 1_{x>0}$$ Compare with your (flawed) computations.
    $endgroup$
    – Did
    Jan 23 at 9:20








  • 2




    $begingroup$
    Another point: the titles of your questions are systematically uninformative. Please stop the practice of choosing as title the first half of the first sentence of the post and choose instead a title describing what the question asks. For an example, see the revised title of the present question.
    $endgroup$
    – Did
    Jan 23 at 9:30












  • $begingroup$
    Why (re)introduce wrong notations in your title? FYI, $E(Ymid x)$ is meaningless.
    $endgroup$
    – Did
    Jan 25 at 23:33


















  • $begingroup$
    As usual, your mistake is a consequence of the fact that you do not include the conditions on the joint PDF in the PDF itself. Here, the joint PDF $f_{X,Y}$, defined on the whole plane $mathbb R^2$, is $$f_{X,Y}(x,y)=e^{-y},mathbf 1_{0<x<y}$$ Using this correct formula in the following computations yields automatically the correct result. For example, starting from it, one gets $$f_X(x)=int_mathbb R f_{X,Y}(x,y)dy=mathbf 1_{x>0}int_x^infty e^{-y}dy=e^{-x}mathbf 1_{x>0}$$ Compare with your (flawed) computations.
    $endgroup$
    – Did
    Jan 23 at 9:20








  • 2




    $begingroup$
    Another point: the titles of your questions are systematically uninformative. Please stop the practice of choosing as title the first half of the first sentence of the post and choose instead a title describing what the question asks. For an example, see the revised title of the present question.
    $endgroup$
    – Did
    Jan 23 at 9:30












  • $begingroup$
    Why (re)introduce wrong notations in your title? FYI, $E(Ymid x)$ is meaningless.
    $endgroup$
    – Did
    Jan 25 at 23:33
















$begingroup$
As usual, your mistake is a consequence of the fact that you do not include the conditions on the joint PDF in the PDF itself. Here, the joint PDF $f_{X,Y}$, defined on the whole plane $mathbb R^2$, is $$f_{X,Y}(x,y)=e^{-y},mathbf 1_{0<x<y}$$ Using this correct formula in the following computations yields automatically the correct result. For example, starting from it, one gets $$f_X(x)=int_mathbb R f_{X,Y}(x,y)dy=mathbf 1_{x>0}int_x^infty e^{-y}dy=e^{-x}mathbf 1_{x>0}$$ Compare with your (flawed) computations.
$endgroup$
– Did
Jan 23 at 9:20






$begingroup$
As usual, your mistake is a consequence of the fact that you do not include the conditions on the joint PDF in the PDF itself. Here, the joint PDF $f_{X,Y}$, defined on the whole plane $mathbb R^2$, is $$f_{X,Y}(x,y)=e^{-y},mathbf 1_{0<x<y}$$ Using this correct formula in the following computations yields automatically the correct result. For example, starting from it, one gets $$f_X(x)=int_mathbb R f_{X,Y}(x,y)dy=mathbf 1_{x>0}int_x^infty e^{-y}dy=e^{-x}mathbf 1_{x>0}$$ Compare with your (flawed) computations.
$endgroup$
– Did
Jan 23 at 9:20






2




2




$begingroup$
Another point: the titles of your questions are systematically uninformative. Please stop the practice of choosing as title the first half of the first sentence of the post and choose instead a title describing what the question asks. For an example, see the revised title of the present question.
$endgroup$
– Did
Jan 23 at 9:30






$begingroup$
Another point: the titles of your questions are systematically uninformative. Please stop the practice of choosing as title the first half of the first sentence of the post and choose instead a title describing what the question asks. For an example, see the revised title of the present question.
$endgroup$
– Did
Jan 23 at 9:30














$begingroup$
Why (re)introduce wrong notations in your title? FYI, $E(Ymid x)$ is meaningless.
$endgroup$
– Did
Jan 25 at 23:33




$begingroup$
Why (re)introduce wrong notations in your title? FYI, $E(Ymid x)$ is meaningless.
$endgroup$
– Did
Jan 25 at 23:33










2 Answers
2






active

oldest

votes


















1












$begingroup$

The limits in your fourth line are wrong since you know the joint density is $0$ unless $0leq x leq y le infty$ so it should be $$f_{X}(x) = int_{x}^{infty}e^{-y}dy , mbox{ } 0leq x le infty $$ leading to $$f_{X}(x)=
left{begin{matrix}e^{-x}, mbox{ } 0leq x le infty
\ 0, mbox{ otherwise}end{matrix}right.$$



That will then give you



$$f_{Y mid X=x}(y)=
left{begin{matrix}dfrac{e^{-y}}{e^{-x}}, mbox{ } 0leq x leq y le infty
\ 0, mbox{ otherwise}end{matrix}right.$$
and $$E[Y mid X=x]=
int_{x}^{infty}yfrac{e^{-y}}{e^{-x}}dy = x+1$$



which is an example of the memorylessness property of the exponential distribution






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Thank you, Henry!
    $endgroup$
    – beepboopbeepboop
    Jan 23 at 19:54



















-1












$begingroup$

Yes, that negative expected value is absurd and a sign you did something wrong.




$$f_X(x) = int_0^{infty} e^{-y},dy$$




This line is the first mistake. The density function is zero unless $yge x$, so that should be $int_x^{infty}$ instead, and the probability you're dividing by will depend on $x$ - in a way that makes it a single-variable density. A constant density of $1$ on $[0,infty)$ for $f_X(x)$ is also an absurdity you could have caught.




$$E(Y|x) = int_0^infty -ye^{-y},dy$$




All right, this should be divided by what we just got for $f_X$ - but that's not the only problem. How, exactly, did a minus sign appear here out of nowhere? The integrand should be a probability density function times $y$, and densities are nonnegative.



Also, again, this will be an integral from $x$ to $infty$, as the density is zero unless $y ge x$.



Oh, and here's a neat interpretation of this distribution: Choose $x$ and $z$ independently from exponential distributions of parameter $1$, and then let $y=x+z$.






share|cite|improve this answer









$endgroup$













    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%2f3084195%2fgiven-a-joint-density-function-what-is-the-conditional-expectation-eyx%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1












    $begingroup$

    The limits in your fourth line are wrong since you know the joint density is $0$ unless $0leq x leq y le infty$ so it should be $$f_{X}(x) = int_{x}^{infty}e^{-y}dy , mbox{ } 0leq x le infty $$ leading to $$f_{X}(x)=
    left{begin{matrix}e^{-x}, mbox{ } 0leq x le infty
    \ 0, mbox{ otherwise}end{matrix}right.$$



    That will then give you



    $$f_{Y mid X=x}(y)=
    left{begin{matrix}dfrac{e^{-y}}{e^{-x}}, mbox{ } 0leq x leq y le infty
    \ 0, mbox{ otherwise}end{matrix}right.$$
    and $$E[Y mid X=x]=
    int_{x}^{infty}yfrac{e^{-y}}{e^{-x}}dy = x+1$$



    which is an example of the memorylessness property of the exponential distribution






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      Thank you, Henry!
      $endgroup$
      – beepboopbeepboop
      Jan 23 at 19:54
















    1












    $begingroup$

    The limits in your fourth line are wrong since you know the joint density is $0$ unless $0leq x leq y le infty$ so it should be $$f_{X}(x) = int_{x}^{infty}e^{-y}dy , mbox{ } 0leq x le infty $$ leading to $$f_{X}(x)=
    left{begin{matrix}e^{-x}, mbox{ } 0leq x le infty
    \ 0, mbox{ otherwise}end{matrix}right.$$



    That will then give you



    $$f_{Y mid X=x}(y)=
    left{begin{matrix}dfrac{e^{-y}}{e^{-x}}, mbox{ } 0leq x leq y le infty
    \ 0, mbox{ otherwise}end{matrix}right.$$
    and $$E[Y mid X=x]=
    int_{x}^{infty}yfrac{e^{-y}}{e^{-x}}dy = x+1$$



    which is an example of the memorylessness property of the exponential distribution






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      Thank you, Henry!
      $endgroup$
      – beepboopbeepboop
      Jan 23 at 19:54














    1












    1








    1





    $begingroup$

    The limits in your fourth line are wrong since you know the joint density is $0$ unless $0leq x leq y le infty$ so it should be $$f_{X}(x) = int_{x}^{infty}e^{-y}dy , mbox{ } 0leq x le infty $$ leading to $$f_{X}(x)=
    left{begin{matrix}e^{-x}, mbox{ } 0leq x le infty
    \ 0, mbox{ otherwise}end{matrix}right.$$



    That will then give you



    $$f_{Y mid X=x}(y)=
    left{begin{matrix}dfrac{e^{-y}}{e^{-x}}, mbox{ } 0leq x leq y le infty
    \ 0, mbox{ otherwise}end{matrix}right.$$
    and $$E[Y mid X=x]=
    int_{x}^{infty}yfrac{e^{-y}}{e^{-x}}dy = x+1$$



    which is an example of the memorylessness property of the exponential distribution






    share|cite|improve this answer











    $endgroup$



    The limits in your fourth line are wrong since you know the joint density is $0$ unless $0leq x leq y le infty$ so it should be $$f_{X}(x) = int_{x}^{infty}e^{-y}dy , mbox{ } 0leq x le infty $$ leading to $$f_{X}(x)=
    left{begin{matrix}e^{-x}, mbox{ } 0leq x le infty
    \ 0, mbox{ otherwise}end{matrix}right.$$



    That will then give you



    $$f_{Y mid X=x}(y)=
    left{begin{matrix}dfrac{e^{-y}}{e^{-x}}, mbox{ } 0leq x leq y le infty
    \ 0, mbox{ otherwise}end{matrix}right.$$
    and $$E[Y mid X=x]=
    int_{x}^{infty}yfrac{e^{-y}}{e^{-x}}dy = x+1$$



    which is an example of the memorylessness property of the exponential distribution







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Jan 23 at 8:15

























    answered Jan 23 at 8:03









    HenryHenry

    101k481168




    101k481168












    • $begingroup$
      Thank you, Henry!
      $endgroup$
      – beepboopbeepboop
      Jan 23 at 19:54


















    • $begingroup$
      Thank you, Henry!
      $endgroup$
      – beepboopbeepboop
      Jan 23 at 19:54
















    $begingroup$
    Thank you, Henry!
    $endgroup$
    – beepboopbeepboop
    Jan 23 at 19:54




    $begingroup$
    Thank you, Henry!
    $endgroup$
    – beepboopbeepboop
    Jan 23 at 19:54











    -1












    $begingroup$

    Yes, that negative expected value is absurd and a sign you did something wrong.




    $$f_X(x) = int_0^{infty} e^{-y},dy$$




    This line is the first mistake. The density function is zero unless $yge x$, so that should be $int_x^{infty}$ instead, and the probability you're dividing by will depend on $x$ - in a way that makes it a single-variable density. A constant density of $1$ on $[0,infty)$ for $f_X(x)$ is also an absurdity you could have caught.




    $$E(Y|x) = int_0^infty -ye^{-y},dy$$




    All right, this should be divided by what we just got for $f_X$ - but that's not the only problem. How, exactly, did a minus sign appear here out of nowhere? The integrand should be a probability density function times $y$, and densities are nonnegative.



    Also, again, this will be an integral from $x$ to $infty$, as the density is zero unless $y ge x$.



    Oh, and here's a neat interpretation of this distribution: Choose $x$ and $z$ independently from exponential distributions of parameter $1$, and then let $y=x+z$.






    share|cite|improve this answer









    $endgroup$


















      -1












      $begingroup$

      Yes, that negative expected value is absurd and a sign you did something wrong.




      $$f_X(x) = int_0^{infty} e^{-y},dy$$




      This line is the first mistake. The density function is zero unless $yge x$, so that should be $int_x^{infty}$ instead, and the probability you're dividing by will depend on $x$ - in a way that makes it a single-variable density. A constant density of $1$ on $[0,infty)$ for $f_X(x)$ is also an absurdity you could have caught.




      $$E(Y|x) = int_0^infty -ye^{-y},dy$$




      All right, this should be divided by what we just got for $f_X$ - but that's not the only problem. How, exactly, did a minus sign appear here out of nowhere? The integrand should be a probability density function times $y$, and densities are nonnegative.



      Also, again, this will be an integral from $x$ to $infty$, as the density is zero unless $y ge x$.



      Oh, and here's a neat interpretation of this distribution: Choose $x$ and $z$ independently from exponential distributions of parameter $1$, and then let $y=x+z$.






      share|cite|improve this answer









      $endgroup$
















        -1












        -1








        -1





        $begingroup$

        Yes, that negative expected value is absurd and a sign you did something wrong.




        $$f_X(x) = int_0^{infty} e^{-y},dy$$




        This line is the first mistake. The density function is zero unless $yge x$, so that should be $int_x^{infty}$ instead, and the probability you're dividing by will depend on $x$ - in a way that makes it a single-variable density. A constant density of $1$ on $[0,infty)$ for $f_X(x)$ is also an absurdity you could have caught.




        $$E(Y|x) = int_0^infty -ye^{-y},dy$$




        All right, this should be divided by what we just got for $f_X$ - but that's not the only problem. How, exactly, did a minus sign appear here out of nowhere? The integrand should be a probability density function times $y$, and densities are nonnegative.



        Also, again, this will be an integral from $x$ to $infty$, as the density is zero unless $y ge x$.



        Oh, and here's a neat interpretation of this distribution: Choose $x$ and $z$ independently from exponential distributions of parameter $1$, and then let $y=x+z$.






        share|cite|improve this answer









        $endgroup$



        Yes, that negative expected value is absurd and a sign you did something wrong.




        $$f_X(x) = int_0^{infty} e^{-y},dy$$




        This line is the first mistake. The density function is zero unless $yge x$, so that should be $int_x^{infty}$ instead, and the probability you're dividing by will depend on $x$ - in a way that makes it a single-variable density. A constant density of $1$ on $[0,infty)$ for $f_X(x)$ is also an absurdity you could have caught.




        $$E(Y|x) = int_0^infty -ye^{-y},dy$$




        All right, this should be divided by what we just got for $f_X$ - but that's not the only problem. How, exactly, did a minus sign appear here out of nowhere? The integrand should be a probability density function times $y$, and densities are nonnegative.



        Also, again, this will be an integral from $x$ to $infty$, as the density is zero unless $y ge x$.



        Oh, and here's a neat interpretation of this distribution: Choose $x$ and $z$ independently from exponential distributions of parameter $1$, and then let $y=x+z$.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 23 at 8:15









        jmerryjmerry

        13.6k1629




        13.6k1629






























            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%2f3084195%2fgiven-a-joint-density-function-what-is-the-conditional-expectation-eyx%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

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            Npm cannot find a required file even through it is in the searched directory