DataLeaguebeta
Lesson 31/4up to 50 pts

Variability and the box plot: how much the data differ

lesson~12 minflashcardsgamequizup to 50 pts

Same mean, different story

Two classes have a mean travel time to school of 20 minutes and a median of 20 minutes too. In class A everybody travels 17 to 23 minutes, in class B 5 to 35 minutes. The mean does not tell them apart; variability does.

MeasureCalculationWhat it tells youSensitive to extremes?
rangemax − minthe whole span of the datavery
interquartile range (IQR)Q3 − Q1the span of the middle halfno
variancesum of squared deviations / (n − 1)mean squared deviationyes
standard deviationsquare root of the variancetypical deviation from the mean, in the units of the datayes
coefficient of variationsd / meanvariability relative to the meanyes

We divide the variance by n−1n - 1 because we use the sample to estimate the variability of the whole population. Pandas std() and var() do this by default, numpy.std divides by nn.

Variability and the box plot: how much the data differ · Descriptive statistics · DataLeague