Find $E[Xmid Y]$ where X, Y are random variable

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











up vote
1
down vote

favorite












Let $Y$ a uniform random variable in $[0,1]$, and let $X$ a uniform variable in $[1,e^Y]$



My work



By definition

$E(Xmid Y)=int_xin Axp(xmid y),dx$



Now, I need the function $f(xmid y)$.



By definition, $f(x|y)=fracf(x,y)f_y(y)$



I'm stuck trying to finding $f(x,y)$ and $f_y(y)$. Can someone help me?







share|cite|improve this question

















  • 2




    Hint: $X|Y=y$ is uniformly distributed on $[1,e^y]$.
    – Stan Tendijck
    Jul 14 at 16:30














up vote
1
down vote

favorite












Let $Y$ a uniform random variable in $[0,1]$, and let $X$ a uniform variable in $[1,e^Y]$



My work



By definition

$E(Xmid Y)=int_xin Axp(xmid y),dx$



Now, I need the function $f(xmid y)$.



By definition, $f(x|y)=fracf(x,y)f_y(y)$



I'm stuck trying to finding $f(x,y)$ and $f_y(y)$. Can someone help me?







share|cite|improve this question

















  • 2




    Hint: $X|Y=y$ is uniformly distributed on $[1,e^y]$.
    – Stan Tendijck
    Jul 14 at 16:30












up vote
1
down vote

favorite









up vote
1
down vote

favorite











Let $Y$ a uniform random variable in $[0,1]$, and let $X$ a uniform variable in $[1,e^Y]$



My work



By definition

$E(Xmid Y)=int_xin Axp(xmid y),dx$



Now, I need the function $f(xmid y)$.



By definition, $f(x|y)=fracf(x,y)f_y(y)$



I'm stuck trying to finding $f(x,y)$ and $f_y(y)$. Can someone help me?







share|cite|improve this question













Let $Y$ a uniform random variable in $[0,1]$, and let $X$ a uniform variable in $[1,e^Y]$



My work



By definition

$E(Xmid Y)=int_xin Axp(xmid y),dx$



Now, I need the function $f(xmid y)$.



By definition, $f(x|y)=fracf(x,y)f_y(y)$



I'm stuck trying to finding $f(x,y)$ and $f_y(y)$. Can someone help me?









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 14 at 17:34









Bernard

110k635103




110k635103









asked Jul 14 at 16:18









Bvss12

1,609516




1,609516







  • 2




    Hint: $X|Y=y$ is uniformly distributed on $[1,e^y]$.
    – Stan Tendijck
    Jul 14 at 16:30












  • 2




    Hint: $X|Y=y$ is uniformly distributed on $[1,e^y]$.
    – Stan Tendijck
    Jul 14 at 16:30







2




2




Hint: $X|Y=y$ is uniformly distributed on $[1,e^y]$.
– Stan Tendijck
Jul 14 at 16:30




Hint: $X|Y=y$ is uniformly distributed on $[1,e^y]$.
– Stan Tendijck
Jul 14 at 16:30










2 Answers
2






active

oldest

votes

















up vote
4
down vote













You don't need $f_Y$ nor $f_XY$ here because $f(x|y)$ is given straightfowardly.



You know that $Xsim mathcalU[1,e^Y]$, what (being $Y$ a r.v.) gives actually the conditional density of $X$ given $Y$. In particular, what we know is that if you are aware of the fact that $Y$ gets the value $y$, then $Xsim mathcalU[1,e^y]$.



On the other hand, if you want $f(y|x)$, then you should calculate both $f_X$ and $f_XY$.






share|cite|improve this answer























  • Okay, then $f(x|y)= begincases 0, & x le 1 \ x, & 1 < x le e^Y \ 1, & x > e^Y. endcases$ no? but i don't sure of this, can you review this? thanks!
    – Bvss12
    Jul 14 at 16:42







  • 1




    No, first of all I think you're confusing the Cumulative Distribution Function (CDF) with the Probability Density Function (PDF). That is, $F_X$ and $f_X$. So the density is $$f(x|y)= begincases k & 1 le x le e^y \0 & otherwise,\endcases$$ where $k$ is such that guarantee this integrates to $1$.
    – Alejandro Nasif Salum
    Jul 14 at 17:05







  • 2




    Oh, thanks... sorry. thanks for your answer.
    – Bvss12
    Jul 14 at 17:07

















up vote
0
down vote













$F_y (y) = max(0, min(x, 1))$ by definition of uniform continuous distribution.



The random vector $(X, Y)$ is uniformly distributed on $ 0 leq y leq 1, 1 leq x leq e^y$, that means $$F(x, y) =
begincases
1 & quad textif 1 leq y text and e^y leq x\
e^y - y - 1 & quad textif 0 leq y leq 1 text and e^y leq x\
x(1 - ln x) + (x-1)min(1,y) - 1 & quad textif 1 leq x leq e^y text and 0 leq y\
0 & quad textif x leq 1 text or y leq 0\
endcases $$
This formula comes from the fact that $P(Xleq x, Y leq y) = fracmu( 0 leq z leq min(1, y), 1 leq t leq min(e^z, x))mu((z, t))$






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%2f2851733%2ffind-ex-mid-y-where-x-y-are-random-variable%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote













    You don't need $f_Y$ nor $f_XY$ here because $f(x|y)$ is given straightfowardly.



    You know that $Xsim mathcalU[1,e^Y]$, what (being $Y$ a r.v.) gives actually the conditional density of $X$ given $Y$. In particular, what we know is that if you are aware of the fact that $Y$ gets the value $y$, then $Xsim mathcalU[1,e^y]$.



    On the other hand, if you want $f(y|x)$, then you should calculate both $f_X$ and $f_XY$.






    share|cite|improve this answer























    • Okay, then $f(x|y)= begincases 0, & x le 1 \ x, & 1 < x le e^Y \ 1, & x > e^Y. endcases$ no? but i don't sure of this, can you review this? thanks!
      – Bvss12
      Jul 14 at 16:42







    • 1




      No, first of all I think you're confusing the Cumulative Distribution Function (CDF) with the Probability Density Function (PDF). That is, $F_X$ and $f_X$. So the density is $$f(x|y)= begincases k & 1 le x le e^y \0 & otherwise,\endcases$$ where $k$ is such that guarantee this integrates to $1$.
      – Alejandro Nasif Salum
      Jul 14 at 17:05







    • 2




      Oh, thanks... sorry. thanks for your answer.
      – Bvss12
      Jul 14 at 17:07














    up vote
    4
    down vote













    You don't need $f_Y$ nor $f_XY$ here because $f(x|y)$ is given straightfowardly.



    You know that $Xsim mathcalU[1,e^Y]$, what (being $Y$ a r.v.) gives actually the conditional density of $X$ given $Y$. In particular, what we know is that if you are aware of the fact that $Y$ gets the value $y$, then $Xsim mathcalU[1,e^y]$.



    On the other hand, if you want $f(y|x)$, then you should calculate both $f_X$ and $f_XY$.






    share|cite|improve this answer























    • Okay, then $f(x|y)= begincases 0, & x le 1 \ x, & 1 < x le e^Y \ 1, & x > e^Y. endcases$ no? but i don't sure of this, can you review this? thanks!
      – Bvss12
      Jul 14 at 16:42







    • 1




      No, first of all I think you're confusing the Cumulative Distribution Function (CDF) with the Probability Density Function (PDF). That is, $F_X$ and $f_X$. So the density is $$f(x|y)= begincases k & 1 le x le e^y \0 & otherwise,\endcases$$ where $k$ is such that guarantee this integrates to $1$.
      – Alejandro Nasif Salum
      Jul 14 at 17:05







    • 2




      Oh, thanks... sorry. thanks for your answer.
      – Bvss12
      Jul 14 at 17:07












    up vote
    4
    down vote










    up vote
    4
    down vote









    You don't need $f_Y$ nor $f_XY$ here because $f(x|y)$ is given straightfowardly.



    You know that $Xsim mathcalU[1,e^Y]$, what (being $Y$ a r.v.) gives actually the conditional density of $X$ given $Y$. In particular, what we know is that if you are aware of the fact that $Y$ gets the value $y$, then $Xsim mathcalU[1,e^y]$.



    On the other hand, if you want $f(y|x)$, then you should calculate both $f_X$ and $f_XY$.






    share|cite|improve this answer















    You don't need $f_Y$ nor $f_XY$ here because $f(x|y)$ is given straightfowardly.



    You know that $Xsim mathcalU[1,e^Y]$, what (being $Y$ a r.v.) gives actually the conditional density of $X$ given $Y$. In particular, what we know is that if you are aware of the fact that $Y$ gets the value $y$, then $Xsim mathcalU[1,e^y]$.



    On the other hand, if you want $f(y|x)$, then you should calculate both $f_X$ and $f_XY$.







    share|cite|improve this answer















    share|cite|improve this answer



    share|cite|improve this answer








    edited Jul 26 at 13:43


























    answered Jul 14 at 16:32









    Alejandro Nasif Salum

    3,07617




    3,07617











    • Okay, then $f(x|y)= begincases 0, & x le 1 \ x, & 1 < x le e^Y \ 1, & x > e^Y. endcases$ no? but i don't sure of this, can you review this? thanks!
      – Bvss12
      Jul 14 at 16:42







    • 1




      No, first of all I think you're confusing the Cumulative Distribution Function (CDF) with the Probability Density Function (PDF). That is, $F_X$ and $f_X$. So the density is $$f(x|y)= begincases k & 1 le x le e^y \0 & otherwise,\endcases$$ where $k$ is such that guarantee this integrates to $1$.
      – Alejandro Nasif Salum
      Jul 14 at 17:05







    • 2




      Oh, thanks... sorry. thanks for your answer.
      – Bvss12
      Jul 14 at 17:07
















    • Okay, then $f(x|y)= begincases 0, & x le 1 \ x, & 1 < x le e^Y \ 1, & x > e^Y. endcases$ no? but i don't sure of this, can you review this? thanks!
      – Bvss12
      Jul 14 at 16:42







    • 1




      No, first of all I think you're confusing the Cumulative Distribution Function (CDF) with the Probability Density Function (PDF). That is, $F_X$ and $f_X$. So the density is $$f(x|y)= begincases k & 1 le x le e^y \0 & otherwise,\endcases$$ where $k$ is such that guarantee this integrates to $1$.
      – Alejandro Nasif Salum
      Jul 14 at 17:05







    • 2




      Oh, thanks... sorry. thanks for your answer.
      – Bvss12
      Jul 14 at 17:07















    Okay, then $f(x|y)= begincases 0, & x le 1 \ x, & 1 < x le e^Y \ 1, & x > e^Y. endcases$ no? but i don't sure of this, can you review this? thanks!
    – Bvss12
    Jul 14 at 16:42





    Okay, then $f(x|y)= begincases 0, & x le 1 \ x, & 1 < x le e^Y \ 1, & x > e^Y. endcases$ no? but i don't sure of this, can you review this? thanks!
    – Bvss12
    Jul 14 at 16:42





    1




    1




    No, first of all I think you're confusing the Cumulative Distribution Function (CDF) with the Probability Density Function (PDF). That is, $F_X$ and $f_X$. So the density is $$f(x|y)= begincases k & 1 le x le e^y \0 & otherwise,\endcases$$ where $k$ is such that guarantee this integrates to $1$.
    – Alejandro Nasif Salum
    Jul 14 at 17:05





    No, first of all I think you're confusing the Cumulative Distribution Function (CDF) with the Probability Density Function (PDF). That is, $F_X$ and $f_X$. So the density is $$f(x|y)= begincases k & 1 le x le e^y \0 & otherwise,\endcases$$ where $k$ is such that guarantee this integrates to $1$.
    – Alejandro Nasif Salum
    Jul 14 at 17:05





    2




    2




    Oh, thanks... sorry. thanks for your answer.
    – Bvss12
    Jul 14 at 17:07




    Oh, thanks... sorry. thanks for your answer.
    – Bvss12
    Jul 14 at 17:07










    up vote
    0
    down vote













    $F_y (y) = max(0, min(x, 1))$ by definition of uniform continuous distribution.



    The random vector $(X, Y)$ is uniformly distributed on $ 0 leq y leq 1, 1 leq x leq e^y$, that means $$F(x, y) =
    begincases
    1 & quad textif 1 leq y text and e^y leq x\
    e^y - y - 1 & quad textif 0 leq y leq 1 text and e^y leq x\
    x(1 - ln x) + (x-1)min(1,y) - 1 & quad textif 1 leq x leq e^y text and 0 leq y\
    0 & quad textif x leq 1 text or y leq 0\
    endcases $$
    This formula comes from the fact that $P(Xleq x, Y leq y) = fracmu( 0 leq z leq min(1, y), 1 leq t leq min(e^z, x))mu((z, t))$






    share|cite|improve this answer

























      up vote
      0
      down vote













      $F_y (y) = max(0, min(x, 1))$ by definition of uniform continuous distribution.



      The random vector $(X, Y)$ is uniformly distributed on $ 0 leq y leq 1, 1 leq x leq e^y$, that means $$F(x, y) =
      begincases
      1 & quad textif 1 leq y text and e^y leq x\
      e^y - y - 1 & quad textif 0 leq y leq 1 text and e^y leq x\
      x(1 - ln x) + (x-1)min(1,y) - 1 & quad textif 1 leq x leq e^y text and 0 leq y\
      0 & quad textif x leq 1 text or y leq 0\
      endcases $$
      This formula comes from the fact that $P(Xleq x, Y leq y) = fracmu( 0 leq z leq min(1, y), 1 leq t leq min(e^z, x))mu((z, t))$






      share|cite|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        $F_y (y) = max(0, min(x, 1))$ by definition of uniform continuous distribution.



        The random vector $(X, Y)$ is uniformly distributed on $ 0 leq y leq 1, 1 leq x leq e^y$, that means $$F(x, y) =
        begincases
        1 & quad textif 1 leq y text and e^y leq x\
        e^y - y - 1 & quad textif 0 leq y leq 1 text and e^y leq x\
        x(1 - ln x) + (x-1)min(1,y) - 1 & quad textif 1 leq x leq e^y text and 0 leq y\
        0 & quad textif x leq 1 text or y leq 0\
        endcases $$
        This formula comes from the fact that $P(Xleq x, Y leq y) = fracmu( 0 leq z leq min(1, y), 1 leq t leq min(e^z, x))mu((z, t))$






        share|cite|improve this answer













        $F_y (y) = max(0, min(x, 1))$ by definition of uniform continuous distribution.



        The random vector $(X, Y)$ is uniformly distributed on $ 0 leq y leq 1, 1 leq x leq e^y$, that means $$F(x, y) =
        begincases
        1 & quad textif 1 leq y text and e^y leq x\
        e^y - y - 1 & quad textif 0 leq y leq 1 text and e^y leq x\
        x(1 - ln x) + (x-1)min(1,y) - 1 & quad textif 1 leq x leq e^y text and 0 leq y\
        0 & quad textif x leq 1 text or y leq 0\
        endcases $$
        This formula comes from the fact that $P(Xleq x, Y leq y) = fracmu( 0 leq z leq min(1, y), 1 leq t leq min(e^z, x))mu((z, t))$







        share|cite|improve this answer













        share|cite|improve this answer



        share|cite|improve this answer











        answered Jul 14 at 17:06









        Yanior Weg

        1,0761730




        1,0761730






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2851733%2ffind-ex-mid-y-where-x-y-are-random-variable%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?