Proof of $P(X|Y) = sum_z P(X,z | Y)$ (check my solution)

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











up vote
0
down vote

favorite












Let X,Y,Z be a random variables. Prove that $P(X= x|Y = y) = sum_z P(X= x,Z = z | Y = y)$



First of all on the LHD we know, that $P(X = x|Y = y) = fracP(X = x,Y = y)P(Y = y)$.



The same we can do on the RHD: $sum_z P(X = x,Z = z | Y = y) = fracsum_z P(X = x,Z = z , Y = y)P(Y = y)$



We get: $fracP(X = x,Y = y)P(Y = y) = fracsum_z P(X = x,Z = z , Y = y)P(Y = y)$



$P(X = x,Y =y) = sum_z P(X = x ,Z = z , Y = y)$



then on the RHD we use the chain rule of the probabilities:



$P(X = x,Y = Y) = sum_z P(X = x|Z = z,Y = y) P(Y =y|Z = z) P(Z = z)$



In the case of $sum_z$ $P(Z = z) = 1$ and $P(X = x|Z= z,Y = y) = P(X =x|Y = y)$



I am not sure about $P(Y = y|Z = z)$ but I suppose it's equal to $P(Y = y)$ as well.



Hence we get $P(X = x,Y = y) = P(X = x|Y = Y) P(Y = y)$ which is correct by definition.







share|cite|improve this question





















  • $P(X|z,Y)$: what is this?
    – zoli
    Jul 20 at 9:40











  • What exactly denote $P(Xmid Y)$, $P(X,zmid,Y)$ and $P(Y)$?
    – Vera
    Jul 20 at 9:40











  • @zoli Added the descriprion
    – Daniel Yefimov
    Jul 20 at 9:43










  • @Vera Added the description
    – Daniel Yefimov
    Jul 20 at 9:43










  • I assume that $X$ denotes a random variable, but what is $P(X)$? I am familiar with expressions like $P(X=x)$, $P(Xin B)$ or $P_X$ (standing for the distribution induced by $X$), but not with just $P(X)$ as if the $X$ is a argument of probability measure $P$.
    – Vera
    Jul 20 at 9:47















up vote
0
down vote

favorite












Let X,Y,Z be a random variables. Prove that $P(X= x|Y = y) = sum_z P(X= x,Z = z | Y = y)$



First of all on the LHD we know, that $P(X = x|Y = y) = fracP(X = x,Y = y)P(Y = y)$.



The same we can do on the RHD: $sum_z P(X = x,Z = z | Y = y) = fracsum_z P(X = x,Z = z , Y = y)P(Y = y)$



We get: $fracP(X = x,Y = y)P(Y = y) = fracsum_z P(X = x,Z = z , Y = y)P(Y = y)$



$P(X = x,Y =y) = sum_z P(X = x ,Z = z , Y = y)$



then on the RHD we use the chain rule of the probabilities:



$P(X = x,Y = Y) = sum_z P(X = x|Z = z,Y = y) P(Y =y|Z = z) P(Z = z)$



In the case of $sum_z$ $P(Z = z) = 1$ and $P(X = x|Z= z,Y = y) = P(X =x|Y = y)$



I am not sure about $P(Y = y|Z = z)$ but I suppose it's equal to $P(Y = y)$ as well.



Hence we get $P(X = x,Y = y) = P(X = x|Y = Y) P(Y = y)$ which is correct by definition.







share|cite|improve this question





















  • $P(X|z,Y)$: what is this?
    – zoli
    Jul 20 at 9:40











  • What exactly denote $P(Xmid Y)$, $P(X,zmid,Y)$ and $P(Y)$?
    – Vera
    Jul 20 at 9:40











  • @zoli Added the descriprion
    – Daniel Yefimov
    Jul 20 at 9:43










  • @Vera Added the description
    – Daniel Yefimov
    Jul 20 at 9:43










  • I assume that $X$ denotes a random variable, but what is $P(X)$? I am familiar with expressions like $P(X=x)$, $P(Xin B)$ or $P_X$ (standing for the distribution induced by $X$), but not with just $P(X)$ as if the $X$ is a argument of probability measure $P$.
    – Vera
    Jul 20 at 9:47













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Let X,Y,Z be a random variables. Prove that $P(X= x|Y = y) = sum_z P(X= x,Z = z | Y = y)$



First of all on the LHD we know, that $P(X = x|Y = y) = fracP(X = x,Y = y)P(Y = y)$.



The same we can do on the RHD: $sum_z P(X = x,Z = z | Y = y) = fracsum_z P(X = x,Z = z , Y = y)P(Y = y)$



We get: $fracP(X = x,Y = y)P(Y = y) = fracsum_z P(X = x,Z = z , Y = y)P(Y = y)$



$P(X = x,Y =y) = sum_z P(X = x ,Z = z , Y = y)$



then on the RHD we use the chain rule of the probabilities:



$P(X = x,Y = Y) = sum_z P(X = x|Z = z,Y = y) P(Y =y|Z = z) P(Z = z)$



In the case of $sum_z$ $P(Z = z) = 1$ and $P(X = x|Z= z,Y = y) = P(X =x|Y = y)$



I am not sure about $P(Y = y|Z = z)$ but I suppose it's equal to $P(Y = y)$ as well.



Hence we get $P(X = x,Y = y) = P(X = x|Y = Y) P(Y = y)$ which is correct by definition.







share|cite|improve this question













Let X,Y,Z be a random variables. Prove that $P(X= x|Y = y) = sum_z P(X= x,Z = z | Y = y)$



First of all on the LHD we know, that $P(X = x|Y = y) = fracP(X = x,Y = y)P(Y = y)$.



The same we can do on the RHD: $sum_z P(X = x,Z = z | Y = y) = fracsum_z P(X = x,Z = z , Y = y)P(Y = y)$



We get: $fracP(X = x,Y = y)P(Y = y) = fracsum_z P(X = x,Z = z , Y = y)P(Y = y)$



$P(X = x,Y =y) = sum_z P(X = x ,Z = z , Y = y)$



then on the RHD we use the chain rule of the probabilities:



$P(X = x,Y = Y) = sum_z P(X = x|Z = z,Y = y) P(Y =y|Z = z) P(Z = z)$



In the case of $sum_z$ $P(Z = z) = 1$ and $P(X = x|Z= z,Y = y) = P(X =x|Y = y)$



I am not sure about $P(Y = y|Z = z)$ but I suppose it's equal to $P(Y = y)$ as well.



Hence we get $P(X = x,Y = y) = P(X = x|Y = Y) P(Y = y)$ which is correct by definition.









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 20 at 9:59
























asked Jul 20 at 9:17









Daniel Yefimov

508417




508417











  • $P(X|z,Y)$: what is this?
    – zoli
    Jul 20 at 9:40











  • What exactly denote $P(Xmid Y)$, $P(X,zmid,Y)$ and $P(Y)$?
    – Vera
    Jul 20 at 9:40











  • @zoli Added the descriprion
    – Daniel Yefimov
    Jul 20 at 9:43










  • @Vera Added the description
    – Daniel Yefimov
    Jul 20 at 9:43










  • I assume that $X$ denotes a random variable, but what is $P(X)$? I am familiar with expressions like $P(X=x)$, $P(Xin B)$ or $P_X$ (standing for the distribution induced by $X$), but not with just $P(X)$ as if the $X$ is a argument of probability measure $P$.
    – Vera
    Jul 20 at 9:47

















  • $P(X|z,Y)$: what is this?
    – zoli
    Jul 20 at 9:40











  • What exactly denote $P(Xmid Y)$, $P(X,zmid,Y)$ and $P(Y)$?
    – Vera
    Jul 20 at 9:40











  • @zoli Added the descriprion
    – Daniel Yefimov
    Jul 20 at 9:43










  • @Vera Added the description
    – Daniel Yefimov
    Jul 20 at 9:43










  • I assume that $X$ denotes a random variable, but what is $P(X)$? I am familiar with expressions like $P(X=x)$, $P(Xin B)$ or $P_X$ (standing for the distribution induced by $X$), but not with just $P(X)$ as if the $X$ is a argument of probability measure $P$.
    – Vera
    Jul 20 at 9:47
















$P(X|z,Y)$: what is this?
– zoli
Jul 20 at 9:40





$P(X|z,Y)$: what is this?
– zoli
Jul 20 at 9:40













What exactly denote $P(Xmid Y)$, $P(X,zmid,Y)$ and $P(Y)$?
– Vera
Jul 20 at 9:40





What exactly denote $P(Xmid Y)$, $P(X,zmid,Y)$ and $P(Y)$?
– Vera
Jul 20 at 9:40













@zoli Added the descriprion
– Daniel Yefimov
Jul 20 at 9:43




@zoli Added the descriprion
– Daniel Yefimov
Jul 20 at 9:43












@Vera Added the description
– Daniel Yefimov
Jul 20 at 9:43




@Vera Added the description
– Daniel Yefimov
Jul 20 at 9:43












I assume that $X$ denotes a random variable, but what is $P(X)$? I am familiar with expressions like $P(X=x)$, $P(Xin B)$ or $P_X$ (standing for the distribution induced by $X$), but not with just $P(X)$ as if the $X$ is a argument of probability measure $P$.
– Vera
Jul 20 at 9:47





I assume that $X$ denotes a random variable, but what is $P(X)$? I am familiar with expressions like $P(X=x)$, $P(Xin B)$ or $P_X$ (standing for the distribution induced by $X$), but not with just $P(X)$ as if the $X$ is a argument of probability measure $P$.
– Vera
Jul 20 at 9:47











1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










We have: $$P(X=xmid Y=y)P(Y=y)=P(X=x, Y=y)$$and: $$P(X=x, Z=zmid Y=y)P(Y=y)=P(X=x, Z=z, Y=y)$$So if $P(Y=y)>0$ then proving that: $$P(X=xmid Y=y)=sum_zP(X=x,Z=zmid Y=y)$$ comes to the same as proving that $$P(X=x, Y=y)=sum_zP(X=x, Z=z, Y=z)tag1$$



Here $(1)$ is an immediate consequence of:$$X=x,Y=y=bigcup_z{X=x,Z=z,Y=y)$$(preassuming that $Z$ is a discrete random variable and above $z$ ranges over a countable set that serves as support of $Z$).






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%2f2857453%2fproof-of-pxy-sum-z-px-z-y-check-my-solution%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



    accepted










    We have: $$P(X=xmid Y=y)P(Y=y)=P(X=x, Y=y)$$and: $$P(X=x, Z=zmid Y=y)P(Y=y)=P(X=x, Z=z, Y=y)$$So if $P(Y=y)>0$ then proving that: $$P(X=xmid Y=y)=sum_zP(X=x,Z=zmid Y=y)$$ comes to the same as proving that $$P(X=x, Y=y)=sum_zP(X=x, Z=z, Y=z)tag1$$



    Here $(1)$ is an immediate consequence of:$$X=x,Y=y=bigcup_z{X=x,Z=z,Y=y)$$(preassuming that $Z$ is a discrete random variable and above $z$ ranges over a countable set that serves as support of $Z$).






    share|cite|improve this answer



























      up vote
      1
      down vote



      accepted










      We have: $$P(X=xmid Y=y)P(Y=y)=P(X=x, Y=y)$$and: $$P(X=x, Z=zmid Y=y)P(Y=y)=P(X=x, Z=z, Y=y)$$So if $P(Y=y)>0$ then proving that: $$P(X=xmid Y=y)=sum_zP(X=x,Z=zmid Y=y)$$ comes to the same as proving that $$P(X=x, Y=y)=sum_zP(X=x, Z=z, Y=z)tag1$$



      Here $(1)$ is an immediate consequence of:$$X=x,Y=y=bigcup_z{X=x,Z=z,Y=y)$$(preassuming that $Z$ is a discrete random variable and above $z$ ranges over a countable set that serves as support of $Z$).






      share|cite|improve this answer

























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        We have: $$P(X=xmid Y=y)P(Y=y)=P(X=x, Y=y)$$and: $$P(X=x, Z=zmid Y=y)P(Y=y)=P(X=x, Z=z, Y=y)$$So if $P(Y=y)>0$ then proving that: $$P(X=xmid Y=y)=sum_zP(X=x,Z=zmid Y=y)$$ comes to the same as proving that $$P(X=x, Y=y)=sum_zP(X=x, Z=z, Y=z)tag1$$



        Here $(1)$ is an immediate consequence of:$$X=x,Y=y=bigcup_z{X=x,Z=z,Y=y)$$(preassuming that $Z$ is a discrete random variable and above $z$ ranges over a countable set that serves as support of $Z$).






        share|cite|improve this answer















        We have: $$P(X=xmid Y=y)P(Y=y)=P(X=x, Y=y)$$and: $$P(X=x, Z=zmid Y=y)P(Y=y)=P(X=x, Z=z, Y=y)$$So if $P(Y=y)>0$ then proving that: $$P(X=xmid Y=y)=sum_zP(X=x,Z=zmid Y=y)$$ comes to the same as proving that $$P(X=x, Y=y)=sum_zP(X=x, Z=z, Y=z)tag1$$



        Here $(1)$ is an immediate consequence of:$$X=x,Y=y=bigcup_z{X=x,Z=z,Y=y)$$(preassuming that $Z$ is a discrete random variable and above $z$ ranges over a countable set that serves as support of $Z$).







        share|cite|improve this answer















        share|cite|improve this answer



        share|cite|improve this answer








        edited Jul 20 at 10:33


























        answered Jul 20 at 10:10









        Vera

        1,706413




        1,706413






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2857453%2fproof-of-pxy-sum-z-px-z-y-check-my-solution%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?