Expectation of a function of two random variables

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












This is a question 2c from here. Solutions here.



Essentially $X$ is an RV of the amount we take to the casino on any given night (less than 40 dollars) and we can show: $$f_X(x) = fracx800$$ and $Y$ is an RV of money we have on leaving the casino, uniform on $[0, 2X]$.



$Z=Y-X$ is an RV of the profit we make on any given night. The question as given is to find $E[Z]$.



Note that: $$f_Z(z) = frac12x$$ and is bounded between $-x$ and $x$.



In the solution we use:



$$f_X,Z(z,x) = f_X(x),f_Z mid X(z mid x)=frac11600$$ and then integrate:



$$ f_Z(z) = int_x=mid z mid^x=40frac11600 , dx $$



to get $E[Z]$.



I have two questions:



  1. Methodology wise this is fine though we didn't use $Y$ in the solution... I guess this is just a choice to make it simpler given $f_Z(z)$ turns out to be a nice function with terms cancelling?

  2. I'm confused by the lower bound on the integral of $x=mid z mid$. I get that we can't take less money to the casino than profit we make but I missed this first time around and it doesn't feel natural to define the $x$ limits in terms of $z$ given we have just defined $Z$ in terms of $X$. My guess is that it's due to $f_Z mid X(z mid x)$ only having +ve probability for $x>mid z mid$.

Any clearing up of this confusion (and slight circular feeling I'm having) would be greatly appreciated.



Thanks,



Mark







share|cite|improve this question

























    up vote
    0
    down vote

    favorite












    This is a question 2c from here. Solutions here.



    Essentially $X$ is an RV of the amount we take to the casino on any given night (less than 40 dollars) and we can show: $$f_X(x) = fracx800$$ and $Y$ is an RV of money we have on leaving the casino, uniform on $[0, 2X]$.



    $Z=Y-X$ is an RV of the profit we make on any given night. The question as given is to find $E[Z]$.



    Note that: $$f_Z(z) = frac12x$$ and is bounded between $-x$ and $x$.



    In the solution we use:



    $$f_X,Z(z,x) = f_X(x),f_Z mid X(z mid x)=frac11600$$ and then integrate:



    $$ f_Z(z) = int_x=mid z mid^x=40frac11600 , dx $$



    to get $E[Z]$.



    I have two questions:



    1. Methodology wise this is fine though we didn't use $Y$ in the solution... I guess this is just a choice to make it simpler given $f_Z(z)$ turns out to be a nice function with terms cancelling?

    2. I'm confused by the lower bound on the integral of $x=mid z mid$. I get that we can't take less money to the casino than profit we make but I missed this first time around and it doesn't feel natural to define the $x$ limits in terms of $z$ given we have just defined $Z$ in terms of $X$. My guess is that it's due to $f_Z mid X(z mid x)$ only having +ve probability for $x>mid z mid$.

    Any clearing up of this confusion (and slight circular feeling I'm having) would be greatly appreciated.



    Thanks,



    Mark







    share|cite|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      This is a question 2c from here. Solutions here.



      Essentially $X$ is an RV of the amount we take to the casino on any given night (less than 40 dollars) and we can show: $$f_X(x) = fracx800$$ and $Y$ is an RV of money we have on leaving the casino, uniform on $[0, 2X]$.



      $Z=Y-X$ is an RV of the profit we make on any given night. The question as given is to find $E[Z]$.



      Note that: $$f_Z(z) = frac12x$$ and is bounded between $-x$ and $x$.



      In the solution we use:



      $$f_X,Z(z,x) = f_X(x),f_Z mid X(z mid x)=frac11600$$ and then integrate:



      $$ f_Z(z) = int_x=mid z mid^x=40frac11600 , dx $$



      to get $E[Z]$.



      I have two questions:



      1. Methodology wise this is fine though we didn't use $Y$ in the solution... I guess this is just a choice to make it simpler given $f_Z(z)$ turns out to be a nice function with terms cancelling?

      2. I'm confused by the lower bound on the integral of $x=mid z mid$. I get that we can't take less money to the casino than profit we make but I missed this first time around and it doesn't feel natural to define the $x$ limits in terms of $z$ given we have just defined $Z$ in terms of $X$. My guess is that it's due to $f_Z mid X(z mid x)$ only having +ve probability for $x>mid z mid$.

      Any clearing up of this confusion (and slight circular feeling I'm having) would be greatly appreciated.



      Thanks,



      Mark







      share|cite|improve this question













      This is a question 2c from here. Solutions here.



      Essentially $X$ is an RV of the amount we take to the casino on any given night (less than 40 dollars) and we can show: $$f_X(x) = fracx800$$ and $Y$ is an RV of money we have on leaving the casino, uniform on $[0, 2X]$.



      $Z=Y-X$ is an RV of the profit we make on any given night. The question as given is to find $E[Z]$.



      Note that: $$f_Z(z) = frac12x$$ and is bounded between $-x$ and $x$.



      In the solution we use:



      $$f_X,Z(z,x) = f_X(x),f_Z mid X(z mid x)=frac11600$$ and then integrate:



      $$ f_Z(z) = int_x=mid z mid^x=40frac11600 , dx $$



      to get $E[Z]$.



      I have two questions:



      1. Methodology wise this is fine though we didn't use $Y$ in the solution... I guess this is just a choice to make it simpler given $f_Z(z)$ turns out to be a nice function with terms cancelling?

      2. I'm confused by the lower bound on the integral of $x=mid z mid$. I get that we can't take less money to the casino than profit we make but I missed this first time around and it doesn't feel natural to define the $x$ limits in terms of $z$ given we have just defined $Z$ in terms of $X$. My guess is that it's due to $f_Z mid X(z mid x)$ only having +ve probability for $x>mid z mid$.

      Any clearing up of this confusion (and slight circular feeling I'm having) would be greatly appreciated.



      Thanks,



      Mark









      share|cite|improve this question












      share|cite|improve this question




      share|cite|improve this question








      edited Aug 6 at 8:43
























      asked Aug 6 at 8:37









      maw501

      336




      336




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          1) Methodology wise, you do use $Y$, just a bit indirectly.



          2) That is also how you determine the bounds.



          Because $Z=Y-X$, and $Ymid Xsim mathcal U[0;2X]$ therefore $Zmid X ~sim~mathcal U[-X;X]$, so ...



          $$f_Zmid X(z)=tfrac 12xmathbf 1_zin[-x;x]$$



          Because $Z=Y-X$, and $(X,Y)in (x,y): 0leq xleq 40, 0leq yleq 2x$ therefore $(X,Z)in(x,z):0leq xleq 40,-xleq zleq x$, so...



          $$(X,Z)in(x,z):-40leq zleq 40~, -zleq x~, zleq xleq 40$$



          Putting this together, since $lvert zrvert =max(-z,z)$.... $$beginsplitf_Z(z) &= int_Bbb R f_Zmid X(zmid x)~f_X(x)~mathrm d x \&=int_lvert zrvert^40dfrac 12x~dfrac x800~mathbf 1_zin[-40,40]~mathrm d xendsplit$$




          PS: $mathsf E(Z)=mathsf E(mathsf E(Zmid X))=mathsf E(0)$






          share|cite|improve this answer























            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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            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%2f2873700%2fexpectation-of-a-function-of-two-random-variables%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            1) Methodology wise, you do use $Y$, just a bit indirectly.



            2) That is also how you determine the bounds.



            Because $Z=Y-X$, and $Ymid Xsim mathcal U[0;2X]$ therefore $Zmid X ~sim~mathcal U[-X;X]$, so ...



            $$f_Zmid X(z)=tfrac 12xmathbf 1_zin[-x;x]$$



            Because $Z=Y-X$, and $(X,Y)in (x,y): 0leq xleq 40, 0leq yleq 2x$ therefore $(X,Z)in(x,z):0leq xleq 40,-xleq zleq x$, so...



            $$(X,Z)in(x,z):-40leq zleq 40~, -zleq x~, zleq xleq 40$$



            Putting this together, since $lvert zrvert =max(-z,z)$.... $$beginsplitf_Z(z) &= int_Bbb R f_Zmid X(zmid x)~f_X(x)~mathrm d x \&=int_lvert zrvert^40dfrac 12x~dfrac x800~mathbf 1_zin[-40,40]~mathrm d xendsplit$$




            PS: $mathsf E(Z)=mathsf E(mathsf E(Zmid X))=mathsf E(0)$






            share|cite|improve this answer



























              up vote
              1
              down vote













              1) Methodology wise, you do use $Y$, just a bit indirectly.



              2) That is also how you determine the bounds.



              Because $Z=Y-X$, and $Ymid Xsim mathcal U[0;2X]$ therefore $Zmid X ~sim~mathcal U[-X;X]$, so ...



              $$f_Zmid X(z)=tfrac 12xmathbf 1_zin[-x;x]$$



              Because $Z=Y-X$, and $(X,Y)in (x,y): 0leq xleq 40, 0leq yleq 2x$ therefore $(X,Z)in(x,z):0leq xleq 40,-xleq zleq x$, so...



              $$(X,Z)in(x,z):-40leq zleq 40~, -zleq x~, zleq xleq 40$$



              Putting this together, since $lvert zrvert =max(-z,z)$.... $$beginsplitf_Z(z) &= int_Bbb R f_Zmid X(zmid x)~f_X(x)~mathrm d x \&=int_lvert zrvert^40dfrac 12x~dfrac x800~mathbf 1_zin[-40,40]~mathrm d xendsplit$$




              PS: $mathsf E(Z)=mathsf E(mathsf E(Zmid X))=mathsf E(0)$






              share|cite|improve this answer

























                up vote
                1
                down vote










                up vote
                1
                down vote









                1) Methodology wise, you do use $Y$, just a bit indirectly.



                2) That is also how you determine the bounds.



                Because $Z=Y-X$, and $Ymid Xsim mathcal U[0;2X]$ therefore $Zmid X ~sim~mathcal U[-X;X]$, so ...



                $$f_Zmid X(z)=tfrac 12xmathbf 1_zin[-x;x]$$



                Because $Z=Y-X$, and $(X,Y)in (x,y): 0leq xleq 40, 0leq yleq 2x$ therefore $(X,Z)in(x,z):0leq xleq 40,-xleq zleq x$, so...



                $$(X,Z)in(x,z):-40leq zleq 40~, -zleq x~, zleq xleq 40$$



                Putting this together, since $lvert zrvert =max(-z,z)$.... $$beginsplitf_Z(z) &= int_Bbb R f_Zmid X(zmid x)~f_X(x)~mathrm d x \&=int_lvert zrvert^40dfrac 12x~dfrac x800~mathbf 1_zin[-40,40]~mathrm d xendsplit$$




                PS: $mathsf E(Z)=mathsf E(mathsf E(Zmid X))=mathsf E(0)$






                share|cite|improve this answer















                1) Methodology wise, you do use $Y$, just a bit indirectly.



                2) That is also how you determine the bounds.



                Because $Z=Y-X$, and $Ymid Xsim mathcal U[0;2X]$ therefore $Zmid X ~sim~mathcal U[-X;X]$, so ...



                $$f_Zmid X(z)=tfrac 12xmathbf 1_zin[-x;x]$$



                Because $Z=Y-X$, and $(X,Y)in (x,y): 0leq xleq 40, 0leq yleq 2x$ therefore $(X,Z)in(x,z):0leq xleq 40,-xleq zleq x$, so...



                $$(X,Z)in(x,z):-40leq zleq 40~, -zleq x~, zleq xleq 40$$



                Putting this together, since $lvert zrvert =max(-z,z)$.... $$beginsplitf_Z(z) &= int_Bbb R f_Zmid X(zmid x)~f_X(x)~mathrm d x \&=int_lvert zrvert^40dfrac 12x~dfrac x800~mathbf 1_zin[-40,40]~mathrm d xendsplit$$




                PS: $mathsf E(Z)=mathsf E(mathsf E(Zmid X))=mathsf E(0)$







                share|cite|improve this answer















                share|cite|improve this answer



                share|cite|improve this answer








                edited Aug 6 at 9:44


























                answered Aug 6 at 9:38









                Graham Kemp

                80.1k43275




                80.1k43275






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873700%2fexpectation-of-a-function-of-two-random-variables%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What is the equation of a 3D cone with generalised tilt?

                    Color the edges and diagonals of a regular polygon

                    Relationship between determinant of matrix and determinant of adjoint?