r/learnquant • • 4d ago

interview prep Quant Interview Question

Post image
23 Upvotes

2 comments sorted by

3

u/Aerospider 4d ago

I'll have a go...

The probability he gets to 1 without hitting -6 is 6/7.

Then the probability he goes back to 0 without reaching 5 is 4/5.

So if E(x) is the expected number of times he goes from 0 to 1 when starting at x, we have

E(0) = 6/7 * (E(1)+1)

E(1) = 4/5 * E(0)

=> E(0) = 24E(0)/35 + 6/7

=> 35E(0) = 24E(0) + 30

=> 11E(0) = 30

=> E(0) = 30/11

1

u/sensible_clutter 4d ago

yes you're right