Block 91: Descriptive Statistics Deep Dive
Compute and interpret full descriptive statistics with pandas and NumPy.
Concepts
- Mean, median, mode: when to use each
- Variance and standard deviation
- Skewness and kurtosis
- Quantiles and IQR
Code Examples
See exercise below.
Exercise
For a real dataset, compute mean/median/mode for 3 numeric columns. Where do they diverge? Identify outliers using the IQR rule (1.5*IQR above Q3 or below Q1).
Homework
When is the median a better measure of central tendency than the mean? Give 3 examples.