Chapter 4 · Section 5 practice

Customer Profiles and Business Actions

Work from question 1 to 10. Edit your Python box, click Run Code, review the result, then click Submit attempt. Reference answers unlock after all ten attempts are submitted. This records completion, not correctness. Each box runs independently. Progress is saved in this browser.

Submitted: 0 / 10

1. Count fitted groups

Warm-up. Print membership counts.

Write your answer, then run it.

2. Profile Grocery

Warm-up. Print average Grocery spending per group.

Write your answer, then run it.

3. Profile two categories

Warm-up. Print mean Milk and Grocery spending by group.

Write your answer, then run it.

4. Read original-unit centres

Build your skills. Inverse-transform the centres and print the first two categories.

Write your answer, then run it.

5. Identify a descriptive group

Build your skills. Print the cluster with the highest mean Grocery spending.

Write your answer, then run it.

6. Check group context

Build your skills. For the highest-mean-Grocery group, print its size and mean Milk spending.

Write your answer, then run it.

7. Inspect channel mix

Build your skills. Print a Channel-by-Cluster cross-tabulation.

Write your answer, then run it.

8. Inspect proportions

Challenge. Print the proportion of each Channel within each Cluster.

Write your answer, then run it.

9. Check centres against profiles

Challenge. Print whether inverse-transformed centres match group means in label order.

Write your answer, then run it.

10. Write an evidence-based proposal

Challenge. Print the high-Grocery group’s profile, followed by a bundle-pilot proposal that avoids claiming proven profit.

Write your answer, then run it.

Reference answers are locked until all 10 attempts are submitted.