Skip to content
Get started

Distance to the nearest wall

A point is chosen uniformly at random in the unit square. What is the expected distance from the point to the nearest side of the square? Give four decimals.

Show hints (2)+
  1. Use E[D]=∫0∞P(D>t) dtE[D]=\int_0^\infty P(D>t)\,dt.
  2. Being more than tt from every side means lying in a smaller square of side 1−2t1-2t.

Answer

Reveal answer →

0.1667 (± 0.001)

Create a free account to see the full worked solution and track your progress.

Interview format: Hedge Fund Quant, Prop Trading

Related questions