I believe financial markets outsmart themselves. I'm not talking about the Efficient Market Hypothesis, but something more meta. This idea probably has a proper name, but I don't know what it is.
Here's the gist of it: There is money to be made predicting financial markets, so people are motivated to predict them. However, once someone acts on a prediction, they alter the market, causing it to become an additional degree more complex. The end result is that the market, which had previously fit a model, no longer fits any model.
Being the geek that I am, of course I have always wanted to simulate this behavior. Tonight I finally sat down and did it.
In my simulation, I have a pool of market actors, each of which has its own algorithm for predicting a market with a single stock. Every day the actors use their models to predict the future price of the stock, and buy and sell shares according to their predictions.
Learning behavior is simulated in two steps. First, random, sporadic mutations occur in the pool of models. If the resulting model is unfit to survive in the market, the other models will naturally eat its lunch. In addition, a certain number of actors are randomly selected to copy the most successful algorithm, so winning algorithms prosper.
Here is a sample of the resulting stock price history. In this case, I had 200 market actors, and the graph shows days 100-200 of a simulation.
Interestingly, while the stock price remains generally in a consistent range, there are periods of irrational exuberance, including a five-day period in which the stock price leaps to 1000, then returns to normal.
In the lead-up to the period of irrational exuberance, the winning algorithms grew progressively simpler, going from six-term polynomials down to a single-term polynomial. If this were to occur in the real world, it would be something like a single wealthy individual getting a crazy idea, and everyone following suit until the market crashes.
Note that I don't assume the stock has any kind of real value here. My market actors are trying to outguess each other. Each actor in the market is trying to predict
how the aggregate of actors in the market will predict
how the aggregate of actors in the market will predict
how the aggregate of actors in the market will predict
...
how the market will behave.
Showing posts with label Financial Markets. Show all posts
Showing posts with label Financial Markets. Show all posts
Thursday, January 16, 2014
Tuesday, January 14, 2014
The Black Fund
Sometimes I like to think of plots for the great novel I'll never write. Here's one:
Imagine that a powerful non-state actor (maybe a criminal organization) brings together a team of sympathetic people with trading and hacking skills. The team is organized into a strategic planning group, an information collection group, and a market manipulation group.
The strategic planners identify corporate targets and direct a campaign of illegal information gathering to get an insider's view of the corporation's performance and finances. They then gradually take long or short positions in markets all throughout the world, through a complex system of accounts that conceals the fact that a single actor is behind it all.
Having taken position in the market, they may then direct a market manipulation campaign, leaking confidential information obtained from within the company, or disseminating misinformation through hacked social media accounts like Twitter or LinkedIn. Perhaps they will even find ways to distribute misinformation by hacking into news agencies and sending stories out over the wire, or hacking into corporate websites and email accounts to distribute false or misleading news.
Their goal would be to trigger a sudden market movement, during which they could cash in on their positions, then begin slowly unwinding them and closing accounts. In the mass of buy and sell orders that follow the market movement, it may be difficult to see the pattern of accounts that profit from the manipulation campaign.
The more money they make, the more complex their campaigns become, and the more investment they get from unsavory sources. Pretty soon, they're managing billions of dollars in assets, and enriching the kind of people we don't really want to see enriched.
I'll call it The Black Fund. That's probably the tenth novel I'll never write.
[Update 12/1/2014] A NY Times article about hackers with a financial background.
[Update 12/1/2014] A NY Times article about hackers with a financial background.
Subscribe to:
Posts (Atom)