{"id":688,"date":"2019-01-08T11:59:08","date_gmt":"2019-01-08T11:59:08","guid":{"rendered":"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/?post_type=chapter&#038;p=688"},"modified":"2019-01-09T05:05:42","modified_gmt":"2019-01-09T05:05:42","slug":"bayesian-belief-networks-ii","status":"publish","type":"chapter","link":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/chapter\/bayesian-belief-networks-ii\/","title":{"rendered":"Bayesian Belief Networks-II"},"content":{"raw":"<div>\r\n\r\n&nbsp;\r\n\r\n<strong>Learning Objectives:<\/strong>\r\n\r\n&nbsp;\r\n\r\nThe learning objectives of this module are as follows:\r\n\r\n&nbsp;\r\n\r\n\u00b7 To understand the design of the Bayesian network\r\n\r\n&nbsp;\r\n\r\n\u00b7 To understand the examples of Bayesian networks\r\n\r\n&nbsp;\r\n\r\n\u00b7 To explain inferencing in Bayesian Belief Networks\r\n\r\n&nbsp;\r\n\r\n<strong>32.1 Constructing Bayesian networks<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Let us first discuss the construction of a Bayesian network. Let us assume that the problem can be defined in terms of n random variables. The steps in the construction is given below:<\/p>\r\n&nbsp;\r\n\r\n1.\u00a0\u00a0\u00a0 Choose an ordering of variables <em>X<\/em><em>1<\/em>, \u2026 ,<em>X<\/em><em>n<\/em>\r\n\r\n&nbsp;\r\n\r\n2.\u00a0\u00a0\u00a0 For <em>i<\/em> = 1 to <em>n<\/em>\r\n\r\n&nbsp;\r\n\r\nadd <em>X<\/em><em>i<\/em> to the network\r\n\r\n&nbsp;\r\n\r\nselect parents from <em>X<\/em><em>1<\/em><em>, \u2026 ,X<\/em><em>i-1<\/em> such that\r\n\r\n&nbsp;\r\n\r\n<strong><em>P <\/em><\/strong><em>(X<\/em><em>i<\/em><em> | Parents(X<\/em><em>i<\/em><em>)) = <strong>P<\/strong> (X<\/em><em>i<\/em><em> | X<\/em><em>1<\/em><em>, ... X<\/em><em>i-1<\/em><em>)<\/em>\r\n\r\n&nbsp;\r\n\r\nThis choice of parents guarantees:\r\n\r\n&nbsp;\r\n\r\n<strong><em>P <\/em><\/strong><em>(X<\/em><em>1<\/em><em>, \u2026 ,X<\/em><em>n<\/em><em>) = \u03c0<\/em><em>i =1<\/em><strong><em>P <\/em><\/strong><em>(X<\/em><em>i<\/em> <em>| X<\/em><em>1<\/em><em>, \u2026 , X<\/em><em>i-1<\/em><em>)<\/em> (chain rule)\r\n\r\n&nbsp;\r\n\r\n<em>= \u03c0<\/em><em>i =1<\/em><strong><em>P<\/em><\/strong><em> (X<\/em><em>i<\/em><em> | Parents(X<\/em><em>i<\/em><em>))<\/em>\u00a0 (by construction)\r\n\r\n&nbsp;\r\n\r\n<strong>32.2 Bayesian Networks \u2013 Smoking - Example I<\/strong>\r\n\r\n&nbsp;\r\n\r\nLet us consider the simple example given below:\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-692\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-137.png\" alt=\"\" width=\"590\" height=\"262\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.1 Example of Bayesian Network<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The example shows Cancer having Smoking as parent where Smoking and Cancer each can take three values. Probability of Smoking being each of the three values that is Probability of smoking being no, Probability of smoking being light, and Probability of smoking being heavy are given. The Conditional Probability Table (CPT) of each of the three values of Cancer ( namely none, benign, malignant) given the different values of Smoking is given (Figure 32.1). The product rule for the example is shown in Figure 32.2. Here the conditional probability P(C|S) is multiplied by probability of s P(S) to obtain joint probability P(C,S). This table can be used for marginalization as shown in Figure 32.3. The total of the columns gives us P(C) \u2013 the marginalized value of C.<\/p>\r\n\r\n<\/div>\r\n<img class=\"aligncenter size-full wp-image-693\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-138.png\" alt=\"\" width=\"484\" height=\"421\" \/>\r\n<div>\r\n<p style=\"text-align: justify\">Now using the values calculated we get <strong>P(S|C)=P(C|S).P(S)\/P(C) =<\/strong> <strong>P(C,S)\/P(C)<\/strong>as shown in Figure 32.4. Therefore we get the probability of the state of Smoking knowing the state of Cancer can be inferred.<\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-694\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-139.png\" alt=\"\" width=\"454\" height=\"305\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.4 Inferred Values using Marginalization<\/strong><\/p>\r\n&nbsp;\r\n\r\n<strong>32.3 Causes and Bayes\u2019 Rule<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Let us consider a simple example of Rain causing Wet-Grass (Figure 32.5). We are given that the probability of Rain P(R) is 0.4 which also means that the probability of no rain is 0.6. In addition we are given the CPT of the Wet-Grass under the conditions of Rain and No Rain.Now how do we proceed to carry out diagnostic inference that is <em>Knowing that the grass is wet, what is the probability<\/em> <em>that rain is the cause?<\/em><\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-695\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-140.png\" alt=\"\" width=\"336\" height=\"199\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.5 Causal and Diagnostic Inference<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The procedure for carrying out this diagnostic inference is shown in Figure 32.6. Now using Bayes Theorem we know that P(R|W) can be deduced from P(W|R)<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">*\u00a0 P(R) divided by P(W). Now probability of Wet-Grass P(W) is the summation of P(W|R)*P(R) + P(W|~R)*P(~R) that is the probability of Wet-Grass is based on\u00a0<span style=\"font-size: 1em;text-align: initial\">the probabilities of the states of its cause (Rain), in this case only two states R and ~R.<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-696\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-141.png\" alt=\"\" width=\"502\" height=\"188\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.6 Diagnostic Inference<\/strong><\/p>\r\n&nbsp;\r\n\r\n<strong>32.4 Bayesian Networks Construction - Icy Roads - Example II<\/strong>\r\n\r\n&nbsp;\r\n\r\nLet us now understand how to design a Bayesian Network for the problem statement given in Figure 32.7 .\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong>1.\u00a0 <\/strong><strong>Inspector Smith is waiting for Holmes and Watson who are both late for an appointment.<\/strong><\/p>\r\n<strong>2.\u00a0 <\/strong><strong>Smith is worried that if the roads are icy one or both of them may have crashed his car.<\/strong>\r\n\r\n<strong>3.\u00a0 <\/strong><strong>Suddenly Smith learns that Watson has crashed.<\/strong>\r\n\r\n<strong>4.\u00a0 <\/strong><strong>Smith Thinks \u2013 If Watson has crashed, probably roads are icy, then Holmes has probably crashed too.<\/strong>\r\n\r\n<strong>5.\u00a0 <\/strong><strong>Smith then learns it is warm outside and roads are salted.<\/strong>\r\n\r\n6.\u00a0\u00a0\u00a0 <strong>Smith thinks \u2013 Watson was unlucky, Holmes should still make it.<\/strong>\r\n\r\n&nbsp;\r\n\r\n<strong>Figure 32.7 Icy Roads \u2013 Problem Statement<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">We can model this problem using three random variables namely State of Roads Icy\/not Icy, Watson Crash\/no Crash and Holmes Crash\/no Crash. The Bayesian Network has these three nodes with State of Roads being the reason for Watson Crash\/no Crash and Holmes Crash\/no Crash (Figure 32.8). Now let us understand the flow of information in the network. Now in sentence 3 in the problem statement (Figure 32.7) Smith knows that Watson has crashed. Therefore Watson Crash is true and now information flows from this node to the State of Roads node. Now in sentence 5 Smith comes to know that it is warm outside and roads are salted. Therefor now information flows from State of Roads node to Holmes Crash\/no Crash node. This example shows how different types of inferences needed depends on the knowledge acquired.<\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-697\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-142.png\" alt=\"\" width=\"595\" height=\"248\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.8 Bayesian Network for Icy Roads Example<\/strong><\/p>\r\n&nbsp;\r\n\r\n<strong>32.5 Conditional Independence in BNs<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Normally edges between the nodes of a Bayesian Network represent conditional dependencies. Nodes that are not connected that is where there is no path from a node to another in the Bayesian networkrepresent variables that are said to be conditionally independent of each other. There are three types of conditional independences associated with Bayesian Networks, namely serial, diverging and converging (Figure 32.9).<\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-698\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-143.png\" alt=\"\" width=\"586\" height=\"316\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.9 Conditional Independence<\/strong><\/p>\r\n&nbsp;\r\n\r\n<strong>32.5.1 Serial Case<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">In the case of serial we have T and given the condition that T is known, A and X are conditionally independent. Conditional independence is due to the fact that the intermediate cause is known.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">32.5.2Diverging Case<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">In the case of diverging we have S being the common cause for two nodes L and B that is the two nodes Land B is connected through the common cause S. Now given the condition that S is known, L and B are conditionally independent. Conditional independence is due to the fact that the common cause is known.<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>32.5.3 Converging Case<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">In the case of diverging we have two nodes L and B both being causes for the node D which in turn is the cause for the node M. Now given the condition that D the common effect of L and B is not known, and neither is the effect M of the common effect known, then L and B are conditionally independent. Conditional independence is due to the fact that the common effect and in turn its effect is not known.<\/p>\r\n&nbsp;\r\n\r\n<strong>32.6 Bayesian Networks - Alarm (from Judea Pearl) \u2013 Example III<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The alarm example is a good example to explain many aspects of Bayesian Networks and is therefore a very popular example. Here we use the example to explain the steps in the construction of a Bayesian Network. The problem statement is given in Figure 32.10. The steps in the construction are given below:<\/p>\r\n&nbsp;\r\n<ol>\r\n \t<li><strong>You have a new burglar alarm installed at home. It is fairly reliable at detecting a burglary, but also responds on occasion to minor earthquakes.<\/strong><\/li>\r\n \t<li><strong style=\"text-align: initial;font-size: 1em\">You also have two neighbors, John and Mary, who have promised to call you at work when they hear the alarm.<\/strong><\/li>\r\n \t<li><strong style=\"text-align: initial;font-size: 1em\">John always calls when he hears the alarm, but sometimes confuses the telephone ringing with the alarm and calls then, too.<\/strong><\/li>\r\n \t<li><strong style=\"text-align: initial;font-size: 1em\">Mary, on the other hand, likes rather loud music and sometimes misses the alarm altogether.<\/strong><\/li>\r\n \t<li><strong style=\"text-align: initial;font-size: 1em\">Given the evidence of who has or has not called, we would like to estimate the probability of a burglary.<\/strong><\/li>\r\n<\/ol>\r\n&nbsp;\r\n\r\n<strong>Figure 32.10 Bayesian Network \u2013 Alarm Example\u00a0<\/strong>\r\n\r\n&nbsp;\r\n\r\n<strong>32.6.1 Step 1:<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"font-size: 1em;text-align: initial\">First we determine what the propositional (random) variables should be. Then we determine causal (or another type of influence) relationships and develop the topology of the network.<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Variables are identified as: <em>Burglary<\/em>, <em>Earthquake<\/em>, <em>Alarm<\/em>, <em>JohnCalls<\/em>, <em>MaryCalls<\/em> The Network topology reflecting the \"causal\" knowledge is as follows:<\/p>\r\n&nbsp;\r\n\r\n\u2013\u00a0 A burglar can set the alarm off\r\n\r\n&nbsp;\r\n\r\n\u2013\u00a0 An earthquake can set the alarm off\r\n\r\n&nbsp;\r\n\r\n\u2013\u00a0 The alarm can cause Mary to call\r\n\r\n&nbsp;\r\n\r\n\u2013\u00a0 The alarm can cause John to call\r\n\r\n&nbsp;\r\n\r\nThe resulting Topology of the Bayesian Network is shown in Figure 32.11.\r\n\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-699\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-144.png\" alt=\"\" width=\"546\" height=\"245\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.11 Topology of the Network<\/strong><\/p>\r\n&nbsp;\r\n\r\n<strong>32.6.2 Step 2:<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Next we need to specify a <em>conditional probability table<\/em> or CPT for each node. This can be done through observations or using heuristics. Each row in the table contains the conditional probability of each node value for a conditioning case (possible combinations of values for parent nodes).In the example, the possible values for each node are true\/false.The sum of the probabilities for each value of a node given a particular conditioning case is 1. For example the CPT for Alarm Node is shown in Figure 32.12. This CPT indicates the probability of Alarm given Burglar and Earthquake. Now both Burglar and Earthquake can each take values of T\/F. Hence this CPT has four rows. The value of both T and F values of P(A|B,E) forgiven T and F values of B and E is indicated in the CPT (Figure 32.12).<\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-700\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-145.png\" alt=\"\" width=\"344\" height=\"239\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.12 CPT of Alarm Node<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Similarly the CPT for each of the other nodes is shown in Figure 32.13. Please note that the nodes Burglar and Earthquake are independent and hence independent probability is associated with these nodes.<\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-701\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-146.png\" alt=\"\" width=\"534\" height=\"261\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.13 Bayesian Network with CPTs of all Nodes for Alarm Example<\/strong><\/p>\r\n&nbsp;\r\n\r\n<strong>32.7 Semantics of Bayesian Networks<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">There are two views of a Bayesian Network. View 1 says that a belief network is a representation of the joint probability distribution (\u201cjoint\u201d) of a domain.The joint completely specifies an agent\u2019s probability assignments to all propositions in the domain (both simple and complex). In other words the network can be viewed as a representation of joint probability distribution of its variables. A generic entry in the joint probability distribution is the probability of a conjunction of particular assignments to each variable, such as:<\/p>\r\n<img class=\"aligncenter size-full wp-image-702\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-147.png\" alt=\"\" width=\"286\" height=\"63\" \/>\r\n\r\n<\/div>\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">We can see that each entry in the joint is represented by the product of appropriate elements of the CPTs in the belief network.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"font-size: 1em\">For the Alarm example we can calculate the probability of the event that the alarm has sounded but neither a burglary nor an earthquake has occurred, and both John and Mary call as given below:<\/span><\/p>\r\n\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-705\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-148.png\" alt=\"\" width=\"327\" height=\"94\" \/>\r\n<p style=\"text-align: justify\">The second view is that the Bayesian networkis an encoding of a collection of conditional independence statements.For the Alarm example<\/p>\r\n&nbsp;\r\n\r\n\u2013 <strong>JohnCalls is conditionally independent of other variables in<\/strong> <strong>the network given the value of Alarm<\/strong>\r\n\r\n&nbsp;\r\n\r\nThis view is useful for understanding inference procedures for the networks <strong>.<\/strong>\r\n\r\n&nbsp;\r\n\r\n<strong>32.8 Inferences in Bayesian Networks<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Basically as we have already discussed there are two basic types of inferences associated with Bayesian Networks namely causal Inferences and diagnostic inferences.<\/p>\r\n<img class=\"aligncenter size-full wp-image-706\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-149.png\" alt=\"\" width=\"579\" height=\"281\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.14 Causal Inference<\/strong><\/p>\r\n&nbsp;\r\n\r\n<strong>32.8.1 Causal Inference:<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Causal Inference is basically inference from cause to effect. In Figure 32.14 given Burglary we can find the probability of John calling (P(J|B)). Note that this is indirect inference since Burglary causes Alarm which in turn causes John to call. Therefore we first need the probability of Alarm ringing given that Burglary has occurred (P(A|B)).<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">32.8.1.1 Step 1: Calculating P(A|B)<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">P(A|B) is calculated by considering the probability of Alarm ringing based on both occurrence of Burglary (probability 1 since this is given) and occurrence of Earthquake (which may or may not occur). Therefore for P(A|B) we consider the two rows from the CPT of Alarm node where Burglary is True and calculate P(A|B) as the sum of these two terms with associated probabilities as given in Figure 32.14.<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>32.8.1.2 Step 2: Calculating P(J|B)<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">In the next step we need to calculate probability of John calling given the probability of Burglary. Here we have that either the Alarm rings when burglary occurs P(A) which we calculated in Step 1 or does not ring which is 1- P(A). Now we associate the probability of P(J) given A from the CPT of J as given in Figure 32.13. Using these two probability values we can calculate the probability of John calling given burglary occurred (Figure 32.14).<\/p>\r\n&nbsp;\r\n\r\n<strong>32.8.2 Diagnostic Inference<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">DiagnosticInference is basically inference from effect to cause. In Figure 32.15 given that John calls, we can find the probability of Burglary occuring (P(B|J)). Note that this is indirect inference since John calling was caused by Alarm ringing P(J|A) which in turn was caused by a Burglary (P(B|A)).<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Now we first apply Bayes theorem to find P(B|J) as given in Figure 32.15. Now this shows that we need to know the probability of John calling that is P(J). However for finding probability of P(J) we need to know probability of Alarm ringing that is P(A).<\/p>\r\n&nbsp;\r\n\r\n<strong>32.8.2.1 Step 1: Calculating P(A)<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">For calculating P(A), we do not have any information of whether Burglary occurred or Earthquake occurred. Hence we consider the four rows of the CPT of Alarm node with probability of truth values of Burglary and Earthquake from their respective probability tables (Figure 32.15).<\/p>\r\n&nbsp;\r\n\r\n<strong>32.8.2.2 Step 2: Calculating P(J)<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">We use the value of P(A) calculated in step 1 for the calculation of probability of john calling that is P(J). Here we consider the probability thatAlarm rang and did not ring (1 \u2013 P(A)) for the calculation of P(J) from its CPT.<\/p>\r\n&nbsp;\r\n\r\n<strong>32.8.2.3 Step 3: Calculating P(B|J)<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Now we can calculate the probability of Burglary given John called using the Bayes theorem. We first need the value of P(J|B) which we can calculate as shown in Section 32.8.1. The probability value of occurrence of Burglary P(B) can be obtained from its probability table and P(J) has been calculated as explained in Section 32.8.2.2.<\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-707\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-150.png\" alt=\"\" width=\"595\" height=\"224\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.15 Diagnostic Inference<\/strong><\/p>\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n<strong>32.9 Realistic Example - Population-wide ANomaly Detection &amp; Assessment (PANDA)<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">A realistic example of the use of Bayesian network is a detector specifically for a large-scale outdoor release of inhalational anthrax (reference Bayesian Biosurveillance of Disease Outbreaks, Gregory F., Denver H. Dash, John D.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Levander, Weng-Keen Wong,Proceedings of the 20th conference on Uncertainty in Artificial Intelligence, 2004)<strong>.<\/strong> Here a massive causal Bayesian network was used with a population-wide approach where each person in the population is represented as a sub-network in the overall model (Figure 32.16). Please note the conditional independence assumptions. Also note that Anthrax is assumed to be infectious but non-contagious. The structure of the Network that is the causal dependencies were designed through expert judgment and the parameters obtained from census data, training data, and expert assessments obtainedfrom literature and by experience.<\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-709\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-151.png\" alt=\"\" width=\"578\" height=\"181\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 32.16 Panda Network<\/strong><\/p>\r\n<strong>Summary<\/strong>\r\n<ul>\r\n \t<li>Explained the construction of the Bayesian network<\/li>\r\n \t<li>Discussed the examples of Bayesian networks<\/li>\r\n \t<li><span style=\"text-align: initial;font-size: 1em\">Outlined inferencing in Bayesian Belief Networks.<\/span><\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\n<strong>Web Links<\/strong>\r\n\r\n&nbsp;\r\n<ul>\r\n \t<li>http:\/\/people.cs.pitt.edu\/~milos\/courses\/cs2750-Spring03\/lectures\/class2.pdf<\/li>\r\n \t<li>http:\/\/learningforward.org\/docs\/default-source\/commoncore\/comprehensive-professional-learning system.pdf\" type=\"application\/pdf<\/li>\r\n \t<li>http:\/\/digitalcommons.ilr.cornell.edu\/cgi\/viewcontent.cgi?article=1405&amp;amp;context=c ahrswp\" type=\"application\/pdf<\/li>\r\n \t<li>\"http:\/\/www.cse.hcmut.edu.vn\/~tru\/AI\/chapter11.pdf\" type=\"application\/pdf<\/li>\r\n \t<li>http:\/\/www.holehouse.org\/mlclass\/11_Machine_Learning_System_Design.html<\/li>\r\n \t<li>ssdi.di.fct.unl.pt\/pc\/0607\/files\/PCaulaT03 -10-06.ppt<\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\n<strong>Supporting &amp; Reference Materials<\/strong>\r\n<ul>\r\n \t<li>Tom <a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Mitchell&amp;search-alias=stripbooks\">Mitchell, <\/a>\u201cMachine Learning\u201d,McGraw-Hill Education, 1997<\/li>\r\n \t<li><a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Alpaydin+Ethem&amp;search-alias=stripbooks\">AlpaydinEthem, <\/a>\u201cIntroduction to Machine Learning\u201d, The MIT Press; third edition, 2014<\/li>\r\n \t<li>Christopher M. <a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Bishop&amp;search-alias=stripbooks\">Bishop, <\/a>\u201cPattern Recognition and Machine Learning\u201d,Springer, 2013 <a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Peter+Harrington&amp;search-alias=stripbooks\">Peter Harrington, <\/a>\u201cMachine Learning In Action\u201d, Manning Publications, 2012<\/li>\r\n \t<li><a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Peter+Flach&amp;search-alias=stripbooks\">Peter Flach, <\/a>\u201cMachine Learning: The Art and Science of Algorithms that Make Sense of Data\u201d,Cambridge University Press, 2012<\/li>\r\n \t<li><a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Stephen+Marsland&amp;search-alias=stripbooks\">Stephen Marsland, <\/a>\u201cMachine Learning: An Algorithmic Perspective\u201d, Chapman and Hall\/CRC; 2 edition, 2014<\/li>\r\n \t<li>Y. S. Abu-Mostafa, M. Magdon-Ismail, and H.-T. Lin, \u201cLearning from Data\u201d, AMLBook<\/li>\r\n<\/ul>\r\n<\/div>","rendered":"<div>\n<p>&nbsp;<\/p>\n<p><strong>Learning Objectives:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>The learning objectives of this module are as follows:<\/p>\n<p>&nbsp;<\/p>\n<p>\u00b7 To understand the design of the Bayesian network<\/p>\n<p>&nbsp;<\/p>\n<p>\u00b7 To understand the examples of Bayesian networks<\/p>\n<p>&nbsp;<\/p>\n<p>\u00b7 To explain inferencing in Bayesian Belief Networks<\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.1 Constructing Bayesian networks<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Let us first discuss the construction of a Bayesian network. Let us assume that the problem can be defined in terms of n random variables. The steps in the construction is given below:<\/p>\n<p>&nbsp;<\/p>\n<p>1.\u00a0\u00a0\u00a0 Choose an ordering of variables <em>X<\/em><em>1<\/em>, \u2026 ,<em>X<\/em><em>n<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>2.\u00a0\u00a0\u00a0 For <em>i<\/em> = 1 to <em>n<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>add <em>X<\/em><em>i<\/em> to the network<\/p>\n<p>&nbsp;<\/p>\n<p>select parents from <em>X<\/em><em>1<\/em><em>, \u2026 ,X<\/em><em>i-1<\/em> such that<\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>P <\/em><\/strong><em>(X<\/em><em>i<\/em><em> | Parents(X<\/em><em>i<\/em><em>)) = <strong>P<\/strong> (X<\/em><em>i<\/em><em> | X<\/em><em>1<\/em><em>, &#8230; X<\/em><em>i-1<\/em><em>)<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>This choice of parents guarantees:<\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>P <\/em><\/strong><em>(X<\/em><em>1<\/em><em>, \u2026 ,X<\/em><em>n<\/em><em>) = \u03c0<\/em><em>i =1<\/em><strong><em>P <\/em><\/strong><em>(X<\/em><em>i<\/em> <em>| X<\/em><em>1<\/em><em>, \u2026 , X<\/em><em>i-1<\/em><em>)<\/em> (chain rule)<\/p>\n<p>&nbsp;<\/p>\n<p><em>= \u03c0<\/em><em>i =1<\/em><strong><em>P<\/em><\/strong><em> (X<\/em><em>i<\/em><em> | Parents(X<\/em><em>i<\/em><em>))<\/em>\u00a0 (by construction)<\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.2 Bayesian Networks \u2013 Smoking &#8211; Example I<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Let us consider the simple example given below:<\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-692\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-137.png\" alt=\"\" width=\"590\" height=\"262\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-137.png 590w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-137-300x133.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-137-65x29.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-137-225x100.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-137-350x155.png 350w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.1 Example of Bayesian Network<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The example shows Cancer having Smoking as parent where Smoking and Cancer each can take three values. Probability of Smoking being each of the three values that is Probability of smoking being no, Probability of smoking being light, and Probability of smoking being heavy are given. The Conditional Probability Table (CPT) of each of the three values of Cancer ( namely none, benign, malignant) given the different values of Smoking is given (Figure 32.1). The product rule for the example is shown in Figure 32.2. Here the conditional probability P(C|S) is multiplied by probability of s P(S) to obtain joint probability P(C,S). This table can be used for marginalization as shown in Figure 32.3. The total of the columns gives us P(C) \u2013 the marginalized value of C.<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-693\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-138.png\" alt=\"\" width=\"484\" height=\"421\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-138.png 484w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-138-300x261.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-138-65x57.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-138-225x196.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-138-350x304.png 350w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<div>\n<p style=\"text-align: justify\">Now using the values calculated we get <strong>P(S|C)=P(C|S).P(S)\/P(C) =<\/strong> <strong>P(C,S)\/P(C)<\/strong>as shown in Figure 32.4. Therefore we get the probability of the state of Smoking knowing the state of Cancer can be inferred.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-694\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-139.png\" alt=\"\" width=\"454\" height=\"305\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-139.png 454w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-139-300x202.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-139-65x44.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-139-225x151.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-139-350x235.png 350w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.4 Inferred Values using Marginalization<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.3 Causes and Bayes\u2019 Rule<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Let us consider a simple example of Rain causing Wet-Grass (Figure 32.5). We are given that the probability of Rain P(R) is 0.4 which also means that the probability of no rain is 0.6. In addition we are given the CPT of the Wet-Grass under the conditions of Rain and No Rain.Now how do we proceed to carry out diagnostic inference that is <em>Knowing that the grass is wet, what is the probability<\/em> <em>that rain is the cause?<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-695\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-140.png\" alt=\"\" width=\"336\" height=\"199\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-140.png 336w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-140-300x178.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-140-65x38.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-140-225x133.png 225w\" sizes=\"auto, (max-width: 336px) 100vw, 336px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.5 Causal and Diagnostic Inference<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The procedure for carrying out this diagnostic inference is shown in Figure 32.6. Now using Bayes Theorem we know that P(R|W) can be deduced from P(W|R)<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">*\u00a0 P(R) divided by P(W). Now probability of Wet-Grass P(W) is the summation of P(W|R)*P(R) + P(W|~R)*P(~R) that is the probability of Wet-Grass is based on\u00a0<span style=\"font-size: 1em;text-align: initial\">the probabilities of the states of its cause (Rain), in this case only two states R and ~R.<\/span><\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-696\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-141.png\" alt=\"\" width=\"502\" height=\"188\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-141.png 502w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-141-300x112.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-141-65x24.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-141-225x84.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-141-350x131.png 350w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.6 Diagnostic Inference<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.4 Bayesian Networks Construction &#8211; Icy Roads &#8211; Example II<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Let us now understand how to design a Bayesian Network for the problem statement given in Figure 32.7 .<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong>1.\u00a0 <\/strong><strong>Inspector Smith is waiting for Holmes and Watson who are both late for an appointment.<\/strong><\/p>\n<p><strong>2.\u00a0 <\/strong><strong>Smith is worried that if the roads are icy one or both of them may have crashed his car.<\/strong><\/p>\n<p><strong>3.\u00a0 <\/strong><strong>Suddenly Smith learns that Watson has crashed.<\/strong><\/p>\n<p><strong>4.\u00a0 <\/strong><strong>Smith Thinks \u2013 If Watson has crashed, probably roads are icy, then Holmes has probably crashed too.<\/strong><\/p>\n<p><strong>5.\u00a0 <\/strong><strong>Smith then learns it is warm outside and roads are salted.<\/strong><\/p>\n<p>6.\u00a0\u00a0\u00a0 <strong>Smith thinks \u2013 Watson was unlucky, Holmes should still make it.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Figure 32.7 Icy Roads \u2013 Problem Statement<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">We can model this problem using three random variables namely State of Roads Icy\/not Icy, Watson Crash\/no Crash and Holmes Crash\/no Crash. The Bayesian Network has these three nodes with State of Roads being the reason for Watson Crash\/no Crash and Holmes Crash\/no Crash (Figure 32.8). Now let us understand the flow of information in the network. Now in sentence 3 in the problem statement (Figure 32.7) Smith knows that Watson has crashed. Therefore Watson Crash is true and now information flows from this node to the State of Roads node. Now in sentence 5 Smith comes to know that it is warm outside and roads are salted. Therefor now information flows from State of Roads node to Holmes Crash\/no Crash node. This example shows how different types of inferences needed depends on the knowledge acquired.<\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-697\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-142.png\" alt=\"\" width=\"595\" height=\"248\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-142.png 595w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-142-300x125.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-142-65x27.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-142-225x94.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-142-350x146.png 350w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.8 Bayesian Network for Icy Roads Example<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.5 Conditional Independence in BNs<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Normally edges between the nodes of a Bayesian Network represent conditional dependencies. Nodes that are not connected that is where there is no path from a node to another in the Bayesian networkrepresent variables that are said to be conditionally independent of each other. There are three types of conditional independences associated with Bayesian Networks, namely serial, diverging and converging (Figure 32.9).<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-698\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-143.png\" alt=\"\" width=\"586\" height=\"316\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-143.png 586w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-143-300x162.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-143-65x35.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-143-225x121.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-143-350x189.png 350w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.9 Conditional Independence<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.5.1 Serial Case<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">In the case of serial we have T and given the condition that T is known, A and X are conditionally independent. Conditional independence is due to the fact that the intermediate cause is known.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">32.5.2Diverging Case<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">In the case of diverging we have S being the common cause for two nodes L and B that is the two nodes Land B is connected through the common cause S. Now given the condition that S is known, L and B are conditionally independent. Conditional independence is due to the fact that the common cause is known.<\/span><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>32.5.3 Converging Case<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">In the case of diverging we have two nodes L and B both being causes for the node D which in turn is the cause for the node M. Now given the condition that D the common effect of L and B is not known, and neither is the effect M of the common effect known, then L and B are conditionally independent. Conditional independence is due to the fact that the common effect and in turn its effect is not known.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.6 Bayesian Networks &#8211; Alarm (from Judea Pearl) \u2013 Example III<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The alarm example is a good example to explain many aspects of Bayesian Networks and is therefore a very popular example. Here we use the example to explain the steps in the construction of a Bayesian Network. The problem statement is given in Figure 32.10. The steps in the construction are given below:<\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li><strong>You have a new burglar alarm installed at home. It is fairly reliable at detecting a burglary, but also responds on occasion to minor earthquakes.<\/strong><\/li>\n<li><strong style=\"text-align: initial;font-size: 1em\">You also have two neighbors, John and Mary, who have promised to call you at work when they hear the alarm.<\/strong><\/li>\n<li><strong style=\"text-align: initial;font-size: 1em\">John always calls when he hears the alarm, but sometimes confuses the telephone ringing with the alarm and calls then, too.<\/strong><\/li>\n<li><strong style=\"text-align: initial;font-size: 1em\">Mary, on the other hand, likes rather loud music and sometimes misses the alarm altogether.<\/strong><\/li>\n<li><strong style=\"text-align: initial;font-size: 1em\">Given the evidence of who has or has not called, we would like to estimate the probability of a burglary.<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong>Figure 32.10 Bayesian Network \u2013 Alarm Example\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.6.1 Step 1:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 1em;text-align: initial\">First we determine what the propositional (random) variables should be. Then we determine causal (or another type of influence) relationships and develop the topology of the network.<\/span><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Variables are identified as: <em>Burglary<\/em>, <em>Earthquake<\/em>, <em>Alarm<\/em>, <em>JohnCalls<\/em>, <em>MaryCalls<\/em> The Network topology reflecting the &#8220;causal&#8221; knowledge is as follows:<\/p>\n<p>&nbsp;<\/p>\n<p>\u2013\u00a0 A burglar can set the alarm off<\/p>\n<p>&nbsp;<\/p>\n<p>\u2013\u00a0 An earthquake can set the alarm off<\/p>\n<p>&nbsp;<\/p>\n<p>\u2013\u00a0 The alarm can cause Mary to call<\/p>\n<p>&nbsp;<\/p>\n<p>\u2013\u00a0 The alarm can cause John to call<\/p>\n<p>&nbsp;<\/p>\n<p>The resulting Topology of the Bayesian Network is shown in Figure 32.11.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-699\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-144.png\" alt=\"\" width=\"546\" height=\"245\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-144.png 546w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-144-300x135.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-144-65x29.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-144-225x101.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-144-350x157.png 350w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.11 Topology of the Network<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.6.2 Step 2:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Next we need to specify a <em>conditional probability table<\/em> or CPT for each node. This can be done through observations or using heuristics. Each row in the table contains the conditional probability of each node value for a conditioning case (possible combinations of values for parent nodes).In the example, the possible values for each node are true\/false.The sum of the probabilities for each value of a node given a particular conditioning case is 1. For example the CPT for Alarm Node is shown in Figure 32.12. This CPT indicates the probability of Alarm given Burglar and Earthquake. Now both Burglar and Earthquake can each take values of T\/F. Hence this CPT has four rows. The value of both T and F values of P(A|B,E) forgiven T and F values of B and E is indicated in the CPT (Figure 32.12).<\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-700\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-145.png\" alt=\"\" width=\"344\" height=\"239\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-145.png 344w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-145-300x208.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-145-65x45.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-145-225x156.png 225w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.12 CPT of Alarm Node<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Similarly the CPT for each of the other nodes is shown in Figure 32.13. Please note that the nodes Burglar and Earthquake are independent and hence independent probability is associated with these nodes.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-701\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-146.png\" alt=\"\" width=\"534\" height=\"261\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-146.png 534w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-146-300x147.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-146-65x32.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-146-225x110.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-146-350x171.png 350w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.13 Bayesian Network with CPTs of all Nodes for Alarm Example<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.7 Semantics of Bayesian Networks<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">There are two views of a Bayesian Network. View 1 says that a belief network is a representation of the joint probability distribution (\u201cjoint\u201d) of a domain.The joint completely specifies an agent\u2019s probability assignments to all propositions in the domain (both simple and complex). In other words the network can be viewed as a representation of joint probability distribution of its variables. A generic entry in the joint probability distribution is the probability of a conjunction of particular assignments to each variable, such as:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-702\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-147.png\" alt=\"\" width=\"286\" height=\"63\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-147.png 286w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-147-65x14.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-147-225x50.png 225w\" sizes=\"auto, (max-width: 286px) 100vw, 286px\" \/><\/p>\n<\/div>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">We can see that each entry in the joint is represented by the product of appropriate elements of the CPTs in the belief network.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 1em\">For the Alarm example we can calculate the probability of the event that the alarm has sounded but neither a burglary nor an earthquake has occurred, and both John and Mary call as given below:<\/span><\/p>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-705\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-148.png\" alt=\"\" width=\"327\" height=\"94\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-148.png 327w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-148-300x86.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-148-65x19.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-148-225x65.png 225w\" sizes=\"auto, (max-width: 327px) 100vw, 327px\" \/><\/p>\n<p style=\"text-align: justify\">The second view is that the Bayesian networkis an encoding of a collection of conditional independence statements.For the Alarm example<\/p>\n<p>&nbsp;<\/p>\n<p>\u2013 <strong>JohnCalls is conditionally independent of other variables in<\/strong> <strong>the network given the value of Alarm<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>This view is useful for understanding inference procedures for the networks <strong>.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.8 Inferences in Bayesian Networks<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Basically as we have already discussed there are two basic types of inferences associated with Bayesian Networks namely causal Inferences and diagnostic inferences.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-706\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-149.png\" alt=\"\" width=\"579\" height=\"281\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-149.png 579w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-149-300x146.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-149-65x32.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-149-225x109.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-149-350x170.png 350w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.14 Causal Inference<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.8.1 Causal Inference:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Causal Inference is basically inference from cause to effect. In Figure 32.14 given Burglary we can find the probability of John calling (P(J|B)). Note that this is indirect inference since Burglary causes Alarm which in turn causes John to call. Therefore we first need the probability of Alarm ringing given that Burglary has occurred (P(A|B)).<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong style=\"text-align: initial;font-size: 1em\">32.8.1.1 Step 1: Calculating P(A|B)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">P(A|B) is calculated by considering the probability of Alarm ringing based on both occurrence of Burglary (probability 1 since this is given) and occurrence of Earthquake (which may or may not occur). Therefore for P(A|B) we consider the two rows from the CPT of Alarm node where Burglary is True and calculate P(A|B) as the sum of these two terms with associated probabilities as given in Figure 32.14.<\/span><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>32.8.1.2 Step 2: Calculating P(J|B)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">In the next step we need to calculate probability of John calling given the probability of Burglary. Here we have that either the Alarm rings when burglary occurs P(A) which we calculated in Step 1 or does not ring which is 1- P(A). Now we associate the probability of P(J) given A from the CPT of J as given in Figure 32.13. Using these two probability values we can calculate the probability of John calling given burglary occurred (Figure 32.14).<\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.8.2 Diagnostic Inference<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">DiagnosticInference is basically inference from effect to cause. In Figure 32.15 given that John calls, we can find the probability of Burglary occuring (P(B|J)). Note that this is indirect inference since John calling was caused by Alarm ringing P(J|A) which in turn was caused by a Burglary (P(B|A)).<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Now we first apply Bayes theorem to find P(B|J) as given in Figure 32.15. Now this shows that we need to know the probability of John calling that is P(J). However for finding probability of P(J) we need to know probability of Alarm ringing that is P(A).<\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.8.2.1 Step 1: Calculating P(A)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">For calculating P(A), we do not have any information of whether Burglary occurred or Earthquake occurred. Hence we consider the four rows of the CPT of Alarm node with probability of truth values of Burglary and Earthquake from their respective probability tables (Figure 32.15).<\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.8.2.2 Step 2: Calculating P(J)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">We use the value of P(A) calculated in step 1 for the calculation of probability of john calling that is P(J). Here we consider the probability thatAlarm rang and did not ring (1 \u2013 P(A)) for the calculation of P(J) from its CPT.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.8.2.3 Step 3: Calculating P(B|J)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Now we can calculate the probability of Burglary given John called using the Bayes theorem. We first need the value of P(J|B) which we can calculate as shown in Section 32.8.1. The probability value of occurrence of Burglary P(B) can be obtained from its probability table and P(J) has been calculated as explained in Section 32.8.2.2.<\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-707\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-150.png\" alt=\"\" width=\"595\" height=\"224\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-150.png 595w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-150-300x113.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-150-65x24.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-150-225x85.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-150-350x132.png 350w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.15 Diagnostic Inference<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>32.9 Realistic Example &#8211; Population-wide ANomaly Detection &amp; Assessment (PANDA)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">A realistic example of the use of Bayesian network is a detector specifically for a large-scale outdoor release of inhalational anthrax (reference Bayesian Biosurveillance of Disease Outbreaks, Gregory F., Denver H. Dash, John D.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Levander, Weng-Keen Wong,Proceedings of the 20th conference on Uncertainty in Artificial Intelligence, 2004)<strong>.<\/strong> Here a massive causal Bayesian network was used with a population-wide approach where each person in the population is represented as a sub-network in the overall model (Figure 32.16). Please note the conditional independence assumptions. Also note that Anthrax is assumed to be infectious but non-contagious. The structure of the Network that is the causal dependencies were designed through expert judgment and the parameters obtained from census data, training data, and expert assessments obtainedfrom literature and by experience.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-709\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-151.png\" alt=\"\" width=\"578\" height=\"181\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-151.png 578w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-151-300x94.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-151-65x20.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-151-225x70.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-151-350x110.png 350w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 32.16 Panda Network<\/strong><\/p>\n<p><strong>Summary<\/strong><\/p>\n<ul>\n<li>Explained the construction of the Bayesian network<\/li>\n<li>Discussed the examples of Bayesian networks<\/li>\n<li><span style=\"text-align: initial;font-size: 1em\">Outlined inferencing in Bayesian Belief Networks.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Web Links<\/strong><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>http:\/\/people.cs.pitt.edu\/~milos\/courses\/cs2750-Spring03\/lectures\/class2.pdf<\/li>\n<li>http:\/\/learningforward.org\/docs\/default-source\/commoncore\/comprehensive-professional-learning system.pdf&#8221; type=&#8221;application\/pdf<\/li>\n<li>http:\/\/digitalcommons.ilr.cornell.edu\/cgi\/viewcontent.cgi?article=1405&amp;amp;context=c ahrswp&#8221; type=&#8221;application\/pdf<\/li>\n<li>&#8220;http:\/\/www.cse.hcmut.edu.vn\/~tru\/AI\/chapter11.pdf&#8221; type=&#8221;application\/pdf<\/li>\n<li>http:\/\/www.holehouse.org\/mlclass\/11_Machine_Learning_System_Design.html<\/li>\n<li>ssdi.di.fct.unl.pt\/pc\/0607\/files\/PCaulaT03 -10-06.ppt<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Supporting &amp; Reference Materials<\/strong><\/p>\n<ul>\n<li>Tom <a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Mitchell&amp;search-alias=stripbooks\">Mitchell, <\/a>\u201cMachine Learning\u201d,McGraw-Hill Education, 1997<\/li>\n<li><a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Alpaydin+Ethem&amp;search-alias=stripbooks\">AlpaydinEthem, <\/a>\u201cIntroduction to Machine Learning\u201d, The MIT Press; third edition, 2014<\/li>\n<li>Christopher M. <a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Bishop&amp;search-alias=stripbooks\">Bishop, <\/a>\u201cPattern Recognition and Machine Learning\u201d,Springer, 2013 <a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Peter+Harrington&amp;search-alias=stripbooks\">Peter Harrington, <\/a>\u201cMachine Learning In Action\u201d, Manning Publications, 2012<\/li>\n<li><a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Peter+Flach&amp;search-alias=stripbooks\">Peter Flach, <\/a>\u201cMachine Learning: The Art and Science of Algorithms that Make Sense of Data\u201d,Cambridge University Press, 2012<\/li>\n<li><a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Stephen+Marsland&amp;search-alias=stripbooks\">Stephen Marsland, <\/a>\u201cMachine Learning: An Algorithmic Perspective\u201d, Chapman and Hall\/CRC; 2 edition, 2014<\/li>\n<li>Y. S. Abu-Mostafa, M. Magdon-Ismail, and H.-T. Lin, \u201cLearning from Data\u201d, AMLBook<\/li>\n<\/ul>\n<\/div>\n","protected":false},"author":3,"menu_order":31,"template":"","meta":{"_acf_changed":false,"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-688","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":8,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/688\/revisions"}],"predecessor-version":[{"id":711,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/688\/revisions\/711"}],"part":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/688\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/media?parent=688"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapter-type?post=688"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/contributor?post=688"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/license?post=688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}