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
November 29, 20260
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
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- 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 QuestionsSample 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 : with df. Compare with Welch's two-sample test, which ignores the pairing...