LibraryInterview questions

Wald's Identity on Dice Until the First Six

Quant interview question · medium · members

The question

Roll a fair six-sided die repeatedly and stop the first time a six comes up. Let NN be the number of rolls, so the last roll is always a six, and let SS be the sum of all NN rolls.

  1. What is E[S]\mathbb{E}[S]?
  2. Now stop one roll earlier: let S′S' be the sum of the first N−1N-1 rolls, the ones before the six.

The rest of the question is for members

Hint

Check the shortcut against a second route that treats the final roll separately from the rest. Where the two routes disagree, ask what the stopping rule is allowed to look at.

The idea behind it

Wald's identity is not "the average of a random-length sum is the product of the averages". It is that statement plus a condition on the length, and the condition is exactly what stops us peeking at the roll that ends the game.

The rest of the question and the solution are for members

You have the opening of the question, a hint and the idea. It checks the shortcut against a direct calculation, gives the expected total, and explains when the identity can and cannot be used.

The full question and its solution are part of Thuztra Learn membership, which is a paid subscription. Install the app to read them:

Download on the Microsoft Store Download for Android

On Android, the app is a direct download, not a Google Play listing. Which devices, and what each one needs.

Further reading

Related problems

Topics

Also in the library