Expected Euclidean Distance Between Two Random Points in a Unit Square
Scenario
In quantitative trading and quantitative research, candidates are frequently evaluated on probability modeling, specifically regarding Multi-dimensional Integration / Geometric Probability.
Your Task
Let P1=(X1,Y1) and P2=(X2,Y2) be two independent points chosen uniformly at random inside the unit square [0,1]2. Derive the exact closed-form value of the expected Euclidean distance E[D]=E[(X1−X2)2+(Y1−Y2)2].
Constraints
All variables are defined on a standard probability space (Ω,F,P).
Analytical expressions must be in closed form, and empirical simulations should converge within standard statistical tolerances.