the data set is: 17, 15, 10, 20, 40, 18, 17, 15, 22, 16 for this question, find the iqr

the data set is: 17, 15, 10, 20, 40, 18, 17, 15, 22, 16 for this question, find the iqr
Answer
Explanation:
Step1: Sort the data set
$10, 15, 15, 16, 17, 17, 18, 20, 22, 40$
Step2: Find the median (Q2)
Since there are 10 data - points, the median is the average of the 5th and 6th ordered values. $Q2=\frac{17 + 17}{2}=17$
Step3: Find the lower half of the data
The lower half is $10, 15, 15, 16, 17$. The median of the lower half (Q1) is the 3rd value, so $Q1 = 15$
Step4: Find the upper half of the data
The upper half is $17, 18, 20, 22, 40$. The median of the upper half (Q3) is the 3rd value, so $Q3=20$
Step5: Calculate the IQR
$IQR = Q3 - Q1=20 - 15 = 5$
Answer:
5