How to calculate P(X|W,Z) in a Bayesian network? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Bayesian Network for dummiesProbabilities from Bayesian networkhow to calculate unknown probabilities in the bayesian networkBayesian Network, Sprinkler ExampleProbability Bayesian network problemConfusion in a simple Bayesian NetworkBayesian network ProblemBayesian networkIs this Bayesian Network Probability calculation correct?

How much damage would a cupful of neutron star matter do to the Earth?

How to save space when writing equations with cases?

Girl Hackers - Logic Puzzle

Misunderstanding of Sylow theory

What would you call this weird metallic apparatus that allows you to lift people?

Can the Flaming Sphere spell be rammed into multiple Tiny creatures that are in the same 5-foot square?

What does it mean that physics no longer uses mechanical models to describe phenomena?

Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?

Do I really need to have a message in a novel to appeal to readers?

Is there hard evidence that the grant peer review system performs significantly better than random?

Why can't I install Tomboy in Ubuntu Mate 19.04?

What does 丫 mean? 丫是什么意思?

In musical terms, what properties are varied by the human voice to produce different words / syllables?

Maximum summed subsequences with non-adjacent items

How would a mousetrap for use in space work?

Drawing spherical mirrors

Putting class ranking in CV, but against dept guidelines

How were pictures turned from film to a big picture in a picture frame before digital scanning?

How do I find out the mythology and history of my Fortress?

Significance of Cersei's obsession with elephants?

Trademark violation for app?

Is there public access to the Meteor Crater in Arizona?

Deconstruction is ambiguous

What are the discoveries that have been possible with the rejection of positivism?



How to calculate P(X|W,Z) in a Bayesian network?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Bayesian Network for dummiesProbabilities from Bayesian networkhow to calculate unknown probabilities in the bayesian networkBayesian Network, Sprinkler ExampleProbability Bayesian network problemConfusion in a simple Bayesian NetworkBayesian network ProblemBayesian networkIs this Bayesian Network Probability calculation correct?










1












$begingroup$


Bayesian net



I can see that $P(X,Y,W,Z)$ = $P(X|Y,Z)P(Y|W,Z)P(W)P(Z)$.



I did the following till now to calculate $P(X|W,Z)$:



$P(X|W,Z)$ = $P(X|Y,W,Z)$ + $P(X|overlineY,W,Z)$
= $P(X,Y,W,Z)P(Y,W,Z)$ + $P(X,overlineY,W,Z)P(overlineY,W,Z)$
= $P(X,Y,W,Z)P(Y|W,Z)P(W)P(Z)$ + $P(X,overlineY,W,Z)P(overlineY|W,Z)P(W)P(Z)$



Am I proceeding in the right direction? Help!










share|cite|improve this question









$endgroup$
















    1












    $begingroup$


    Bayesian net



    I can see that $P(X,Y,W,Z)$ = $P(X|Y,Z)P(Y|W,Z)P(W)P(Z)$.



    I did the following till now to calculate $P(X|W,Z)$:



    $P(X|W,Z)$ = $P(X|Y,W,Z)$ + $P(X|overlineY,W,Z)$
    = $P(X,Y,W,Z)P(Y,W,Z)$ + $P(X,overlineY,W,Z)P(overlineY,W,Z)$
    = $P(X,Y,W,Z)P(Y|W,Z)P(W)P(Z)$ + $P(X,overlineY,W,Z)P(overlineY|W,Z)P(W)P(Z)$



    Am I proceeding in the right direction? Help!










    share|cite|improve this question









    $endgroup$














      1












      1








      1





      $begingroup$


      Bayesian net



      I can see that $P(X,Y,W,Z)$ = $P(X|Y,Z)P(Y|W,Z)P(W)P(Z)$.



      I did the following till now to calculate $P(X|W,Z)$:



      $P(X|W,Z)$ = $P(X|Y,W,Z)$ + $P(X|overlineY,W,Z)$
      = $P(X,Y,W,Z)P(Y,W,Z)$ + $P(X,overlineY,W,Z)P(overlineY,W,Z)$
      = $P(X,Y,W,Z)P(Y|W,Z)P(W)P(Z)$ + $P(X,overlineY,W,Z)P(overlineY|W,Z)P(W)P(Z)$



      Am I proceeding in the right direction? Help!










      share|cite|improve this question









      $endgroup$




      Bayesian net



      I can see that $P(X,Y,W,Z)$ = $P(X|Y,Z)P(Y|W,Z)P(W)P(Z)$.



      I did the following till now to calculate $P(X|W,Z)$:



      $P(X|W,Z)$ = $P(X|Y,W,Z)$ + $P(X|overlineY,W,Z)$
      = $P(X,Y,W,Z)P(Y,W,Z)$ + $P(X,overlineY,W,Z)P(overlineY,W,Z)$
      = $P(X,Y,W,Z)P(Y|W,Z)P(W)P(Z)$ + $P(X,overlineY,W,Z)P(overlineY|W,Z)P(W)P(Z)$



      Am I proceeding in the right direction? Help!







      bayesian-network






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Feb 24 at 22:22









      SisyphusSisyphus

      124




      124




















          2 Answers
          2






          active

          oldest

          votes


















          0












          $begingroup$

          Using the D.A.G.; $requireenclosedefPoperatornamesf PbeginarraycenclosecircleWlower2exsearrow&&lower2exswarrowenclosecircleZ\&Y&quaddownarrow\&&raise2exsearrow Xendarray$



          $X$ is directly influenced by $Y$ and $Z$, and $Y$ is directly influenced by $Z$ and $W$.



          Therefore the way $X$ is indirectly influenced by $Z$ and $W$ is through $Y$.




          I did the following till now to calculate $P(Xmid W,Z)$:



          $$P(Xmid W,Z) = P(Xmid Y,W,Z) + P(Xmid overline Y,W,Z) ...$$




          Error! That is not how marginalisation works. The principle is that $X=(Xcap Y)cup(Xcapoverline Y)$



          $$beginalignP(Xmid W,Z)&=P(X,Ymid W,Z)+P(X,overline Ymid W,Z)\[1ex]&=P(Xmid Y,W,Z)P(Ymid W,Z)+P(Xmid overline Y,W,Z)P(overline Ymid W,Z)endalign$$



          Now, because $W$ only influences $X$ through $Y$, it is redundant in the conditioning when $Y$ is present. (Whereas $Z$ still directly influences $X$.)



          $$beginalignP(Xmid W,Z)&=P(Xmid Y,Z)P(Ymid W,Z)+P(Xmid overline Y,Z)P(overline Ymid W,Z)endalign$$






          share|cite|improve this answer











          $endgroup$




















            0












            $begingroup$

            The definition of conditional probability is $P(Amid B)=fracP(Acap B)P(B)$.



            So, $P(Xmid W,Z)=fracP(X,W,Z)P(W,Z)$. The denominator is easy to calculate. For the numerator, the event $Xcap Wcap Z$ is stating that $X,W$, and $Z$ all occur. There are 2 cases: Either $Y$ happens or it does not, and you can compute the probability of $Xcap Wcap Z$ both under the presence of $Y$ and in the absence of $Y$.



            Can you take it from here?






            share|cite|improve this answer











            $endgroup$












            • $begingroup$
              The reason of my confusion is the presence of the node Y and the fact that Z influences both X and Y.
              $endgroup$
              – Sisyphus
              Feb 25 at 0:02











            Your Answer








            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%2f3125327%2fhow-to-calculate-pxw-z-in-a-bayesian-network%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









            0












            $begingroup$

            Using the D.A.G.; $requireenclosedefPoperatornamesf PbeginarraycenclosecircleWlower2exsearrow&&lower2exswarrowenclosecircleZ\&Y&quaddownarrow\&&raise2exsearrow Xendarray$



            $X$ is directly influenced by $Y$ and $Z$, and $Y$ is directly influenced by $Z$ and $W$.



            Therefore the way $X$ is indirectly influenced by $Z$ and $W$ is through $Y$.




            I did the following till now to calculate $P(Xmid W,Z)$:



            $$P(Xmid W,Z) = P(Xmid Y,W,Z) + P(Xmid overline Y,W,Z) ...$$




            Error! That is not how marginalisation works. The principle is that $X=(Xcap Y)cup(Xcapoverline Y)$



            $$beginalignP(Xmid W,Z)&=P(X,Ymid W,Z)+P(X,overline Ymid W,Z)\[1ex]&=P(Xmid Y,W,Z)P(Ymid W,Z)+P(Xmid overline Y,W,Z)P(overline Ymid W,Z)endalign$$



            Now, because $W$ only influences $X$ through $Y$, it is redundant in the conditioning when $Y$ is present. (Whereas $Z$ still directly influences $X$.)



            $$beginalignP(Xmid W,Z)&=P(Xmid Y,Z)P(Ymid W,Z)+P(Xmid overline Y,Z)P(overline Ymid W,Z)endalign$$






            share|cite|improve this answer











            $endgroup$

















              0












              $begingroup$

              Using the D.A.G.; $requireenclosedefPoperatornamesf PbeginarraycenclosecircleWlower2exsearrow&&lower2exswarrowenclosecircleZ\&Y&quaddownarrow\&&raise2exsearrow Xendarray$



              $X$ is directly influenced by $Y$ and $Z$, and $Y$ is directly influenced by $Z$ and $W$.



              Therefore the way $X$ is indirectly influenced by $Z$ and $W$ is through $Y$.




              I did the following till now to calculate $P(Xmid W,Z)$:



              $$P(Xmid W,Z) = P(Xmid Y,W,Z) + P(Xmid overline Y,W,Z) ...$$




              Error! That is not how marginalisation works. The principle is that $X=(Xcap Y)cup(Xcapoverline Y)$



              $$beginalignP(Xmid W,Z)&=P(X,Ymid W,Z)+P(X,overline Ymid W,Z)\[1ex]&=P(Xmid Y,W,Z)P(Ymid W,Z)+P(Xmid overline Y,W,Z)P(overline Ymid W,Z)endalign$$



              Now, because $W$ only influences $X$ through $Y$, it is redundant in the conditioning when $Y$ is present. (Whereas $Z$ still directly influences $X$.)



              $$beginalignP(Xmid W,Z)&=P(Xmid Y,Z)P(Ymid W,Z)+P(Xmid overline Y,Z)P(overline Ymid W,Z)endalign$$






              share|cite|improve this answer











              $endgroup$















                0












                0








                0





                $begingroup$

                Using the D.A.G.; $requireenclosedefPoperatornamesf PbeginarraycenclosecircleWlower2exsearrow&&lower2exswarrowenclosecircleZ\&Y&quaddownarrow\&&raise2exsearrow Xendarray$



                $X$ is directly influenced by $Y$ and $Z$, and $Y$ is directly influenced by $Z$ and $W$.



                Therefore the way $X$ is indirectly influenced by $Z$ and $W$ is through $Y$.




                I did the following till now to calculate $P(Xmid W,Z)$:



                $$P(Xmid W,Z) = P(Xmid Y,W,Z) + P(Xmid overline Y,W,Z) ...$$




                Error! That is not how marginalisation works. The principle is that $X=(Xcap Y)cup(Xcapoverline Y)$



                $$beginalignP(Xmid W,Z)&=P(X,Ymid W,Z)+P(X,overline Ymid W,Z)\[1ex]&=P(Xmid Y,W,Z)P(Ymid W,Z)+P(Xmid overline Y,W,Z)P(overline Ymid W,Z)endalign$$



                Now, because $W$ only influences $X$ through $Y$, it is redundant in the conditioning when $Y$ is present. (Whereas $Z$ still directly influences $X$.)



                $$beginalignP(Xmid W,Z)&=P(Xmid Y,Z)P(Ymid W,Z)+P(Xmid overline Y,Z)P(overline Ymid W,Z)endalign$$






                share|cite|improve this answer











                $endgroup$



                Using the D.A.G.; $requireenclosedefPoperatornamesf PbeginarraycenclosecircleWlower2exsearrow&&lower2exswarrowenclosecircleZ\&Y&quaddownarrow\&&raise2exsearrow Xendarray$



                $X$ is directly influenced by $Y$ and $Z$, and $Y$ is directly influenced by $Z$ and $W$.



                Therefore the way $X$ is indirectly influenced by $Z$ and $W$ is through $Y$.




                I did the following till now to calculate $P(Xmid W,Z)$:



                $$P(Xmid W,Z) = P(Xmid Y,W,Z) + P(Xmid overline Y,W,Z) ...$$




                Error! That is not how marginalisation works. The principle is that $X=(Xcap Y)cup(Xcapoverline Y)$



                $$beginalignP(Xmid W,Z)&=P(X,Ymid W,Z)+P(X,overline Ymid W,Z)\[1ex]&=P(Xmid Y,W,Z)P(Ymid W,Z)+P(Xmid overline Y,W,Z)P(overline Ymid W,Z)endalign$$



                Now, because $W$ only influences $X$ through $Y$, it is redundant in the conditioning when $Y$ is present. (Whereas $Z$ still directly influences $X$.)



                $$beginalignP(Xmid W,Z)&=P(Xmid Y,Z)P(Ymid W,Z)+P(Xmid overline Y,Z)P(overline Ymid W,Z)endalign$$







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited Apr 2 at 4:48

























                answered Apr 2 at 2:02









                Graham KempGraham Kemp

                88.1k43579




                88.1k43579





















                    0












                    $begingroup$

                    The definition of conditional probability is $P(Amid B)=fracP(Acap B)P(B)$.



                    So, $P(Xmid W,Z)=fracP(X,W,Z)P(W,Z)$. The denominator is easy to calculate. For the numerator, the event $Xcap Wcap Z$ is stating that $X,W$, and $Z$ all occur. There are 2 cases: Either $Y$ happens or it does not, and you can compute the probability of $Xcap Wcap Z$ both under the presence of $Y$ and in the absence of $Y$.



                    Can you take it from here?






                    share|cite|improve this answer











                    $endgroup$












                    • $begingroup$
                      The reason of my confusion is the presence of the node Y and the fact that Z influences both X and Y.
                      $endgroup$
                      – Sisyphus
                      Feb 25 at 0:02















                    0












                    $begingroup$

                    The definition of conditional probability is $P(Amid B)=fracP(Acap B)P(B)$.



                    So, $P(Xmid W,Z)=fracP(X,W,Z)P(W,Z)$. The denominator is easy to calculate. For the numerator, the event $Xcap Wcap Z$ is stating that $X,W$, and $Z$ all occur. There are 2 cases: Either $Y$ happens or it does not, and you can compute the probability of $Xcap Wcap Z$ both under the presence of $Y$ and in the absence of $Y$.



                    Can you take it from here?






                    share|cite|improve this answer











                    $endgroup$












                    • $begingroup$
                      The reason of my confusion is the presence of the node Y and the fact that Z influences both X and Y.
                      $endgroup$
                      – Sisyphus
                      Feb 25 at 0:02













                    0












                    0








                    0





                    $begingroup$

                    The definition of conditional probability is $P(Amid B)=fracP(Acap B)P(B)$.



                    So, $P(Xmid W,Z)=fracP(X,W,Z)P(W,Z)$. The denominator is easy to calculate. For the numerator, the event $Xcap Wcap Z$ is stating that $X,W$, and $Z$ all occur. There are 2 cases: Either $Y$ happens or it does not, and you can compute the probability of $Xcap Wcap Z$ both under the presence of $Y$ and in the absence of $Y$.



                    Can you take it from here?






                    share|cite|improve this answer











                    $endgroup$



                    The definition of conditional probability is $P(Amid B)=fracP(Acap B)P(B)$.



                    So, $P(Xmid W,Z)=fracP(X,W,Z)P(W,Z)$. The denominator is easy to calculate. For the numerator, the event $Xcap Wcap Z$ is stating that $X,W$, and $Z$ all occur. There are 2 cases: Either $Y$ happens or it does not, and you can compute the probability of $Xcap Wcap Z$ both under the presence of $Y$ and in the absence of $Y$.



                    Can you take it from here?







                    share|cite|improve this answer














                    share|cite|improve this answer



                    share|cite|improve this answer








                    edited Feb 25 at 23:44

























                    answered Feb 24 at 22:55









                    alphacapturealphacapture

                    2,220425




                    2,220425











                    • $begingroup$
                      The reason of my confusion is the presence of the node Y and the fact that Z influences both X and Y.
                      $endgroup$
                      – Sisyphus
                      Feb 25 at 0:02
















                    • $begingroup$
                      The reason of my confusion is the presence of the node Y and the fact that Z influences both X and Y.
                      $endgroup$
                      – Sisyphus
                      Feb 25 at 0:02















                    $begingroup$
                    The reason of my confusion is the presence of the node Y and the fact that Z influences both X and Y.
                    $endgroup$
                    – Sisyphus
                    Feb 25 at 0:02




                    $begingroup$
                    The reason of my confusion is the presence of the node Y and the fact that Z influences both X and Y.
                    $endgroup$
                    – Sisyphus
                    Feb 25 at 0:02

















                    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%2f3125327%2fhow-to-calculate-pxw-z-in-a-bayesian-network%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

                    Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

                    Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

                    Հադիս Բովանդակություն Անվանում և նշանակություն | Դասակարգում | Աղբյուրներ | Նավարկման ցանկ