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
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Phone Screen
Statistics & Math
Easy

0

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
Continuous distributions
Order statistics
Double integrals
Expectation and variance
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 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 Questions
Sample Answer
Clarify

U,VU, V iid Uniform(0, 1) in km. Distance D=∣U−V∣D = |U - V|. We want E[D]E[D] and Var(D)\text{Var}(D)....

Approach

Two routes: integrate ∣u−v∣|u - v| over the unit square, or note that the two points split the street into three segments with equal expected length 1/3 each, and DD is the middle one....


Submit Your Answer
Markdown supported