home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.ai      Awaiting the gospel from Sarah Connor      1,954 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,072 of 1,954   
   Tommy Stromhaug to All   
   bayes net problem   
   08 Jun 06 00:46:39   
   
   From: stromhau@stud.ntnu.no   
      
   Hi,   
      
   Given tha classical alarm, earthquake, burglary, marycalls and johncalls.   
   Some sort of drawing below.   
      
   My problem is that i want to calculate P(A|M).   
      
   I use bayes rule to get ;   
      
   P(A|M) = P(M|A)*P(A)/P(M). Because i dont know P(A) i get a problem. I dont   
   know p(M), but this i could have avoided if i had known P(A).   
      
   The first thing on my mind was to calculate P(A) as:   
      
   sum P(A,M,J,B,E) where i use all the combinations of(negatet or positive) of   
   M,J,B,E.   
      
   Then i found one solution where P(A) was calculated as   
      
   p(A) = p(A | ~B, ~E) p(~B, ~E) + p(A | ~B, E) p(~B, E) + p(A | B, ~E) p(B,   
   ~E) + p(A | B, E) p(B, E)   
      
   My big question is why?   
      
   It seems like P(A) is calculated as P(A,E,B)+P(A,-B,-E)+P(A,-B,E)+.......   
      
   just what i would have done except that i belived that i had to use P(J) and   
   P(M) also.   
      
   How is it that this is true ?   
      
          B            E   
           \           /   
            \         /   
              \     /   
                 A   
               /   \   
              /     \   
            /        \   
          J           M   
      
   arrows from B to A and from E to A   
   arrows from A to J and from A to M   
      
      
      
   Tommy Stromhaug   
      
   [ comp.ai is moderated ... your article may take a while to appear. ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca