{"id":168,"date":"2012-06-04T05:16:39","date_gmt":"2012-06-04T05:16:39","guid":{"rendered":"http:\/\/morganredfield.com\/blog\/?p=168"},"modified":"2022-03-22T01:10:51","modified_gmt":"2022-03-22T01:10:51","slug":"probability-and-logic","status":"publish","type":"post","link":"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/","title":{"rendered":"Probability and Logic"},"content":{"rendered":"<p>When I first started learning math I focused a lot on formal logic and proofs. I had a lot of fun deriving things using induction, proof by contradiction, and simple direct proofs. It&#8217;s been a long time since I&#8217;ve done much of that, but I find myself thinking a lot about methods of proving things as I learn more about signal processing and statistics.<\/p>\n<p>I spent some time recently studying hypothesis testing and signal detection theory for a classification problem I&#8217;m working on at school. What really surprised me about the two things was how similar they were to proof by contradiction. The main ideas in hypothesis testing is<\/p>\n<ol>\n<li>figuring what you want to show (called H1), and<\/li>\n<li>showing that the opposite of that (called H0) is unlikely<\/li>\n<\/ol>\n<p>This is where the infamous <a href=\"http:\/\/en.wikipedia.org\/wiki\/P-value\">p-value<\/a> comes from. If you want to show that eating spinach gives people Popeye arms, you start by assuming that it doesn&#8217;t. This is called the null hypothesis and is denoted by H0. After you do a lot of measurements on people who have eaten spinach, you figure out how likely are their huge Popeye arms under the assumption that nothing at all has happened. That probability is called your p-value, and if it&#8217;s very low then you&#8217;ve got your &#8220;proof by contradiction&#8221;. A low probability that their Popeye arms are due to the null hypothesis indicates that there&#8217;s a high probability that something interesting is going on with those cans of spinach.<\/p>\n<p>And because you&#8217;re doing statistics, it doesn&#8217;t actually prove anything. All it shows is that it&#8217;s more likely that spinach has an effect than that it doesn&#8217;t. It&#8217;s kind of a subtle point, and has led to a lot of mistaken or misleading scientific papers over the past few decades. That&#8217;s one of the reasons that a lot of people are calling for different methods of testing hypotheses (such as <a href=\"http:\/\/www.math.umass.edu\/~lavine\/whatisbayes.pdf\">Bayesian methods [pdf]<\/a>).<\/p>\n<p>To my mind, Bayesian methods correspond more to a direct proof. That may make it easier to understand and get right, but it doesn&#8217;t mean that hypothesis testing&#8217;s p-values are useless. There&#8217;s room in science for all kinds of methods, just like so many proof methods can be useful. The key is to know your tools and understand their limitations.<\/p>\n<p>And right off the bat we can see one of the main limitations with hypothesis testing using p-values. Since you&#8217;re doing something akin to &#8220;proof by contradiction&#8221;, you can&#8217;t compare different options very easily. You can say things like &#8220;Popeye arms are likely to be cause by eating spinach with p-value .02&#8221; or &#8220;Popeye arms are likely to be caused by excessive mastubation with p-value .03&#8221;, but you can&#8217;t compare those two hypotheses. One may be more likely to be true than the other, but you can&#8217;t easily tell just using p-values. Since you&#8217;re only comparing individual hypotheses to the null hypothesis, you don&#8217;t know how the hypotheses relate to each other.<\/p>\n<p>That said, hypothesis testing and p-values can be a strong technique when used on the right problem; just like proof by contradiction.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I first started learning math I focused a lot on formal logic and proofs. I had a lot of fun deriving things using induction, proof by contradiction, and simple direct proofs. It&#8217;s been a long time since I&#8217;ve done much of that, but I find myself thinking a lot about methods of proving things &hellip; <a href=\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Probability and Logic&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7,52,51],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-math","tag-p-value","tag-probability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Probability and Logic - Theory and Practice<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Probability and Logic - Theory and Practice\" \/>\n<meta property=\"og:description\" content=\"When I first started learning math I focused a lot on formal logic and proofs. I had a lot of fun deriving things using induction, proof by contradiction, and simple direct proofs. It&#8217;s been a long time since I&#8217;ve done much of that, but I find myself thinking a lot about methods of proving things &hellip; Continue reading &quot;Probability and Logic&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/\" \/>\n<meta property=\"og:site_name\" content=\"Theory and Practice\" \/>\n<meta property=\"article:published_time\" content=\"2012-06-04T05:16:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-22T01:10:51+00:00\" \/>\n<meta name=\"author\" content=\"morgan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"morgan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/\"},\"author\":{\"name\":\"morgan\",\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\"},\"headline\":\"Probability and Logic\",\"datePublished\":\"2012-06-04T05:16:39+00:00\",\"dateModified\":\"2022-03-22T01:10:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/\"},\"wordCount\":536,\"publisher\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\"},\"keywords\":[\"math\",\"p-value\",\"probability\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/\",\"url\":\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/\",\"name\":\"Probability and Logic - Theory and Practice\",\"isPartOf\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#website\"},\"datePublished\":\"2012-06-04T05:16:39+00:00\",\"dateModified\":\"2022-03-22T01:10:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/morganredfield.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Probability and Logic\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/morganredfield.com\/blog\/#website\",\"url\":\"https:\/\/morganredfield.com\/blog\/\",\"name\":\"Theory and Practice\",\"description\":\"Exploring life through science and art.\",\"publisher\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/morganredfield.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd\",\"name\":\"morgan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g\",\"caption\":\"morgan\"},\"logo\":{\"@id\":\"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/morganredfield.com\/blog\/author\/morgan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Probability and Logic - Theory and Practice","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/","og_locale":"en_US","og_type":"article","og_title":"Probability and Logic - Theory and Practice","og_description":"When I first started learning math I focused a lot on formal logic and proofs. I had a lot of fun deriving things using induction, proof by contradiction, and simple direct proofs. It&#8217;s been a long time since I&#8217;ve done much of that, but I find myself thinking a lot about methods of proving things &hellip; Continue reading \"Probability and Logic\"","og_url":"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/","og_site_name":"Theory and Practice","article_published_time":"2012-06-04T05:16:39+00:00","article_modified_time":"2022-03-22T01:10:51+00:00","author":"morgan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"morgan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/#article","isPartOf":{"@id":"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/"},"author":{"name":"morgan","@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd"},"headline":"Probability and Logic","datePublished":"2012-06-04T05:16:39+00:00","dateModified":"2022-03-22T01:10:51+00:00","mainEntityOfPage":{"@id":"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/"},"wordCount":536,"publisher":{"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd"},"keywords":["math","p-value","probability"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/","url":"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/","name":"Probability and Logic - Theory and Practice","isPartOf":{"@id":"https:\/\/morganredfield.com\/blog\/#website"},"datePublished":"2012-06-04T05:16:39+00:00","dateModified":"2022-03-22T01:10:51+00:00","breadcrumb":{"@id":"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/morganredfield.com\/blog\/2012\/06\/probability-and-logic\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/morganredfield.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Probability and Logic"}]},{"@type":"WebSite","@id":"https:\/\/morganredfield.com\/blog\/#website","url":"https:\/\/morganredfield.com\/blog\/","name":"Theory and Practice","description":"Exploring life through science and art.","publisher":{"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/morganredfield.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/15fce334735dd60ce7bb5712c44a62dd","name":"morgan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0da7fa0a0a07a8497d51de4300111d978b649e254fc1afa26dc67f3b83d24c38?s=96&d=mm&r=g","caption":"morgan"},"logo":{"@id":"https:\/\/morganredfield.com\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/morganredfield.com\/blog\/author\/morgan\/"}]}},"_links":{"self":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":3,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/posts\/168\/revisions\/171"}],"wp:attachment":[{"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morganredfield.com\/blog\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}