{"id":942,"date":"2021-05-29T16:52:50","date_gmt":"2021-05-29T20:52:50","guid":{"rendered":"https:\/\/openbooks.macewan.ca\/rcommander\/?post_type=chapter&#038;p=942"},"modified":"2025-06-19T18:06:43","modified_gmt":"2025-06-19T22:06:43","slug":"8-4-quantify-the-extremeness","status":"publish","type":"chapter","link":"https:\/\/openbooks.macewan.ca\/introstats\/chapter\/8-4-quantify-the-extremeness\/","title":{"raw":"8.4 Quantify the \u201cExtremeness\"","rendered":"8.4 Quantify the \u201cExtremeness&#8221;"},"content":{"raw":"There are two ways to quantify the extremeness of the data under the assumption that the null hypothesis [latex]H_0[\/latex] is true: the critical value approach and the P-value approach. These two methods will give the same conclusion. For example, Bill claims he is not rich, and we want to prove that he is lying. The steps are:\r\n<ol>\r\n \t<li>Write down the hypotheses. [latex]H_0:[\/latex] Bill is not rich versus [latex]H_a:[\/latex] Bill is rich.<\/li>\r\n \t<li>Collect the evidence and conclude. Suppose Bill has total wealth [latex]x_0[\/latex], and we know the total wealth for every adult in the world; then we can draw the population distribution of the wealth, which is assumed to be the following graph.\r\n<ol type=\"a\">\r\n \t<li>We can define the so-called <strong>rejection region<\/strong> by a cut-off <em>C<\/em>. Those with a total wealth at least C are defined as \u201crich\u201d people, say the top 5%, meaning the shaded area (the left panel) is 0.05. Reject the null hypothesis [latex]H_0[\/latex] if [latex]x_0[\/latex] falls in the rejection region, i.e., [latex]x_0 \\geq C[\/latex], meaning Bill is one of those top 5% rich people. Note that the null hypothesis is [latex]H_0[\/latex] Bill is not rich. Rejecting [latex]H_0[\/latex] implies Bill is rich.<\/li>\r\n \t<li>We can also find the percentage of people at least as rich as Bill; that is the area to the right of [latex]x_0[\/latex], the shaded area in the right panel. We call this area the <strong>P-value<\/strong>. We should reject the null hypothesis [latex]H_0[\/latex] if the P-value is small. The smaller the area (P-value), the fewer people richer than Bill, the stronger the evidence that Bill is rich.<a id=\"retfig8.3\"><\/a><\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<div align=\"center\">[caption id=\"attachment_5548\" align=\"aligncenter\" width=\"1024\"]<img class=\"wp-image-5548 size-large\" src=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Figure-8.3-1024x363.png\" alt=\"Two identical unimodal and right-skewed density curves are shown over a horizontal axis. Image description available.\" width=\"1024\" height=\"363\" \/> <strong>Figure 8.3<\/strong>: Rejection Region (left panel) and P-value (right panel). [<a href=\"https:\/\/openbooks.macewan.ca\/introstats\/back-matter\/image-description\/#fig8.3\">Image Description (See Appendix D Figure 8.3)<\/a>][\/caption]<\/div>\r\n<h2>8.4.1 The Critical Value Approach<\/h2>\r\nRecall that the main idea of hypothesis tests is to reject the null hypothesis [latex]H_0[\/latex] if the sample mean [latex]\\bar{x}[\/latex] is too extreme, i.e., we should reject [latex]H_0[\/latex] if [latex]\\bar{x}[\/latex] falls in the rejection region. If the population standard deviation [latex]\\sigma[\/latex] is known, the observed test statistic is [latex]z_o = \\frac{\\bar{x} - \\mu_0}{\\sigma \/ \\sqrt{n}}[\/latex]. If [latex]\\bar{x}[\/latex] is too extreme, the corresponding test statistic [latex]z_o[\/latex] will also be too extreme. Since the standardized variable follows a standard normal distribution, we can use the standard normal density curve to define the rejection region. <strong>The key point for the critical value approach is that the total area of the rejection region equals the significance level of the test <em>[latex]\\alpha[\/latex]<\/em>.<\/strong> The values dividing the density curve into rejection and non-rejection regions are called the <strong>critical values<\/strong>, such as [latex]z_{\\alpha}[\/latex], [latex]z_{\\alpha\/2}[\/latex], [latex]-z_{\\alpha}[\/latex], and [latex]-z_{\\alpha\/2}[\/latex].<a id=\"retfig8.4\"><\/a>\r\n\r\n&nbsp;\r\n\r\n<img class=\"alignnone wp-image-2843 size-full\" src=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part1.png\" alt=\"A depiction of the rejection regions for the three types of z-test. Image description available.\" width=\"963\" height=\"458\" \/>\r\n\r\n[caption id=\"attachment_2844\" align=\"aligncenter\" width=\"976\"]<img class=\"wp-image-2844 size-full\" src=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part2.png\" alt=\"A depiction of the rejection regions for a z-test after standardisation. Image description available.\" width=\"976\" height=\"367\" \/> <strong>Figure 8.4<\/strong>: Critical Values and Rejection Regions of One-Sample Z Test. [<a href=\"https:\/\/openbooks.macewan.ca\/introstats\/back-matter\/image-description\/#fig8.4\">Image Description (See Appendix D Figure 8.4)<\/a>][\/caption]\r\n<h2><strong>8.4.2 The P-value Approach<\/strong><\/h2>\r\nAnother way to quantify the \u201cextremeness\u201d of the sample average is the P-value approach. We should reject the null [latex]H_0[\/latex] if P-value [latex]\\leq \\alpha[\/latex]. The P-value is the probability that the test statistic is at least as extreme as the observed statistic, given that the null hypothesis is true. The P-value is a measure of evidence against [latex]H_0[\/latex] in favour of [latex]H_a[\/latex]<strong>. The smaller the P-value, the stronger the evidence. A small P-value indicates that the observed value of the test statistic is very unlikely if the null is true.<\/strong> We should, therefore, reject the null hypothesis if the P-value [latex]\\leq \\alpha[\/latex], where <em>[latex]\\alpha[\/latex] <\/em> is the significance level of the test. For example, if P-value=0.03, we reject the null if the significance level is [latex]\\alpha\u00a0= 0.1[\/latex], or [latex]0.05[\/latex] but not for [latex]\\alpha = 0.01[\/latex]. Here are some important facts about the P-value:\r\n<ul type=\"disc\">\r\n \t<li>P-value is a probability; therefore, it must be between 0 and 1.<\/li>\r\n \t<li>P-value is a conditional probability, given that the null [latex]H_0[\/latex] is true. <strong>Note that the P-value is NOT the probability that the null is true, which is a common mistake<\/strong>.<\/li>\r\n \t<li>The P-value is a measure of evidence against [latex]H_0[\/latex] in favour of [latex]H_a[\/latex].<\/li>\r\n \t<li>Therefore, when performing a one-sided test, the direction of the inequality in the P-value calculation should be in the same direction as the inequality in the alternative [latex]H_a[\/latex].<\/li>\r\n \t<li>The P-value of a two-sided test is twice that of a one-sided test with the same value of test statistic.<\/li>\r\n<\/ul>\r\n<strong>Calculation of the P-value<\/strong>:<a id=\"retfig8.5\"><\/a>\r\n\r\n[caption id=\"attachment_953\" align=\"aligncenter\" width=\"908\"]<img class=\"wp-image-953 size-full\" src=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/m8p6.3.png\" alt=\"A depiction of the calculation and use of a p-value. Image description available.\" width=\"908\" height=\"523\" \/> <strong>Figure 8.5<\/strong>: P-Value of One-Sample Z Test. [<a href=\"https:\/\/openbooks.macewan.ca\/introstats\/back-matter\/image-description\/#fig8.5\">Image Description (See Appendix D Figure 8.5)<\/a>][\/caption]","rendered":"<p>There are two ways to quantify the extremeness of the data under the assumption that the null hypothesis [latex]H_0[\/latex] is true: the critical value approach and the P-value approach. These two methods will give the same conclusion. For example, Bill claims he is not rich, and we want to prove that he is lying. The steps are:<\/p>\n<ol>\n<li>Write down the hypotheses. [latex]H_0:[\/latex] Bill is not rich versus [latex]H_a:[\/latex] Bill is rich.<\/li>\n<li>Collect the evidence and conclude. Suppose Bill has total wealth [latex]x_0[\/latex], and we know the total wealth for every adult in the world; then we can draw the population distribution of the wealth, which is assumed to be the following graph.\n<ol type=\"a\">\n<li>We can define the so-called <strong>rejection region<\/strong> by a cut-off <em>C<\/em>. Those with a total wealth at least C are defined as \u201crich\u201d people, say the top 5%, meaning the shaded area (the left panel) is 0.05. Reject the null hypothesis [latex]H_0[\/latex] if [latex]x_0[\/latex] falls in the rejection region, i.e., [latex]x_0 \\geq C[\/latex], meaning Bill is one of those top 5% rich people. Note that the null hypothesis is [latex]H_0[\/latex] Bill is not rich. Rejecting [latex]H_0[\/latex] implies Bill is rich.<\/li>\n<li>We can also find the percentage of people at least as rich as Bill; that is the area to the right of [latex]x_0[\/latex], the shaded area in the right panel. We call this area the <strong>P-value<\/strong>. We should reject the null hypothesis [latex]H_0[\/latex] if the P-value is small. The smaller the area (P-value), the fewer people richer than Bill, the stronger the evidence that Bill is rich.<a id=\"retfig8.3\"><\/a><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div style=\"margin: auto;\">\n<figure id=\"attachment_5548\" aria-describedby=\"caption-attachment-5548\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5548 size-large\" src=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Figure-8.3-1024x363.png\" alt=\"Two identical unimodal and right-skewed density curves are shown over a horizontal axis. Image description available.\" width=\"1024\" height=\"363\" srcset=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Figure-8.3-1024x363.png 1024w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Figure-8.3-300x106.png 300w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Figure-8.3-768x272.png 768w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Figure-8.3-1536x545.png 1536w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Figure-8.3-65x23.png 65w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Figure-8.3-225x80.png 225w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Figure-8.3-350x124.png 350w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Figure-8.3.png 1661w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-5548\" class=\"wp-caption-text\"><strong>Figure 8.3<\/strong>: Rejection Region (left panel) and P-value (right panel). [<a href=\"https:\/\/openbooks.macewan.ca\/introstats\/back-matter\/image-description\/#fig8.3\">Image Description (See Appendix D Figure 8.3)<\/a>]<\/figcaption><\/figure>\n<\/div>\n<h2>8.4.1 The Critical Value Approach<\/h2>\n<p>Recall that the main idea of hypothesis tests is to reject the null hypothesis [latex]H_0[\/latex] if the sample mean [latex]\\bar{x}[\/latex] is too extreme, i.e., we should reject [latex]H_0[\/latex] if [latex]\\bar{x}[\/latex] falls in the rejection region. If the population standard deviation [latex]\\sigma[\/latex] is known, the observed test statistic is [latex]z_o = \\frac{\\bar{x} - \\mu_0}{\\sigma \/ \\sqrt{n}}[\/latex]. If [latex]\\bar{x}[\/latex] is too extreme, the corresponding test statistic [latex]z_o[\/latex] will also be too extreme. Since the standardized variable follows a standard normal distribution, we can use the standard normal density curve to define the rejection region. <strong>The key point for the critical value approach is that the total area of the rejection region equals the significance level of the test <em>[latex]\\alpha[\/latex]<\/em>.<\/strong> The values dividing the density curve into rejection and non-rejection regions are called the <strong>critical values<\/strong>, such as [latex]z_{\\alpha}[\/latex], [latex]z_{\\alpha\/2}[\/latex], [latex]-z_{\\alpha}[\/latex], and [latex]-z_{\\alpha\/2}[\/latex].<a id=\"retfig8.4\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2843 size-full\" src=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part1.png\" alt=\"A depiction of the rejection regions for the three types of z-test. Image description available.\" width=\"963\" height=\"458\" srcset=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part1.png 963w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part1-300x143.png 300w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part1-768x365.png 768w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part1-65x31.png 65w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part1-225x107.png 225w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part1-350x166.png 350w\" sizes=\"auto, (max-width: 963px) 100vw, 963px\" \/><\/p>\n<figure id=\"attachment_2844\" aria-describedby=\"caption-attachment-2844\" style=\"width: 976px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2844 size-full\" src=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part2.png\" alt=\"A depiction of the rejection regions for a z-test after standardisation. Image description available.\" width=\"976\" height=\"367\" srcset=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part2.png 976w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part2-300x113.png 300w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part2-768x289.png 768w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part2-65x24.png 65w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part2-225x85.png 225w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/Ch8.4_critical_value_part2-350x132.png 350w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><figcaption id=\"caption-attachment-2844\" class=\"wp-caption-text\"><strong>Figure 8.4<\/strong>: Critical Values and Rejection Regions of One-Sample Z Test. [<a href=\"https:\/\/openbooks.macewan.ca\/introstats\/back-matter\/image-description\/#fig8.4\">Image Description (See Appendix D Figure 8.4)<\/a>]<\/figcaption><\/figure>\n<h2><strong>8.4.2 The P-value Approach<\/strong><\/h2>\n<p>Another way to quantify the \u201cextremeness\u201d of the sample average is the P-value approach. We should reject the null [latex]H_0[\/latex] if P-value [latex]\\leq \\alpha[\/latex]. The P-value is the probability that the test statistic is at least as extreme as the observed statistic, given that the null hypothesis is true. The P-value is a measure of evidence against [latex]H_0[\/latex] in favour of [latex]H_a[\/latex]<strong>. The smaller the P-value, the stronger the evidence. A small P-value indicates that the observed value of the test statistic is very unlikely if the null is true.<\/strong> We should, therefore, reject the null hypothesis if the P-value [latex]\\leq \\alpha[\/latex], where <em>[latex]\\alpha[\/latex] <\/em> is the significance level of the test. For example, if P-value=0.03, we reject the null if the significance level is [latex]\\alpha\u00a0= 0.1[\/latex], or [latex]0.05[\/latex] but not for [latex]\\alpha = 0.01[\/latex]. Here are some important facts about the P-value:<\/p>\n<ul type=\"disc\">\n<li>P-value is a probability; therefore, it must be between 0 and 1.<\/li>\n<li>P-value is a conditional probability, given that the null [latex]H_0[\/latex] is true. <strong>Note that the P-value is NOT the probability that the null is true, which is a common mistake<\/strong>.<\/li>\n<li>The P-value is a measure of evidence against [latex]H_0[\/latex] in favour of [latex]H_a[\/latex].<\/li>\n<li>Therefore, when performing a one-sided test, the direction of the inequality in the P-value calculation should be in the same direction as the inequality in the alternative [latex]H_a[\/latex].<\/li>\n<li>The P-value of a two-sided test is twice that of a one-sided test with the same value of test statistic.<\/li>\n<\/ul>\n<p><strong>Calculation of the P-value<\/strong>:<a id=\"retfig8.5\"><\/a><\/p>\n<figure id=\"attachment_953\" aria-describedby=\"caption-attachment-953\" style=\"width: 908px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-953 size-full\" src=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/m8p6.3.png\" alt=\"A depiction of the calculation and use of a p-value. Image description available.\" width=\"908\" height=\"523\" srcset=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/m8p6.3.png 908w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/m8p6.3-300x173.png 300w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/m8p6.3-768x442.png 768w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/m8p6.3-65x37.png 65w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/m8p6.3-225x130.png 225w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2021\/05\/m8p6.3-350x202.png 350w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><figcaption id=\"caption-attachment-953\" class=\"wp-caption-text\"><strong>Figure 8.5<\/strong>: P-Value of One-Sample Z Test. [<a href=\"https:\/\/openbooks.macewan.ca\/introstats\/back-matter\/image-description\/#fig8.5\">Image Description (See Appendix D Figure 8.5)<\/a>]<\/figcaption><\/figure>\n","protected":false},"author":19,"menu_order":4,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-942","chapter","type-chapter","status-publish","hentry"],"part":889,"_links":{"self":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/users\/19"}],"version-history":[{"count":55,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/942\/revisions"}],"predecessor-version":[{"id":4548,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/942\/revisions\/4548"}],"part":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/parts\/889"}],"metadata":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/942\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/media?parent=942"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapter-type?post=942"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/contributor?post=942"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/license?post=942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}