Monday, March 12, 2007

On-line prediction

How do I predict the future?

Our minds never stop trying to anticipate what comes next. I mean I’m predicting that you assume that I’ll talk for 10 minutes then go away. That might not happen. I might not go away. We could be here for hours. I might have an epileptic fit upon this very spot, leap up and smash the computer. Tentacles could sprout from the ladies in the front row and she could start eating the lads at the back, and the English rugby team could burst in singing “the fields of Athen Rye.’’

We might predict that most flowers bloom in the spring time. Russia, St. Petersburg 1986 as the radioactive cloud from Chernobyl blew across the city the flowers bloomed in the wintertime. Sinister beauty!

We can even view the whole of science as an exercise in prediction.

In this work, we use that most profound of mathematical approaches: we take the simplest case possible and get results from that.

Imagine a sequence of 0’s and 1’s. Lets make this picture better: Walking down a single track road imagine 0,1 in front. As we walk along the road we try to guess the next digit.

What comes next?

Well, probability theory would say that in order to make any sense of the question, we have to assume that next digits depend in some way on the previous digits. We have to assume the past affects the future in order to make a prediction.
This is a problem in financial markets! One can make all the probabilistic models one wants, but at the end, if the past does not affect the future, or the underlying mechanism generating the numbers changes, we have no basis to guess anything.

But we’re not working with probability theory - we work with on-line prediction. Imagine you’re all walking along the road. We’re not interested in assuming things about the sequence, and proving how accurate we’re going to be, We’re interested in choosing a strategy such that whatever strategy your friends choose, you’ll do almost as well as them or better.

Now one of our research results is that we can have as many people guessing what comes next as we want, a billion different strategies of prediction, But there still exist sequences of numbers on the road which are unpredictable - sequences on which even the best of a billion prediction strategies does no better than average.

But there are some sequences with patterns, and on these sequences, some strategies are better than others.

Imagine you’re the CEO of a big company. You only have to make yes or no decisions. After each decision, you get to find out if you made the right choice. All your information comes from your directors sitting round the table. For each question, some say yes, some say no.

But you have no idea who is giving you good advice, and who is giving you bad advice. On-line prediction says the best way to solve this problem is simple:
We give each director a weight. Every time a director makes a correct decision, you increase the weight by a particular amount, every time they get it wrong you decrease it.

For each question, you add up the weight of directors saying yes, and add up the weight of the directors saying no. Whichever side has the biggest total weight - you make that choice.

And the amazing thing is that there is a proof that this simple method guarantees a near optimal strategy for any sequence. Moreover, if we consider each way of predicting the future based on the past like a director, then we have a near optimal strategy of predicting the future!

But there’s a lot of different strategies and that one simple algorithm for the CEO requires a huge amount of computation. A lot of the strategies are very similar, and some of our research is directed towards using these similarities to reduce the computational resources required to calculate this algorithm.

A famous man once said that all the great actors had a touch of unpredictability. But if we feel overwhelmed by them, they would reassure us with the expected. As soon as our attention began to wander, they would shock us with unpredictability, so our attention is in deep focus at all times.

Its that balance between the expected and the surprise where us humans find things are exciting!