KatInterview

Diagnosing Slow, Costly Support Complaints from Three Tables

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsexperimentationcausal-inferencemetrics

Last updated

Use complaint, resolution and rating tables to find insights, propose and prioritize fixes, design a rollout test, and discuss bias and confounding.

An online home-goods retailer wants to improve how it handles customer complaints while keeping support and refund spend under control. You have three tables.

complaints

  • complaint_id (string)
  • customer_id (string)
  • order_id (string)
  • product_category (string)
  • issue_type (string)
  • complaint_channel (string)
  • complaint_created_at (timestamp)
  • region (string)

resolutions

  • complaint_id (string)
  • resolution_type (string)
  • first_response_at (timestamp)
  • resolved_at (timestamp)
  • agent_id (string)
  • escalated_flag (boolean)
  • refund_amount (decimal)
  • replacement_sent_flag (boolean)

service_ratings

  • complaint_id (string)
  • customer_service_rating (integer, 1 to 10, where 10 is best)
  • rating_submitted_at (timestamp)

Each complaint_id is one complaint. A complaint may have no rating. There is no full orders table, so you must be careful not to confuse complaint volume with complaint rate.

Answer the following:

  1. Describe three data-driven insights you would look for.
  2. Give three recommendations, each tied to one of those insights.
  3. Pick one recommendation to ship first and justify the choice.
  4. Explain how you would measure success after launch: primary metric, guardrail metrics, and whether you would use an A/B test, a phased rollout, or a quasi-experimental design.
  5. Discuss confounding, selection bias in the ratings, and the main implementation risks.

Hints

Hint 1

Start from complaints and left join the other two tables. Which metric would silently be biased if you inner joined to ratings?

Hint 2

Without order counts you can describe the mix of issues and each category's share of complaints, but not how likely an order is to generate a complaint.

Hint 3

If treated and control complaints are handled by the same agents, prioritizing one group slows the other. Think about randomizing at the team, region or time-block level instead of per complaint.