The Mean as a Fair Share

Category: Statistics   Level: 301

mean = (∑ x)/n

The mean is what each value gets if you pool the total and share it out evenly. Cut the extra off the tall bars and use it to fill the short ones.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Draw each value as a bar

Seven bars with heights 2, 3, 3, 4, 5, 6, 12. They are far from even.

total = 2 + 3 + 3 + 4 + 5 + 6 + 12 = 35

Step 1: Draw each value as a bar

Step 2: Draw the fair share line

Share 35 blocks among 7 bars and each gets 5. Draw that level across all bars.

35/7 = 5

Step 2: Draw the fair share line

Step 3: Mark extra and missing blocks

Blocks above the line are extra (red). Gaps below it are missing (dashed). The counts match, which is the whole trick.

extra = 8 = missing

Step 3: Mark extra and missing blocks

Step 4: Move the blocks to level the bars

Cut the extra blocks (now dashed) and drop them into the gaps. Every bar ends at 5, and the total stays 35.

7 × 5 = 35

Step 4: Move the blocks to level the bars

All steps at once

Storyboard

Generate it yourself

cd svg-generator
python3 -m svgmath render mean-fair-share --out /tmp/mean-fair-share

Source: svgmath/diagrams/statistics.py