KatInterview

Investigate a Sudden Traffic Surge and Conversion Drop

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsanomaly-detectionconversion-ratesegmentation

Last updated

Diagnose a May spike in weekly sessions paired with a falling conversion rate using segmentation, time-series comparison, and data quality checks on a week-level dataset.

Investigate a Sudden Traffic Surge and Conversion Drop

You work as a data scientist at an e-commerce platform. Your weekly metrics dashboard covers the past three years. While reviewing it, you notice that sometime around May of the most recent year:

  • Weekly session count spikes sharply upward.
  • Conversion rate (orders ÷ sessions) drops sharply at the same time.
  • A third engagement metric — such as average session duration, bounce rate, or orders per session — also shifts noticeably.

You pull week-level data to investigate. The dataset includes the following fields:

FieldDescription
year_weekYear-week label, stored as a string (e.g., "2024-5", "2024-W05")
week_start_dateCalendar date of the week's Monday, when present
sessionsTotal sessions recorded that week
ordersConversions or orders placed that week
conversion_ratePre-computed orders / sessions
shop_typeMerchant or product category
session_duration_bucketDuration band: 0, 0-30 seconds, 30-60 seconds, 60+

Your tasks:

  1. Generate hypotheses for why weekly sessions spiked around May.
  2. Explain why conversion rate could fall at the exact same time sessions spike.
  3. Describe a step-by-step investigation plan using the week-level data. Include how you would handle the year_week data quality issue.
  4. Your analysis reveals that the session spike is concentrated in specific shop types and almost entirely within the 0 and 0-30 seconds duration buckets. Interpret this finding and recommend concrete next steps.

For each task, state your reasoning clearly. Where relevant, mention what you would verify before drawing conclusions.

Hints

Hint 1

Conversion rate is a ratio — think about what happens to orders/sessions when a large batch of sessions arrives that never buy anything. Plot absolute orders alongside the rate before concluding that revenue was hurt.

Hint 2

A string label like '2024-5' sorts differently from '2024-05' in lexicographic order. Think about what mis-sorted or mis-parsed week labels could do to a time-series chart, and how ISO week numbering near year boundaries adds another wrinkle.

Hint 3

When you find that incremental sessions cluster in near-zero-duration buckets for specific shop types, ask what legitimate user behavior looks like in those buckets versus what bot or tracking-artifact behavior looks like.