Investing in regimes with stationary or roving bandits