{"id":1274,"date":"2020-02-18T07:40:21","date_gmt":"2020-02-18T13:40:21","guid":{"rendered":"https:\/\/errorcodespro.com\/?p=1274"},"modified":"2020-02-18T07:40:21","modified_gmt":"2020-02-18T13:40:21","slug":"type-1-type-2-errors","status":"publish","type":"post","link":"https:\/\/errorcodespro.com\/type-1-type-2-errors\/","title":{"rendered":"What Are Type 1 &#038; Type 2 Errors? | Definitions &#038; Examples"},"content":{"rendered":"<p>This tutorial examines what is know as\u00a0<strong>type 1<\/strong>\u00a0and <strong>type 2 errors <\/strong>in statistics.<\/p>\n<p>If you have ever wondered what <strong>type I<\/strong> and <strong>type II<\/strong>, you have come to the right place. Although this is a fairly technical topic, an attempt will be to present the information in the clearest and easiest way to understand as possible.<\/p>\n<p>We will begin, of course, by defining the terms succinctly before we go further into them.<\/p>\n<h2>Quick Explanation<\/h2>\n<p>[su_youtube url=&#8221;https:\/\/www.youtube.com\/watch?v=a_l991xUAOU&#8221;]<\/p>\n<h2><strong>What Are Type I and Type II Errors? <\/strong><\/h2>\n<p>The terms <strong>type I<\/strong> and <strong>type II<\/strong> are used in the context of statistical hypothesis testing, so before we can go into the differences between <strong>type I<\/strong> and <strong>type II errors<\/strong>, we should talk a little bit about statistical hypotheses.<\/p>\n<p>A statistical hypothesis is also referred to as confirmatory data analysis. So if you\u2019ve heard that term, know that they are one and the same thing.<\/p>\n<p>So, statistical hypothesis testing is what they call when a process is shaped through some random variables and that hypothesis is tested.<\/p>\n<p>We could go into a lot more detail about statistical hypothesis testing, but going back to <strong>type I<\/strong> and <strong>type II<\/strong> errors have to do with a null hypothesis.<\/p>\n<p>What is a null hypothesis? Often, a null hypothesis is how we refer to how a statement has no effect so it does not make any difference at all. <em>Null hypotheses<\/em> can be used in all kind of experiments, so we can give you an example that has nothing to do with computers. For example, \u201cThis workout routine does not have any impact on people\u2019s fitness.\u201d<\/p>\n<p>So, in other words, we could say that a <em>null hypothesis<\/em> is a false hypothesis.<\/p>\n<p>Having said all that, let\u2019s now look into <strong>type I<\/strong> and <strong>type II<\/strong> error separately.<\/p>\n<p><strong>Type I error<\/strong>, which is also sometimes referred to as an <strong>error of the first kind<\/strong> is what you would call when you reject a null hypothesis that it is actually true. So, if you reject a hypothesis on the basis that you have not even checked that the hypothesis you are testing meets the basic requirements to be valid. If you do this, your hypothesis will lead to a type I error or an error of the first kind.<\/p>\n<p><strong>Type II error<\/strong>, which is also sometimes referred to as an <strong>error of the second kind<\/strong> is in a way the opposite to type I error. Because that may not be too clear, let\u2019s go into what that means. This error is the result of not rejecting a <em>false null hypothesis<\/em>. Obviously, we are talking about rejecting the hypothesis knowingly but rather when testing the hypothesis does not go the way is supposed to and, therefore, it will reject the hypothesis erroneously.<\/p>\n<h2><strong>What Are Null Hypotheses? <\/strong><\/h2>\n<p><em>Hypothesis testing<\/em> is used across a large number of different disciplines including the social and natural sciences, although many people may think of hypothesis testing as something that only relates to statistics.<\/p>\n<p>Because both errors are in a way unavoidable by design, it is really important to be aware of them so you can better plan your design before it is too late. It is the only way of avoiding them from happening and, therefore, drawing the wrong conclusion.<\/p>\n<blockquote><p><em>&#8220;There are two possible outcomes: if the result confirms the hypothesis, then you&#8217;ve made a measurement. If the result is contrary to the hypothesis, then you&#8217;ve made a discovery.&#8221; &#8211; Enrico Fermi<\/em><\/p><\/blockquote>\n<p>Let\u2019s go back to exploring null hypotheses. A <em>null hypothesis<\/em> can only be true or false. In fact, it is all too often assume that a null hypothesis is true until such time when evidence to the contrary is encountered.<\/p>\n<p>In statistical models, a null hypothesis is used to for comparison purposes in order to determined it is likely that the results that have been obtained are determined.<\/p>\n<h2><strong>What Is the Difference Between These Two Errors?<\/strong><\/h2>\n<p>Now that we have given you the most basic of definitions for both error types, it is now time to go a little bit deeper. To do so, we will go to the background to expand on it before we go back to each individual error.<\/p>\n<p>A <strong>type I error<\/strong> or error of the first kind occurs when a null hypothesis is rejected even though it is actually true. Let\u2019s see an example so we can understand this better. If we were testing a new product and rejected the null hypothesis, but the null hypothesis turned out to be true, we would be making a type I error or an error of the first kind. For instance, if we were testing our new product for a specific function and the null hypothesis was that the product cannot perform that function when, in fact, the product could, we would be making a <strong>type I error<\/strong>. In other words, we would be making a false claim about the functions that our product is able to perform.<\/p>\n<p>A <strong>type II error<\/strong> or error of the second kind occurs when a null hypothesis is <em>not<\/em> rejected even though it is actually false. As we saw with type I error, let\u2019s see a simple example so we can understand <strong>type II error<\/strong>. If we were testing a new product and we accept the <em>null hypothesis<\/em>, but the null hypothesis turned out to be false, we would be making a <strong>type II error<\/strong> or an error of the second type. For instance, if we were testing our new product for a specific function and the <em>null hypothesis<\/em> was that the product can perform that function when, in fact, the product could actually not, we would be incurring in a <strong>type II error<\/strong>. So, like in the example of a <strong>type I error<\/strong> we would be making a false claim about the functions that our product is able to perform.<\/p>\n<h2><strong>More Examples of Type I Error <\/strong><\/h2>\n<p>Now that we have been through the definitions and have seen one general (and, I\u2019ll admit it, fairly abstract, as well) example for each error type, it might be a good idea to detail a few more specific examples for each error type.<\/p>\n<p>With all that said, let begin by looking at some more examples of <strong>type I error<\/strong>.<\/p>\n<p>As the <a href=\"http:\/\/www.investopedia.com\/terms\/t\/type_1_error.asp\"><em>Investopedia<\/em> website<\/a> put it, the type I error or error of the first kind is also known as a \u201cfalse positive\u201d. I find that this simple way of looking at this kind of error is very illuminating.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1826 aligncenter\" src=\"https:\/\/errorcodespro.com\/wp-content\/uploads\/2017\/04\/jail-time.jpg\" alt=\"\" width=\"400\" height=\"300\" \/><\/p>\n<p>The above-mentioned article in <em>Investopedia<\/em> also has a great example of a <strong>Type I error<\/strong>, which is the following: in a criminal investigation, the null hypothesis would be that the accused is actually innocent, which would make the alternative that he or she would be guilty. So, what would be a <strong>type I error<\/strong> in this specific scenario? Well, because in a type I error we reject the null hypothesis and, in this case, as we have said, the null hypothesis is that this person is innocent, this would mean that he or she would be found guilty and sent to prison. Why is this an error? Because the null hypothesis that he or she was innocent and that we rejected was actually true.<\/p>\n<p>The next example has been taken from the website <a href=\"https:\/\/www.thoughtco.com\/difference-between-type-i-and-type-ii-errors-3126414\"><em>Though Co<\/em><\/a>. Let\u2019s imagine that we are testing whether an experimental drug could be effective in treating a specific disease. In this example, the null hypothesis would be that the drug is not effective in curing this disease. If we rejected, we would be claiming that this drug is indeed effective but if we reject the null hypothesis we would be claiming that this drug we\u2019re experimenting with could cure the disease when in fact it would be totally ineffectual in doing so. Again, this would be a <strong>type I error<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1827 aligncenter\" src=\"https:\/\/errorcodespro.com\/wp-content\/uploads\/2017\/04\/medicine-exports-450x253.jpg\" alt=\"\" width=\"450\" height=\"253\" srcset=\"https:\/\/errorcodespro.com\/wp-content\/uploads\/2017\/04\/medicine-exports-450x253.jpg 450w, https:\/\/errorcodespro.com\/wp-content\/uploads\/2017\/04\/medicine-exports-768x432.jpg 768w, https:\/\/errorcodespro.com\/wp-content\/uploads\/2017\/04\/medicine-exports-700x394.jpg 700w, https:\/\/errorcodespro.com\/wp-content\/uploads\/2017\/04\/medicine-exports.jpg 1920w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<h2><strong>More Examples of Type II Error <\/strong><\/h2>\n<p>We could present instances of type II errors simply by reversing the examples for <strong>type I error<\/strong>. In other words, if we made the null hypothesis false and the alternative right (so the opposite of the scenarios above) but in both the example about the criminal investigation and the one about the experimental drug, you neglected to reject the <em>null hypothesis<\/em> (for example, that person was guilty or that the drug was ineffectual), you would still be sending the wrong person to jail or claiming that the drug was effective but your error would be of the second type.<\/p>\n<h2><strong>Things To Remember About Type I and Type II Errors <\/strong><\/h2>\n<p>In conclusion, there are a few things that you must remember about type I and type II errors:<\/p>\n<ul>\n<li>Error <strong>Type I<\/strong> is a false positive. In it, a <em>null hypothesis<\/em> that happens to be true is wrongly rejected.<\/li>\n<li>Error <strong>Type II<\/strong> is wrongly taking two things that you observe as one and the same when they are nothing but.<\/li>\n<li>These two types of errors occur while you are testing a <em>hypothesis<\/em> and need to be avoided at all times.<\/li>\n<li>The problem is that when we reduce the probability of a <strong>type I<\/strong> error from happening we\u2019d effectively be increasing the probability of a <strong>type II<\/strong> error from happening and vice versa.<\/li>\n<li>The best way to avoid these two kinds of type of errors is to apply the hypotheses in the real world as much as positive.<\/li>\n<\/ul>\n<p>In some ways, type I and type II errors can be said to be two sides of the same coin. I hope my <strong>explanation of type I and type II errors<\/strong> has been clear enough but if there is anything that you\u2019d like to add or if you have any useful examples of your own, please feel free to share them with our readers in the comments section below!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial examines what is know as\u00a0type 1\u00a0and type 2 errors in statistics. If you have ever wondered what type I and type II, you have come to the right place. Although this is a fairly technical topic, an attempt will be to present the information in the clearest and easiest way to understand as&#8230;<\/p>\n","protected":false},"author":20,"featured_media":1825,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1274","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-error-codes"],"_links":{"self":[{"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/posts\/1274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/comments?post=1274"}],"version-history":[{"count":4,"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/posts\/1274\/revisions"}],"predecessor-version":[{"id":6523,"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/posts\/1274\/revisions\/6523"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/media\/1825"}],"wp:attachment":[{"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/media?parent=1274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/categories?post=1274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/errorcodespro.com\/wp-json\/wp\/v2\/tags?post=1274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}