Skip to content
Get started

Where an algorithm spends its time

An execution algorithm cycles through three modes. From mode A it switches to B with probability 0.60.6 or to C with probability 0.40.4; from B it always switches to C; from C it always returns to A. Each stay in a mode lasts a random time, independent of everything else, with mean 22 minutes in A, 1010 minutes in B and 11 minute in C. In the long run, what fraction of the time is the algorithm in mode B? Give four decimals.

Show hints (2)+
  1. Ignore the durations first: how often is each mode entered?
  2. Weight each mode's visit frequency by its mean stay.

Answer

Reveal answer →

0.6667 (± 0.0005)

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

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

Related questions