How to Calculate the Upper Quartile
How to Calculate the Upper Quartile
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

Data Set Prep

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. 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. For example, the set [3, 3, 4, 5, 7, 8, 10, 11, 12, 21] has 10 numbers.

Set up the formula for calculating the upper quartile. The formula is Q 3 = 3 4 ( n + 1 ) {\displaystyle Q_{3}={\frac {3}{4}}(n+1)} Q_{{3}}={\frac {3}{4}}(n+1), where Q 3 {\displaystyle Q_{3}} Q_{{3}} is the upper quartile, and n {\displaystyle n} n is the number of numbers in the data set.

Calculating the Upper Quartile

Plug the value of n {\displaystyle n} n into the formula. Remember that n {\displaystyle n} n is the number of numbers in the data set. For example, if there are 10 numbers in your data set, your formula will look like this: Q 3 = 3 4 ( 10 + 1 ) {\displaystyle Q_{3}={\frac {3}{4}}(10+1)} Q_{{3}}={\frac {3}{4}}(10+1).

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: Q 3 = 3 4 ( 10 + 1 ) {\displaystyle Q_{3}={\frac {3}{4}}(10+1)} Q_{{3}}={\frac {3}{4}}(10+1) Q 3 = 3 4 ( 11 ) {\displaystyle Q_{3}={\frac {3}{4}}(11)} Q_{{3}}={\frac {3}{4}}(11)

Multiply the sum by 3 4 {\displaystyle {\frac {3}{4}}} {\frac {3}{4}}. You could also multiply by .75 {\displaystyle .75} .75. 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. For example: Q 3 = 3 4 ( 11 ) {\displaystyle Q_{3}={\frac {3}{4}}(11)} Q_{{3}}={\frac {3}{4}}(11) Q 3 = 8 1 4 {\displaystyle Q_{3}=8{\frac {1}{4}}} Q_{{3}}=8{\frac {1}{4}}So, the upper quartile is given by the number at the 8 1 4 {\displaystyle 8{\frac {1}{4}}} 8{\frac {1}{4}} position in the data set.

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. For example, if you calculated 8 1 4 {\displaystyle 8{\frac {1}{4}}} 8{\frac {1}{4}} 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 11 + 12 2 {\displaystyle {\frac {11+12}{2}}} {\frac {11+12}{2}} to find the average: 11 + 12 2 {\displaystyle {\frac {11+12}{2}}} {\frac {11+12}{2}} = 23 2 {\displaystyle ={\frac {23}{2}}} ={\frac {23}{2}} = 11.5 {\displaystyle =11.5} =11.5So, the upper quartile of the data set is 11.5

Using Excel

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. 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. 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 Q 3 = 3 4 ( n − 1 ) {\displaystyle Q_{3}={\frac {3}{4}}(n-1)} Q_{{3}}={\frac {3}{4}}(n-1), and the QUARTILE.EXC function uses the formula Q 3 = 3 4 ( n + 1 ) {\displaystyle Q_{3}={\frac {3}{4}}(n+1)} Q_{{3}}={\frac {3}{4}}(n+1). Both formula are accepted ways to calculate quartiles, although the former is becoming standardized in statistical software.

What's your reaction?

Comments

https://wapozavr.com/assets/images/user-avatar-s.jpg

0 comment

Write the first comment for this!