{"id":75,"date":"2018-10-31T17:19:43","date_gmt":"2018-10-31T21:19:43","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/simplestats\/?post_type=chapter&#038;p=75"},"modified":"2019-08-13T19:47:12","modified_gmt":"2019-08-13T23:47:12","slug":"4-1-range","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/4-1-range\/","title":{"raw":"4.1 Range","rendered":"4.1 Range"},"content":{"raw":"[latexpage]\r\n\r\nProviding the <em>range<\/em> for a set of values is so easy, most people don't even realize it is an actual statistical measure of dispersion. If you have ever said something to the effect of \"I have friends whose ages vary between seventeen and twenty-seven\" or \"my scores on these exams vary from 25\/100 to 95\/100\", etc., you have effectively been providing the range of your friends' ages or the range of your exam scores.\r\n\r\n&nbsp;\r\n\r\nTo give you the more technical definition, <strong>the range of a variable is the difference between its highest and lowest values<\/strong>. That is, to get the range, we simply subtract the lowest value from the highest value:\r\n\r\n&nbsp;\r\n\r\n$$x_{max}-x_{min}= range$$\r\n\r\n&nbsp;\r\n\r\nIn the two quick examples above, the range of your friends' ages would be (27-17=) 10 years, and the range of your exam scores would be (95-25=) 70 points.\r\n\r\n&nbsp;\r\n\r\nI'll use an older, familiar example for the longer work-through, below.\r\n\r\n&nbsp;\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\"><em>Example 4.1 The Range for\u00a0Textbook Prices Paid in One Semester<\/em><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nRecall Example 3.5 from Section 3.4 (<a href=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-4-mean\/\">https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-4-mean\/<\/a>)\u00a0 where we calculated the mean price of textbooks we imagined you paid in a particular semester.\u00a0<span style=\"text-indent: 1em;font-size: 1rem\">The books' prices were \\$120, \\$230, \\$300, \\$65, \\$30. The cheapest book (i.e., the lowest value, $x_{min}$) was \\$30 and the most expensive book (i.e., the highest value, $x_{max}$) was \\$300. Thus<\/span>\r\n\r\n&nbsp;\r\n\r\n$$x_{max}-x_{min} = 300 - 30 = 270 = range$$\r\n\r\n&nbsp;\r\n\r\nThat is, now we have found that the range of textbook prices for that semester was \\$270, with prices you paid ranging between \\$30 and \\$300.\r\n\r\n<\/div>\r\n<\/div>\r\n&nbsp;\r\n\r\nOne thing to note here is that in order to have a difference, i.e., in order to be able to do a mathematical operation like subtraction, we need to have numerical values.\r\n\r\n&nbsp;\r\n\r\nIn truth, as you are about to see, <em>all<\/em> measures of dispersion are obtained through mathematical operations and, as such, require numerical values. Since interval\/ratio variables are the only variables which contain actual numerical values, <strong>all dispersion measures (including the range) are only applicable to interval\/ratio variables<\/strong>.[footnote]Some people find it useful to provide <em>something like a range<\/em> for ordinal variables: after all, they do have a \"lowest\" category and a \"highest\" category. While technically not a statistical measure of dispersion (as no difference can be computed), it can still be useful to add a description about the categories ranging between the lowest and highest points, e.g., \"respondents' agreement with the statement varies between \"strongly disagree\" and \"strongly agree\". Considering that the categories of nominal variables have no inherent order, nothing of the sort can be applied to them. All in all, providing a qualitative description of dispersion for ordinal variables (like the agreement one I just mentioned) is optional and, strictly speaking, not a statistical measure.[\/footnote]\r\n\r\n&nbsp;\r\n\r\nA final point about the range is that it is a rather unsophisticated measure of dispersion, as you have already noticed. (Hence the very short section about it.)\u00a0<strong>By taking into account solely the highest and the lowest values, the range effectively ignores all other values<\/strong>, be they more clustered or more spread out.\r\n\r\n&nbsp;\r\n\r\nAfter all, if you recall from Section 3.6 (<a href=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-6-outliers\/\">https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-6-outliers\/<\/a>), outliers do exist. In the presence of outliers, the range can end up being quite large, even if the majority of the observations are closely clustered. Therefore, we'd better find a dispersion measure which takes into account more than just the two extremes of a variable's distribution.\r\n\r\n&nbsp;\r\n\r\nThe <em>interquartile range<\/em> is one such measure which provides a bit more information about the variability of the distribution. Alas, the cost of this information is, of course, an increased complexity in obtaining that measure. (An ominous foreshadowing for what's to come!)\r\n\r\n&nbsp;","rendered":"<p>Providing the <em>range<\/em> for a set of values is so easy, most people don&#8217;t even realize it is an actual statistical measure of dispersion. If you have ever said something to the effect of &#8220;I have friends whose ages vary between seventeen and twenty-seven&#8221; or &#8220;my scores on these exams vary from 25\/100 to 95\/100&#8221;, etc., you have effectively been providing the range of your friends&#8217; ages or the range of your exam scores.<\/p>\n<p>&nbsp;<\/p>\n<p>To give you the more technical definition, <strong>the range of a variable is the difference between its highest and lowest values<\/strong>. That is, to get the range, we simply subtract the lowest value from the highest value:<\/p>\n<p>&nbsp;<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 12px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-6e41259bcfac750c14cd5c5fff93fa0a_l3.png\" height=\"12\" width=\"165\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#120;&#95;&#123;&#109;&#97;&#120;&#125;&#45;&#120;&#95;&#123;&#109;&#105;&#110;&#125;&#61;&#32;&#114;&#97;&#110;&#103;&#101;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>In the two quick examples above, the range of your friends&#8217; ages would be (27-17=) 10 years, and the range of your exam scores would be (95-25=) 70 points.<\/p>\n<p>&nbsp;<\/p>\n<p>I&#8217;ll use an older, familiar example for the longer work-through, below.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><em>Example 4.1 The Range for\u00a0Textbook Prices Paid in One Semester<\/em><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>Recall Example 3.5 from Section 3.4 (<a href=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-4-mean\/\">https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-4-mean\/<\/a>)\u00a0 where we calculated the mean price of textbooks we imagined you paid in a particular semester.\u00a0<span style=\"text-indent: 1em;font-size: 1rem\">The books&#8217; prices were &#36;120, &#36;230, &#36;300, &#36;65, &#36;30. The cheapest book (i.e., the lowest value, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-3dad1c7a6886222580ca5076fe85f78f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#109;&#105;&#110;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"35\" style=\"vertical-align: -3px;\" \/>) was &#36;30 and the most expensive book (i.e., the highest value, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-d95556c2b1bfa8ca8353af235e838991_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#109;&#97;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"37\" style=\"vertical-align: -3px;\" \/>) was &#36;300. Thus<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 17px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-8b4c69034e49e0a9ff83015aeb2efc58_l3.png\" height=\"17\" width=\"305\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#120;&#95;&#123;&#109;&#97;&#120;&#125;&#45;&#120;&#95;&#123;&#109;&#105;&#110;&#125;&#32;&#61;&#32;&#51;&#48;&#48;&#32;&#45;&#32;&#51;&#48;&#32;&#61;&#32;&#50;&#55;&#48;&#32;&#61;&#32;&#114;&#97;&#110;&#103;&#101;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>That is, now we have found that the range of textbook prices for that semester was &#36;270, with prices you paid ranging between &#36;30 and &#36;300.<\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>One thing to note here is that in order to have a difference, i.e., in order to be able to do a mathematical operation like subtraction, we need to have numerical values.<\/p>\n<p>&nbsp;<\/p>\n<p>In truth, as you are about to see, <em>all<\/em> measures of dispersion are obtained through mathematical operations and, as such, require numerical values. Since interval\/ratio variables are the only variables which contain actual numerical values, <strong>all dispersion measures (including the range) are only applicable to interval\/ratio variables<\/strong>.<a class=\"footnote\" title=\"Some people find it useful to provide something like a range for ordinal variables: after all, they do have a &quot;lowest&quot; category and a &quot;highest&quot; category. While technically not a statistical measure of dispersion (as no difference can be computed), it can still be useful to add a description about the categories ranging between the lowest and highest points, e.g., &quot;respondents' agreement with the statement varies between &quot;strongly disagree&quot; and &quot;strongly agree&quot;. Considering that the categories of nominal variables have no inherent order, nothing of the sort can be applied to them. All in all, providing a qualitative description of dispersion for ordinal variables (like the agreement one I just mentioned) is optional and, strictly speaking, not a statistical measure.\" id=\"return-footnote-75-1\" href=\"#footnote-75-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>A final point about the range is that it is a rather unsophisticated measure of dispersion, as you have already noticed. (Hence the very short section about it.)\u00a0<strong>By taking into account solely the highest and the lowest values, the range effectively ignores all other values<\/strong>, be they more clustered or more spread out.<\/p>\n<p>&nbsp;<\/p>\n<p>After all, if you recall from Section 3.6 (<a href=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-6-outliers\/\">https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-6-outliers\/<\/a>), outliers do exist. In the presence of outliers, the range can end up being quite large, even if the majority of the observations are closely clustered. Therefore, we&#8217;d better find a dispersion measure which takes into account more than just the two extremes of a variable&#8217;s distribution.<\/p>\n<p>&nbsp;<\/p>\n<p>The <em>interquartile range<\/em> is one such measure which provides a bit more information about the variability of the distribution. Alas, the cost of this information is, of course, an increased complexity in obtaining that measure. (An ominous foreshadowing for what&#8217;s to come!)<\/p>\n<p>&nbsp;<\/p>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-75-1\">Some people find it useful to provide <em>something like a range<\/em> for ordinal variables: after all, they do have a \"lowest\" category and a \"highest\" category. While technically not a statistical measure of dispersion (as no difference can be computed), it can still be useful to add a description about the categories ranging between the lowest and highest points, e.g., \"respondents' agreement with the statement varies between \"strongly disagree\" and \"strongly agree\". Considering that the categories of nominal variables have no inherent order, nothing of the sort can be applied to them. All in all, providing a qualitative description of dispersion for ordinal variables (like the agreement one I just mentioned) is optional and, strictly speaking, not a statistical measure. <a href=\"#return-footnote-75-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":533,"menu_order":1,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-75","chapter","type-chapter","status-publish","hentry"],"part":26,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/users\/533"}],"version-history":[{"count":25,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/75\/revisions"}],"predecessor-version":[{"id":1625,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/75\/revisions\/1625"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/parts\/26"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/75\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapter-type?post=75"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/contributor?post=75"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/license?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}