Average Distance Between Two Uniforms on [3, 4]
Average distance between two random numbers is an easy quant interview question on Expected Value, reported to have been seen at Citadel, DRW and WorldQuant.
MyQuantPartner is not affiliated with, endorsed by, or sponsored by these companies, and all trademarks belong to their respective owners.
This expected value question is about the average distance between two independent uniform samples on a finite interval. It reframes randomness in geometric terms: drawing two points and looking at how far apart they are on average. That links probability, integration, and intuition about continuous distributions in a very clean setting, which is why it shows up so often in quant prep and real quant interviews.
It trains your grasp of translation and scale invariance, symmetry of continuous distributions, and how expectations behave under transformations. You practice turning a probabilistic description into a precise computation while keeping a geometric picture in mind, a core skill for fast, reliable reasoning in technical interviews.
This matters in quant interviews because many pricing, risk, and simulation problems boil down to expectations of functions of differences. Being comfortable with such symmetry-based expectations signals readiness for more advanced stochastic modeling.
What it tests
When dealing with the expected absolute difference between two independent and identically distributed continuous random variables, especially with uniform distributions, the key is to recognize the symmetry and translation invariance of the distribution. The absolute difference $|X - Y|$ depends only on the distance between two points drawn independently from the same interval, not on their absolute positions. For the uniform case, the distribution of the difference is symmetric and the expected value can often be interpreted geometrically as the average length of a segment formed by two random points. This symmetry allows the problem to be reduced to a computation over a standard interval, and the result often generalizes to other intervals by scaling. The principle holds because the uniform distribution's constant density makes every pair of points equally likely, so the expected gap is determined by the average spacing over the interval.
Practise this question with written feedback, or hear it in a spoken mock interview.
Get started free