Quartiles are numbers used to divide a set of data into four equal parts, or quarters. [1] X Research source The upper quartile, or third quartile, is the top 25% of numbers in the data set, or the 75th percentile. The upper quartile is calculated by determining the median number in the upper half of a data set. [2] X Research source This value can be found by calculating with pen and paper, but you can also easily find the upper quartile using statistical software, such as MS Excel.
Steps
-
Arrange the numbers of the data set in ascending order. This means ordering them from the smallest value to the largest value. Make sure to include all repeated values. [3] X Research source
- For example, if your set of numbers is [3, 4, 5, 11, 3, 12, 21, 10, 8, 7], you would reorder them like this: [3, 3, 4, 5, 7, 8, 10, 11, 12, 21].
-
Determine how many numbers are in the data set. To do this, simply count each number in the set. Don’t forget to count each instance of a repeated value. [4] X Research source
- For example, the set [3, 3, 4, 5, 7, 8, 10, 11, 12, 21] has 10 numbers.
Advertisement -
Set up the formula for calculating the upper quartile. The formula is , where is the upper quartile, and is the number of numbers in the data set. [5] X Research source
-
Plug the value of into the formula. Remember that is the number of numbers in the data set. [6] X Research source
- For example, if there are 10 numbers in your data set, your formula will look like this: .
-
Complete the calculation in parentheses. According to the order of operations, you must attend to the parentheses first when evaluating a mathematical expression. In this instance, add 1 to the number of numbers in the data set.
- For example:
- For example:
-
Multiply the sum by . You could also multiply by . This will show you the placement of the value in the data set that is at the three-fourths, or 75 percent mark, and thus the place where the data set is split into the upper quartile and the lower quartiles. This will not give you the number of the upper quartile. [7] X Research source
- For example:
So, the upper quartile is given by the number at the position in the data set.
- For example:
-
Determine the number representing the upper quartile. If you calculated a whole number, simply find that number in the data set.
- For example, if you calculated 12 using the formula, then the upper quartile is the 12th number in the data set.
-
Calculate the upper quartile, if necessary. Usually, you will calculate a fraction or decimal using the formula. In this instance, find the value above and below this position in the data set, and find their mean, or average. To do this, divide the sum of the two values by 2. This will give you the upper quartile of your data set. [8] X Research source
- For example, if you calculated
using the formula, then the upper quartile is between the 8th and 9th number in the data set. In the set [3, 3, 4, 5, 7, 8, 10, 11, 12, 21], 11 and 12 are the 8th and 9th number. Calculate
to find the average:
So, the upper quartile of the data set is 11.5
- For example, if you calculated
using the formula, then the upper quartile is between the 8th and 9th number in the data set. In the set [3, 3, 4, 5, 7, 8, 10, 11, 12, 21], 11 and 12 are the 8th and 9th number. Calculate
to find the average:
-
Input your data into Excel. Enter each value into a separate cell. Don’t forget to include any repeated values. You can enter your data in any cells in the spreadsheet.
- For example, you might enter the data set [3, 3, 4, 5, 7, 8, 10, 11, 12, 21] into cells A1 through A10 in the spreadsheet.
-
Enter the quartile function into another cell. The quartile function is =(QUARTILE(AX:AY, Q)), where AX and AY is the data range, and Q is the quartile. [9] X Research source Begin typing this function into Excel, then when it pops up in the menu, double-click on it to select.
-
Select the cells containing the data. Select the first cell of the data range, then scroll down or across to select all the cells in the range.
-
Enter 3 into the function to denote the upper quartile. Make sure you include a comma after the data range, and two closing parentheses. [10] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source
- For example, if you want to find the upper quartile of cells A1 through A10, your function will look like this: =(QUARTILE(A1:A10, 3)).
-
Show the upper quartile. To do this, hit enter after typing the function into Excel. This will show you the actual upper quartile, not the position of the quartile in the data set.
- Note that with the release of Office 2010, there are two different quartile functions: QUARTILE.EXC and QUARTILE.INC. These functions cannot be used in earlier versions of Excel, and QUARTILE can still be used.
- The two Excel quartile functions use a different formula to calculate the upper quartile. QUARTILE/QUARTILE.INC uses the formula , and the QUARTILE.EXC function uses the formula . Both formula are accepted ways to calculate quartiles, although the former is becoming standardized in statistical software.
Community Q&A
-
QuestionHow do you find the upper and lower quartiles?Community AnswerUse the methods above to find the upper quartile. To find the lower quartile using the formula, use Q1 = 1/4(n+ 1), or enter 1 into the Excel function instead of 3.
-
QuestionHow do I determine the inter quartile range of data?Cluster DuckCommunity AnswerThe IQR can be calculated by subtracting the lower quartile from the upper.
-
QuestionHow do I calculate the upper quartile for a large group of numbers?Community AnswerSame as for a small group of numbers. Or better use script language like Matlab or Python to load the dataset and do the calculations.
Video
Tips
- You may sometimes see a reference to the “interquartile range.” This is the range between the lower and upper quartiles, which is calculated by subtracted Quartile 1 from Quartile 3.Thanks
References
- ↑ https://www.mathsisfun.com/data/quartiles.html
- ↑ https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch12/5214890-eng.htm
- ↑ https://www.mathsisfun.com/data/quartiles.html
- ↑ https://www.cuemath.com/quartile-formula/
- ↑ https://www.cuemath.com/quartile-formula/
- ↑ https://www.bbc.co.uk/bitesize/guides/zx7rk7h/revision/2
- ↑ https://www.bbc.co.uk/bitesize/guides/zx7rk7h/revision/2
- ↑ https://www.bbc.co.uk/bitesize/guides/zx7rk7h/revision/2
- ↑ https://support.office.com/en-us/article/QUARTILE-function-93cf8f62-60cd-4fdb-8a92-8451041e1a2a
About This Article
Quartiles are numbers used to divide a set of data into 4 equal parts or quarters. The upper quartile is the top 25 percent of numbers in the data set, or the 75th percentile. To calculate the upper quartile, first, arrange the numbers of the data set in ascending order. Then, determine how many numbers are in the set. The formula for calculating the upper quartile is Q3 = ¾ (n +1). Q3 is the upper quartile and n is the number of numbers in your data set. For example, if you have 10 numbers in your data set, you would solve Q3 = ¾ (10 + 1), then solve ¾ x 11, which would give you 8 ¼. If you get a fraction or decimal as your answer, the upper quartile will be the average of the number below and above in your data set. For example, if you calculate 8 ¼ for Q3 and the numbers below and above in your set are 8 and 10, the average of them is 9. Therefore, 9 is the upper quartile. To learn how to calculate an upper quartile in Excel, read on!