liveBook · Manning

Median absolute deviation

As explained in Statistics Slam Dunk

Median absolute deviation is a measure of dispersion based on the absolute differences between observations and the median of the data set.

Median absolute deviation measures how widely observations spread around a data set’s median. For NBA analysis, it helps compare the consistency of teams’ regular-season wins within each season. section 18.0 section 20.7

Compute the measure by following this practical sequence:

  • Aggregate those absolute differences to compare year-over-year dispersion. section 18.4.5

NBA regular-season wins

In R, `records %>% group_by(Season) %>% mutate(mdad_wins = abs(W - median(W)))` creates each team’s distance from its season median. The resulting annual values can be plotted with ggplot2. The NBA comparison found that median-based results were nearly identical to mean-based results, while dispersion increased during the early salary-cap era. section 18.4.5

How Statistics Slam Dunk covers it

How deep it goes
Defines the measure, implements grouped R arithmetic, and interprets a trend chart alongside other dispersion measures.
Examples
Uses NBA team wins grouped by season, R tibble columns, an annual line chart, and pre- versus post-salary-cap comparisons.
What it assumes
Assumes basic data vectors and grouping, while defining dispersion and the median-based calculation explicitly.
What you can do after
Apply it via R to calculate team-level median deviations and compare dispersion across seasons.
How it connects
Connects median-based deviations with statistical dispersion, mean absolute deviation, variance, standard deviation, range, parity, and salary caps.

Also explained in

Compare how 2 books explain median absolute deviation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Statistics Slam Dunk. The section links point to the parts of the book it draws on.