{"id":1621,"date":"2019-08-13T19:38:19","date_gmt":"2019-08-13T23:38:19","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/simplestats\/?post_type=chapter&#038;p=1621"},"modified":"2019-08-14T11:17:05","modified_gmt":"2019-08-14T15:17:05","slug":"4-2-interquartile-range","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/4-2-interquartile-range\/","title":{"raw":"4.2 Interquartile Range","rendered":"4.2 Interquartile Range"},"content":{"raw":"[latexpage]\r\n\r\nUnlike the range which focuses on the extreme ends, the <strong>interquartile range<\/strong> (frequently referred to as <strong><em>IQR<\/em><\/strong>) looks into the distribution of observations around the \"centre\". To that purpose, it splits the distribution into <strong>four equal parts called <em>quartiles<\/em><\/strong> (from the Latin <em>quartus<\/em>, meaning one-fourth, i.e., a quarter), and then provides the range of the middle two parts taken together. This sounds more complicated than it actually is, so let's turn to examples and make it better.\r\n\r\n&nbsp;\r\n\r\nTo begin, let me first demonstrate what all this means with a set of raw values which we can call, say, <em>hours worked per week<\/em>.\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.2\u00a0\u00a0Weekly Hours Worked (Raw Data)<\/em><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\n&nbsp;\r\n\r\nImagine you have been hired as a research assistant (RA) on a research project. You have worked 20 weeks in total in the past two semesters, ten weeks in each semester (with your classes and all, you couldn't work every week). The maximum hours per week you could work was 15, limited by the nature of your contract. You make a list of all hours you have worked in each of the twenty weeks, and you list the twenty values <em>in ascending order<\/em>. Here they are:\r\n\r\n&nbsp;\r\n\r\n2, 3, 3, 4, 5, 7, 7, 7, 8, 8, 10, 10, 10, 10, 12, 12, 13, 13, 13, 14\r\n\r\n&nbsp;\r\n\r\nIf you recall from our discussion of the median, to split a group of values into equal parts we need the values' positions in the order. You can find these in the table below:\r\n\r\n&nbsp;\r\n\r\n<em>Table 4.1 Values and Their Positions of Hours Worked per Week<\/em>\r\n<table style=\"border-collapse: collapse;width: 94.6712%;height: 165px\" border=\"0\">\r\n<tbody>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\"><strong>Position<\/strong><\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\"><strong>Hours Worked per week<\/strong><\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\"><strong>Position<\/strong><\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\"><strong>Hours Worked per Week<\/strong><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(1)<\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">2<\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(11)<\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">10<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(2)<\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">3<\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(12)<\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">10<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(3)<\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">3<\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(13)<\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">10<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(4)<\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">4<\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(14)<\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">10<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(5)<\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">5<\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(15)<\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">12<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(6)<\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">5<\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(16)<\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">12<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(7)<\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">7<\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(17)<\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">13<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(8)<\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">7<\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(18)<\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">13<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(9)<\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">8<\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(19)<\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">13<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(10)<\/td>\r\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">8<\/td>\r\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(20)<\/td>\r\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">14<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nYou might be tempted to use an intuitive method for splitting the set of twenty values given in the example into 4 equal parts (i.e., into quartiles) by simply dividing 20 by 4, which will let you have 5 values in each quartile:\r\n\r\n&nbsp;\r\n\r\n2, 3, 3, 4, 5\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 5, 7, 7, 8, 8\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 10, 10, 10, 10, 12\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 12, 13, 13, 13, 14,\r\n\r\n&nbsp;\r\n\r\nThus the interquartile range (or \"the range of the middle two parts taken together\") of the entire set of 20 values would be the range of 5, 7, 7, 8, 8, 10, 10, 10, 10, 12.\r\n\r\n&nbsp;\r\n\r\nA quick-and-dirty calculation would show that the IQR is (12-5=) 7 hours. You would be correct -- indeed, the interquartile range <em>is<\/em> 7 hours -- but I'll stop you nevertheless. This worked out only because I've chosen the numbers between the first and the second quarter of cases to be both 5, and the numbers between the third quarter and the last to be both 12. You need to read below to find out the proper method for obtaining the IQR. (The example continues further down.)\r\n\r\n<\/div>\r\n<\/div>\r\n&nbsp;\r\n\r\nQuick-and-dirty calculations are not precise, even if they serve their purpose to give you a basic idea of what we are doing. Now that you've seen where this is going, let's do everything <em>properly<\/em>.\r\n\r\n&nbsp;\r\n\r\nFirst, we need to calculate the precise positions of the values that separate the quartiles. Recall how we used to split a set of values in two in order to get the position median. We used the following formula:\r\n\r\n&nbsp;\r\n\r\n$\\frac{N+1}{2}=$\u00a0 \u00a0 \u00a0\u2190<em>\"position of the median\"<\/em>\r\n\r\n&nbsp;\r\n\r\nWe'll follow the same logic to split each of the halves in two themselves. Thus let me restate the above formula to this:\r\n\r\n&nbsp;\r\n\r\n$\\frac{N+1}{2}=(N+1)\\frac{1}{2}=(N+1)0.5$\u00a0 \u00a0 \u2190<em>\"position of the median\"<\/em>\r\n\r\n&nbsp;\r\n\r\nSince we effectively multiply <em>N+1<\/em>\u00a0by 0.5 in order to split the entire set in two halves (or, to get <em>one<\/em>\u00a0<em>half of the data<\/em>), to split the first half of the values further in two itself, we need to multiply <em>N+1<\/em> by \"half of 0.5\", i.e., by 0.25 (essentially getting <em>one quarter<\/em> of the data):\r\n\r\n&nbsp;\r\n\r\n<span style=\"text-indent: 18.6667px;font-size: 14pt\">$\\frac{N+1}{4}=(N+1)\\frac{1}{4}=(N+1)0.25$\u00a0 \u00a0\u2190<\/span>\u00a0<em>\"position of the first quartile\"<\/em>\r\n\r\n&nbsp;\r\n\r\nBy analogy, splitting the second half in two itself will require getting <em>three quarters<\/em> of the data,\u00a0 or to multiply <em>N+ 1<\/em> by \"0.5 and a quarter\", i.e., by 0.75:\r\n\r\n&nbsp;\r\n\r\n$\\frac{(N+1)3}{4}=(N+1)\\frac{3}{4}=(N+1)0.75$\u00a0 \u00a0\u2190 <em>\"position of the third quartile\"<\/em>\r\n\r\n&nbsp;\r\n\r\nIf you follow the logic, you'll easily conclude that <strong>the median is also\u00a0<em>de facto<\/em> the second quartile<\/strong> (i.e., <em>two quarters<\/em> of the data).\r\n\r\n&nbsp;\r\n\r\nTo restate, we have the following way to split the data into four equal parts:\r\n\r\n&nbsp;\r\n\r\nThe position of the first quartile,<em> Q<\/em><sub><em>1<\/em>,<\/sub>\u00a0is found through\u00a0$(N+1)0.25$.\r\n\r\n&nbsp;\r\n\r\nThe position of the second quartile,\u00a0<em><span style=\"text-indent: 1em;font-size: 14pt\">Q<\/span><\/em><sub style=\"text-indent: 1em\"><em>2<\/em>\u00a0<\/sub><span style=\"font-size: 14pt;text-indent: 18.6667px\">(<\/span><span style=\"font-size: 14pt;text-indent: 1em\">a.k.a the median), is found through\u00a0<\/span><span style=\"font-size: 14pt;text-indent: 1em\">$(N+1)0.5$.<\/span>\r\n\r\n&nbsp;\r\n\r\nThe position of the third quartile, <em>Q<\/em><sub><em>3<\/em>, <\/sub>is found through $(N+1)0.75$.[footnote]Obviously, we don't speak of a <em>fourth quartile<\/em>, as four quarters comprise the whole thing: the fourth quartile would simply be 100%, or all of the data.[\/footnote]\r\n\r\n&nbsp;\r\n\r\nNow let's use our newfound formulas in the Example 4.2.\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.2\u00a0Weekly Hours Worked, Continued<\/em><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nWith <em>N<\/em>=20, we get:\r\n\r\n&nbsp;\r\n\r\n<em>Q<sub>1<\/sub>'s position<\/em> \u2192\u00a0 \u00a0 $(N+1)0.25=(20+1)0.25=(21)0.25=5.25$\r\n\r\n&nbsp;\r\n\r\n<em>Q<sub>2<\/sub>'s position<\/em> \u2192\u00a0 \u00a0 $(N+1)0.5=(20+1)0.5=(21)0.5=10.5$\r\n\r\n&nbsp;\r\n\r\n<em>Q<sub>3<\/sub>'s position<\/em> \u2192\u00a0 \u00a0 $(N+1)0.75=(20+1)0.75=(21)0.75=15.75$\r\n\r\n&nbsp;\r\n\r\nOnce again, do not forget that all these formulas provide the <em>positions<\/em> of the quartiles, <em>not<\/em> their respective values. To see the values, we have to look at Table 4.1 above which cross-lists the cases' positions <em>and<\/em> values. Since there is no Case #5.25, we know that the value we're looking for is between Cases #5 and #6 (a quarter further than #5) -- but as the values of both Cases #5 and #6 are 5, we conclude that the value of the first quartile is 5.\r\n\r\n&nbsp;\r\n\r\nSimilarly, there is no Case #15.75 (so the value we're looking for is three quarters past the 15th case), but both Cases #15 and #16 are 12, so we conclude that the third quartile is 12.\r\n\r\n&nbsp;\r\n\r\nWe are still interested in the interquartile range -- or the range of the two middle quarters of the data (or the middle 50 percent, so to speak). Then, since\r\n\r\n&nbsp;\r\n\r\n<em>Q<sub>3<\/sub><\/em> = 12 and <em>Q<sub>1<\/sub><\/em> = 5,\r\n\r\n&nbsp;\r\n\r\nwe have that\r\n\r\n&nbsp;\r\n\r\n<em>Q<sub>3<\/sub> - Q<\/em><sub><em>1<\/em>\u00a0<\/sub>= $12 - 5=7$\r\n\r\n&nbsp;\r\n\r\nOr, we have found that the IQR for <em>hours worked<\/em>\u00a0<em>per week<\/em> is 7 hours per week. Or, at the mid-range, your hours worked per week varied between 5 and 12 hours per week.\r\n\r\n&nbsp;\r\n\r\n<\/div>\r\n<\/div>\r\n&nbsp;\r\n\r\nAlright, but <em>why<\/em>, you might ask -- couldn't we just have the range and be done with it?\r\n\r\n&nbsp;\r\n\r\nThe value added of using interquartile range is that it takes care of outliers, so it's frequently a better measure of dispersion than range. The IQR provides the spread of the centrally located 50 percent of the data which in many situations paints a more accurate picture of how \"the more typical\" of the variable's cases are spread out, rather than looking at the more extreme spread provided by the range which encompasses all cases, even the clear outliers.\r\n\r\n&nbsp;\r\n\r\nAll in all, however, just like with choosing whether to use a median or mean, the decision which of these two measures of dispersion is the more appropriate one to be used and reported depends on the specific situation and the researcher's discretion. I would urge you, as a beginner researcher, to make a habit of reporting both the range and the interquartile range, while simultaneously discussing the effect of any potential outliers.\r\n\r\n&nbsp;\r\n\r\nInstead of working with raw data, we might have frequency tables at hand. <strong>How do we get the range and IQR from aggregated data?<\/strong>\u00a0 For the range, simply subtract the lowest value (the one listed first in the <em>Values<\/em> column, of course) from the highest value (the one listed last in the <em>Values<\/em> column) and report the difference (in its appropriate units of measurement). For the IQR, look for the 75th percentile (i.e., <em>Q<sub>3<\/sub><\/em>) and the 25th percentile (i.e., <em>Q<sub>1<\/sub><\/em>) in the <em>Cumulative Percent<\/em> column, then subtract the <em>Q<sub>1<\/sub><\/em> value from the <em>Q<sub>3<\/sub><\/em> value, and again report the difference. (This is\u00a0<span style=\"font-size: 14pt;text-indent: 18.6667px\">similar to how we looked for the 50th percentile for the median, <em>Q<\/em><\/span><em><sub style=\"text-indent: 18.6667px\">2<\/sub><\/em><span style=\"font-size: 14pt;text-indent: 18.6667px\">, in Section 3.3 (<a href=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-3-the-median-with-frequency-tables\/\">https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-3-the-median-with-frequency-tables\/<\/a>).)<\/span>\r\n\r\n&nbsp;\r\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\"><em>Exercise 4.1 Range and IQR for Cigarettes Smoked per Day\u00a0<\/em><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\n&nbsp;\r\n\r\nPractice your newly acquired skills to find <em>Q<sub>1<\/sub>, Q<sub>2<\/sub><\/em> (i.e., the median), and\u00a0<em>Q<sub>3<\/sub><\/em> in the following table. Calculate and report the range and the interquartile range for <em>number of cigarettes smoked each day<\/em>.\r\n\r\n<\/div>\r\n<em>Table 4.2 Number of Cigarettes Smoked Per Day by Daily Smokers (CCHS 15\/16)<\/em>\r\n\r\n<img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/08\/range-iqr-freq-table-smokers-cchs.png\" alt=\"\" width=\"484\" height=\"1287\" class=\"alignnone wp-image-1635 size-full\" \/>\r\n\r\n&nbsp;\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\nTo make sure you're doing it correctly, let's quickly check your answers right away. The range is of course (99-1=) 98 cigarettes per day. To find the IQR, you must have first identified<em> Q<sub>1<\/sub><\/em>= 10 (since 23.9 percent of the cases make up to 9 cigarettes per day, the 25th percentile falls in the 10 cigarettes per day category) and <em>Q<sub>3<\/sub><\/em> = 20 (since 65.4 percent of the cases make up to 19 cigarettes per day, the 75th percentile falls in the 20 cigarettes per day category). Then the IQR is (20-10=) 10. Thus you see the difference between range and interquartile range: while the range might leave you with the impression that cigarettes smoked per day vary by almost a hundred for daily smokers, the middle half of the cases actually only vary by 10 cigarettes.\r\n\r\n&nbsp;\r\n\r\nOf course, there's also SPSS. Check below to see how to find the range and IQR\u00a0 (semi-) directly.\r\n\r\n&nbsp;\r\n<div class=\"textbox textbox--key-takeaways\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\"><em>SPSS Tip 4.1 Obtaining Range and Interquartile Range<\/em><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<ul>\r\n \t<li>From the <em>Main Menu<\/em>, select <em>Analyze, <\/em>then <em>Descriptive Statistics, <\/em>and then<em> Frequencies<\/em>;<\/li>\r\n \t<li>Select your variable of choice from the list on the left and use the arrow to move it to the right side of the window;<\/li>\r\n \t<li>Click on the <em>Statistics<\/em> button on the right;<\/li>\r\n \t<li>In this new window, check <em>Quartiles<\/em> from the\u00a0<em>Percentile Values<\/em> on your top left and check <em>Range<\/em>\u00a0(and <em>Minimum<\/em> and <em>Maximum<\/em> if you wish) from the <i>Dispersion\u00a0<\/i>section below it;<\/li>\r\n \t<li>Click <em>Continue<\/em>, then <em>OK<\/em>.<\/li>\r\n \t<li>Range (along with the smallest and largest values, if you asked for them) will be reported in the <em>Output<\/em> directly.<\/li>\r\n \t<li>To obtain the IQR, simply subtract the value reported as 25th percentile from the value reported as 75th percentile.<\/li>\r\n<\/ul>\r\n<\/div>\r\n<\/div>\r\n&nbsp;\r\n\r\nWith the range and IQR covered, we are halfway through the typically used measures of dispersion. On to the remaining two, the variance and the standard deviation.","rendered":"<p>Unlike the range which focuses on the extreme ends, the <strong>interquartile range<\/strong> (frequently referred to as <strong><em>IQR<\/em><\/strong>) looks into the distribution of observations around the &#8220;centre&#8221;. To that purpose, it splits the distribution into <strong>four equal parts called <em>quartiles<\/em><\/strong> (from the Latin <em>quartus<\/em>, meaning one-fourth, i.e., a quarter), and then provides the range of the middle two parts taken together. This sounds more complicated than it actually is, so let&#8217;s turn to examples and make it better.<\/p>\n<p>&nbsp;<\/p>\n<p>To begin, let me first demonstrate what all this means with a set of raw values which we can call, say, <em>hours worked per week<\/em>.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><em>Example 4.2\u00a0\u00a0Weekly Hours Worked (Raw Data)<\/em><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>&nbsp;<\/p>\n<p>Imagine you have been hired as a research assistant (RA) on a research project. You have worked 20 weeks in total in the past two semesters, ten weeks in each semester (with your classes and all, you couldn&#8217;t work every week). The maximum hours per week you could work was 15, limited by the nature of your contract. You make a list of all hours you have worked in each of the twenty weeks, and you list the twenty values <em>in ascending order<\/em>. Here they are:<\/p>\n<p>&nbsp;<\/p>\n<p>2, 3, 3, 4, 5, 7, 7, 7, 8, 8, 10, 10, 10, 10, 12, 12, 13, 13, 13, 14<\/p>\n<p>&nbsp;<\/p>\n<p>If you recall from our discussion of the median, to split a group of values into equal parts we need the values&#8217; positions in the order. You can find these in the table below:<\/p>\n<p>&nbsp;<\/p>\n<p><em>Table 4.1 Values and Their Positions of Hours Worked per Week<\/em><\/p>\n<table style=\"border-collapse: collapse;width: 94.6712%;height: 165px\">\n<tbody>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\"><strong>Position<\/strong><\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\"><strong>Hours Worked per week<\/strong><\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\"><strong>Position<\/strong><\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\"><strong>Hours Worked per Week<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(1)<\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">2<\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(11)<\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">10<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(2)<\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">3<\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(12)<\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">10<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(3)<\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">3<\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(13)<\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">10<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(4)<\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">4<\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(14)<\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">10<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(5)<\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">5<\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(15)<\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">12<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(6)<\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">5<\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(16)<\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">12<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(7)<\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">7<\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(17)<\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">13<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(8)<\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">7<\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(18)<\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">13<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(9)<\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">8<\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(19)<\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">13<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 13.102%;height: 15px;text-align: center\">(10)<\/td>\n<td style=\"width: 31.9405%;height: 15px;text-align: center\">8<\/td>\n<td style=\"width: 17.4929%;height: 15px;text-align: center\">(20)<\/td>\n<td style=\"width: 32.2238%;height: 15px;text-align: center\">14<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You might be tempted to use an intuitive method for splitting the set of twenty values given in the example into 4 equal parts (i.e., into quartiles) by simply dividing 20 by 4, which will let you have 5 values in each quartile:<\/p>\n<p>&nbsp;<\/p>\n<p>2, 3, 3, 4, 5\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 5, 7, 7, 8, 8\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 10, 10, 10, 10, 12\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 12, 13, 13, 13, 14,<\/p>\n<p>&nbsp;<\/p>\n<p>Thus the interquartile range (or &#8220;the range of the middle two parts taken together&#8221;) of the entire set of 20 values would be the range of 5, 7, 7, 8, 8, 10, 10, 10, 10, 12.<\/p>\n<p>&nbsp;<\/p>\n<p>A quick-and-dirty calculation would show that the IQR is (12-5=) 7 hours. You would be correct &#8212; indeed, the interquartile range <em>is<\/em> 7 hours &#8212; but I&#8217;ll stop you nevertheless. This worked out only because I&#8217;ve chosen the numbers between the first and the second quarter of cases to be both 5, and the numbers between the third quarter and the last to be both 12. You need to read below to find out the proper method for obtaining the IQR. (The example continues further down.)<\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Quick-and-dirty calculations are not precise, even if they serve their purpose to give you a basic idea of what we are doing. Now that you&#8217;ve seen where this is going, let&#8217;s do everything <em>properly<\/em>.<\/p>\n<p>&nbsp;<\/p>\n<p>First, we need to calculate the precise positions of the values that separate the quartiles. Recall how we used to split a set of values in two in order to get the position median. We used the following formula:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-8bac48f8bb1d4a489dc102846640e6d3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#43;&#49;&#125;&#123;&#50;&#125;&#61;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"50\" style=\"vertical-align: -6px;\" \/>\u00a0 \u00a0 \u00a0\u2190<em>&#8220;position of the median&#8221;<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>We&#8217;ll follow the same logic to split each of the halves in two themselves. Thus let me restate the above formula to this:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-717c9f1f0d4e9b23488f6726c755b2cf_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#43;&#49;&#125;&#123;&#50;&#125;&#61;&#40;&#78;&#43;&#49;&#41;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#125;&#61;&#40;&#78;&#43;&#49;&#41;&#48;&#46;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"233\" style=\"vertical-align: -6px;\" \/>\u00a0 \u00a0 \u2190<em>&#8220;position of the median&#8221;<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>Since we effectively multiply <em>N+1<\/em>\u00a0by 0.5 in order to split the entire set in two halves (or, to get <em>one<\/em>\u00a0<em>half of the data<\/em>), to split the first half of the values further in two itself, we need to multiply <em>N+1<\/em> by &#8220;half of 0.5&#8221;, i.e., by 0.25 (essentially getting <em>one quarter<\/em> of the data):<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-indent: 18.6667px;font-size: 14pt\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-425119cf21f4c1e5f157601850bcb5ca_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#43;&#49;&#125;&#123;&#52;&#125;&#61;&#40;&#78;&#43;&#49;&#41;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#52;&#125;&#61;&#40;&#78;&#43;&#49;&#41;&#48;&#46;&#50;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"242\" style=\"vertical-align: -6px;\" \/>\u00a0 \u00a0\u2190<\/span>\u00a0<em>&#8220;position of the first quartile&#8221;<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>By analogy, splitting the second half in two itself will require getting <em>three quarters<\/em> of the data,\u00a0 or to multiply <em>N+ 1<\/em> by &#8220;0.5 and a quarter&#8221;, i.e., by 0.75:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-ed55f26db6ea1c274e6d274022e0b015_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#78;&#43;&#49;&#41;&#51;&#125;&#123;&#52;&#125;&#61;&#40;&#78;&#43;&#49;&#41;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#125;&#123;&#52;&#125;&#61;&#40;&#78;&#43;&#49;&#41;&#48;&#46;&#55;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"26\" width=\"260\" style=\"vertical-align: -6px;\" \/>\u00a0 \u00a0\u2190 <em>&#8220;position of the third quartile&#8221;<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>If you follow the logic, you&#8217;ll easily conclude that <strong>the median is also\u00a0<em>de facto<\/em> the second quartile<\/strong> (i.e., <em>two quarters<\/em> of the data).<\/p>\n<p>&nbsp;<\/p>\n<p>To restate, we have the following way to split the data into four equal parts:<\/p>\n<p>&nbsp;<\/p>\n<p>The position of the first quartile,<em> Q<\/em><sub><em>1<\/em>,<\/sub>\u00a0is found through\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-c0379240b3fce5980b61db738901c9ea_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#78;&#43;&#49;&#41;&#48;&#46;&#50;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"91\" style=\"vertical-align: -4px;\" \/>.<\/p>\n<p>&nbsp;<\/p>\n<p>The position of the second quartile,\u00a0<em><span style=\"text-indent: 1em;font-size: 14pt\">Q<\/span><\/em><sub style=\"text-indent: 1em\"><em>2<\/em>\u00a0<\/sub><span style=\"font-size: 14pt;text-indent: 18.6667px\">(<\/span><span style=\"font-size: 14pt;text-indent: 1em\">a.k.a the median), is found through\u00a0<\/span><span style=\"font-size: 14pt;text-indent: 1em\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-8066fe41ba1971c01838e935a445d68a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#78;&#43;&#49;&#41;&#48;&#46;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"82\" style=\"vertical-align: -4px;\" \/>.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>The position of the third quartile, <em>Q<\/em><sub><em>3<\/em>, <\/sub>is found through <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-8db7acb86b6fe34bf6a635e207e1a30b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#78;&#43;&#49;&#41;&#48;&#46;&#55;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"91\" style=\"vertical-align: -4px;\" \/>.<a class=\"footnote\" title=\"Obviously, we don't speak of a fourth quartile, as four quarters comprise the whole thing: the fourth quartile would simply be 100%, or all of the data.\" id=\"return-footnote-1621-1\" href=\"#footnote-1621-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Now let&#8217;s use our newfound formulas in the Example 4.2.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><em>Example 4.2\u00a0Weekly Hours Worked, Continued<\/em><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>With <em>N<\/em>=20, we get:<\/p>\n<p>&nbsp;<\/p>\n<p><em>Q<sub>1<\/sub>&#8216;s position<\/em> \u2192\u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-d216fe4be9782cc97b62f85ffca14a6a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#78;&#43;&#49;&#41;&#48;&#46;&#50;&#53;&#61;&#40;&#50;&#48;&#43;&#49;&#41;&#48;&#46;&#50;&#53;&#61;&#40;&#50;&#49;&#41;&#48;&#46;&#50;&#53;&#61;&#53;&#46;&#50;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"350\" style=\"vertical-align: -4px;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><em>Q<sub>2<\/sub>&#8216;s position<\/em> \u2192\u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-2ce6bf62bf8ebe30d1187aa143c3d80e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#78;&#43;&#49;&#41;&#48;&#46;&#53;&#61;&#40;&#50;&#48;&#43;&#49;&#41;&#48;&#46;&#53;&#61;&#40;&#50;&#49;&#41;&#48;&#46;&#53;&#61;&#49;&#48;&#46;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"323\" style=\"vertical-align: -4px;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><em>Q<sub>3<\/sub>&#8216;s position<\/em> \u2192\u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-b8e803e54cd3775e222d5ecdc9dc93fb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#78;&#43;&#49;&#41;&#48;&#46;&#55;&#53;&#61;&#40;&#50;&#48;&#43;&#49;&#41;&#48;&#46;&#55;&#53;&#61;&#40;&#50;&#49;&#41;&#48;&#46;&#55;&#53;&#61;&#49;&#53;&#46;&#55;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"359\" style=\"vertical-align: -4px;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Once again, do not forget that all these formulas provide the <em>positions<\/em> of the quartiles, <em>not<\/em> their respective values. To see the values, we have to look at Table 4.1 above which cross-lists the cases&#8217; positions <em>and<\/em> values. Since there is no Case #5.25, we know that the value we&#8217;re looking for is between Cases #5 and #6 (a quarter further than #5) &#8212; but as the values of both Cases #5 and #6 are 5, we conclude that the value of the first quartile is 5.<\/p>\n<p>&nbsp;<\/p>\n<p>Similarly, there is no Case #15.75 (so the value we&#8217;re looking for is three quarters past the 15th case), but both Cases #15 and #16 are 12, so we conclude that the third quartile is 12.<\/p>\n<p>&nbsp;<\/p>\n<p>We are still interested in the interquartile range &#8212; or the range of the two middle quarters of the data (or the middle 50 percent, so to speak). Then, since<\/p>\n<p>&nbsp;<\/p>\n<p><em>Q<sub>3<\/sub><\/em> = 12 and <em>Q<sub>1<\/sub><\/em> = 5,<\/p>\n<p>&nbsp;<\/p>\n<p>we have that<\/p>\n<p>&nbsp;<\/p>\n<p><em>Q<sub>3<\/sub> &#8211; Q<\/em><sub><em>1<\/em>\u00a0<\/sub>= <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-470a10846b35c5b6f8f9fb4cec1136a7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#50;&#32;&#45;&#32;&#53;&#61;&#55;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"80\" style=\"vertical-align: -1px;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Or, we have found that the IQR for <em>hours worked<\/em>\u00a0<em>per week<\/em> is 7 hours per week. Or, at the mid-range, your hours worked per week varied between 5 and 12 hours per week.<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Alright, but <em>why<\/em>, you might ask &#8212; couldn&#8217;t we just have the range and be done with it?<\/p>\n<p>&nbsp;<\/p>\n<p>The value added of using interquartile range is that it takes care of outliers, so it&#8217;s frequently a better measure of dispersion than range. The IQR provides the spread of the centrally located 50 percent of the data which in many situations paints a more accurate picture of how &#8220;the more typical&#8221; of the variable&#8217;s cases are spread out, rather than looking at the more extreme spread provided by the range which encompasses all cases, even the clear outliers.<\/p>\n<p>&nbsp;<\/p>\n<p>All in all, however, just like with choosing whether to use a median or mean, the decision which of these two measures of dispersion is the more appropriate one to be used and reported depends on the specific situation and the researcher&#8217;s discretion. I would urge you, as a beginner researcher, to make a habit of reporting both the range and the interquartile range, while simultaneously discussing the effect of any potential outliers.<\/p>\n<p>&nbsp;<\/p>\n<p>Instead of working with raw data, we might have frequency tables at hand. <strong>How do we get the range and IQR from aggregated data?<\/strong>\u00a0 For the range, simply subtract the lowest value (the one listed first in the <em>Values<\/em> column, of course) from the highest value (the one listed last in the <em>Values<\/em> column) and report the difference (in its appropriate units of measurement). For the IQR, look for the 75th percentile (i.e., <em>Q<sub>3<\/sub><\/em>) and the 25th percentile (i.e., <em>Q<sub>1<\/sub><\/em>) in the <em>Cumulative Percent<\/em> column, then subtract the <em>Q<sub>1<\/sub><\/em> value from the <em>Q<sub>3<\/sub><\/em> value, and again report the difference. (This is\u00a0<span style=\"font-size: 14pt;text-indent: 18.6667px\">similar to how we looked for the 50th percentile for the median, <em>Q<\/em><\/span><em><sub style=\"text-indent: 18.6667px\">2<\/sub><\/em><span style=\"font-size: 14pt;text-indent: 18.6667px\">, in Section 3.3 (<a href=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-3-the-median-with-frequency-tables\/\">https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-3-the-median-with-frequency-tables\/<\/a>).)<\/span><\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><em>Exercise 4.1 Range and IQR for Cigarettes Smoked per Day\u00a0<\/em><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>&nbsp;<\/p>\n<p>Practice your newly acquired skills to find <em>Q<sub>1<\/sub>, Q<sub>2<\/sub><\/em> (i.e., the median), and\u00a0<em>Q<sub>3<\/sub><\/em> in the following table. Calculate and report the range and the interquartile range for <em>number of cigarettes smoked each day<\/em>.<\/p>\n<\/div>\n<p><em>Table 4.2 Number of Cigarettes Smoked Per Day by Daily Smokers (CCHS 15\/16)<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/08\/range-iqr-freq-table-smokers-cchs.png\" alt=\"\" width=\"484\" height=\"1287\" class=\"alignnone wp-image-1635 size-full\" srcset=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/08\/range-iqr-freq-table-smokers-cchs.png 484w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/08\/range-iqr-freq-table-smokers-cchs-113x300.png 113w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/08\/range-iqr-freq-table-smokers-cchs-385x1024.png 385w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/08\/range-iqr-freq-table-smokers-cchs-65x173.png 65w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/08\/range-iqr-freq-table-smokers-cchs-225x598.png 225w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/08\/range-iqr-freq-table-smokers-cchs-350x931.png 350w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>To make sure you&#8217;re doing it correctly, let&#8217;s quickly check your answers right away. The range is of course (99-1=) 98 cigarettes per day. To find the IQR, you must have first identified<em> Q<sub>1<\/sub><\/em>= 10 (since 23.9 percent of the cases make up to 9 cigarettes per day, the 25th percentile falls in the 10 cigarettes per day category) and <em>Q<sub>3<\/sub><\/em> = 20 (since 65.4 percent of the cases make up to 19 cigarettes per day, the 75th percentile falls in the 20 cigarettes per day category). Then the IQR is (20-10=) 10. Thus you see the difference between range and interquartile range: while the range might leave you with the impression that cigarettes smoked per day vary by almost a hundred for daily smokers, the middle half of the cases actually only vary by 10 cigarettes.<\/p>\n<p>&nbsp;<\/p>\n<p>Of course, there&#8217;s also SPSS. Check below to see how to find the range and IQR\u00a0 (semi-) directly.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--key-takeaways\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><em>SPSS Tip 4.1 Obtaining Range and Interquartile Range<\/em><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<ul>\n<li>From the <em>Main Menu<\/em>, select <em>Analyze, <\/em>then <em>Descriptive Statistics, <\/em>and then<em> Frequencies<\/em>;<\/li>\n<li>Select your variable of choice from the list on the left and use the arrow to move it to the right side of the window;<\/li>\n<li>Click on the <em>Statistics<\/em> button on the right;<\/li>\n<li>In this new window, check <em>Quartiles<\/em> from the\u00a0<em>Percentile Values<\/em> on your top left and check <em>Range<\/em>\u00a0(and <em>Minimum<\/em> and <em>Maximum<\/em> if you wish) from the <i>Dispersion\u00a0<\/i>section below it;<\/li>\n<li>Click <em>Continue<\/em>, then <em>OK<\/em>.<\/li>\n<li>Range (along with the smallest and largest values, if you asked for them) will be reported in the <em>Output<\/em> directly.<\/li>\n<li>To obtain the IQR, simply subtract the value reported as 25th percentile from the value reported as 75th percentile.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>With the range and IQR covered, we are halfway through the typically used measures of dispersion. On to the remaining two, the variance and the standard deviation.<\/p>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-1621-1\">Obviously, we don't speak of a <em>fourth quartile<\/em>, as four quarters comprise the whole thing: the fourth quartile would simply be 100%, or all of the data. <a href=\"#return-footnote-1621-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":533,"menu_order":2,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1621","chapter","type-chapter","status-publish","hentry"],"part":26,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1621","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":15,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1621\/revisions"}],"predecessor-version":[{"id":1645,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1621\/revisions\/1645"}],"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\/1621\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/media?parent=1621"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapter-type?post=1621"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/contributor?post=1621"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/license?post=1621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}