{"id":3875,"date":"2020-09-16T06:34:17","date_gmt":"2020-09-16T06:34:17","guid":{"rendered":"https:\/\/www.aiproblog.com\/index.php\/2020\/09\/16\/stumped-by-bayes-theorem-try-this-simple-workaround\/"},"modified":"2020-09-16T06:34:17","modified_gmt":"2020-09-16T06:34:17","slug":"stumped-by-bayes-theorem-try-this-simple-workaround","status":"publish","type":"post","link":"https:\/\/www.aiproblog.com\/index.php\/2020\/09\/16\/stumped-by-bayes-theorem-try-this-simple-workaround\/","title":{"rendered":"Stumped by Bayes&#8217; Theorem? Try This Simple Workaround"},"content":{"rendered":"<p>Author: Stephanie Glen<\/p>\n<div>\n<p><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/7927720873?profile=original\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/7927720873?profile=RESIZE_710x\" class=\"align-full\"><em>Bayes&#8217; Theorem formula.<\/em><\/a><\/p>\n<\/p>\n<p><a href=\"https:\/\/www.statisticshowto.com\/bayes-theorem-problems\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bayes&#8217; Theorem<\/a>, which The Stanford Encyclopedia of Philosophy calls &#8220;&#8230;a simple mathematical formula&#8221; can be surprisingly difficult to actually solve.&nbsp;If you struggle with Bayesian logic, solving the &#8220;simple&#8221; formula involves not much more than guesswork. You have to translate a problem into &#8220;A given B&#8221; and &#8220;B given A&#8221;, cross your fingers that you&#8217;re guess for whatever A and B is is right, double check your thoughts, get thoroughly lost, and punch the resulting fractions into a calculator. The calculator will spit out an answer which may or may not be correct as you have no idea what your point-oh-something solution means in terms of the original problem. If this sounds like you, you&#8217;re not alone: various studies have shown that&nbsp;<a href=\"https:\/\/www.statisticshowto.com\/blog\/#physicians\" target=\"_blank\" rel=\"noopener noreferrer\">the vast majority of physicians can&#8217;t work the formula either.<\/a><\/p>\n<p>But <strong>there&#8217;s a more intuitive way to get to the same answer,<\/strong> without the counter-intuitive formula. The procedure in question? None other than the humble&nbsp;<a href=\"https:\/\/www.statisticshowto.com\/how-to-use-a-probability-tree-for-probability-questions\/\" target=\"_blank\" rel=\"noopener noreferrer\">probability tree<\/a>.<\/p>\n<h2>How to Use a Tree to Solve Bayes&#8217; Formula<\/h2>\n<p>This example problem is adapted from a problem in Gigrenzer &amp; Hoffrage&#8217;s <em>How to Improve Bayesian Reasoning Without Instruction: Frequency Formats<\/em>:&nbsp;<\/p>\n<p>Out of 1,000 patients, 10 have a rare disease. Eight of those diseased individuals display symptoms. Out of the 990 healthy individuals, 95 display symptoms. What is the probability a patient with symptoms actually has the disease?<\/p>\n<\/p>\n<p>Here&#8217;s the traditional textbook method, using the Bayesian algorithm.<\/p>\n<p><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/7927708262?profile=original\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/7927708262?profile=RESIZE_710x\" class=\"align-full\"><\/a><\/p>\n<p>If you&#8217;re good with numbers, you may be able to immediately see that the answer this question with a simple ratio: number of diseased people with symptoms \/ total number of people with symptoms.&nbsp;<\/p>\n<p>Now let&#8217;s construct the same answer with a probability tree:<\/p>\n<p><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/7927629053?profile=original\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/7927629053?profile=RESIZE_710x\" width=\"630\" class=\"align-full\"><\/a><\/p>\n<\/p>\n<p>From there, the math is a simple ratio:<\/p>\n<p>Number of people with disease and symptoms (8) \/ Total number with symptoms (8 + 95)<\/p>\n<p>which gives us:<\/p>\n<p>8 \/ 103 = 0.078.<\/p>\n<\/p>\n<p>Let&#8217;s try <strong>another example<\/strong> (borrowed from <a href=\"https:\/\/www.statisticshowto.com\/bayes-theorem-problems\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bayes&#8217; Theorem Problems<\/a>):<\/p>\n<p>You want to know a patient&rsquo;s probability of having liver disease if they are an alcoholic. 10% of patients at a certain clinic have liver disease.&nbsp;Five percent of the clinic&rsquo;s patients are alcoholics. Out of those patients diagnosed with liver disease, 7% are alcoholics.<\/p>\n<p><a href=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/7930835496?profile=original\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/storage.ning.com\/topology\/rest\/1.0\/file\/get\/7930835496?profile=RESIZE_710x\" width=\"600\" class=\"align-full\"><\/a><\/p>\n<\/p>\n<p>Like the first problem, the first branch here is also &#8220;disease&#8221;, but the second branch needs to address &#8220;alcoholism&#8221; instead of &#8220;symptoms&#8221;. We&#8217;re not told &#8220;how many&#8221; patients, so I&#8217;ll use 1000&#8211;which is usually a sufficient number for problems like this. You&#8217;re also not told explicitly the number of alcoholics (or % of non-liver disease alcoholics), but you can use a little logical deduction:<\/p>\n<p>Out of 1000, patients, 5% (50 total) are alcoholic,<\/p>\n<p>7% of patients with liver disease are alcoholic. That gives you 7 (green box), leaving 43 for the orange box.<\/p>\n<p>Now all we have to do is figure out the ratio:<\/p>\n<p>Number of people with disease and alcoholism (7) \/ Total number with alcoholism (50)<\/p>\n<p>which gives us:<\/p>\n<p>7 \/ 50 = 0.14<\/p>\n<p>Which is <strong>exactly the same answer you would get by actually working the formula.<\/strong> In fact, I&#8217;ve never come across a Bayes&#8217; related problem that can&#8217;t be answered with a probability tree and a little logical reasoning. So if the formula is giving you headaches, just do what I did&#8211;and ditch it in favor of a more intuitive approach.<\/p>\n<\/p>\n<p><strong>References<\/strong><\/p>\n<p>Gigrenzer, G. &amp; Hoffrage, U.&nbsp;&nbsp;How to Improve Bayesian Reasoning Without Instruction: Frequency Formats.&nbsp;Psychological Review, 102 (4), 1995, 684&ndash;704. <a href=\"http:\/\/www.apa.org\/journals\/rev\/\">www.apa.org\/journals\/rev\/<\/a><\/p>\n<p>Gould, S. J. (1992). Bully for brontosaurus: Further reflections in natural history. New York: Penguin Books.<\/p>\n<p><a href=\"https:\/\/plato.stanford.edu\/entries\/bayes-theorem\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bayes&#8217; Theorem<\/a><\/p>\n<\/p>\n<\/div>\n<p><a href=\"https:\/\/www.datasciencecentral.com\/xn\/detail\/6448529:BlogPost:980607\">Go to Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Author: Stephanie Glen Bayes&#8217; Theorem formula. Bayes&#8217; Theorem, which The Stanford Encyclopedia of Philosophy calls &#8220;&#8230;a simple mathematical formula&#8221; can be surprisingly difficult to actually [&hellip;] <span class=\"read-more-link\"><a class=\"read-more\" href=\"https:\/\/www.aiproblog.com\/index.php\/2020\/09\/16\/stumped-by-bayes-theorem-try-this-simple-workaround\/\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":469,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[26],"tags":[],"_links":{"self":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/3875"}],"collection":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=3875"}],"version-history":[{"count":0,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/3875\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media\/475"}],"wp:attachment":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=3875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=3875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=3875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}