What is InterQuartile Range: Definition

The value of the InterQuartile Range (IQR: Q1 – Q3) is the result that we will get when the value that exists in the First Quartile position will be subtracted from the value that exists in the Third Quartile position. The InterQuartile Range (IQR) is also known as midspread or middle fifty. It shows the statistical dispersion in an Arithmetic set. It also used for the construction of the Boxplot – a Statistical Graph figure.

InterQuartile Range: Statistical Formula

The Statistical formula for the InterQuartile Range (IQR) is the following one:

Calculating the InterQuartile Range

There are two main methods for finding the value of the InterQuartile Range which is based either on Median (**Method A**) or based on a Statistical Formula (**Method B**). Each method may produce different results. Therefore, you must refer what method you used in order to find the value of IQR.

Method A: The Median of the Median: Even Cases

This method is entirely based on the Median. Note that Median is **always** found in Q2 position. Also, every Median and Q2 position splits any given Arithmetic set in half. The value of the InterQuartile Range can be found, if the next steps are followed:

i) We must find the Median value for a given Arithmetic set.

—–If the Arithmetic set includes an **Even** number of values e.g. 10, 12, 100, then we must calculate the Arithmetic Mean (average) of the two middle values.

—–If the Arithmetic set includes an **Odd** number of values e.g. 9, 11, 101, then the middle number can be identified as the Median of this set.

ii) Due to Median’s position or Q2 position, two new Arithmetic Subsets will virtually be produced that each will be equal to the number of values that will include. That is, the 50% of the values of the Main Arithmetic set will be Left from the Median and the 50% of the values will be Right from the Median.

*Based on this method, Median is Always not included in these two new Arithmetic subsets.*

iii) Then, we must find the Median value in these two new Arithmetic subsets, too.

—–If the Main Arithmetic set had an **Even** number of values, then these two Arithmetic subsets will contain an **Odd** number of values. Therefore, the middle number can be identified as the Median of this set.

—–If the Main Arithmetic set had an **Odd** number of values, then these two Arithmetic subsets will contain an **Even** number of values. Therefore, we must calculate the Arithmetic Mean (average) of the two middle values for each Arithmetic subset. These two new values will be the Median for each Arithmetic subset.

iv) These two new values corresponds to the values that exist in the 1st Quartile position and in the 3rd Quartile position in the Main Arithmetic set.

v) Then, in order to find the value of the InterQuartile Range, we must subtract the value that exists in Q1 position from the value that exists in the Q3 position.

Method A: The Median of the Median: Even Cases: Example

Here, an example is given (n=10) for **Even** cases. The dataset that we will use in this example is the following one. It has been already arranged in an ascending order (a prerequisite for finding the Median value / Quartile positions):

, , , , , , , , , .

i) Because, here, we have a dataset with **Even** number of values, two middle numbers exists which are: 11 and 13.

ii) Therefore, the Median value is found by calculating the Arithmetic mean (average) of these two values, which is 12: .

iii) Every Median splits a dataset into half in such way that 50% of the values will be left of the Median and the other 50% of values will be right of the Median. Therefore:

iv) we have 5 values left of “12” (Median) and other 5 values right of “12” (Median). Therefore, we have:

Left of “12” (Median): , , , ,

Right of “12” (Median): , , , , .

v) In The next step, we must find the Median for each Arithmetic subset which will be the same number as the Middle value of each Arithmetic subset – because each subset of this example contains an **Odd** number of values. Therefore:

–i) in the Left Arithmetic subset, the middle value is 10, that is, the Median equals 10 (Q1 position)

–ii) in the Right Arithmetic subset, the middle value is 15, that is, the Median equals 15 (Q3 position)

vi) The Median value in each Arithmetic subset corresponds to the value that exists in Q1 and Q3 positions, respectively. Then, the InterQuartile Range can be referred as “10-15″. Therefore, the value of InterQuartile Range can be found by subtracting the value that exists in Q1 position from the value that exists in Q3 position, which equals 5:

, and thus: .

Method A: The Median of the Median: Odd Cases: Example

Let’s say we have the following dataset that includes nine (n=9) numbers in an ascending order (a prerequisite for finding the Median value / Quartile positions):

, , , , , , , ,

i) Because we have a dataset that includes **Odd** number of values, Median is equals to the value of the middle number of this set which is 11.

ii) Every Median splits a dataset into two subsets: 50% of the values will be left of the Median and the other 50% of values will be right of the Median.

iii) Then, we have 4 values left of “11” (Median) and other 4 values right of “11” (Median). Therefore, we have:

Left of “11” (Median): , , ,

Right of “11” (Median): , , ,

iv) In the next step, we must find the Median for each Arithmetic subset which will be the Arithmetic Mean (average) of the two middle numbers in each Arithmetic subset – because each subset of this example contains an **Even** number of values.

v) Therefore, the Median for these two Arithmetic subsets is 8.5 (Q1 position) and 14 (Q3 position), respectively:

–Left Arithemtic subset: Middle values: 7 and 10. Therefore:

–Right Arithemtic subset: Middle values: 13 and 15. Therefore:

vi) The Median value in each Arithmetic subset corresponds to the value that exists in Q1 and Q3 positions, respectively. Then, the InterQuartile Range can be referred as **“8.5-14″**.

vii) Therefore, the value of InterQuartile Range can be found by subtracting the value that exists in Q1 position from the value that exists in Q3 position, which equals 5.5:

Therefore, the value of InterQuartile Range, in that case, is:

Method B: The Statistical Formula

The following formula do not care if the Arithmetic dataset has an Odd or Even number of values. However, the Statistical Formula will be used for both Arithmetic series ((n=10) and (n=9)) in order to be able to compare the results of both methods. Note that the Statistical Formula is **only** depended on **the number of values** that exist in a given dataset. The following datasets have been arranged in an ascending order (a prerequisite for finding Quartile positions):

**The (1st) Arithmetic set with an Even number of values (n=10)**

, , , , , , , , , .

**The (2nd) Arithmetic set with an Odd number of values (n=9)**

, , , , , , , ,

i) The first step is to find what is the exact position of the and the in each Arithmetic set. In order to find these positions, we must apply the relevant Statistical formula in each case:

**Explanation**

The is the exact position that and have on a given dataset.

The is replaced by the total number of values that exist on a given dataset. Here, it is replaced with 9 or 10, respectively.

The is replaced by the position we are searching to find. Here, it is replaced by 1 (Q1) and 3 (Q3), for each Quartile, respectively, for both datasets.

The is replaced by the total number of Arithmetic pieces / moieties that are produced, here, by Quartiles. Quartiles **always** produce 4 Arithmetic pieces, therefore, it is replaced by 4.

Results for the 1st Arithmetic set (n=10)

Q2 results also will be presented for comparison reasons. For the position and , we have as a result:

and

ii) The next step is to find what values correspond to these positions in the given Arithmetic set.

Positions of 2.75 and 8.25

The position can be found between the 2nd and 3rd values of the Arithmetic set. That is, between the values of 7 and 10.

The position can be found between the 8th and 9th values of the Arithmetic set. That is, between the values of 15 and 15.

The position can be found between the 5th and 6th values of the Arithmetic set. That is, between the values of 11 and 13.

**In order to find what values correspond to these positions in the given Arithmetic set, these steps must be followed: **

a) Between these two values, We subtract the lower number from the higher number.

That is: and

b1) **For Q1 position:** We multiply the result by or , both forms are equivalent.

That is:

b2) **For Q3 position:** We multiply the result by or , both forms are equivalent.

That is:

c) We add the produced result to the Lowest number between the two given values.

That is: and

**Q1 position and Q3 position (and Q2 position) corresponding values**

The position corresponds to the value of :

The position corresponds to the value of :

The position corresponds to the value of :

iii) Therefore, the InterQuartile Range can be described by this interval: **“9.25-15″** for the given arithmetic set, while

iv) The value of the InterQuartile Range can be found if we subtract the value that corresponds to Q1 position from the value that corresponds to Q3 position, which is equal to 5.75:

Results for the 2nd Arithmetic Set (n=9)

For the position we have as a result: , and

For the position we have as a result:

For the position we have as a result:

The position 2.50 can be found between the 2nd and 3rd values of the Arithmetic set. That is, between the numbers of 7 and 10 while the position 7.50 can be found between the 7th and 8th values of the Arithmetic set, that is, between the numbers of 13 and 15.

Note that the position “5” has no decimals therefore, it corresponds to the 5th Arithmetic member of this set, which is 11.

Positions of 2.50 and 7.50

**In order to find what value correspond to these positions in the given Arithmetic set, these steps must be followed: **

a) Between these two values, We subtract the lower number from the higher number.

That is: and

b) We multiply the result by or in both cases, both forms are equivalent.

That is: and

c) We add the produced result to the Lowest number between the two given values.

That is: and

**Q1 position and Q3 position corresponding values**

Therefore, we get as a result 8.50 for Q1 position:

Therefore, we get as a result 14 for Q3 position:

Therefore, we get as a result 11 for Q2 position:

Therefore, the InterQuartile Range can be described by this interval: **“8.50-14″** for the given arithmetic set, while its value is 5.50:

Generalizing the Formula for finding the (Decimal) position between two numbers in a given dataset

Generally, the formula for finding the (Decimal) position between two numbers in a given dataset can be the following one:

**Explanation**

The denotes the value that we are searching for.

The is the Lowest value between two given numbers

The is the Highest value between two given numbers

The represents the fraction that will multiply the “difference” result between two given numbers:

——–For values that have no decimals, the fraction equals to “0”:

——–For values that have decimal point of .25, it takes the form of:

——–For values that have decimal point of .50, it takes the form of: and

——–For values that have decimal point of .75, it takes the form of: .

*Both forms are equivalent and can be used interchangeably.*

Results – Explanation

Both methods produced the same results for the 2nd Arithmetic set (n=9) but they did not produced exactly the same results for the 1st Arithmetic set (n=10).

**Method A – Median**

For an **Even** number of values in a dataset, we had as a result (n=10):

For an **Odd** number of values in a dataset, we had as a result (n=9):

**Method B – Statistical formula**

For the **1st** Arithmetic set, we had as a result (n=10):

For the **2nd** Arithmetic set, we had as a result (n=9):

Note that other methods and formulas also exist for calculating the value or the -iles positions.

The below table summarizes all the results. Specifically, it presents the values of InterQuartile Range, as well the values of the First Quartile (Q1), Second Quartile (Q2 – Median value), and Third Quartile (Q3) that were produced based on Method A: Median and Method B: Statistical Formula for both Arithmetic sets: 1st: (n=9) and 2nd :(n=10).

Arithmetic Set | Q1 and Q3 positions | Q1 | Q2 - Median | Q3 | IQR |
---|---|---|---|---|---|

| Method A: | "Median" | |||

1st:(n=10) 5,7,10,10,11,13,13,15,15,18 | 10 | 12 | 15 | 5.00 | |

2nd:(n=9) 5,7,10,10,11,13,13,15,15 | 8.50 | 11 | 14 | 5.50 | |

| Method B: | "Statistical Formula" | |||

1st:(n=10) 5,7,10,10,11,13,13,15,15,18 | 2.75 and 8.25 | 9.25 | 12 | 15 | 5.75 |

2nd:(n=9) 5,7,10,10,11,13,13,15,15 | 2.50 and 7.50 | 8.50 | 11 | 14 | 5.50 |