Think you can trade randomly?
Press left or right as unpredictably as you can. Before every press, a small model bets on which one you'll pick.
A small model bets on your next press. Right: you pay $1.00. Wrong: you win $1.05.
- −$1.00 when it's right
- +$1.05 when it's wrong
- $100 of play money each
How does the model do it?
It only looks at your last five presses. There are 32 possible five-press patterns, and for each one it keeps two counts: how often you went left next, and how often you went right. Its bet is whichever you did more often after the pattern you just made. Each square in "its whole memory" is one of those patterns.
That is the whole model: 64 numbers, no neural network. It works because people who try to be random tend to switch sides too often and avoid long runs, and those habits repeat.
Against a real coin it is right about half the time, and at these stakes a coin comes out slightly ahead. You make money whenever the model is right less than about 51% of the time. "Make 10 random trades" lets the computer flip the coin for you, so you can see the difference. The shaded part of the gauge is the range luck alone could produce; it narrows as you play.
Play money only. Nothing you press leaves this page, and nothing here is investment advice. Game logic © 2019 Ilya Perederiy, used under the MIT License.