{"id":3407,"date":"2024-09-01T13:43:28","date_gmt":"2024-09-01T13:43:28","guid":{"rendered":"https:\/\/workhouse.sweetdishy.com\/?p=3407"},"modified":"2024-09-01T13:43:28","modified_gmt":"2024-09-01T13:43:28","slug":"bayes-theorem","status":"publish","type":"post","link":"https:\/\/workhouse.sweetdishy.com\/index.php\/2024\/09\/01\/bayes-theorem\/","title":{"rendered":"Bayes\u2019 Theorem"},"content":{"rendered":"\n<p id=\"Par45\">As the name implies, descriptive statistics provides information about your data. We\u2019ve already seen this with such things as averages and&nbsp;standard deviations.<\/p>\n\n\n\n<p id=\"Par46\">But of course, you can go well beyond this\u2014basically, by using the Bayes\u2019&nbsp;theorem. This approach is common in analyzing medical diseases, in which cause and effect are key\u2014say for FDA (Federal Drug Administration) trials.<\/p>\n\n\n\n<p id=\"Par47\">To understand how Bayes\u2019 theorem works, let\u2019s take an example. A researcher comes up with a test for a certain type of cancer, and it has proven to be accurate 80% of the time. This is known as a true positive.<\/p>\n\n\n\n<p id=\"Par48\">But 9.6% of the time, the test will identify the person as having the cancer even though he or she does not have it, which is known as a false positive. Keep in mind that\u2014in some drug tests\u2014this percentage may be higher than the accuracy rate!<\/p>\n\n\n\n<p id=\"Par49\">And finally, 1% of the population has the cancer.<\/p>\n\n\n\n<p>In light of all this, if a doctor uses the test on you and it shows that you have the cancer, what is the probability that you really have the cancer? Well, Bayes\u2019 theorem will show the way. This calculation uses factors like accuracy rates, false positives, and the population rate to come up with a probability:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>Step #1<\/em>: 80% accuracy rate \u00d7 the chance of having the cancer (1%) = 0.008.<\/li>\n\n\n\n<li><em>Step #2<\/em>: The chance of not having the cancer (99%) \u00d7 the 9.6% false positive = 0.09504.<\/li>\n\n\n\n<li><em>Step #3<\/em>: Then plug the above numbers into the following equation: 0.008 \/ (0.008 + 0.09504) = 7.8%.<\/li>\n<\/ul>\n\n\n\n<p id=\"Par54\">Sounds kind of out of whack, right? Definitely. After all, how is it that a test, which is 90% accurate, has only a 7.8% probability of being right? But remember the accuracy rate is based on the measure of those who have the flu. And this is a small number since only 1% of the population has the flu. What\u2019s more, the test is still giving off false positives. So Bayes\u2019 theorem is a way to provide a better understanding of results\u2014which is critical for systems like AI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As the name implies, descriptive statistics provides information about your data. We\u2019ve already seen this with such things as averages and&nbsp;standard deviations. But of course, you can go well beyond this\u2014basically, by using the Bayes\u2019&nbsp;theorem. This approach is common in analyzing medical diseases, in which cause and effect are key\u2014say for FDA (Federal Drug Administration) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3326,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[441],"tags":[],"class_list":["post-3407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3-machine-learning"],"jetpack_featured_media_url":"https:\/\/workhouse.sweetdishy.com\/wp-content\/uploads\/2024\/08\/images-41-1.jpeg","_links":{"self":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/3407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/comments?post=3407"}],"version-history":[{"count":1,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/3407\/revisions"}],"predecessor-version":[{"id":3408,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/3407\/revisions\/3408"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media\/3326"}],"wp:attachment":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media?parent=3407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/categories?post=3407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/tags?post=3407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}