Expected gap on 30-sided dice

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

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

Answer

Reveal answer →

9.9889 (± 0.01)

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

Interview format: Systematic & Data-Driven Trading, Options Trading

Related questions