Descriptive Analytics
Lesson opener
In one line: Descriptive analytics summarises what happened — with the right centre, spread, grain, and a four-sentence interpretation leaders can act on.
Why it matters: Every predictive model and dashboard sits on descriptive truth. Wrong grain or mean-on-skewed revenue produces confident nonsense.
Before this lesson: Introduction to Business Analytics
Goal
Summarize historical data so stakeholders understand what happened and where to look deeper.
What you will be able to do
- Choose mean vs median vs mode for a metric and say why.
- State grain before any average; build a group-by by region or segment.
- Write Observation → Context → Implication → Next step for one finding.
Measures of center
| Measure | When to use | Formula (concept) |
|---|---|---|
| Mean | Symmetric data, no extreme outliers | Sum / count |
| Median | Skewed data (revenue, salary) | Middle value |
| Mode | Categories | Most frequent value |
Rule: Report median for income and order values; mean for temperatures or standardized scores.
Measures of spread
- Range — max − min (sensitive to outliers)
- Variance / standard deviation — average distance from mean
- IQR — Q3 − Q1; use with box plots for outliers
- Coefficient of variation — σ / μ; compare variability across scales
Distributions
- Normal — many continuous variables approximate this; enables many statistical tests
- Skewed right — common in revenue, session length (long tail)
- Bimodal — may indicate two segments mixed together
Aggregation and grain
Always state grain: row = one customer? one order? one day?
Wrong: "Average revenue is $50" (per customer? per order?)
Right: "Average order value (AOV) in Q1 was $50"Pivot thinking (Excel/SQL/Python)
| Dimension | Metric |
|---|---|
| Region | Sum(revenue), Count(orders) |
| Product category | Mean(margin), % of total |
Sample analysis (Python)
import pandas as pd
df = pd.read_csv("data/customers.csv")
summary = df.groupby("segment").agg(
customers=("customer_id", "count"),
avg_orders=("total_orders", "mean"),
avg_revenue=("total_revenue", "mean"),
).round(2)
print(summary)Business interpretation template
- Observation — "Segment B has 2× the average revenue of Segment A."
- Context — "Segment B is only 12% of customers."
- Implication — "Growth in B disproportionately lifts revenue."
- Next step — "Analyze acquisition cost by segment."
Teacher walkthrough: NovaRetail segment summary
All figures illustrative.
Step 1 — Name the decision. "Which segment deserves retention attention this month?"
Step 2 — Check grain. customers.csv: one row = one customer. Averages are per-customer, not per-order.
Step 3 — Centre and spread. For total_revenue, report median (skewed) and IQR; use mean only with an outlier note.
Step 4 — Pivot. Group by segment: count, mean orders, median revenue.
Step 5 — Interpret. Observation (Gold median revenue 2× Silver) → Context (Gold is 15% of base) → Implication (small Gold growth lifts revenue) → Next step (CAC and churn by segment in Customer analytics).
Failure example: mean revenue that misled finance
Symptom: Pack said "average customer revenue ₹8,400." Finance planned capacity on that number; realised collections were far lower for most customers.
Diagnosis: Mean pulled by a few whales; grain mixed with order-level extracts in a later slide.
Correction: Lead with median + segment table; label grain on every chart title.
Validation: Next pack titles read "Median revenue per customer (one row = customer)"; finance stops using the mean alone for planning.
Guided practice
Given orders: ₹200, ₹220, ₹250, ₹280, ₹9,000 — which centre for "typical order," and what one sentence do you tell a manager?
Complete solution: Median ≈ ₹250 (or ₹220–₹280 band). Say: "Typical order is about ₹250; the ₹9,000 order is an outlier — do not staff on the mean of ₹1,990."
Independent practice
Acceptance criteria:
- Mean, median, and std (or IQR) for one numeric column in
data/customers.csv. - Group-by summary by at least one category with grain stated.
- Four-sentence interpretation (observation, context, implication, next step).
- One sentence on when you would not use the mean.
Common mistakes
- Reporting mean for skewed money metrics without median.
- Omitting grain ("average revenue" with no unit of analysis).
- Charts without a next-step sentence.
- Mixing customer and order extracts in one table.
Practice
Do this now (click): Open Exercise 1 — Descriptive basics →
Data: Preview customers.csv / data/sales.csv (website → Data preview)
Checklist
- [ ] I computed mean, median, and std for a numeric column
- [ ] I built a group-by summary by at least one category
- [ ] I wrote a 4-sentence business interpretation
- [ ] Acceptance criteria above are met