Final answer:
The range is the difference between the maximum and minimum values in the dataset. The interquartile range (IQR) is the difference between the first quartile (Q1) and the third quartile (Q3).
Step-by-step explanation:
To calculate the range, you need to find the difference between the maximum and minimum values in the dataset. For example, if the data values are 5, 10, 7, 3, and 9, the range would be 10 - 3 = 7.
To calculate the interquartile range (IQR), you need to find the first quartile (Q1) and the third quartile (Q3). Q1 is the median of the lower half of the dataset, and Q3 is the median of the upper half. Once you have them, you can find the IQR by subtracting Q1 from Q3. The IQR provides a measure of the spread of the middle 50% of the data.