Skip to main content
Skip to main content
DigiCalcs
العودة إلى الأدلة
3 min read5 الخطوات

Interquartile Range Calculator: A Step-by-Step Guide

Learn to calculate IQR and identify outliers manually

تخطي العمليات الحسابية — استخدم الآلة الحاسبة

تعليمات خطوة بخطوة

1

Sort the Dataset

Arrange the dataset in ascending order to identify the quartiles.

2

Find the Median (Q2)

Find the median of the dataset, which is the middle value for odd-length datasets or the average of the two middle values for even-length datasets.

3

Find the First Quartile (Q1)

Find the median of the lower half of the dataset, which is the middle value for odd-length lower halves or the average of the two middle values for even-length lower halves.

4

Find the Third Quartile (Q3)

Find the median of the upper half of the dataset, which is the middle value for odd-length upper halves or the average of the two middle values for even-length upper halves.

5

Calculate the IQR

Use the formula IQR = Q3 - Q1 to calculate the Interquartile Range.

Introduction to Interquartile Range (IQR)

The Interquartile Range (IQR) is a statistical measure used to describe the spread of a dataset. It is defined as the difference between the third quartile (Q3) and the first quartile (Q1). In this guide, we will walk you through the steps to calculate the IQR and five-number summary manually.

Step-by-Step Calculation

To calculate the IQR, follow these steps:

Step 1: Sort the Dataset

First, arrange the dataset in ascending order. This is crucial in identifying the quartiles.

Step 2: Find the Median (Q2)

Next, find the median (Q2) of the dataset. If the dataset has an odd number of values, the median is the middle value. If the dataset has an even number of values, the median is the average of the two middle values.

Step 3: Find the First Quartile (Q1)

The first quartile (Q1) is the median of the lower half of the dataset. If the lower half has an odd number of values, Q1 is the middle value. If the lower half has an even number of values, Q1 is the average of the two middle values.

Step 4: Find the Third Quartile (Q3)

The third quartile (Q3) is the median of the upper half of the dataset. If the upper half has an odd number of values, Q3 is the middle value. If the upper half has an even number of values, Q3 is the average of the two middle values.

Step 5: Calculate the IQR

Finally, calculate the IQR using the formula: IQR = Q3 - Q1.

Worked Example

Suppose we have the following dataset: 2, 4, 6, 8, 10, 12, 14, 16, 18, 20.

  1. Sort the dataset: already sorted
  2. Find the median (Q2): since there are 10 values (even), the median is the average of the 5th and 6th values, which is (10 + 12) / 2 = 11
  3. Find the first quartile (Q1): the lower half is 2, 4, 6, 8, 10. The median of this half is the average of the 2nd and 3rd values, which is (4 + 6) / 2 = 5
  4. Find the third quartile (Q3): the upper half is 12, 14, 16, 18, 20. The median of this half is the average of the 2nd and 3rd values, which is (14 + 16) / 2 = 15
  5. Calculate the IQR: IQR = Q3 - Q1 = 15 - 5 = 10

Identifying Outliers

To identify outliers, use the 1.5×IQR rule. Any value that is less than Q1 - 1.5×IQR or greater than Q3 + 1.5×IQR is considered an outlier.

Common Mistakes to Avoid

When calculating the IQR, make sure to:

  • Sort the dataset in ascending order
  • Identify the correct quartiles (Q1, Q2, Q3)
  • Use the correct formula for the IQR

When to Use the Calculator

While manual calculation is possible, it can be time-consuming and prone to errors. Use an IQR calculator for convenience when working with large datasets or when you need to perform multiple calculations quickly.

هل أنت مستعد للحساب؟

تخطي العمل اليدوي واحصل على نتائج فورية.

فتح الحاسبة

الإعدادات