Descriptive Statistics for Data Analysts
Mean, median, mode, variance, standard deviation, IQR, skewness, percentiles — every descriptive statistic explained with the formula, when to use it, when not to, and Indian business examples with Python and SQL code.
Measures of Central Tendency
Where is the centre of the data?
Measures of Spread (Variability)
How spread out is the data?
Shape of Distribution
How is the data distributed?
Quick Reference — When to Use Each Statistic
Frequently Asked Questions
When should you use mean vs median?
Use the median when the data is skewed or contains outliers. Use the mean when the data is roughly symmetric with no extreme outliers. The key difference: the mean uses every value in its calculation, so one very large or very small value can pull it significantly. The median is the middle value when data is sorted — it is insensitive to extremes. In Indian business contexts: always use the median for income data, order values, property prices, and salary data — these are always right-skewed with high-value outliers. The mean salary in India, for example, is heavily pulled up by a small number of very high earners, making it unrepresentative of the typical person. The median salary is more informative. Use the mean for normally distributed data like test scores, daily temperatures, or manufacturing process measurements where the distribution is symmetric.
What is standard deviation and why does it matter for data analysis?
Standard deviation (σ or std) measures the average amount by which values in a dataset differ from the mean. A low standard deviation means values are clustered tightly around the mean. A high standard deviation means values are spread widely. For data analysts, standard deviation matters because: (1) it quantifies variability — knowing average delivery time is 4.2 days is incomplete without knowing the std is 0.8 days (consistent) vs 3.5 days (very inconsistent); (2) it is used in outlier detection — values beyond 2–3 standard deviations from the mean are flagged as unusual; (3) it is required for z-score normalisation in machine learning; (4) it appears in many statistical tests (t-tests, ANOVA) that analysts run for A/B testing and hypothesis testing. In Python: df['column'].std(). In Excel: =STDEV(range).
What does skewness tell you about a dataset?
Skewness measures the asymmetry of a distribution. A skewness of 0 means the distribution is perfectly symmetric (like a normal distribution). Positive skewness (right skew) means the tail extends to the right — most values are low but a few extremely high values exist. Negative skewness (left skew) means the tail extends to the left — most values are high but a few extremely low values exist. Why it matters for analysts: (1) in right-skewed data (common in income, order values, page views), the mean > median. Reporting the mean misrepresents the "typical" value. Use the median. (2) skewness determines which statistical tests are appropriate — many tests assume normal distribution; highly skewed data may require transformation (log transform) or non-parametric tests; (3) right-skewed distributions are nearly universal in Indian business data: a small number of high-value customers, products, or orders drive a disproportionate share of revenue (the Pareto principle).
What is IQR and how is it used in data analysis?
IQR (Interquartile Range) is the difference between the 75th percentile (Q3) and 25th percentile (Q1) of a dataset. It represents the spread of the middle 50% of values. IQR = Q3 − Q1. For a dataset of order values: if Q1 = ₹450 and Q3 = ₹1,800, then IQR = ₹1,350 — meaning the central 50% of orders fall within a ₹1,350 range. IQR is used for: (1) outlier detection — the standard rule flags values below Q1 − 1.5×IQR or above Q3 + 1.5×IQR as outliers (the box plot whisker rule); (2) measuring spread when data is skewed — IQR is a better measure of spread than standard deviation for skewed data because it is resistant to outliers; (3) comparing consistency across groups — a city with IQR = ₹500 is much more consistent in order values than a city with IQR = ₹3,200. In Python: df['col'].quantile(0.75) - df['col'].quantile(0.25). In Excel: =QUARTILE(range,3) - QUARTILE(range,1).
EVIKA ACADEMY · NOIDA SECTOR 51
Apply Statistics on Real Indian Datasets
Our curriculum covers every concept in this chapter — applied to real Indian business data, with interpretation practice and mock interview questions on statistics.
Book Free Demo Class →