Showing posts with label chaos. Show all posts
Showing posts with label chaos. Show all posts

Tuesday, August 18, 2009

Dragon Bones

Faux-fact: Way back in the pre-Zhou dynasty in cHiNR (pronounced, "China") there was a practice of carving runic messages into turtle shells and heating them over a fire until they cracked from thermal stresses. Then an old man with one eye open much wider than the other and likewise off-center behavior would analyze the way that the shell fractured in order to determine the answer to whatever cryptic message was scrawled onto the shell. Then the emporer or whatever (China has not nearly as continuous history as Chinese historians, PRC, and other Sinophiles would have you believe) would make his interpretation of the old man's word and choose the path to righteous destiny!

These bones were burried for future generations to dig them up and hawk as a miracle ingredient in traditional Chinese medacine. And they were called:

Dragon Bones!

Well, thousands of years later, and perhaps not yet too much brighter, here we are divining buy and sell signals from the stock market. There are websites hawking advice, possibly mafia gimmicks, and maybe tried and traitorous buy-and-hold tonic.

If you've been keeping up with my posts, you should have a decent feel by now for the concept of limited determinism. The rugby pile at the knife edge on the beach head in the bar room full of singles who want to be first, but don't want to be desperate. The chaotic cow that has absolute authority to vanquish the magician back into the realm of his game. The magician and Leeroy Jenkens battling it out unceasingly inside the circus tent that flows withing the chaotic probability zone.

What I'm really getting at is that there are places where the stock market's movements are absolutely limited by the price elasticity --- as well as places where bar room politics and magicians tricks and cameo appearences by Leeroy take over.

I have tried numerous times and many ways to figure out the correct analogy for how to make use of the serendiptitious patterns that emerge from the chaos whenever the stock market is trading well within the realm of price-elasticity, the places where limited determinism is more like conditional determinism, which is a paradox in itself.

The technical patterns, Leeroy effects, and magic shows are fun to watch. Inevitably there is a contention point, and that contention point will lead to the development of a new pattern, a new trend, a new wave to ride on. The capability of the wave to sustain itself is many times, by virtue of being well within the chaotic trading range, purely up to the surrounding chaos, which was itself decided in a nearly arbitrary fashion and wholly lacking of discernable sense to the average Vulcan.

In the end, the chaotic movements of the stock market are in so many ways just like the dragon bones. The charts almost even look like the cracks as they split through the dragon bones. How can this completely unreliable process provide any opportunities to make rational trading decisions at all? I give you my final answer:

The shape of each crack is arbitrary
The existence of cracks is absolute

What I mean by this is that you don't have to find meaning in the cracks, but never for a second think that just because there is no higher order that you can afford to ignore them.

And this is how the emporer rolls. Yes, the months and weeks leading up to a contention point should theoretically have no impact on the prices traders are willing to buy and sell shares at. At the contention point, the fact that the knife can fall either way would seem to suggest that there is no significance to the result. The cracks could have gone North and South or East and West and the old man still would have given his answer to the emporer just as if there was some greater meaning to it. The emporer's word is final. The follow-through of his beauracracy is like wise absolute. The follow through of the stock-market is no different.

When trading in the chaotic regions, try to spot the serendipity. Say not, "the stock will trade this way," but "if the stock trades this way, it would be likely to follow through this way." Then once the knife falls, if it falls in such a way that you think it has momentum and the blessing of the chaotic cow (it's well towards the middle of its price-elasticity curve) ride the storm until the next contention point. Better yet, if the pattern is stable, wait for the pattern's reinforcing signal, whether it's a linear uptrend or a moving daily average, and then make your move.

When dealing with a pattern that has room to run, it tends to do just that. That tendancy is strong enough to overcome the times that you will be wrong or a Leeroy event will pop up. No trade is ever 100% certain, but even with pitiful diversification (keeping a 50% cash position is diversification in my book), if the trades you're going after are the ones that you're 90% certain on, and you've tested and matured your ability to know when you can be right and when you can't, the mathematics will take over and you'll be sitting pretty at the end regardless of a few Leeroys throughout your trading career.

I'm almost absolutely certain that I'll get one of these tests soon enough a la NVDA. I'm waiting for it to fall back to its strength. When it gets there, I'll show a prediciton and we can watch it play out.

Tuesday, June 2, 2009

Cold War

In the last post it was proposed how to model a computer trading system that would be capable of analyzing the behavior of all participants in the stock market, calibrating its own predictions, and making trades accordingly. Now we'll see the reasons why this method introduces yet more exotic behavior into the stock market, making it difficult to realize the profit that would otherwise be expected.

The first reason is simply the presence of intermittent trades with effectively random timing from the perspective of the software. The Leeroy Jenkins effect is most powerful against weak patterns. Stronger, more self-sustaining patterns will require a larger Leeroy event to upset.

Secondly, there are news events in the future that are effectively random. The initial impact will be beyond the design of such a system. Only after it receives new data that can measure the reaction amongst fundamental investors can the system recalibrate itself to meet the changing conditions.

Less importantly, the model written in the last post makes some assumptions. One is that traders continue using the same tools over and over again and that the popularity of indicators changes at a slow pace relative to trading regimes.

A very dangerous assumptions is that no other computer systems with unknown behavior and unknown influence on the stock price. In reality there are many such systems, and by getting a step ahead, all that happens is a new type of feedback in introduced. Since none of the computers know precisely what the others model is or what the trading implementation is, effectively all computer trading systems are tied up in a constant poker game. Dead reckoning and playing the cards right (from a programming perspective) might still be, on the whole, a reliable strategy, but the notion of predicting, much less controlling the stock market at the most granular levels to create wide-reaching patterns is far fetched.



Essentially, the picture of the stock market is shaping up to be a bit like a system of springs, weights, and dampers, with some of the springs trying to consciously understand the system, but because the knowledge of the system and interaction with it changes the spring, and thereby the system, this consciousness is always just out of reach. In short it's impossible to predict the chaotic dynamics of the market when characterization thereof influences participation, changing the system at its most fundamental level, trades and traders.

Wednesday, May 27, 2009

If I Were a Computer

If there was a several hundred billion dollar capital fund and you were charged with investing it, you would hire the smartest people you could get your hands on, provide them with a relatively insane budget, and give them huge incentives to perform. Even with a lot of bright people who can easily employ fundamental analysis and technical analysis to make a lot of money, the tendency will still be to try and get ahead of the game. After all, who gets paid to invest several hundred billion dollars with primitive tools used by any multi-billion dollar hedge fund manager? If you were paid to be one of these people, three tools would be made available to you with no expense spared: The best financial market data that can be purchased, every research report written, and a really big computer along with some programmers and engineers to help you run it.

The details of this post are rather daunting. You don't need to understand them down to the gory details in order to see the points of this exercise. Focus on the notions that are implied simply by alluding to the mathematics rather than the actual content of mentioned formulas.

Now for some plot spoilers:

What you're looking at is called a control diagram. Whenever there's a really big system with lots of feedback response that need to be modeled, engineers will draw up a control diagram and use it to write the equations of the system. Looking at that big column of blocks with the arrows going in a circle, does something seem familiar? (This illustration is from Covert Newspaper Interception.)

Here's a brief rundown of the diagram:
  • Emerging financial and economic data (basically any information, including insider information, that will affect the results of fundamental models.) flows in at the far left.
  • This data gets processed by fundamental analysts, who are the vector for that data to start affecting the supply and demand for a stock.
  • This result flows into the summing junction, which is exactly what it sounds like, just a way of indicating that the arrow coming out of the right side is the sum of everything going in.
  • The summed signal goes back into all of the technical analysis branches, which produce new buy and sell signals.
  • The result that pops out at the right is dependent on both the recycled data that's already present in the system and the new data that is introduced by fundamental traders.
Now, to skip the ending and the epilogue, ask yourself why these diagrams are called control diagrams. If hair isn't raising up on your spine, it should be. The very act of writing this diagram like this shows that it's theoretically possible to write some software that to a large degree not only predict, but control the demand for a stock by adding an external signal that either causes or dampens feedback cycles.

It gets better. The task of figuring out how influential technicals and fundamentals are is readily taken care of by the use of empirical constants k1, k2, k3...kn, and multiplying the indicator by this constant, or even a simple empirical formula, all while remaining well within the reach of the computational power of a simple desktop computer.

How is this possible? Well, let's imagine that a set of n traders with mi capital are watching a particular indicator of a particular stock, and that each individual trader is influenced in some arbitrary amount by that indicator. The weight for each individual trader is just some constant factor, like 0.10 for instance or maybe 0.40 if a trader really likes a certain indicator. The summation of all of these traders, weighted by their individual incomes and sensitivity to the indicator, is just a constant times that indicator. One simple number multiplied by one other number can, to a very large degree, represent the aggregate trading influence of the movements of a particular indicator.

In a nutshell, that last paragraph says that you can, to a sufficient degree of accuracy, simplify the stock market to be, instead of n traders with n wallets and n propensities to trade because of a particular indicator, just one big trader with a big wallet and a wallet-weighted average propensity (wallet-weighted average since the amount of money a trader has influences how much their propensity gets expressed in the aggregate).

If you do this for every single indicator imaginable, you can represent the entire feedback portion of the stock market as one gigantic, linear function. Solving for these k constants isn't easy just yet. And we still have to decide on how to empirically represent the fundamentals.

To start, let's assume that, by and large, you can hire a group of true-to-the name analysts who have access to enough of the information that their assessment of the value and future earnings of a stock are a reasonably accurate depiction of all traders who are following a stock. They don't have to be supremely accurate since the bulk of traders trade multiple stocks and don't have time to cover every one of those perfectly themselves. The idea is that you want to have some indication with sensitivity to changes in fundamentals that can be tweaked by a constant or simple function. Hiring traders or polling traders to get an idea of what other traders are doing is a perfectly valid course of action. Again, you're making a reasonable assumption that n traders with n models and n data sets can be approximated as one average trader who used a plausibly average data set and a plausibly average financial model. The accuracy of this approximation is again not that important. That your panel of analysts behaves for the most part just like real traders is all that's important.

Now, we could be heroes and plug and chug these constants all day until the model starts working, or we could just throw the thing into what's called an artificial neural network. It's just a neat type of software that is very good at signal analysis and recognizing patterns in data. It would simply tweak the constants until the model, at any given time in the past, predicted any other time after that with the highest accuracy. The result won't be perfect, but what will eventually get spat out on the other end is a set of these k constants that makes the model the most in line with the data. Not only that, using statistical analysis it would be possible to estimate the accuracy of future predictions, so the software could tell you the best times to pay attention to the result.

And it gets better still. By controlling feedback, a sufficiently large fund could create feedback cycles that would be stable enough to absorb the fund's own trades, and they have absolutely every reason in the world to do so. It's conceivably possible that maximizing the return on investment for such a fund might even involve calculating which feedback cycles to generate at which points in order to maximize the total amount of the fund's own trading activity that the market volatility could accommodate. Given the size of some overgrown funds, once more it can't be more obvious that they in fact have every reason in the world to do so.

This post has cleared the stage for the dark side of the stock market. Get ready to feel more skeptical of the market as a whole than your used to. At the same time, rest assured that you can be on a level playing field as long as you let the underlying implications work for you. The posts following this one will almost entirely be focused on this dark side and how to safely navigate it. Consider this the half-way point for this blog.

Tuesday, May 26, 2009

Changing Lanes

When navigating the chaos highway, what you quickly realize is that, while the middle of the road can't give you a clear sense of direction, the edges of the asphalt are usually so cut-and-dried that you find yourself neglecting to even imagine what it's like beyond the edge. This can never be made more clear than if you ride a motorcycle. Sure, you have ten feet of margin on either side, so in a way it's like you have all the freedom in the world, but that stops at the curb. If you ever have to get closer than you like, you feel it fast.

The boundaries of the stock market are not hard boundaries. Think of grassy medians. The stock tends to bounce around like a reckless motorcyclist as long as things are more than okay. Wanting to profit from the movements of this motorcyclist, we're tempted to try and hire physicists and mathematicians and work out the equations of motion etc etc. Yet because of the motorcyclists unpredictable whims and even bad driving decisions, this is for the most part guaranteed to be a dead end. The more precisely we try to describe the motorcyclist, the more vulnerable our predictions are to subtle inconsistencies.

But recall the cigarette analogy. We know that the largest divergences are the most rare. We know that the range of expected behavior roughly reflects changes in fundamentals and subsequent shifts in price-elasticity (supply-demand/price relationship). What if the motorcyclist is happily speeding along in the far right lane on a freeway that's taking a sharp left and dropping two lands due to construction. Chaos goes here. If "here" changes because the highway itself is turning too far away for the motorcyclist to do whatever he or she wants, then it's no longer about their whims. With a limited degree of certainty (they can ride in the median if they're crazy) they will follow the road.

The trading price is like a reckless motorcyclist. There's lots of profits and losses to be had in the chaotic meanderings through five lanes of traffic. The reliable profit comes when you see that the motorcyclist has nowhere else to turn. Keep your eye on the biker, but keep a better eye on the road. As a corporation's fundamentals change over time, the region where the stock will trade at also changes over time. The stock price is the most obvious piece of the picture. When you see that the fundamentals that have created the current trading regime are going to break down in some way, good or bad, you know almost without a doubt that the stock is about to be on the move.

Monday, May 18, 2009

Serendipitous Joyriding

ser·en·dip·i·ty - the faculty or phenomenon of finding valuable or agreeable things not sought for - Merriam Webster

When looking at the last article, especially if you've tried to delve into technical analysis before, you may have noticed a paradox that's rather hard to overcome. Different types of technical analysis can lead to conflicting conclusions. Different trading patterns can exist simultaneously, even nested patterns. Yet as a technical analyst you would nonetheless be faced with the need to reach a conclusion in the absence of definitive indications. Isn't that what the stock market is supposed to be about anyway? This article aims to change your mind.

Back to clouds and general inaccuracy of weather forecasting, there are some obvious similarities with the stock market. Hurricanes don't just disappear and stocks don't trade at prices that are not supported by supply and demand. The unlikely happens. The impossible doesn't. A hurricane is a very good example of where something chaotic, weather, gives birth to something that's more stable, self propagating as long as conditions remain favorable, and has readily identifiable order to it. Compared to relatively random puffs of clouds that can occur under a lot of conditions, a highly organized storm has both predictability and easily recognized patterns to its behavior. Yes, we still wonder whether they will land in Mexico or Louisiana sometimes, but compared to weather in general, a hurricane is something altogether different than the apparent randomness it resulted from.

Now, to borrow another example from fluid dynamics, take a good look at the photo on the right. Notice how the surrounding clouds seem to have nothing particularly important about them, while seemingly out of nowhere a double swirling pattern emerges and flows downwind. It's a Von-Karman vortex sheet. It was caused by an island that disrupted the cloud flow, which happened to be moving the right speed past an island of the correct size. All of that just happened. And yet the swirl pattern that emerged was periodic, highly organized but still so completely fragile that it slowly dissipates into the equally impressionable surrounding flow.

If chaos is apperent disorder from which it would seem nothing can become ordered, serendipity is the coalescence of many disordered influences that becomes itself not only ordered, but ordered in such a way that it becomes self-sustaining to an extent. As a technical analyst, this is many times what you see. At certain times it's as if there just is no clear pattern, and then out of nowhere the right influences start developing such that there is a clear pattern, and it goes on to re-express itself in the trading behavior as the rest of the traders recognize that the pattern has formed and seek to capitalize on it, reinforcing it.

In the last article, it was advised to think a bit like a single at a bar. Find a table, and then start talking. If you stand out in the middle of nowhere, you're never going to get anywhere. When you're trading, you have to realize that whether you're thinking that a stock is profitable or not, there's still no point in throwing all your money in right away. Don't fight the rugby pile at mid-field.

This article has a second piece of advice; don't find answers where there are none. It's a bit like trying to get inside a person's head while talking to them. You'll inevitably wind up chasing shadows; you'll show yourself in plane sight the first time you screw up. Stock market is no different. The first time you reach a conclusion about something that's really still too weak of a pattern to have the kind of significance required to become self-sustaining, you'll get caught with what's called a whipsaw, where an indicator indicates too early. In layman's terms, it's wrong.

When doing applying technical analysis or any kind of analysis for that matter, avoid the clouds. When you see a small eddie in a vast flow, let it go. When you see a couple of massive vortices that dominate the flow behavior and will continue to do so, jump on it. First of all, the smaller votices are not worth a lot because, even if they do continue to propogate, the end movement will be very small. Second of all, less organized phenomenon always get creamed and negated by more organized phenomenon. Why get fascinated by a quarter that's spinning on a table when a dump truck is about to unload a heap of cash somewhere else? Even if you find a needle in a haystack, it's still just a needle.

Just like these Von-Karman vortex sheets that span miles out over the ocean, what you should be most interested in is that effect that has sprung forth from a medley of all the right circumstances and is about to go on repeating itself several times even in the face of smaller eddies and disturbances along the way. They're huge. They're easy to identify. They develop slowly. They dominate. When you're looking at the weather of the market and the clouds seem to be just rolling forth without purpose, leave them alone. Wait for those moments of serindipity when you realize that all the right things have come together. At that moment, you'll be at the right place at the right time and be able to slowly buy your way into a position, and you won't find it that stressful. You'll have plenty of time to watch and see if the thing keeps developing and you won't have to overexpose yourself by trying to get the most out of a 2ft ladder.

When you do this, it's like your on chaos highway without a thing to lose just changing lanes at a whim and hugging the corners to feel the edge. There are sometimes cars all around and no clear direction, but sometimes that one driver slows down and that one space opens up in that other lane and you can punch it and move straight on through like there's no traffic at all. It's not magic anymore than finding a door in a wall. When it's there it's there. Serendipitous joyriding.


Saturday, May 2, 2009

Where's the Party At?

During the last post, you should have cemented the idea of limited chaotic trading by exploring the mechanisms that both cause it and contain it to finite ranges. This post will focus instead on what happens inside this finite range. While semi-hard limits are established by the edges of plausible fundamental valuation scenarios, fundamentals play less and less of a role when the stock is trading well within the plausible range. Look back to Covert Newspaper Interception for a refresh on the relationship between fundamentals and technical analysis.

This is a diagram of essentially what you should understand so far. There is a time dependent range of prices that a stock could plausibly trade at. These limits cannot be definitively described by any analytical solution, and even if they could, supply demand imbalances can cause them to be exceeded, although this is not favorable from the market's perspective and traders will quickly jump in to pick up any asset that is trading well away from its estimable value.

The limits can be changed by any number of influences, but usually large changes in a stock's trading regime will occur because of decisive changes to the corporations fundamental value drivers. Whenever this occurs, the chaotic meanderings of the stock within the range of plausible valuations will run into the semi-hard boundaries, where the demand becomes very responsive to further price changes and the stock can be expected to reliably recover.

Stocks always spend the least amount of time near the semi-hard boundaries. The reason for this is that the fundamentals are always dominant and exert ever increasing pressure at the edges, driving the stock back towards the chaotic region where fundamentals give no definite indication as to whether the asset is over or under-priced.

Area in between the boundaries is the current region of interest. The question of trading price is rather easily answered whenever the stock is near it's plausible fundamental boundary. It's rather obvious that somebody needs to either obtain or get rid of shares, and so traders are quick to show up at these points. Their activities guide the stock back into the chaotic region. The question is, now what?

Going back to the singles playing rugby in a bar analogy, ask yourself if you would stand out in the middle of nowhere or wait for a table to fill up somewhere with some interesting characters. Obviously you want to be where the action's at if you're going to make a move. Just like a trader wants to maximize profit potential for every trade, in a bar you might only briefly engage a single your interested while passing by in only to head over to their table later. The decisive interaction happens wherever interested parties coalesce for the mutual opportunity for exchange. Stock trades that happen at prices of little significance are low in volume and likely have little effect on the overall trading pattern. Cool exchanges while passing by on the staircase don't leave much opportunity for conversation.
The rugby pile does not just happen out of thin air. Players wait for the right openings. No trades can happen without trading partners. Orders will be waiting in the wings until it's obvious that some trading is about to take place.

Looking at our current model, a chaotic trading pattern semi-bounded by price elasticity resulting from fundamental analysis, it's a bit like knowing what street the bar is on. Once inside, the question becomes, which table are we looking to find a seat at? Technical analysis is the only tool capable of answering this question. It serves such a vital role that even if the entire body of literature on technical analysis were just 1% of what it is, that relatively tiny amount of knowledge would be paramount for anyone who wanted to maximize their profit or move a large amount of shares.

At first glance, the most basic forms of technical analysis seem to be inspired more by superstition and market psychology than any meaningful mechanisms, but recall that we, as traders, are interested exactly in determining where a "good" price to make a play is at in the absence of decisive fundamentals. To put it bluntly an arbitrary but mutually agreed upon price is exactly what's desired. Therefore the fact that the methods seem arbitrary makes them even more important than any analytical indications.

Before going straight to the question of which price to trade at, let's look at the three basic situations for any stock to find itself in:

  • Trading Flat - In this situation, the stock has a lot of recent information describing the price elasticity. Reactions to price are well understood and the contention points are straightforward. Non-flat trading will encounter resistance.
  • Moving Into Well-Defined Trading Regime - The price is on the move, and there is a body of existing trade history providing good cues as to what prices can be expected relative to prior valuations.
  • Moving Into Undefined Trading Regime - Stock is at a price that it has never traded at or hasn't traded at for a very long time. Indications of relative valuations are not current enough or non-existent and cannot provide reliable price points.
Now, to resolve what to look for in all three of these situations, let me introduce you to the three technical analysis tools that you will, without fail, get the most mileage out of.

Price Support/Resistance levels: Look for regions of the chart where lots of trading activity has occurred. A volume overlay is available on free websites such as stock charts that lets you see this graphically:

Blow up the chart to get a clearer view. See the hold up that occurred at approximately 7900 - 8300? Shouldn't be all that significant, yet as the Dow recovered, lo and behold the bounce decelerated quickly as it re-entered this range.

Uptrends/Downtrends: Connect some recent peak-to-peak points or bottom-to-bottom points and linearly extrapolate the result. It's really that simple. Stock charts has their own article on this. This is the most straightforward pacing mechanism in the stock market. As long as the rugby pile keeps advancing somewhere, this is where the new players will show up to keep the momentum going. Trendlines are especialy influential in the shaping of intraday trading.

Moving Averages: Come in exponential and standard varieties. These are also really good pacing mechanisms for a stock on the move. They form the first line offense/defense for trendlines. The beauty is that they exist as indicators even in the absence of existing price points or a nearby trendline. Thus they work even in the third situation.


AMD goes into a dead-cat bounce with the rest of the market and where's the first good point for restistance? There weren't any good price plateau's on the way down, so the stock went on uninterupted until the 200-day moving average. Then the scrummage was on. The exponential 20-day in particular will remain very intact on a long trend and will breakdown almost immediatly whenever the main trend has run its course.

With these three tools, you have all the ability to pick arbitrary price points that you need in order to avoid trading out in the middle of nowhere. Got a falling knife? Look for an old price point. Not sure where to make an entry on a long-term uptrend that is getting tripped up? Look for a longer-term uptrend that has remained intact.

I don't really consider this a form of technical analysis, but picking round numbers isn't always a bad idea. If you want a buy order to go through for certain and are expecting the stock to hit at least $14.50, place the order for $14.48 and you'll avoid having your order get creamed by everyone else. These are numbers of arbitrary significance and if humans had twelve fingers maybe we would think $144 was a price milestone, but we have ten and so decimal values are the numbers to pay attention to. I know. It seems too trivial to be significant, but trust me if you ever watch level II quotes on the daily, you'll see relatively massive volume at round prices like $35 or $10. The rounder the better.

Yes, these numbers are arbitrary, but so is the arrangement of tables in a bar, and yet we still sit down at them instead of standing in the space between.



Wednesday, April 1, 2009

Origins of Chaos

In the last post the conceptual framework for seeing some bits of order in apparent disorder. This post will focus on the sources of disorder in the stock market. Many of the concepts will apply readily to financial markets of all types. What you should take home from this post is that there is no clear-cut way to determine the value of a stock, and even if there was, there are plenty of reasons why it can't be traded at that value consistently. However, a greater question is, can a stock trade at any price? This post will answer this question with a degree of certainty that seasoned traders and new traders alike may find surprising.

To start, let's imagine a market established solely to determine the value of shares while paying no attention to whether they can be bought or sold in volume at that price. Looking back at the relationship between fundamental analysis and technical analysis, since fundamental analysis is the only avenue for information to enter the market through trading while technical analysis is effectively blind without some fundamental analysis or an existing trading pattern, it's clear that fundamental analysis is the only technique that would be able to determine the value of shares in the absence of trading and market data. Therefore we need to look more closely at what fundamental analysis is and where it loses traction in order to find out why stocks seem to trade so erratically sometimes.

The goal of the fundamental analyst should be to determine the price of the stock based on equity per share and future earnings. Equity per share is just an acknowledgment that the corporation does indeed have assets, cash and non-cash, that if liquidated will be worth an approximate value per share, effectively establishing a certain amount of "hard" value to the share. That is, the share is representative to a certain extent of at least that amount of real assets.

The value of future earnings is much trickier. For one, the value one should pay for earnings that have yet to be booked isn't well agreed upon. Good measures are usually derived from other more stable investments such as CD's and bonds. The value of potential earnings can be benchmarked against relatively guaranteed earnings and using various approximations for risk, the price one is willing to pay for future earnings can be obtained.

However, analysts don't always agree about their earnings predictions, growth rates, and the equity in a corporation. Depending on their models, the data their using, how they interpret it, their instincts through experience and hunches, and even whether or not the investment bank they work for is trying to get a banking deal with the corporation, their earnings estimates and target prices will differ. Different analysts will apply different growth models and will make approximations using different methods. This alone is enough to tell us that the problem of establishing the price a stock should trade at is not straightforward.

Two issues are responsible for most of the difficulty in calculating future earnings, which is a big part of the value per share. The first is that earnings is the difference between revenue and expenses per share. If revenue and expenses are relatively large compared to their difference, then relatively minor fluctuations in either revenue or expenses can produce huge percentage differences in the earnings. This is a condition known as low-margin, and it just means that there is little separation between revenue and expenses. Wall street likes the sound of high-margin because it means that earnings are much less sensitive to minor fluctuations in revenue and costs.

The second challenge to accurately predicting future earnings is the growth rate of the market or markets the corporation does business in. Growth has the most dramatic effect on long-term profitability. If one analyst predicts 5% earnings growth year-on-year and another predicts 10% growth, at the end of ten years the first analyst will expect 63% higher earnings while the second will be looking for 159% higher earnings. Clearly, in any situation where growth is exponential on a long time-scale, minute differences in the estimation of growth can lead to very large divergences in the valuation of a stock by different analysts.

This situation can be exacerbated even further if the net worth of the corporation is small compared to the expected value of future earnings. In this case, the future earnings are the dominant component of the value of the stock, and differences in the predictions of future earnings will create a high degree of uncertainty in the price of the stock.

This illustration shows the assets and liabilities, both hard items on a corporation's balance sheet, as metal coins since the value is very real. The revenue and expenditures are represented by the paper bills. The change in value of the corporation is a result of all of these numbers, and is usually small in comparison. From this chart, it's easy to see how minor fluctuations in these large numbers will produce large percentage changes in profit, causing profit and growth forecasts to vary greatly.

The big picture is starting to take shape, and it's obvious that fundamental analysis has a lot of room for error, particularly in situations where there a corporation has a small amount of assets relative to the size of its expected earnings or where the profit margin is tiny and very susceptible to minor fluctuations in revenue or expenses. What this tells us is that even in an imaginary stock market where the price is set solely by fundamental analysis, there is no perfect price to trade at, leading to the conclusion that fundamentals cannot be the end-all be-all of stock valuations.

This moves us to a second question of interest: Can a stock even trade at a theoretical best price if it exists? To begin answering this, take not that equity markets were originally conceived to facilitate capitalization and to alleviate supply-demand imbalances. Corporations obtain capital through Initial Public Offerings and other secondary offerings, and the market is where they go to sell those shares. Also, traders occasionally wish to move their assets and the market is what provides the medium of liquidity so that they can buy and sell when they need to. Managing supply and demand is a fundamental role of any market.

First to answer the question, supply-demand imbalances exist because not everyone wants to buy or sell at the same time even if they do know what price they would buy or sell at. To make this very clear, let's imagine that Leeroy Jenkens is a day trader worth millions of dollars and also likes to play World of Warcraft. One day Leeroy gets distracted while playing and realizes he's missing out a move he expects from BEBE. He hurriedly enters in an order, but due to carpal tunnel and the rush of the moment, accidentally enters in a few extra zeroes on the number of shares of his market order. Because he has enough cash on hand, the order goes live and wipes out all of the sell orders on the market, eating into higher and higher priced orders up to a theoretical infinity until other computer trading systems quickly catch on and cash in on poor Leeroy. This wouldn't likely happen in real life due to market makers managing such orders to give liquidity a hand, but the point is clear. If someone is buying or selling and has unlimited funds, anything is possible. Clearly the potential exists for localized supply imbalances, whatever the cause, to drive the price far from any expected best price.


To begin illustrating the extent to which these imbalances can affect the trading price, let's consider a different example. A village is visited by two trucks every six months. One is full of bread and the other is full of sneakers. At the day of their arrival, there is simply too much of both bread and sneakers for all of it to be sold. Being the clever merchant, you would look at the cheap prices and realize the opportunity for profit in the future when the demand recovered. However, you wouldn't be willing to accept the same discount on both products. Bread is a staple. It's necessity is guaranteed, so there is a high likelihood that the price will recover. Sneakers are discretionary, so there is a chance that people won't be willing to spare enough income for the prices to fully recover. By the time the price would have recovered, they may be out of style. You would only accept a large discount on the sneakers in order to reduce your exposure to risk. With bread, the price difference quickly becomes like arbitrage, where you trade an asset at a better price on another market. In this case, it's more like time-arbitrage. You just wait for the market to recover. However, with sneakers, the price changes involve more risk, which means it takes a deeper discount for the discount to translate to a sure profit. It takes longer for sneakers to become arbitrage-like than bread.

Turning back to the inaccuracy of fundamental analysis, the role of certainty of fundamentals in determining the sensitivity of the supply-demand relationship to price fluctuations can be made clear. A corporation whose earnings have more potential to fluctuate wildly and has a small amount of hard assets per share will require deeper discounts to attract more dollars. Every buy or sell order will require a large relative price change to succeed in executing a trade. Corporations with lots of hard assets, consistent earnings, and high margins will become arbitrage-like very quickly. In short, the uncertainty of fundamental analysis has a dominant effect on the supply-demand relationship.

The big picture is nearly finished. Not only is there no exact best price, but even if there was a theoretical best price, due to supply-demand imbalances this price can't always be traded at. Furthermore, the potential for valuation to fluctuate due to uncertainty in earnings has a direct effect on how powerful supply-demand imbalances will be in determining what price shares ultimately change hands at.

The last question is, does the theoretical best price stay constant over time? To answer this, we can simply look at what drives fundamental analysis. Existing and emerging financial data, news breaks with relevant impact on expectations, and insider information etc are all used to create the fundamental analysts estimates. In the case of existing data, it exists and won't change over time. This would form a static picture of the stock's valuation. However, the fact that there is emerging financial news will produce changes in this picture, making it dynamic as new data or news emerges.

To integrate this all into a single model, turn back to the idea that all information enters the market via fundamental analysis of some sort, be it insider information or SEC filings becoming expressed in expectations, followed by trading activity. We would expect that due to variations in expectations, that there is in fact no best price, but instead a range of plausible prices, with fundamentals creating a containment effect whereby supply-demand imbalances are evened out whenever the trading price becomes a less plausible valuation, attracting more counteracting trades. Near the edges of the range of plausible prices, supply-demand imbalances will be corrected more quickly. In regions where prices changes all result in plausible valuations, there is little sensitivity to price changes and other mechanisms are dominant. As new information becomes available one way or another, the range of plausible valuations is changed, giving us new locations to expect resistance to supply-demand imbalances to exist.

To visualize this, recall the cigarette diagrams. While turbulent smoke can take many paths, the underlying physics always act to ensure that the path that any particular smoke plume takes is going to fall within a certain range of likelihood. Within this range, the particular shape is more dominated by chaotic effects. If the cigarette was inside a region of slowly churning air, the range the smoke would exist in would so migrate, taking the smoke with it. This should start to seem very familiar to any seasoned trader. The range of likelihoods of smoke is analogous to the range of plausible valuations. The turbulent path within this range is analogous to the trading price as it ultimately exists at any given time. The migration of the smoke plume caused by tiny winds is analogous to the changes in plausible valuations that occurs as new information becomes available.

Turning back to the million dollar question of whether a stock can trade at any price, it's already been made clear that extreme supply-demand imbalances can exist and can severely impact the stock price one way or another. Upon first inspection, this would seem to suggest that it is in fact possible for any price to exist at any time. Internet stocks and the recently failed bank stocks are two examples where valuations can seem to indeed demonstrate that any price is possible. However, lets look at what the model says about these two situations. With internet stocks, they had low assets, high expected earnings growth, and little or no current earnings, all factors which increased the uncertainty in valuations and thereby decreased the response to supply-demand imbalances. Thus we saw the stocks trading at very generous valuations even if they were to ultimately fail. The potential earnings were so high that there was little to rein in the price at the top end. In the case of failed banks, it could be said that the banks had low volatility in earnings predictions leading up to the collapse of the stock price, but they also were affected considerably by emerging news. Lehman Brother announcing bankruptcy was a major change to the set of existing data, which facilitated a huge move in the stock price. What we begin to see in these examples is that, while at first glance almost any stock price does seem possible, extreme valuations and changes to valuations will only occur in the presence of large uncertainty in fundamentals or when those fundamentals themselves have been greatly modified by new data. What this says is that, while any stock price can be possible over time, at any one given time, only certain stock prices are likely. In short, $60 Lehman would never have traded at $2. It was emerging news that facilitated this price. It can and did trade that way over time, but these valuations are not plausible for every stock at any time.

The keen scholar would say that the potential for supply-demand imbalances to move a stock to any price would negate the assertion that there is such a thing as a trading range. However, consider a different field of study that can and does tolerate such local variance. Quantum physics, in stark contrast to classical physics, only requires that things are conserved on the average. Essentially, there is a finite chance that particles can appear out of absolute total nothing, but the chance is small and, on average, the balance of particles just randomly appearing and disappearing out of thin nothing is zero. To get a better idea of why this doesn't break the model, consider the recent popular movie, The Watchmen, in which a main character, Dr. Manhattan, declares he longs to see oxygen turn into gold. While theoretically possible with a finite chance that is about as close to zero as it can get, Dr. Manhatten should be disappointed to find out that his one atom of gold, while worth nearly $1000 per ounce, is almost worthless. To rephrase this, likely events will happen with great effect and are very tradable while small variances are not tradable and will happen with fleeting effect on the larger market.




Tuesday, March 24, 2009

The Road to Chaos

At this point we need to take a brief detour from our charge into the market to get some very helpful conceptual background. While the concepts are rooted in mathematical rigor, some nice drawings have been prepared to present them in a more elegant form. What you need to take home from this post is that chaos is anything but random. The limited determinism that exists for any chaotic system is a very meaningful and powerful tool, one we'll be using extensively and should be studied closely.

There are numerous analogies
for chaotic systems. Paul Ormerod liked to use ant models in his book, Butterfly Economics. However, a more telling example in the context of chaos in the stock market is the cigarette smoke diagram. It is the canonical example given to undergraduate students of fluid dynamics to describe the change between smooth, predictable laminar flow to irregular, chaotic turbulent flow. Cigarette smoke is an analogy that is quite extensible into the study of the stock market and therefore will be used throughout this blog to describe chaotic phenomenon in hands-on language.
Click to Enlarge Image Cigarette smoke rising off of the burning tip will rise because it is hotter than the surrounding air. As it speeds up, it grows unstable and begins to break down into turbulent flow. The initial region of instability is periodic flow, meaning it just wobbles back and forth over and over in a very repetitive, predictable fashion. The actual point where the turbulent flow begins is distinct. You can try watching a few cigarettes or incense etc for yourself to gain firsthand familiarity. (Must observe in very still air)

The key things to note here are that both the laminar region and the periodic region are very easy to model and predict, and the model will be able to predict tiny features at any point in the smoke with a relatively high degree of accuracy. However, the turbulent region is different. It will begin with very subtle perturbations that suddenly cause the smoke to change remarkably in its flow characteristics and behavior. The resulting pattern is actually non-random. All of the physics of the fluid are still intact. Everything behaves exactly as we understand it, it's just that the solution is based on so much data that we can't possibly collect enough to model it.

To illustrate some other key aspects of turbulence, the diagram includes two other illustrative (and quite suppositious) features. Imagining we could identify the region where the turbulence would begin to develop two seconds from now, we would perplexingly find nothing of great interest. In fact, it would be probably impossible to distinguish the smoke that would cause turbulence from the smoke that wouldn't. This is because chaotic behavior is the culmination of tiny, tiny features getting conserved, propagated, and amplified so that when the tipping point is reached, it will be highly dependent on nearly everything. The second illustrative feature is the arrow that says "chaos starts here." While the cigarette undoubtedly plays a role in the shape of the final turbulent smoke swirling pattern, it's again impossible in practice to tell what exactly about the cigarette lead to the smoke transitioning to turbulent when and how it eventually did.

One of the easy mistakes to make here is to believe that the smoke turning to turbulence is the result of one tiny disturbance, such as a tiny perturbation in the ambiant air or an imperfection in the cigarette paper. The truth is that every single part of the picture contributes to the final result, and no single part is dominant. No matter which part of the picture you change, be it a tiny tear in the cigarette paper or a slight twitch in the surrounding air a foot away, the resulting shape of the smoke will be different and could even be unrecognizable.

If you're asking yourself what isn't random about this extreme sensitivity to initial conditions, think of observing a large number of cigarettes. Although Phillip Morris may have you believe that every single cigarette will produce an equally unique and interesting smoke pattern, the truth is that they will get less and less unique as you keep making observations. Each smoke plume will fall within roughly the same area, and if you could measure this over a large enough cigarettes, you could predict with a high degree of certainty the maximum growth rate of the turbulent smoke.
It turns out that this characteristic of turbulent smoke is a very well understood concept known as a boundary value problem. Although every cigarette will be unique, they will all tend to fall within the same range over time, and what this essentially says is that there is a lack of uniqueness with respect to the range that the turbulent smoke will occupy. Lack of uniqueness is another way of saying determinism, which is another word for a sure thing. Limited-determinism refers to the idea that each smoke plume will be in many ways unique and in at least one way very non-unique, with larger exceptions becoming more and more rare. It's not certain what particular shape the smoke will take. Only the range that it will occupy can be defined or measured with some certainty. The applicability of this concept to the stock market should be self-foreshadowing at this point. Welcome to the chaos highway.
This illustration is simply to make clear that boundaries only tell us where the chaos should go, not where it should go within the boundaries. We'll see in the next chapter that, for the stock market, there are reasons why these boundaries are soft, but that they exist and can be used to make relatively definite predictions about the price a stock will trade at in the future in certain situations. Stay tuned.

*note there is a typo in the first cigarette smoke diagram. will get corrected at an indefinite time in the future™.

Saturday, March 21, 2009

Sharpen Your Knives


First I'd like to welcome you to the blog and tell you a little bit about why I've decided to do it. Last weekend I had a long conversation with my friend, who is a graduate of physics at WPI, about chaos and the stock market. My experience in trading came before I had gained enough exposure to the rigorous mathematical concepts necessary to fully flesh out the peculiarities I had noticed. To make a long story short, at the end of several hours, we had assembled all of the right pieces of the puzzle so that my friend, who has a degree in physics, is now thoroughly convinced that there is in fact a level of determinism to the stock market. If you've never tried to prove something to a physics graduate, take my word for it that you can't do with smoke and mirrors.

In the end we concluded that there are a lot of important concepts that can be easily drawn from the model we developed, convincing me that I should go ahead and develop a book to explain the whole model, its limits, and how to apply it to best capitalize on the determinism that does exist, which is brings me to explaining the title. Looking at the market like a cow we'd like to convert to steak, but because of the chaotic aspects that shroud a lot of its behavior in impenetrable mystery, there are only certain cuts of its meat that can be reliably carved. Conventional wisdom says that the easiest profit opportunities are the least rewarding. Take it with a grain of salt for now, but I aim to explain in due course that the most profitable and reliable trades are in fact the easiest to identify and capitalize on.

Still, the cow we're after is highly erratic whenever these opportunities don't exist, so prudence is still necessary to avoid the more mystical cuts of the cow that, while potentially quite rewarding, cannot be rigorously described like the deterministic parts, giving us no real indication as to our likelihood of profit. In short, there are carvable cuts and uncarvable cuts of this chaotic cow. Traders, being profit driven, will inevitably attempt to carve up every piece of the cow, which often leads them into the mystical regions of the meat where determinism breaks down into randomness. Through this blog, I aim to hone the concepts and their delivery down so that the eventual book can both stand up to academic scrutiny and be accessible enough so that even retail investors can utilize the principles to identify the meat that is there for the taking without getting confused by the noise of a hungry stock market.