{"id":250,"date":"2015-07-03T23:30:45","date_gmt":"2015-07-04T03:30:45","guid":{"rendered":"http:\/\/aristotle2digital.blogwyrm.com\/?p=250"},"modified":"2021-11-25T20:59:27","modified_gmt":"2021-11-26T01:59:27","slug":"bayesian-inference-cause-and-effect","status":"publish","type":"post","link":"https:\/\/aristotle2digital.blogwyrm.com\/?p=250","title":{"rendered":"Bayesian Inference \u2013 Cause and Effect"},"content":{"rendered":"<p>In the last column, the basic inner workings of Bayes theorem were demonstrated in the case where two different random variable realizations (the attributes of the Christmas tree bulbs) occurred together in a joint probability function.\u00a0 The theorem holds whether the probability functions for the two events are independent or are correlated.\u00a0 In addition, it can be generalized in an obvious way to cases where there are more than two variables and where one some or all of them are continuous rather than discrete random variables.<\/p>\n<p>If that were all there was to it \u2013 a mechanical demonstration between conditional and joint probabilities \u2013 Bayes theorem would make a curious footnote in probability and statistics textbooks and would hold little practical interest and no controversy.\u00a0 \u00a0However, the real power of Bayes theorem comes in ability to link one statistical event with another and to allow inferences to be made about cause and effect.<\/p>\n<p>Before looking at how inferences (sometimes very subtle and non-intuitive) can be drawn, let\u2019s take a moment to step back and consider why Bayes theorem works.<\/p>\n<p>The key insight come from examining the meaning contained in the joint probability that two events, $A$ and $B$, will both occur.\u00a0 This probability is written as<\/p>\n<p>\\[ P( A \\cap B ) \\; , \\]<\/p>\n<p>where the operator $\\cap$ is the logical \u2018and\u2019 requiring both $A$ and $B$ to be true.\u00a0 It is at this point that the philosophically interesting implications can be made.<\/p>\n<p>Suppose that we believe that $A$ is a cause of $B$.\u00a0 This causal link could take the form of something like: $A$ = \u2018it was raining\u2019 and $B$ = \u2018the ground is wet\u2019.\u00a0 Then it is obvious that the joint probability takes the form<\/p>\n<p>\\[ P( A \\cap B ) = P(B|A) P(A) \\; , \\]<\/p>\n<p>which in words says that the probability that \u2018it was raining and the ground is wet\u2019 = the probability that \u2018the ground is wet given that it was raining\u2019 times the probability that \u2018it was raining\u2019.<\/p>\n<p>Sometimes, the link between cause and effect is obvious and no probabilistic reasoning is required.\u00a0 For example, if the event is changed from \u2018it was raining\u2019 to \u2018it is raining\u2019, it becomes clear that \u2018the ground is wet\u2019 due to the rain.\u00a0 (Of course even in this case, another factor may also be contributing to how wet the ground is but that complication is naturally handled with the conditional probability).<\/p>\n<p>Often, however, we don\u2019t observe the direct connection between the cause and the effect.\u00a0 Maybe we woke up after the rain had stopped and the clouds had moved on and all we observe is that the ground is wet.\u00a0 What can we then infer?\u00a0 If we lived somewhere without running water (natural or man-made), then the conditional probability \u2018that the ground is wet given that is was raining\u2019 would be 1 and we would infer that \u2018it was raining\u2019.\u00a0 There would be no way for the ground to be wet other than to have had rain fall from the sky.\u00a0 In general, such a clear indication between cause and effect doesn\u2019t happen and the conditional probability describes the likelihood that some other cause has led to the same event.\u00a0 In the case of the \u2018ground is wet\u2019 event perhaps a water main had burst or a neighbor had watered their lawn.<\/p>\n<p>In order to infer anything about the cause from the observed effect, we want to reverse the roles of $A$ and $B$ and argue backwards, as it were.\u00a0 The joint probability can be written with the mathematical roles of $A$ and $B$ reversed to yield<\/p>\n<p>\\[ P( A \\cap B ) = P(A|B) P(B) \\; , \\]<\/p>\n<p>Equating the two expressions for the joint probability gives Bayes theorem and also a way of statistically inferring the likelihood that a particular cause $A$ gave the observed effect $B$.<\/p>\n<p>Of course any inference obtained in this fashion is open to a great deal of doubt and scrutiny due to the fact that the link backwards from observation to proposed or inferred origin is one built on probabilities.\u00a0 Without some overriding philosophical principle (e.g. a conservation law) it is easy to confuse coincidence or correlation with causation. Inductive reasoning can then lead to probabilistically support but untrue conclusions like <a href=\"http:\/\/aristotle2digital.blogwyrm.com\/?p=64\">all swans are white<\/a> \u2013 so we have to be on our guard.<\/p>\n<p>Next week\u2019s column will showcase one such trap within the context of mandatory drug testing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the last column, the basic inner workings of Bayes theorem were demonstrated in the case where two different random variable realizations (the attributes of the Christmas tree bulbs) occurred&#8230; <a class=\"read-more-button\" href=\"https:\/\/aristotle2digital.blogwyrm.com\/?p=250\">Read more &gt;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-250","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=250"}],"version-history":[{"count":0,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/250\/revisions"}],"wp:attachment":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}