HomeAll tracks · pricing · account
Python11 apps · Python, SQL & data
Start free Log in
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
← Statistics 0 / 9
Loading Python, NumPy, pandas and SciPy in your browser… (first time ~35 MB, then cached)

Lesson 01Describing dataFoundation

Centre: mean, median and the pull of outliers

One number for "typical". The mean balances the data; the median splits it in half. One wild value tells them apart.

You’ll useSeries.mean · Series.median · Series.mode · stats.trim_mean

Watch the idea at work

Fifteen deliveries from the courier log. Where is the **typical** time? Two answers fight for the job: the **mean** and the **median**. Drag the slider to add one very late delivery and watch which one moves.

The mental modelThe **mean** is the balance point: every value pulls on it, so one extreme value pulls hard. The **median** is the middle of the sorted values: it only cares about order, so outliers barely move it.
Why it matters"Typical" drives decisions: staffing, pricing, promises to customers. Quote the mean of a skewed variable and you describe a customer, delivery or house that hardly exists.

🧪 Drag the slider to 160. Then imagine the late delivery were 10,000 minutes: which line would move, and which would stay put?