Paired Versus Unpaired Test for Route Times After a Resequencing

Last updated: November 29, 2026

Quick Overview

Amazon Last Mile changed the stop sequencing algorithm and measured eight delivery routes before and after. Show that the choice between a paired and a two-sample t-test flips the conclusion, and say which is right.

Amazon
Statistics & Math
Data Scientist
Amazon
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

0

0 solved


Amazon Last Mile changed the stop sequencing algorithm and measured eight delivery routes before and after. Show that the choice between a paired and a two-sample t-test flips the conclusion, and say which is right.

A hypothesis testing design question in the style of an Amazon Data Scientist screen, set in route optimization. The interviewer is checking whether you recognize a paired design and understand why removing between-route variance matters so much.

What the Interviewer Expects
  • Identifies the data as paired by route
  • Computes the differences and their standard deviation
  • Runs the paired t-test with the right degrees of freedom
  • Contrasts it with Welch's t-test and explains the gap
  • Raises threats to validity like seasonality between periods
Key Topics to Cover
paired t-test
Welch t-test
within-subject variance
before-after designs
Wilcoxon signed-rank
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What nonparametric test would you use if differences look skewed?
  • How would you design this as a proper experiment instead of before and after?
  • What if three of the routes changed stop counts between periods?
  • How many routes would you need to detect a 2-minute change?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Eight routes, each measured once before and once after (minutes): before = 212, 185, 240, 198, 260, 175, 225, 205; after = 204, 180, 229, 195, 249, 171, 214, 200. Same routes, so observations are pair...

Approach

Paired t-test on the per-route differences di=afteri−beforeid_i = \text{after}_i - \text{before}_i: t=dˉ/(sd/n)t = \bar d / (s_d / \sqrt n) with n−1=7n - 1 = 7 df. Compare with Welch's two-sample test, which ignores the pairing...


Submit Your Answer
Markdown supported