Same numbers, different stories
The headline
Identical summary statistics do not mean identical data. That is why every analysis starts with EDA: look at the distribution, the gaps and the odd values first, then decide what to calculate.
Walk a messy dataset through EDA
Three ideas that make EDA work
Idea 1 · The median resists outliers, the mean does not
Idea 2 · A histogram depends on its bins
Idea 3 · Correlation measures straight-line togetherness
The defining rule: Tukey's 1.5 × IQR fence
z = (x − x̄) ÷ s , flag if |z| > t
Why the z-rule can miss. In a sample of n values no point can have |z| larger than (n − 1) ÷ √n, because the point inflates the very standard deviation it is measured with (masking). With n = 10 that ceiling is 2.85, so |z| > 3 can never fire.
Five-number summary, by hand and by eye
df.describe() prints. Do one by hand, then type any numbers into the calculator.Worked example by hand: seven delivery times (minutes)
Quartiles here use the pandas default (linear interpolation): the p-th quantile sits at position p · (n − 1) of the sorted list. Textbooks sometimes use the "median of each half" method, which can give slightly different quartiles.
Where the missing values add up
The arithmetic and the usual fix for that column appear here.
Missing by column type
What dropna() would do
Worked example: counting the gaps
In Python one line gives the bars above: df.isna().sum(). Divide by len(df) for the shares.
The family of EDA plots
| technique | variables | types | reveals | plots for p |
|---|
Click a row.
The cost and the limits of looking
Apply EDA yourself in Python
Checklist progress
df.isna().sum() return?isna() turns the table into True / False (True = missing); .sum() adds the Trues column by column, because True counts as 1. The result is one count per column, exactly the bars of section 06.