Average Distance Between Two Random Points on a Delivery Route
Last updated: November 29, 2026
Quick Overview
A Marketplace buyer and seller are each located independently and uniformly along a 1 km street. What is the expected distance between them, and what is its variance?
Meta
November 29, 20260
0
0 solved
A Marketplace buyer and seller are each located independently and uniformly along a 1 km street. What is the expected distance between them, and what is its variance?
A short continuous probability check used in Meta data science phone screens. The interviewer wants a clean integral or symmetry argument for $E|U - V|$ and a quick sense of how the answer scales.
What the Interviewer Expects
- Write the distance as $|U - V|$
- Integrate over the unit square or use order statistics
- Get 1/3 km
- Compute $E[(U-V)^2] = 1/6$ and variance $1/18$
- Mention the unit square analog of about 0.52
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 is the expected distance in a unit square?
- What is the distribution of the distance?
- What is the probability they are within 100 m?
- How does this change if both cluster near a town center?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
iid Uniform(0, 1) in km. Distance . We want and ....
Approach
Two routes: integrate over the unit square, or note that the two points split the street into three segments with equal expected length 1/3 each, and is the middle one....