SECTION 17 / 31

Make the broad-category map explicit

1 min read
Detailed labels are mapped consistently to five broad groups before comparing customer profiles.
Detailed labels are mapped consistently to five broad groups before comparing customer profiles.
Original label or suffixBroad group
Food; Vegetables/Food; Dairy/Food; Packed/Food; Meat/Food; other /FoodFood
Apparel; Women/Apparel; Men/Apparel; Footwear/ApparelApparel
Toiletries; Cosmetics; GroomingToiletries
Utilities; Electronics; Accessories; StationeryUtilities
HouseholdHousehold

Use the same rule for every bill. Keep the original detailed label alongside the broad group so the aggregation is reversible by returning to source records. Do not silently move a category because it makes a particular pair of customers look closer.

For example, Bill 14’s Razor Blades, Razor and Shaving Lotion map from Grooming to Toiletries. Phone Charger, Earphones and Pencils map to Utilities. These six rows therefore contribute three Toiletries and three Utilities for Vignesh.

Try it yourself

Does Stationery stay separate in this five-column comparison?

Show explained answer

No. The lecture’s chosen grouping places it under Utilities.

Try it yourself

Does a broader map preserve every detailed product difference?

Show explained answer

No. It simplifies information. Keep the original rows for more detailed follow-up questions.

Try it yourself

Why must every customer use the same map?

Show explained answer

Otherwise the profile columns would have different meanings, so their distances would be inconsistent.

YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑