As we have seen, central tendency presents the middle value of a group of observations but does not provide the overall picture of an observation. Dispersion metrics measure the deviation in observations. The most popular dispersion metrics are range, interquartile range (IQR), variance, and standard deviation. These dispersion metrics value the variability in observations or the spread of observations. Let's see each dispersion measure in detail, as follows:
- Range: The range is the difference between the maximum and minimum value of an observation. It is easy to compute and easy to understand. Its unit is the same as the unit of observations. Let's compute the range of communication skill scores, as follows:
column_range=data['communcation_skill_score'].max()-data['communcation_skill_score'].min()
print(column_range)
Output:
22
In the preceding code block, we have computed the range of communication skill scores by finding the difference...