Why descriptive statistics?#
You can't read 1,500 rows. Descriptive statistics summarise a column in a few numbers:
- Where is the centre? → mean, median, mode
- How spread out is it? → range, IQR, variance, standard deviation
- Where does a value stand? → percentiles, quartiles
Measures of central tendency#
Mean (average)#
Sum of values ÷ number of values.
Marks: 60, 70, 80, 90, 100
Mean = (60 + 70 + 80 + 90 + 100) / 5 = 400 / 5 = 80
Median (middle value)#
Sort the values; take the middle one. For an even count, average the two middle values.
Sorted: 60, 70, 80, 90, 100 → median = 80
Sorted: 60, 70, 80, 90 → median = (70 + 80) / 2 = 75
Mode (most frequent)#
The value that appears most often - the only "average" that works for categories.
Payment modes: UPI, Card, UPI, Cash, UPI → mode = UPI
Mean vs median - the outlier effect#
The mean (Rs. 91,667) describes nobody in this team. The median (Rs. 31,000) is the typical salary.
Mean (औसत) = सबका जोड़ ÷ गिनती। Median (बीच वाली value) = values को क्रम में लगाकर बीच वाली value।
अगर data में कोई बहुत बड़ी या बहुत छोटी value (outlier) हो, तो mean उसकी तरफ़ खिंच जाता है, पर median पर ज़्यादा असर नहीं होता। जैसे ऊपर 5 लोगों की salary 25-35 हज़ार है और एक director की 4 लाख - mean 91 हज़ार आता है जो किसी की असली salary नहीं है, जबकि median 31 हज़ार सही तस्वीर दिखाता है।
नियम: salary, property price, order value जैसे data में (जहाँ कुछ values बहुत बड़ी होती हैं) median को ज़रूर देखें।
| Use | When |
|---|---|
| Mean | Data is roughly symmetric, no extreme outliers (exam marks, heights) |
| Median | Skewed data or outliers (salaries, house prices, order values) |
| Mode | Categories, or the most common value (payment mode, shoe size) |
Measures of spread#
Two classes can both average 70 marks - one where everyone scored 65-75, another where marks range from 20 to 100. Spread tells them apart.
| Measure | Formula / idea | Notes |
|---|---|---|
| Range | max - min | simple, but sensitive to outliers |
| Quartiles | Q1 = 25th percentile, Q2 = median, Q3 = 75th percentile | split sorted data into 4 equal parts |
| IQR | Q3 - Q1 | spread of the middle 50%; robust to outliers |
| Variance | average squared distance from the mean | in squared units - hard to interpret |
| Standard deviation (SD) | √variance | same units as the data; "typical distance from mean" |
Same mean (70), very different consistency.
Spread (फैलाव) बताता है कि values एक-दूसरे से कितनी अलग हैं।
- Range = सबसे बड़ी - सबसे छोटी value।
- Standard Deviation (SD) = values औसत से आमतौर पर कितनी दूर हैं। SD छोटा = सब values औसत के आसपास (consistent); SD बड़ा = values बहुत बिखरी हुई।
- IQR = बीच की 50% values का फैलाव - outliers का इस पर असर नहीं पड़ता।
Percentiles#
The p-th percentile is the value below which p% of the data falls.
- "Your score is at the 85th percentile" = you scored higher than 85% of candidates.
- Companies track the 90th percentile delivery time: 90% of orders arrive within X days.
Vindhya Mart - real numbers#
Interpretation:
- The mean order (about Rs. 7,378) is five times the median (about Rs. 1,424). A few laptop and phone orders are huge while most orders are small items - the data is right-skewed.
- Half of all orders are between Rs. 574 (Q1) and Rs. 6,499 (Q3).
- Reporting "our average order is Rs. 7,378" would mislead a manager planning for a typical customer.
Grouped statistics#
Statistics become powerful when you compare groups:
Practice (with a calculator or Excel)#
Monthly sales (Rs. thousand) of a store for 8 months: 42, 38, 45, 40, 120, 44, 39, 41
1. Calculate the mean and the median.
Sum = 409, mean = 409 / 8 = 51.1. Sorted: 38, 39, 40, 41, 42, 44, 45, 120 → median = (41 + 42) / 2 = 41.5.
2. Which is a better "typical month" figure, and why?
The median (41.5). The month with 120 (a festival month or a one-time bulk order) pulls the mean up to 51.1, which is higher than 7 of the 8 months.
3. What is the range? Is it a good measure of spread here?
Range = 120 - 38 = 82. Not a good measure here - one outlier makes the spread look huge, while 7 of 8 months are within 38-45. The IQR is more representative.
Summary#
- Centre: mean (symmetric data), median (skewed/outliers), mode (categories).
- Spread: range, quartiles and IQR, variance and standard deviation.
- Percentiles show where a value stands relative to others.
- Always compare mean and median - a big gap signals skew or outliers.
- Grouped statistics (by region, segment, month) turn numbers into insights.