Expected gap on 30-sided dice

Two fair 3030-sided dice (faces 113030) are rolled independently, giving values XX and YY. Compute E[XY]\mathbb{E}\big[\,|X - Y|\,\big].

Show hints (2)+
  1. There are 2(nd)2(n-d) ordered pairs at distance dd; sum dd over them.
  2. The closed form is EXY=(n21)/(3n)\mathbb{E}|X-Y| = (n^2-1)/(3n) with n=30n=30.

Answer

Reveal answer →

9.9889 (± 0.01)

Want the full step-by-step worked solution? It's part of Premium - along with a worked solution for every question in the bank.

Asked at: Two Sigma, Akuna Capital

Related questions