Let P1,…,Pn be iid uniform random points in the unit disc. What is the expected value of maxi∣Pi∣ (the distance from the origin to the farthest point)?
Solution. The distance Ri=∣Pi∣ has CDF P(Ri≤r)=ππr2=r2,r∈[0,1], with density f(r)=2r (from the polar decomposition).
For Mn=maxiRi, the CDF is P(Mn≤r)=r2n, so the density is fMn(r)=2nr2n−1. The expectation is E[Mn]=∫01r⋅2nr2n−1dr=2n+12n. Therefore E[1≤i≤nmax∣Pi∣]=2n+12n.■
Eight iid uniform random points in the unit disc. The farthest from the origin (copper, ∣P∣≈0.806) is highlighted; the other seven (rose) lie closer in. For n=8, E[max∣Pi∣]=16/17≈0.941.
Values: n=1 gives 32 (the classical disc radius expectation); n=2 gives 54; n=10 gives 2120≈0.952. As n→∞, E[Mn]→1: a large sample almost surely has a point near the boundary. The convergence rate is 1−2n+11∼2n1, characteristic of extreme-value statistics for samples bounded above.
import numpy as np
for n in [1, 2, 5, 10]:
r = np.sqrt(np.random.rand(n, 10**6))
print(f"n={n}: sim={r.max(axis=0).mean():.5f} exact={2*n/(2*n+1):.5f}")
# n=1: sim=0.66658 exact=0.66667
# n=2: sim=0.79987 exact=0.80000
# n=5: sim=0.90919 exact=0.90909
# n=10: sim=0.95241 exact=0.95238