Weighted Average & Tile Tools: Statistical Weighting & Customer Quartiles
Overview & Learning Objectives
Simple arithmetic averages distort reality when transactions have variable volumes: a 50% discount on a ₹10 item does not offset a 10% discount on a ₹10,000 order. The `Weighted Average` tool calculates true volume-weighted metrics. The `Tile` tool divides sorted records into statistical cohorts, assigning records into quartiles, deciles, or standard deviation clusters for customer segmentation.
- Calculate volume-weighted averages across operational categories.
- Segment customers into statistical quantiles (Quartiles, Deciles) using the Tile tool.
- Deploy Smart Tile grouping to classify outliers based on standard deviations from the mean.
Industry Standard
Standard: Pricing analytics teams at Uber and McKinsey mandate using Weighted Average rather than simple arithmetic mean when evaluating portfolio profit margins and discount rates across multi-volume product categories.
Real-World Example: ScoopCraft Ice Cream Customer Spend Quartiles & Weighted Margin
ScoopCraft divides its loyalty customer base into 4 spend quartiles (Top 25% VIP to Bottom 25%) and computes volume-weighted profit margins.
| Customer Name | Annual Spend | Tile Method (Equal Records, 4) | Assigned Tier / Tile |
|---|---|---|---|
| Priya Sharma | ₹28,500 | Tile 1 (Top 25% Spenders) | Tier 1: Platinum Patron |
| Rahul Verma | ₹14,200 | Tile 2 (Next 25%) | Tier 2: Gold Member |
| Kavita Nair | ₹6,800 | Tile 3 (Next 25%) | Tier 3: Silver Member |
| Amit Das | ₹1,500 | Tile 4 (Bottom 25%) | Tier 4: Casual Guest |
Configuration & Core Workflow
-- Tile Tool Configuration Modes
1. Equal Records: (e.g. Num Tiles = 4 for Quartiles)
Divides records evenly into N groups based on sort order.
2. Smart Tile: (Standard Deviation Clustering)
Assigns: 0 (Average), -1 (1 StdDev Below), +1 (1 StdDev Above), -2, +2
3. Equal Sum:
Creates tiles such that the sum of a metric is equal across each tile.
-- Weighted Average Tool Configuration
Value Field: [Gross_Margin_Pct]
Weight Field: [Sales_Volume_Units]
Grouping Field:[Product_Category]
Parameters Breakdown
Tile Method: Equal Records (Quantiles), Equal Sum, Smart Tile (StdDev), or Unique Value.Number of Tiles: Number of groups to create (e.g. 4 for Quartiles, 10 for Deciles, 100 for Percentiles).Weighted Average (Value Field): The metric being averaged (e.g. interest rate, profit margin, product discount).Weighted Average (Weight Field): The weighting basis (e.g. sales volume, loan balance, head count).
Sample Walkthrough (Q&A)
Question: What is the difference between a Simple Average and a Weighted Average?
Formula / Action: Store A: 10% margin on ₹100 sales | Store B: 50% margin on ₹10,000 sales
Result: Simple Avg = 30% | Weighted Avg = 49.6%!
Explanation: Simple average treats Store A and Store B equally. Weighted average factors in Store B's massive sales volume, accurately reflecting overall business margin.
Common Mistakes & Limitations
- Connecting the Tile tool without sorting data first when using Equal Records (the Tile tool requires pre-sorted data for deterministic quartile assignment).
- Weighting by a field that contains negative numbers or NULLs, which distorts weighted average formulas.
Keyboard Shortcuts
| Action | Windows | Mac |
|---|---|---|
| Create Quartiles | Tile Tool -> Equal Records -> Num Tiles: 4 | Num Tiles: 4 |
| Find Outliers | Tile Tool -> Smart Tile (Flags +/- 2 StdDev) | Smart Tile |
Pro Tips & Modern Alternatives
- Use `NTILE(4) OVER (ORDER BY spend DESC)` inside an In-Database or SQL query.
- Use the `Multi-Field Binning` tool for equal-interval numeric binning (e.g. 0-10, 10-20, 20-30).