Finding the Conditional Distribution of a Random Variable Given Another Random Variable of a Different...











up vote
3
down vote

favorite
1












This is the problem i'm currently tackling from my textbook:




Let $P$ have a uniform distribution on $[0,1]$, and, conditional on $P=p$, let $X$ have a Bernoulli distribution with parameter $p$. Find the conditional distribution of $P$ given $X$.




However, while I would be grateful for the solution to this question as a means to check when I (hopefully) finish the question. I'm more interested in the general approach to questions like these. Something of the sort: Let $X$ have a [distribution], conditional on $X=x$, let $Y$ have a [different distribution]. Find the conditional distribution of $X$ given $Y$.



Maybe i'm being too vague, but is there a general/systematic approach to these sort of questions? Like, I know that we can have it so that:



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



but then what would you do afterwards and how would you get a solution from that? Would you just sub in the appropriate density into $f_Y(y)$, e.g. if $Y$ had an exponential distribution, would $f_Y(y)=λe^{-λy}$? And what would you do with the joint distribution?



I hope what i'm saying makes sense...please let me know if there's anything I should clarify.










share|cite|improve this question









New contributor




BoilingKettle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • This is a mix of continuous and discrete. $$f_{P|X=x}(p|X=x) = frac{P[X=x|P=p]f_P(p)}{P[X=x]}$$ and $P[X=x] = int_{-infty}^{infty} P[X=x|P=p]f_P(p)dp$
    – Michael
    yesterday

















up vote
3
down vote

favorite
1












This is the problem i'm currently tackling from my textbook:




Let $P$ have a uniform distribution on $[0,1]$, and, conditional on $P=p$, let $X$ have a Bernoulli distribution with parameter $p$. Find the conditional distribution of $P$ given $X$.




However, while I would be grateful for the solution to this question as a means to check when I (hopefully) finish the question. I'm more interested in the general approach to questions like these. Something of the sort: Let $X$ have a [distribution], conditional on $X=x$, let $Y$ have a [different distribution]. Find the conditional distribution of $X$ given $Y$.



Maybe i'm being too vague, but is there a general/systematic approach to these sort of questions? Like, I know that we can have it so that:



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



but then what would you do afterwards and how would you get a solution from that? Would you just sub in the appropriate density into $f_Y(y)$, e.g. if $Y$ had an exponential distribution, would $f_Y(y)=λe^{-λy}$? And what would you do with the joint distribution?



I hope what i'm saying makes sense...please let me know if there's anything I should clarify.










share|cite|improve this question









New contributor




BoilingKettle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • This is a mix of continuous and discrete. $$f_{P|X=x}(p|X=x) = frac{P[X=x|P=p]f_P(p)}{P[X=x]}$$ and $P[X=x] = int_{-infty}^{infty} P[X=x|P=p]f_P(p)dp$
    – Michael
    yesterday















up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





This is the problem i'm currently tackling from my textbook:




Let $P$ have a uniform distribution on $[0,1]$, and, conditional on $P=p$, let $X$ have a Bernoulli distribution with parameter $p$. Find the conditional distribution of $P$ given $X$.




However, while I would be grateful for the solution to this question as a means to check when I (hopefully) finish the question. I'm more interested in the general approach to questions like these. Something of the sort: Let $X$ have a [distribution], conditional on $X=x$, let $Y$ have a [different distribution]. Find the conditional distribution of $X$ given $Y$.



Maybe i'm being too vague, but is there a general/systematic approach to these sort of questions? Like, I know that we can have it so that:



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



but then what would you do afterwards and how would you get a solution from that? Would you just sub in the appropriate density into $f_Y(y)$, e.g. if $Y$ had an exponential distribution, would $f_Y(y)=λe^{-λy}$? And what would you do with the joint distribution?



I hope what i'm saying makes sense...please let me know if there's anything I should clarify.










share|cite|improve this question









New contributor




BoilingKettle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











This is the problem i'm currently tackling from my textbook:




Let $P$ have a uniform distribution on $[0,1]$, and, conditional on $P=p$, let $X$ have a Bernoulli distribution with parameter $p$. Find the conditional distribution of $P$ given $X$.




However, while I would be grateful for the solution to this question as a means to check when I (hopefully) finish the question. I'm more interested in the general approach to questions like these. Something of the sort: Let $X$ have a [distribution], conditional on $X=x$, let $Y$ have a [different distribution]. Find the conditional distribution of $X$ given $Y$.



Maybe i'm being too vague, but is there a general/systematic approach to these sort of questions? Like, I know that we can have it so that:



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



but then what would you do afterwards and how would you get a solution from that? Would you just sub in the appropriate density into $f_Y(y)$, e.g. if $Y$ had an exponential distribution, would $f_Y(y)=λe^{-λy}$? And what would you do with the joint distribution?



I hope what i'm saying makes sense...please let me know if there's anything I should clarify.







probability probability-distributions conditional-probability






share|cite|improve this question









New contributor




BoilingKettle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question









New contributor




BoilingKettle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question








edited yesterday









user10354138

5,984522




5,984522






New contributor




BoilingKettle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









BoilingKettle

162




162




New contributor




BoilingKettle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





BoilingKettle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






BoilingKettle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • This is a mix of continuous and discrete. $$f_{P|X=x}(p|X=x) = frac{P[X=x|P=p]f_P(p)}{P[X=x]}$$ and $P[X=x] = int_{-infty}^{infty} P[X=x|P=p]f_P(p)dp$
    – Michael
    yesterday




















  • This is a mix of continuous and discrete. $$f_{P|X=x}(p|X=x) = frac{P[X=x|P=p]f_P(p)}{P[X=x]}$$ and $P[X=x] = int_{-infty}^{infty} P[X=x|P=p]f_P(p)dp$
    – Michael
    yesterday


















This is a mix of continuous and discrete. $$f_{P|X=x}(p|X=x) = frac{P[X=x|P=p]f_P(p)}{P[X=x]}$$ and $P[X=x] = int_{-infty}^{infty} P[X=x|P=p]f_P(p)dp$
– Michael
yesterday






This is a mix of continuous and discrete. $$f_{P|X=x}(p|X=x) = frac{P[X=x|P=p]f_P(p)}{P[X=x]}$$ and $P[X=x] = int_{-infty}^{infty} P[X=x|P=p]f_P(p)dp$
– Michael
yesterday












1 Answer
1






active

oldest

votes

















up vote
0
down vote














  1. We have
    $$ Xsim f_X$$
    and
    $$ Y|X=x sim f_{Y|X}(cdot|x).$$
    We want
    $$ X|Y=ysim f_{X|Y}(cdot|y)=?$$


  2. We know
    $$ f_{X|Y=y}(cdot|y)=frac{f_{X,Y}(cdot,y)}{f_Y(y)}.$$
    It is enough to determine the joint distribution.


  3. Of (1) we have
    $$ f_{X,Y}(x,cdot)= f_{Y|X=x}(cdot)f_X(x).$$







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


    }
    });






    BoilingKettle is a new contributor. Be nice, and check out our Code of Conduct.










     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2993438%2ffinding-the-conditional-distribution-of-a-random-variable-given-another-random-v%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
    0
    down vote














    1. We have
      $$ Xsim f_X$$
      and
      $$ Y|X=x sim f_{Y|X}(cdot|x).$$
      We want
      $$ X|Y=ysim f_{X|Y}(cdot|y)=?$$


    2. We know
      $$ f_{X|Y=y}(cdot|y)=frac{f_{X,Y}(cdot,y)}{f_Y(y)}.$$
      It is enough to determine the joint distribution.


    3. Of (1) we have
      $$ f_{X,Y}(x,cdot)= f_{Y|X=x}(cdot)f_X(x).$$







    share|cite|improve this answer

























      up vote
      0
      down vote














      1. We have
        $$ Xsim f_X$$
        and
        $$ Y|X=x sim f_{Y|X}(cdot|x).$$
        We want
        $$ X|Y=ysim f_{X|Y}(cdot|y)=?$$


      2. We know
        $$ f_{X|Y=y}(cdot|y)=frac{f_{X,Y}(cdot,y)}{f_Y(y)}.$$
        It is enough to determine the joint distribution.


      3. Of (1) we have
        $$ f_{X,Y}(x,cdot)= f_{Y|X=x}(cdot)f_X(x).$$







      share|cite|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote










        1. We have
          $$ Xsim f_X$$
          and
          $$ Y|X=x sim f_{Y|X}(cdot|x).$$
          We want
          $$ X|Y=ysim f_{X|Y}(cdot|y)=?$$


        2. We know
          $$ f_{X|Y=y}(cdot|y)=frac{f_{X,Y}(cdot,y)}{f_Y(y)}.$$
          It is enough to determine the joint distribution.


        3. Of (1) we have
          $$ f_{X,Y}(x,cdot)= f_{Y|X=x}(cdot)f_X(x).$$







        share|cite|improve this answer













        1. We have
          $$ Xsim f_X$$
          and
          $$ Y|X=x sim f_{Y|X}(cdot|x).$$
          We want
          $$ X|Y=ysim f_{X|Y}(cdot|y)=?$$


        2. We know
          $$ f_{X|Y=y}(cdot|y)=frac{f_{X,Y}(cdot,y)}{f_Y(y)}.$$
          It is enough to determine the joint distribution.


        3. Of (1) we have
          $$ f_{X,Y}(x,cdot)= f_{Y|X=x}(cdot)f_X(x).$$








        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered 1 hour ago









        Daniel Camarena Perez

        39718




        39718






















            BoilingKettle is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            BoilingKettle is a new contributor. Be nice, and check out our Code of Conduct.













            BoilingKettle is a new contributor. Be nice, and check out our Code of Conduct.












            BoilingKettle is a new contributor. Be nice, and check out our Code of Conduct.















             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2993438%2ffinding-the-conditional-distribution-of-a-random-variable-given-another-random-v%23new-answer', 'question_page');
            }
            );

            Post as a guest




















































































            Popular posts from this blog

            mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?