Learning Outcomes
- Calculate the median and quartiles for a set of data
- Find the interquartile range and use it to identify outliers
The common measures of location are quartiles and percentiles.
Quartiles are special percentiles. The first quartile, , is the same as the th percentile, and the third quartile, , is the same as the th percentile. The median, , is called both the second quartile and the th percentile.
The following video gives an introduction to median, quartiles, and interquartile range, the topics you will learn in this section.
To calculate quartiles and percentiles, the data must be ordered from smallest to largest. Quartiles divide ordered data into quarters. Percentiles divide ordered data into hundredths. To score in the th percentile of an exam does not mean, necessarily, that you received % on a test. It means that % of test scores are the same or less than your score and % of the test scores are the same or greater than your test score.
Percentiles are useful for comparing values. For this reason, universities and colleges use percentiles extensively. One instance in which colleges and universities use percentiles is when SAT results are used to determine a minimum testing score that will be used as an acceptance factor. For example, suppose Duke accepts SAT scores at or above the th percentile. That translates into a score of at least .
Percentiles are mostly used with very large populations. Therefore, if you were to say that % of the test scores are less (and not the same or less) than your score, it would be acceptable because removing one particular data value is not significant.
Recall: Ordering Decimals
It is helpful to use a number line to order decimals. The best way to think about decimals is a form of a fraction. You need to break the number line up with intervals equal to the denominator of the fraction.
Example
Locate on a number line.
Solution
The decimal is equivalent to , so is located between and . On a number line, divide the interval between and into equal parts and place marks to separate the parts.
Label the marks . We write as and as , so that the numbers are consistently in tenths. Finally, mark on the number line.
The median is a number that measures the “center” of the data. You can think of the median as the “middle value,” but it does not actually have to be one of the observed values. It is a number that separates ordered data into halves. Half the values are the same number or smaller than the median, and half the values are the same number or larger. For example, consider the following data:
; ; ; ; ; ; ; ; ; ; ; ; ;
Ordered from smallest to largest:
; ; ; ; ; ; ; ; ; ; ; ; ;
Since there are observations, the median is between the seventh value, , and the eighth value, . To find the median, add the two values together and divide by two.
The median is seven. Half of the values are smaller than seven and half of the values are larger than seven.
Recall: Multiply Decimal Numbers
- Determine the sign of the product
- Write the numbers in vertical format, lining up the numbers on the right
- Multiply the numbers as if they were whole numbers, temporarily ignoring the decimal points
- Place the decimal point. The number of decimal places in the product is the sum of the number of decimal places in the factors. If needed, use zeros as placeholders.
- Write the product with the appropriate sign
Quartiles are numbers that separate the data into quarters. Quartiles may or may not be part of the data. To find the quartiles, first find the median or second quartile. The first quartile, , is the middle value of the lower half of the data, and the third quartile, , is the middle value, or median, of the upper half of the data. To get the idea, consider the same data set:
; ; ; ; ; ; ; ; ; ; ; ; ;
The median or second quartile is seven. The lower half of the data are , , , , , , . The middle value of the lower half is two.
; ; ; ; ; ;
The number two, which is part of the data, is the first quartile. One-fourth of the entire sets of values are the same as or less than two and three-fourths of the values are more than two.
The upper half of the data is , , , , , , . The middle value of the upper half is nine.
The third quartile, , is nine. Three-fourths (%) of the ordered data set are less than nine. One-fourth (%) of the ordered data set are greater than nine. The third quartile is part of the data set in this example.
The interquartile range (IQR) is a number that indicates the spread of the middle half or the middle % of the data. It is the difference between the third quartile () and the first quartile ().
= –
The IQR can help to determine potential outliers. A value is suspected to be a potential outlier if it is less than (1.5)(IQR) below the first quartile or more than (1.5)(IQR) above the third quartile. Potential outliers always require further investigation.
NOTE
A potential outlier is a data point that is significantly different from the other data points. These special data points may be errors or some kind of abnormality or they may be a key to understanding the data.
Example
For the following real estate prices, calculate the and determine if any prices are potential outliers. Prices are in dollars.
; ; ; ; ; ; ; ; ; ; ; ;
Try It
For the following salaries, calculate the and determine if any salaries are outliers. The salaries are in dollars.
, , , , , , , , ,
Example
For the two data sets in the test scores example, find the following:
- The interquartile range. Compare the two interquartile ranges.
- Any outliers in either set.
Try It
Find the interquartile range for the following two data sets and compare them.
Test Scores for Class A
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
Test Scores for Class B
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
Example
Fifty statistics students were asked how much sleep they get per school night (rounded to the nearest hour). The results were:
Amount of Sleep per School Night (Hours) | Frequency | Relative Frequency | Cumulative Relative Frequency |
---|---|---|---|
Find the th percentile. Notice the in the “cumulative relative frequency” column. Twenty-eight percent of data values is values. There are values less than the th percentile. They include the two s, the five s, and the seven s. The th percentile is between the last six and the first seven. The th percentile is .
Find the median. Look again at the “cumulative relative frequency” column and find . The median is the th percentile or the second quartile. % of is . There are values less than the median. They include the two s, the five s, the seven s, and eleven of the s. The median or th percentile is between the th, or seven, and th, or seven, values. The median is seven.
Find the third quartile. The third quartile is the same as the th percentile. You can “eyeball” this answer. If you look at the “cumulative relative frequency” column, you find and . When you have all the fours, fives, sixes and sevens, you have % of the data. When you include all the s, you have % of the data. The th percentile, then, must be an eight. Another way to look at the problem is to find % of , which is ,and round up to . The third quartile, , is the 38th value, which is an 8. You can check this answer by counting the values. (There are values below the third quartile and 12 values above.)
Try It
Forty bus drivers were asked how many hours they spend each day running their routes (rounded to the nearest hour). Find the th percentile.
Amount of time spent on route (hours) | Frequency | Relative Frequency | Cumulative Relative Frequency |
---|---|---|---|
Example
Amount of Sleep per School Night (Hours) | Frequency | Relative Frequency | Cumulative Relative Frequency |
---|---|---|---|
- Find the th percentile.
- Find the th percentile.
- Find the first quartile. What is another name for the first quartile?
Try It
Amount of time spent on route (hours) | Frequency | Relative Frequency | Cumulative Relative Frequency |
---|---|---|---|
Find the third quartile. What is another name for the third quartile?
Collaborative Exercise
Your instructor or a member of the class will ask everyone in class how many sweaters they own. Answer the following questions:
- How many students were surveyed?
- What kind of sampling did you do?
- Construct two different histograms. For each, starting value = _____ ending value = ____.
- Find the median, first quartile, and third quartile.
- Construct a table of the data to find the following:
-
- the 10th percentile
- the 70th percentile
- the percent of students who own less than four sweaters
Candela Citations
- OpenStax, Statistics, Measures of the Location of Data. License: CC BY: Attribution. License Terms: Access for free at https://openstax.org/books/introductory-statistics/pages/1-introduction
- Introductory Statistics. Authored by: Barbara Illowsky, Susan Dean. Provided by: Open Stax. Located at: https://openstax.org/books/introductory-statistics/pages/1-introduction. License: CC BY: Attribution. License Terms: Access for free at https://openstax.org/books/introductory-statistics/pages/1-introduction
- Prealgebra. Provided by: Open Stax. Located at: https://openstax.org/books/prealgebra/pages/1-introduction. License: CC BY: Attribution. License Terms: Access for free at https://openstax.org/books/prealgebra/pages/1-introduction
- Median, Quartiles and Interquartile Range: ExamSolutions. Authored by: ExamSolutions. Located at: https://youtu.be/wNamjO-JzUg. License: All Rights Reserved. License Terms: Standard YouTube License