Friday, December 19, 2008

Buy and Hold (Part 2.5)

This post will eventually get merged into a Part 3. I've had some programming difficulties with the final part of the project and I've spent too much time watching Lost to resolve them before the Christmas break.

Continuing on with the Buy and Hold series (part 1, part 2) I've been writing. I was first curious to look at a long-term history of what a Markowitz Mean-Variance portfolio would look like over the years. Originally I planned on using about 90 years worth of data, but it seems really unstable for that period, so I only used the past twenty years (to get the weights, I used more data than that). I wanted to use this as a benchmark to compare strategies using similar Markowitz-type weights.

About three months ago, I did some research into interest rate environments similar to what has been done at MarketSci). After seeing their posts, I wanted to see if a long-term investor who solely identifies what interest rate environment they are in to determine their portfolio weights would outperform the typical Markowitz portfolio. I love what they do at MarketSci, but there is also value at creating rules that are simple enough for your Grandma to follow (like Mebane Faber's 200 day MA rule that I love so much).

Back to brass tacks, I have to concede that I couldn't operate the Matlab Mean-Variance optimizer. I could generate the portfolios, but then when I used those portfolios that I created in the optimizer it never worked. I'm still not sure why I was getting errors, but I decided that a simple approximation was to choose weights that maximize the Sharpe ratio, since that could replicate the optimizer's results. Unfortunately, this didn't let me use risk aversion to be able to change anything, but all I want to do is to compare one strategy vs. a benchmark stock/bond mean-variance-like strategy. I don't need things to get too crazy.

To identify periods of interest rates rising/falling/neutral, I looked at how much interest rates had changed over the past 6,12,18 months and if the difference was greater than some standard deviation multiples.

Then, I identified the returns in each period and separated them into different portfolios. As though they were investing in three separate strategies (ie expected returns and covariances for the positive interest rates were separate from the , I calculated weights using my Sharpe ratio optimizer. Where I'm stuck now is in error checking my lines of codes to combine them together (I might have the solution (pretty easy, just haven't gotten around to it), and will update after the holidays. Sometimes writing facilitates thinking.)

Again my hypothesis is that long-term investors could benefit just by investing differently depending on what interest rate environment it is.

Sunday, December 14, 2008

Re: Hulbert

Mark Hulbert wrote an interesting piece in Barron's about a week ago.

He notes that the 39 week moving average on the DJIA underperforms the buy and hold strategy since 1990. I wasn't quite sure why he used 39week instead of 40 week or 10 month or 200 day. But it's interesting how right he is.

I looked at weekly returns (using his 39 week, which is close enough to 40 week, but the data also does not include dividends) and I also looked at monthly returns. I then used rolling periods of close to 19 years (from 1990 to now) to check how average returns and Sharpe ratios looked. On weekly data, buy and hold average returns outperform the TAA strategy in only 28.8% of weeks, but Sharpe ratios are also higher in TAA than buy and hold in 76.6% of weeks. The general story is that in the early years of the strategy (until 1980), 19 year ahead arithmetic returns and Sharpe ratios are greater for the TAA strategy than for the buy and hold. After 1980, not 1990, things begin to reverse.

Looking at monthly results, average returns are greater in 46% of TAA 19 year(ish) rolling periods than buy and hold as well as 64% in the case for Sharpe Ratios. Monthly also pushes the reversal period back further, to 1974. I also looked at rolling 5 year periods for the monthly data. In 46.8% of rolling periods, the TAA outperforms the buy and hold on Sharpe Ratio, 40% for returns.

I freely admit that the 200 day strategy is not the most profitable and won't even outperform the buy and hold. However, it's key benefit (beyond simplicity that anyone can understand) is that it reduces risk. If you looked just since 1990, the monthly return on the 10 month DJIA strategy (ex dividends) is 5.75% with 10.8 stdev where the buy and hold is 6.5% with 14.5 stdev. Using a 4% risk-free rate, the buy and hold has a Sharpe of .17 while the TAA is .16. However, when you look at geometric returns, the TAA return declines to 5.3% while the b&h falls to 5.5% so that the TAA nudges out the b&h on a Sharpe ratio basis.

Overall, this does confirm what Thornton is saying when he notes that it underperforms recently. However, it's not necessarily as simple as he makes it. Yes, it underperformed recently, but on a risk-adjusted basis it doesn't. The 200day MA still provides a useful indication of when major markets trends have begun or end. They aren't great indicators for short-term traders, but if Grandma paid a bit more attention, then she would be able to reduce some risk.

Though it is obvious to me, I should also note that the 200 day average on just DJIA is not, by itself, what advocates of these TAA systems would use. It is TAA b/c you look at multiple asset classes that should perform well as others do not.

So as an additional treat, I looked at the 10 month TAA strategy using weights of 60/40 on stocks and bonds as represented by both the S&P500 and the DJIA (including dividends) since 1950. The TAA strategy is applied to both stocks and bonds. For reference, the S&P500 TAA strategy performs the best, with a Sharpe of .52, followed by .44 for the TAA DJIA, lastly the buy and holds were the weakest at about .39 each. Since 1990, both the DJIA and the TAA DJIA strategies including dividends and a 60/40 allocation have been roughly the same (Sharpes ~.56). However, the S&P500 TAA strategy has a Sharpe of .72 while the S&P500 version of the 60/40 is only .47. Over the whole period, using the roughly 19 year rolling average methodology from above, the buy and hold strategies outperform the TAA is roughly 72% of the months, but the TAA strategy has a higher Sharpe ratio in 72% of months as well.

So in general, the TAA strategy will likely reduce your returns. Know that when using it. However, it will also improve your risk adjusted returns, but reducing the volatility of your strategy. It also makes most sense to use the TAA strategy on a proper asset allocation strategy and not just looking at it as market timing one index. There is still value at looking at long-term trends when it comes to investing.

Monday, November 24, 2008

Kaizen BoE quotes

I'm pretty much done writing the program for my next buy and hold post, but there's been some setbacks and it has taken longer than expected. I should be able to finish it the weekend after I get back from Thanksgiving holidays. In the mean time, enjoy some Kaizen BoE quotes. I love it when Central Bankers admit mistakes.

"Because a number of countries, most obviously China, chose to peg their currencies either to the dollar or to a basket in which the dollar featured heavily, the FOMC had to cut rates more aggressively to maintain domestic activity than would have been the case if the dollar had been free to depreciate against them. Moreover, by virtue of the currency pegs, this monetary looseness in the United States was transmitted overseas, despite attempts at sterilisation. Now the primary driver behind the surge in commodity prices over the past three years or so has been the rapid development of the emerging market economies and the consequent growth in commodity demand running up against relatively inelastic supply. But the general pickup in inflation worldwide, together with the appreciation of a range of asset prices, suggests that accommodative monetary policies may have also played a part.

"The pattern of global imbalances that resulted from this mix of policies has vexed policymakers for some time. We knew they were unsustainable and worried that the unwinding might be disorderly, though I don’t think anyone could have guessed the course that events would actually take. But we did see that there were vulnerabilities present. However, nothing very much was done about these imbalances. Why was that?"
...
"Indeed, a central bank seeking to stabilize inflation over a sufficiently long time horizon should necessarily recognize the possible adverse longterm consequences of a credit-driven asset-price boom in its policy deliberations."

All from Charles Bean - Deputy Governor for monetary policy of the BoE -
‘Some Lessons for Monetary Policy from the Recent Financial Turmoil’ -
Remarks at Conference on Globalisation, Inflation and Monetary Policy -
Istanbul, 22 November 2008

Wednesday, November 19, 2008

Kaizen Fed Quotes

"In short, we still do not fully know what caused the run-up in house prices and over-building. Short-term rates were low in 2002-04 as the Federal Reserve countered the risks it saw to good economic performance, and these low rates probably had some effect on housing markets at the time. But the problems largely built up after policy rates were well on their way to neutral, and other factors appear to have played major roles. We have learned little about the likely effect that a somewhat higher funds rate would have had on the speculative element of prices. Of course, it is important to keep an open mind about the relationship of short-term interest rates and speculative activity. If it becomes clear that monetary policy can predictably influence the evolution of bubbles, central banks should take that ability into account when crafting policies intended to keep output rising in line with its potential and inflation low and stable." - Vice Chairman Donald L. Kohn At the Cato Institute's Twenty-Sixth Annual Monetary Policy Conference, Washington, D.C., November 19, 2008, "Monetary Policy and Asset Prices Revisited"

Tuesday, November 18, 2008

AQR and Leverage

Damian over at Skill Analytics wrote a post on the AQR article from Allaboutalpha.

I agree with his sentiments regarding the way they determine their leverage. I would guess they don't use that formula to determine their leverage but it could be a simplification of something they do use. Nevertheless I would strongly advise not using it.

Let's use l as leverage. They have two portfolios A and B with correlation p and standard deviations stdev(A) and stdev(B). The standard deviation of the portfolio is
stdev(p)=[(stdev(A)/2)^2+(stdev(B)/2)^2+.5*stdev(A)*stdev(B)*p]^2

They set (stdev(A)+stdev(B))/2=l*stdev(p) or l=(stdev(A)+stdev(B))/(2*stdev(p))
Now, if I were to assume that stdev(B)=x*stdev(A) just for mathematical simplification
that would mean l=(1+x)*stdev(a)/(2*[(stdev(A)^2*(1+x^2))/4+.5*x*p*stdev(A)^2]^.5
and: l=(1+x)/[(1+2*x*p+x^2]^.5

So what we have from this little mathematical porn is that if there's no correlation then l=(1+x)/[1+x^2]^.5. In other words if the standard deviations of each asset are the same (x=1) and correlation is 0, then you'd use leverage l=2^.5 which is the maximum leverage you would use. Strangely, as the ratio of the two variances goes from something like x=.75 to 1.25, the peak is when x=1 and declines on either side. The same is generally true for other correlations except that the closer the correlation is to 1, the lower the leverage.

So why does this matter. Basically, if you were to use a system like this to determine your leverage, it is based on two things, the correlation between the two assets and the difference between the variances. In other words, the levels of variance do not matter in this framework, only the difference between the two assets' variances. The correlation part makes sense, but this seems a little too simplistic.

Sunday, November 9, 2008

Buy and Hold (Part 2)

This is the second part in a three part series. The first is here.

To look into why buy and hold doesn't work, I wanted to compare a relatively simple asset allocation strategy with the typical 60/40 stock/bond allocation. I obtained data from the Global Financial Database for the S&P500 and 10 year treasuries going back to 1921. Now the S&P500 wasn't actually published before 1950 or so, they use the methodology going back farther. Also there really wasn't a way to invest in the indices until the 70s or later. As with most things in finance, this isn't perfect by a long shot and is just showing what could happen.

The strategy I looked into compares stocks and bonds. I looked at whether bonds have outperformed stocks in the past 12 and 6 months. I gave a weight of 2/3rds to the 12 month ratio and 1/3 to the 6 month ratio. So if stocks outperform bonds in 12 months and 6 months, they get a value of 1, and bonds get a value of -1. If stocks outperform in 12 months, but bonds outperform over 6 months, stocks get a value of 1/3 and bonds get a value of -1/3.

Since I am comparing a strategy against 60/40 allocations, I decided that my starting point would be the 60/40. I use a base value of 60% for the stock allocation and the bond allocation is always 100%-stock. There is no leverage so stocks and bonds are capped at 0% and 100%. Finally, there is a multiplier against each of these values, so if stocks start at 60% with a multiplier of 20%, then if stocks have a value of +1, their allocation is 80% (and 20% bonds). A fairly simple, straightforward strategy.


Since there are caps, the efficient frontier is truncated at the top (as you increase the multiplier the stock level just goes to 100% or 0% immediately). However, the clear result is that you can improve returns by increasing allocations when different asset classes are outperforming relative to each other. The best Sharpe ratio I reported was actually with a multiplier of .6, indicating that if stocks are outperforming on both a 12 month and 6 month basis, you should be in 100% stocks and vice-versa for bonds. If over the next 6 month period stocks outperform (but bonds have outperformed over the 12 month period), then you should increase your stock position to 40% (according to this strategy). Since 1995 this strategy has outperformed the buy and hold by 50%, or an alpha of 3.2%. Since 1970, it would have lost money in 73, 81, and 87 (it was entirely in stocks in October 87, if you were wondering), but 73 and 81 were quite mild.

Another strategy to come in part 3, hopefully by next weekend.

Buy and Hold (Part 1)

I can get behind the argument that the average investor should index. Security selection is difficult and most don't want to spend the time to attempt to outperform the index. Time spent trying to outperform the index might be better spent doing other things (esp. based on the size of their holdings).

However, the decision to index or not index is one part of the equation. The investor chooses not only the securities to invest in, but the relative proportions of different asset classes, or holdings in different ETFs/Index funds. If you believe in buy and hold, you might keep your asset allocation constant over time, changing them only as your risk aversion increases as you age (to hold more bonds). Given the cyclical nature of our economic system, this strategy is incredibly misguided. Different asset classes perform different over different time periods, suggesting that an investor should change their allocation as economic conditions change. Put more emphasis on stocks when the economy is doing well and pare back when it slows.

The mutual fund industry is interested in selling Beta, but due to the cyclical nature of the economy, many investors sell their funds as the market falls. In effect, the mutual fund companies receive more volatile, cyclical earnings as their AUM flucuates. However, if they were to focus on products taking advantage of cycles rather than just offering Beta, they would see less liquidation as markets fail, and investors would be less likely to sell their funds. Earnings would be less cyclical. Further, I would argue that this focus could result in a much more successful fund manager than normal. If people view their products as safer, not only would they be more willing to hold their assets with that firm in the long-term, but they would also want to hold more assets with them.

One concern you could have is that if all funds were structured as broad asset allocation funds that take advantage of the cycle, economic cycles would moderate. While I think returns to the strategy would be competed away in such a situation, I think there are three criticisms to that argument. First, not all funds would want to manage funds in that way. At present, most people are happy believing buy and hold is the best way to manage money or they believe their own method is more succesful, it would hard to convince everyone. Second, not everyone would structure their funds the same way. Some would focus on economic data, some might focus on valuations, some on technicals and momentum, while others could use a combination. Not all of the signals would come at the same time. Finally, for that argument to be true, the lack of participation of major investors would be a sufficient condition to smooth the business cycle. Personally, I am of the view that economic cycles are the fault of the Federal Reserve and they appear in specific sectors due to primarily technological change but also government regulations. The strategies I will look at don't try to time these changes, but use momentum data to figure out when others think it has changed. So if everyone were following this strategy, surely the momentum data would no longer be viable, but I doubt everyone would follow it.

I plan on following this post up with two more posts detailing two strategies I have looked at. One is simple enough that anyone could implement, but the second is more complex.

Saturday, November 8, 2008

Presidential Inaugurals

Following Obama's Victory Speech earlier this week, the news media informed us that it was one of his best speeches yet. I don't dispute that, despite my belief that ideas matter and his aren't that good. But I wanted to see how Obama's speech compares to other speeches in American history. Now it isn't always easy to get your hands on victory speeches, b/c American President-elects didn't always give them. I compared his speech to Bush's speeches and Clinton's victory speeches using a tool that calculates a bunch of statistics of how complex your language is. One statistic, more commonly quoted is apparently called the Flesch-Kincaid grade level. According to this statistic, Obama's speech wasn't that much different from the more recent Victory Speeches.

However, I decided to go further back, mainly out of an interest in finding old Presidential speeches/addresses to see how politicians used to talk to Americans. So I found all of the inaugural speeches for Presidents since 1896 (since McKinley bridges both centuries I included both of his) and ran them through this tool. The tool provides many different statistics of how complex different texts are and I don't really know enough to tell which ones are best. So I created a Z-Statistic for one and then averaged them all to create one single value for each President(the negative of Flesch reading ease tests were used). Z-statistics are a little unrealistic, but I'm just using them as the first-best method of simplification. I couldn't find Eisenhower's 1956 speech, so I just assumed they had the same values (not realistic, but only used for creating the statistic).

While his speech is not an inaugural address and this method isn't perfect, Obama falls in at 27 of 29. For a speech listed as his best, it fails the complexity of language test. Surprisingly, Bush's second inaugural used quite complex language, as well as Nixon's inaugural speech. Clinton's first speech was not as "good" as either of Reagan's (by this standard), but his second was.

A final problem I didn't note is that since we have had television, these speeches have definitely changed. Earlier speeches mostly ran in the newspapers, are longer and could be thought of as like a State of the Union Address that we would see today. I took the time to read Coolidge and Taft's speeches to get a feel for them and they lay out all sorts of policies in much further detail than current ones do. Compare that to Bush I's speech where he talks in generalities and a Thousand Points of Light, but nothing specific. Here's another surprising fact, Bush II's second inaugural was the most complex inaugural since television began.

A well-received speech doesn't necessarily mean it was well-written or at a high grade level. It is as much true that you need to deliver the speech properly. Based on my analysis, I think the MSM is thinking more of the delivery of his speech rather than necessarily the content or eloquence of his speech. I did my best to quantify the eloquence, but the content is left to you.

Or you could think that the media is just completely biased for this guy (mi amigo, my compatriot, that one, my friend).

Note: For reference, if you add in MLK's "I have a dream" speech, it is close to Reagan's second inaugural. This post would fall between T. Roosevelt and Bush II.

Thursday, October 23, 2008

Corzine idea

I was just watching Jon Corzine on the Daily Show and I got to thinking about an idea for a research paper. It would be interesting to trace the major Cabinet secretaries (like Defense, Treasury, etc) back to Wall Street. It would be interesting to look at their political ideologies and see how Wall Street has or hasn't influenced them generally over time and was there any bias to a certain political party (or ideology, since the parties have changed)?

Wednesday, October 22, 2008

Willing to admit it

Arnold Kling posted today about how Economists as a whole do not know what is going on and that their textbook models are wrong. I couldn't agree more. However, I haven't spoken with anyone who has said, "wow this Rational Exepectations model really helped me forecast this crisis."

Two of my colleagues and I spent some time with Johnny Walker this afternoon... wait I mean John Walker of Oxford Economics. He seemed perfectly willing to admit that his workhorse economic model doesn't work well during this time period. I'm not sure how true this is for academic economists who build models, but I would think that most people who spend their time forecasting are perfectly willing to admit that they use them as a tool to think about the economy rather than something absolute.

In principle Kling is right, it is better to admit pseudo-knowledge than not admit it. I just think that professionals are more willing to admit it than he gives them credit for.

Sunday, October 19, 2008

How the financial collapse killed libertarianism by partisan hack

I love these death of articles by people ignorant of not just the political philosophy that is their subject, but also the conditions leading to its collapse.

Let us start with his claim that, "after LTCM's collapse, it became abundantly clear to anyone paying attention to this unfortunately esoteric issue that unregulated credit market derivatives posed risks to the global financial system, and that supervision and limits of some kind were advisable." First, credit default swaps as we know them today were still in their infancy in 1998 so it would be difficult to say they were as important to LTCM's collapse as Myron Scholes' shoes were. Second, he's attacking the wrong problem, to me, one of the biggest lessons from LTCM is that risk-models and excessive leverage are a dangerous combination. Those problems were never fixed, but it is hard to say that libertarianism is or isn't the culprit. Libertarians would say that banks who lend money to institutions who use excessive leverage might fail if the bets go wrong, and they should be allowed to fail. Harping on, the author notes that "the Washington Post ran an excellent piece this week on how one such attempt to regulate credit derivatives got derailed." Again, the author fails to distinguish between a credit derivative and a derivative. That article is as much about regulating currency and bond derivatives as it is about CDS.

So here again we are faced with the theory that conservatives, liberals, and a central banker who control the government, conspired together to halt attempts to regulate derivatives. The reader is left to his or her imagination to determine how regulating derivatives would have made a difference. I agree with Ritholtz that the decision to allow investment banks to lever up to more than 30x from their original 15x was a mistake. However, I'm not quite sure what else would have or could have been done. Much of the trade in CREDIT derivatives was to get bad assets or the impact of said assets off their balance sheet, a form of regulatory arbitrage. If they threw up some more regulations, I have little doubt that the industry would have tried to find new, exciting, and complex ways around it.

The author notes that consistent libertarians, as opposed to conservatives like Gramm that he is confusing with libertarians, opposed the bail-out and then he invokes the Great Depression that many could be employed in soup-kitchens. Implicitly he is tying the libertarians with the liquidationist view of the Great Depression. L. White has done a great job explaining how Mellon wasn't a liquidationist and Hayek and Robbins weren't liquidationists.

Finally he argues, "libertarians react to the world's failing to conform to their model by asking where the world went wrong. Their heroic view of capitalism makes it difficult for them to accept that markets can be irrational, misunderstand risk, and misallocate resources or that financial systems without vigorous government oversight and the capacity for pragmatic intervention constitute a recipe for disaster."
First, there are libertarians who believe the market is efficient and there are libertarians who do not believe that. I would say that there are many many more in the latter category. I'm perfectly willing to say that markets can be irrational, misunderstand risk, and misallocate resources. However, I would also be willing to say that almost all of the times when they do this, you can point to a government regulation or a government program that is leading to this. The ABCT doesn't really describe the depth of our current situation on its own, but it sure does a good job explaining how the government encouraged the market to misallocate resources into the housing boom. The difference between the author and I is that I want to see market oversight and market regulation where he only is looking to the government for the solution. Well, I think there are plenty of cases where you can point to the government being the problem.

What's interesting to me, is that the death of socialism was predicted by Hayek and the Austrians several decades before it happened. In all reality, I'll admit that what the Soviets had and Chinese (before Deng) had wasn't really socialism. It was only really tried in the WW1 War Economy in Russia and it failed miserably, as predicted. The system that grew out of it, at least in Russia, was more of a market socialism, mostly socialism, but a little markets and freedom thrown in. Libertarians, mostly Hayekians, have predicted that the global financial system is unsustainable in its current form. Many predicted that the housing boom would lead to a situation like what we're currently experiencing. That's because what we don't have is capitalism and anyone with a brain should realize that. Even before the bail-out bill, we were on our third-way, though not as far to the socialist side as Europe. It's not that this doesn't fit with our model, but when you take our government and say we live in a capitalist country. People like me need and have stood up and said we do not live in a capitalist country. Our theories aren't to blame, our theories told us we would end up in this mess.

Monday, October 13, 2008

Malkiel's Wambulance

"It is very tempting to try to time the market. We all have 20/20 hindsight. It is clear that selling stocks a year ago would have been an excellent strategy. But neither individuals nor investment professionals can consistently time the market." - Burton Malkiel

My problem with this statement is that it is not specific. I would agree with him that investment professionals can't time the market on a short-term or medium-term basis, for the most part. However, pretty much everyone knew without 20/20 hindsight that there were big problems in the financial sector, more than a year ago. Some people, using insights from a variety of schools of thought or just plain, old common sense, got out of the market. You don't need to time the market when it goes up, you just need to know that business cycles happen and it pays to get out of the market when the downturn is coming. The regular investor can index away in the good times, but that doesn't mean that always indexing is the proper course of action.

Wednesday, October 8, 2008

Risk and Uncertainty

What I don't like about Free Exchange is that I have no idea who the authors are who contribute to it. I don't know to always read and who to take with a grain of salt.

Here they note that modern finance "seeks to turn uncertainty into risk. You cannot quantify uncertainty, and you cannot trade it. It is pre-finance—and it can be corrosive. Risk, on the other hand, is a probability distribution. It is quantifiable. You can model it and analyse it and it has a value. Therefore, you can trade it." They are right on what modern finance seeks to do and the difference between uncertainty and risk. My problem lies with modern finance and actually turning uncertainty into risk.

I view uncertainty and risk from a Knightian lens. Risk is measurable, uncertainty is not: "The essential fact is that "risk" means in some cases a quantity susceptible of measurement, while at other times it is something distinctly not of this character; and there are far-reaching and crucial differences in the bearings of the phenomenon depending on which of the two is really present and operating. ... It will appear that a measurable uncertainty, or "risk" proper, as we shall use the term, is so far different from an unmeasurable one that it is not in effect an uncertainty at all. We ... accordingly restrict the term "uncertainty" to cases of the non-quantitive type."

So, that leads me to wonder can you actually convert uncertainty into risk or can you only reduce and spread out risk? Knight says that risk has an ex-ante probability distribution. In trying to get life insurance, from my perspective I have uncertainty because I cannot measure my risk, but the insurance company can and from their perspective it's a problem of risk. Subjectively, after I get insurance, I would know that after my death, my family would be taken care of. I would no longer have uncertainty (on this one part of the uncertainty of my death, there's a minimum of two others, like how and when), but the insurance company has gained a risk. Actually that may not be accurate. Maybe it is also uncertainty when it hits the balance sheet of the insurance company? Perhaps it is the subjective determination of the insurance company that makes it risk rather than uncertainty? This explanation seems lacking to me. A probability distribution seems outside of value and outside of the human mind. A more satisfying explanation, to me, is that the payouts on the insurance contract are uncertain by themselves for the individual and when transferred to the insurance company. They become risk when there are enough of them that produce a probability distribution.

As an example from modern finance, if you take a bunch of MBS and pool them into a CDO, you have certainly pooled them, but the pool of assets or the structure do not become a measureable probability distribution. So what you have with CDOs is not risk diversification, but taking a bunch of assets with uncertain payoffs, pooling them in a complex structure, and then sending different levels of uncertainty to people. Risk is not diversified, but different levels of uncertainty are spread out among the owners of the tranches to the CDO.

Sunday, September 21, 2008

Quotations

"Bob Rubin as Secretary of the Treasury — I mean, if he was a Hindu and he was being reincarnated, he'd come back as a pail because this guy bailed out everything you can imagine." - Kevin Phillips on Bill Moyers show

HT: Big Picture

Wednesday, September 17, 2008

Taylor Rule

If certain people used certain data series (like MacroAdvisors' Monthly GDP series and CPI) to make a Taylor Rule, they might be pleasantly surprised by investing when Fed Funds is above what is suggested by the Taylor Rule.

Thursday, September 4, 2008

Why doesn't this exist

By law, a hedge fund needs to avoid having too many (100) accredited investors in order to avoid coming under additional regulations. An accredited investor can include a pension fund, a bank, a hedge fund of funds, someone with a million dollars, and other rich persons. An investment company can also act as an accredited investor. However, people who make less than 200k dollars in either of the past two years are not accredited investors and therefore cannot invest in hedge funds. Also, a fund may require a large initial investment that more marginal investors cannot invest in. Furthermore, some of the better funds are hard to invest in, even for large investors. And I'll add in the fact that fund of funds charge an additional layer of fees that are pretty absurd.

So I think if it is legal, there should be structures like a closed end fund that solely invests in a particular hedge fund marketed to these marginal investors in hedge funds. The ideal organization to launch something like this would be an already respected fund of funds, a global investment bank, or some other organization with many contacts among large hedge funds. You could start with like the five or ten largest hedge funds that are open to investors and then expand into more.

Again it would be best sold to the marginal hedge fund investors. Someone with a 500,000+ portfolio and willing to invest 50k in a hedge fund might be willing to do it if they can buy in with a share in a closed end fund that is investing many millions more in a fund. Seems like a winning idea to me, if it's legal and the organization behind it has the relationships.

Sunday, August 31, 2008

Resistance and Support

This article has been mentioned on a few sites, I saw it first at Free Exchange.

It notes that prices that end in .99 induce customers to purchase a much higher percentage of sales than would be suggested. It is particularly true for lower priced items, but a purchase like a washer/dryer wouldn't have much effect.

While it is easy to design an experiment in a retail setting to test that theory, it would be much more difficult to test it in the financial markets. However, it seems to me that it would most evidently manifest itself in support and resistance points. I don't think support and resistance really translate well into trading systems. However, they can be useful in explaining behavior in the market (though I admit more value in hindsight than at the time). For instance, a stock might test its five year high several times and after breaking through on higher volume, it will surge significantly. A more active trader could see that and place buy stop orders above the resistance level. The problem with using a system is that sometimes it will go slightly above the resistance and then drop significantly. It is done more based on feel and that's also the problem with testing the effects of support and resistance lines using standard statistical techniques. A sustained, high volume move through a resistance point is more important than a weak one.

Getting back to the BBC article, a resistance line can be thought of like a price of 8 euro. The marginal asset manager might think that a stock is worth no more than 25 dollars. He would be interested in selling at 25 and willing to buy at 24.99. However, in the real world, the decision would really be how much of his portfolio to sell at 24.99 vs. 25.00 and not whether he is buying at 24.99. Due to the same effects noted in the BBC article, he would be much more willing to sell at 25 than at 24.99. The situation works in the reverse for a support line at 25, a manager might only be willing to buy a little at 25.01, but he might be willing to buy more at 25. You may ask shouldn't it be 24.99 where he wants to buy more to be consistent with the article? However, the real meat of the article is that people don't react linearly to these price changes, the same way that portfolio managers or traders might react.

There's one problem with this analysis that I can figure out so far, the prices in the BBC article are all small. While the prices of stocks can be reasonable on the face of it, even a retail investor would probably be buying 100 share lots and a PM would purchase significantly more. So the question is, is it the dollar value that matters or the price that matters? I'm not really sure of the answer, but I would say at the very least support and resistance are important enough that every technical trader would pay attention to them. There has to be some "inefficiency" here.

Testing this would be another problem, but I'm sure some finance professor is already looking into it. I really think that the key would be to look at when it comes to resistance points with light volume or heavy volume. For instance, after identifying resistance points, I would calculate whether they are above a moving average of volume to determine whether a day is a light volume or heavy volume day (might want to do relative to the market as a whole as well) and then I would look at how the stock performs relative to the market. I would identify resistance points using something like Average True Range relative to the stock price. For instance, a 6 dollar stock that moves 25 cents a day might have have support or resistance at the $1 level, but Goldman you might look 20 dollars away for support/resistance. That way you can do all the stocks together and then compare quartiles of stocks based on price or trading volume. Finally, all you have to do is look if high volume violations of resistance points or confirmations of support lines result in prices above those points over the next month (or 3) more so than the low volume.

That's probably a publishable paper right there, biggest problem is probably identifying the resistance points. It would make sense to do it in multiple ways to avoid the criticism that you measure it wrong. If you don't remove earnings days or something, you'll also need to make some kind of assumption to deal with them.

Wednesday, August 20, 2008

TAA and switching to bonds

First off, anybody see the ads for Crusoe on NBC during the Olympics, makes me want to break out my MES.

Second, if anyone remembers/cares I took the level 2 exam of the CFA back in June and ended up passing. So congratulations to my brothers.

Third, some ideas come to me that are rather simple, but make a lot of sense looking back on them. I had tried using bonds instead of cash in the TAA model previously, but was unimpressed due to larger volatility. However, I hadn't considered using the TAA investment in bonds. In other words, use the return series that invests in bonds when above the 10 month average and cash otherwise instead of a pure cash index for some asset classes.

The two asset classes I meant to target with this strategy were the two that historically have performed the worst on a Sharpe ratio basis, commodities and foreign equities, in the TAA strategy. I still have the TAA rule for each, but before I evaluate that I look at whether the US equity or foreign equities are below the 10 month average, if that is the case, I will have them invest in the bond TAA strategy. Then, if above the 10 month MA, they invest in that asset class, otherwise they invest in cash.

For comparison, in recent years (since 1990), the TAA strategy for commodites returned 8.8% annually (16.69% s.d., Sharpe .27 with r.f. @ period average), this simple change increases the return to 13.6% (11.8% s.d., Sharpe .79). For foreign equities, the return goes from 7.6% (12.59% s.d., Sharpe .27) to 12.2% return (12.43% s.d., Sharpe .64). The overall strategy improves from 10.7% return (6.85% s.d., Sharpe .94) to 12.5% return (7.01% s.d., 1.17 Sharpe).

Again, the reason I focused on these two was because they perform the worst. Using the strategy on US equities seems to work (Sharpe goes to 1.16) and for REITs (Sharpe goes to 1.15). Overall Sharpe goes down slightly, but for the individual asset classes the Sharpe increases suggesting the decline is due to decreased diversification and higher variances. A 5% increase in the Sharpe ratio individually doesn't impress me as much as the ones for commodities and foreign equities.

I also tested my original intention, just using the bond TAA instead of cash (and nothing more complicated like above) and it works well for REITs, but works best for equities. A marginal improvement on a risk-adjusted basis for the portfolio, but interesting nonetheless.

Monday, August 18, 2008

TAA and commodity overheating

Just wanted to do a quick blog on the TAA model noted earlier on this blog.

I created an extension to the model based on it achieving a certain return after a set number of months. After that, I looked at whether it makes sense to get out completely or to use a different exit rule (like a 5 month MA instead of 10 month MA). It doesn't get back in until the next time the 10 month MA crosses back over. The general idea is that if an asset class goes up that significantly in such a short period of time, it is unlikely that the returns in the future will be strong, despite being above the 200 day return

I started with a 20% return in a quarter and getting out completely. In that model, there is an improved return. However, closer analysis reveals that it is almost exclusively in the commodities sector. It stays out of almost five years worth trading (239 months vs. 294 months) changing an asset class with 8.8% return and 16.8% volatility to one with a 13.3% return and 13.12% volatility.

I also experimented with different combinations of returns, periods of time, and whether to use a MA average rule to get out or just permanently get out. Several of them perform better than the original TAA rule, but almost all the benefit comes from the commodities sector and the other sectors don't improve enough to be worth it.

I should note that my analysis didn't include the current period (ended in early 08), but the knowledge I take from my analysis is that when commodities rise 20% in a quarter, they historically have a correction.

Note: I also created a more complicated algorithm for the other asset classes that will get back in if the past three months did not have the quarterly 20% return which seems to help reduce volatility and improves the portfolios Sharpe ratio (though the individual ones don't appear that much better. Basically the same thing as the commodity strategy except it is willing to get back in (keeps the same returns for the commodity strategy). 11% return for the overall strategy here with 5.43% volatility. (compared to about 6.85% for the original TAA model).

Sunday, August 3, 2008

The Economics of Registering to Vote

Well, I should say that it is more the cost/benefit analysis of registering to vote. I recently moved from Queens to Jersey City and there were some thirty-ish professionals outside the PATH entrance who wanted to register me to vote. I am registered in Indiana (where KF's parents live and went to college) and still have my Indiana driver's license.

Walking to the registration table, I figured that (outside of time wasted filling out the form) I was making a cost-less decision. I probably won't vote, but I figure that the margin difference in New Jersey in the general election will be smaller than the margin difference in Indiana. So, if my vote matters at all (probably not), it matters a fraction more in Jersey than Indiana. So the benefits side of the calculus is the expected value of me voting and that influencing the election (probably of me voting times value of my vote and also all future voting decisions and their weight discounted to the present).

However, I didn't realize the costs of voting until a man who either was an unemployed, alcoholic construction worker or homeless (probably the latter) began to convince me not to register. His early arguments weren't that convincing focusing mostly on how much the vote matters and staying off the grid (the first I already knew, the second I didn't care about). However, he mentioned that one of two places they pull jury duty from is the voter rolls. If I am pulled to do jury duty twice a decade in New Jersey that means that I earn like $3.50 (how much the lochness monster takes) and lose a vacation day, I presume.

The problem of how to value the cost is difficult for two reasons. First, the call for jury duty is random and could be modeled like a Poisson process. An easy work around would be that I have jury duty in five years and ten years and discount the costs on those dates back at 6% or so. The second difficulty is valuing a vacation day. I can assume that the value of a vacation day would increase as my income increases since leisure would become more scarce and I would imagine that my income grows significantly five to ten years from now. I could probably model it, but it shouldn't matter that much, as will be seen. My gut feeling is that, in terms of dollars, a vacation day shouldn't affect salary (I get paid the same) and you could assume that it doesn't affect your bonus. However, if you don't use all of your vacation days, you might have worked harder and deserved a higher bonus by accomplishing more work. There is some probability that it will increase your bonus by not taking the vacation day, but it is small and would probably not be a big effect after discounting*. The real place to value the vacation day is in subjective value. The proper trade off is the net benefit of sitting in the sun or skiing out west or sitting in a jury room.

The subjective benefit to skiing with friends relative to sitting in a jury room, for me, outweighs the money (from bonus or the 3.50) and the benefits of being able to vote in New Jersey. I'll stay registered in Indiana and avoid jury duty like the plague.

I'm pretty sure they don't let people who think like me on juries anyway.

*It is small on the margin because it would probably only be if you had like leftover vacation days from the day before and just dropped out from work for like a month. That would probably affect bonus.

Saturday, July 19, 2008

SEC exempts Market Makers

This big news in the market these days has been the new SEC naked short sale regulations. According to this article, market makers in equities and options have been exempted from the short sale regulations.

In my view there are three main criticisms of the original regulations. The first is resolved by this adjustment. The options market, in particular, was effected by these regulations since it can disrupt hedging operations. Since activity in the options market feeds into the equity markets, if you create regulations that make it less likely someone will make markets in some options, there will be some big effects. The second criticism is the one pointed out by Mish several times that the firms exempted from the shorts has been chosen rather arbitrarily. Finally, is the whole this prevents these companies from going quickly to a fair value and serves as a form of relief for privileged, politically well-connected banks. People lost their life savings on internet companies and rules like this weren't put in place. And I'll leave it at that.

Thursday, July 17, 2008

Merger Arbitrage

*I generally don't post about specific stocks, but I haven't gotten around to some of the research I meant to do and something I am looking at is increasingly looking worthwhile.

Merger arbitrage is the art of buying companies that are getting acquired and selling companies that are acquiring. When the merger goes through, you collect the spread between them. If the merger doesn't go through, the spread widens and you lose money.

Alpha Natural Resources (ANR) is a coal stock and Cleveland-Cliffs (CLF) is an iron and coal stock. Cleveland-Cliffs announced on July 15th that it will purchase ANR for $22.23 and .95 shares of CLF. On the 16th, ANR opened up around 119 after trading around 95 the past few days and then proceeded to tank back down to a close of around 96 at the close of the 17th. CLF was trading around 110 prior to the announcement and has come down to about 97.25.

Based on current prices, 100 shares of ANR should be worth 22.23*100+97.25*95=$11,462 and only cost $9,580 on the market. Since the value of the ANR is dependent on the value of CLF, you would sell short the CLF in a merger arb situation. This way when you receive the 95 shares of CLF you can deliver them to whomever you borrowed the stock from.

For example, assuming the existing prices are where you buy and short and the merger closes, that means that ANR will be priced such that what you can buy equals 22.23*100+p*95, where p is the price of CLF. If CLF closes out at 100, ANR should be worth 117.23 per share. After your ANR shares are converted to CLF, you can close out your short (worth 95*100 dollars) and keep 2223 (22.23*100). The merger is supposed to complete at the end of the year and depending on how your margin account is handled, it looks like you could put up about 20k for an annualized return of about 20%.

That's not to say that this isn't risky. Merger arbitrage is a very risky business and it admittedly isn't mine. Given how that ANR has fallen fairly significantly since the announcement came out, the market is pricing (excluding shorting costs and TVM) that the stock is only worth three-quarters a share of CLF. I will be waiting for more details, particularly the proxy. Do your homework and certainly don't blindly follow me. I would have bought it on the open of 7/16 and have lost like 20 dollars a share already on ANR and not made it back on CLF. At these prices and this spread, I feel like it would be less risky given the potential gain.

SEC 8-K form
Press Release

edit: Harbinger Capital increased a position from 3/31 of about 8.73% to about 18.36% and announced in a 13D that they would oppose the merger.

Tuesday, July 8, 2008

Increasing 200 day moving averages

I did a quick study of what happens if you look at whether the 200 day moving average is increasing or not. I used the same asset classes and methodology as this which through February of this year showed a return of 11.98% (6.82% std, .875 Sharpe). I looked at three improvements which probably do not have different enough results to tell a priori which is better.
  1. 1. If the 200 day moving average is increasing a buy signal is generated, invest in cash otherwise.
  2. 2. Entry order is only generated when the price is greater than the 200 day MA, only exit if the 200 MA decreases.
  3. 3. Same entry order, but exit if below 200 day MA and 200 day MA decreases.
The first shows a return of 12.5% (6.9% std, .947 Sharpe), the second has a return of 12.8% (6.9% std, .975 Sharpe), and the final has a 12.4% return (6.6% std, .961 Sharpe). For the first one, the bond portfolio underperforms relative to the classical TAA model from Faber. In the second, the real estate portfolio underperforms. However, this is also dependent on the time period. Over the whole period the real estate underperforms, but since 1995, the second method produced strong returns in real estate (though the third method does better). The second method has the benefit of simplicity and surprisingly is in the market more often than the traditional TAA method.

I had originally assumed it would be in less. I wanted a method that would use the same entry and get you out quicker when the market begins to tank, but it appears that the benefit comes from keeping you in the market longer (roughly 70% of the months that are different are from the second method having a buy rather than a sell) and these months, particularly for commodities and stocks, generate strong returns and the handful of months avoided have relatively mixed returns. However, when they are down, they are down pretty significantly (real estate is an anomaly that acts opposite both effects). I was also surprised to find out that on average the TAA method generates on average 50 entry or exit signals per asset class whereas the second method generates about 45.

In conclusion, the TAA model can benefit by being in the market longer and not necessarily trying to avoid more periods.

Tuesday, July 1, 2008

Probit and Interest rates

I'm curious how the historical shape of the yield curve can assist in the prediction of returns for holding government bonds. This is a preliminary post that plans to detail some of the basic lines of thought I am pursuing. I am heading to DC for the 4th, so I would like to perform an out-of-sample test to look into how this line of thought actually performs when I get back. I have some skepticism and doubts about this method that can only be confirmed upon more research (more on this later).

I began by collecting total return series for 1, 2, 3, 5, 10, and 30 year government bonds along with interest data that's available for bills, bonds, and corporate debt. Some of the series are active in some time periods and not in others, so I just stuck with 3 month t-bill and 1, 3, 5, and 10 year bonds, along with BAA corporate interest rates.

I first looked at the returns for the different bonds. In general, I am interested in holding for several months, so I took the geometric average three month returns and created holding 10 year (5 years back, five years forward) windows to evaluate each time period. The evaluation was simply which (not decile or quartile, but) quintile or 20% range the return would fall into. So if a time period is ranked a five, it would perform in the top 80% relative to the performance five years prior or forward. This way the select periods of time where bonds dominate don't outweigh the whole dataset and there are still runs where it makes sense to be in bonds. The only reason I don't do the whole series is that I believe doing so would result in too much trading.


The chart above is the average monthly (not 3 month) return for each of the bonds I looked at and each decile. Below that is the same chart except if given a 4 or a 5 above, the left-most column is a 1 and 0 otherwise. Since we expect that bonds with longer maturities should have longer durations it makes sense that the 30 year has the largest spread and the greatest opportunity to profit or lose. I also looked into the correlation of the returns to the 6 bonds. For the most part correlations like 3 year vs. 5 year are very high, but as you get larger differences, there are larger differences. However, what is striking is that the correlation between many bonds, even like the 10 year vs. 2 year, are higher than 80%. That suggests that for the most part if you can build a good model for one of them, the idea should work for all (with the 10 and 30 relative to the 1 year having lowest correlations).

I think it is interesting to look at conditional means (or categories) for different statistics. For example, what are the returns like on average over the next three months when the yield curve inverts (or steepens). The only problem with that is that I have so much data and so many different yield curves to compare. I didn't want to specify one way that would work best (ie. do I only look at when the 10 year inverts relative to the 1 year, or do I look at 2 and 5, do some outperform in different central bank regimes?). To give myself as much flexibility without doing something crazy like a neural network, I decided that it would be best (at least in a preliminary sense) to look into using a probit model to categorize the returns.

I described what probit models are and how to use them to look into the probability of a crisis or recession previously. Essentially, I have the series of 0s and 1s and the goal is to use the independent variables to estimate the probability that an event will occur (in this case, the event is that it is worthwhile to invest in bonds for at least three months). I estimated the model for each bond series using two methods, in the first I focused on the interest rates mentioned above without reference to their past values, in the second I used the interest rates and each of the past 12 lags. The first method is less successful than the second, but it also avoids a lot more curve-fitting problems than the first method. The first method classifies 63% to 72% (from 30 year to 1 year) correctly whereas the second method is up to 73% to 80% (from 30 year to 1 year). For comparison, using the binary decision of greater than the 10 month MA or less, classifies at about 60% for each bond (and including it in the decision-making doesn't help). Note that I consider classifying correctly to mean a probability greater than 50%.

What will be interesting is to look at the false positive rate and the returns in situations when there is a false positive. In other words, I think the value of the probit model is identifying risk/return better than other models. If I can identify situations with good average wins relative to average losses, then I can control my risk better. Using the model incorporating 12 lags (which I am worried about), I calculated the times where there are false positives for the 10 year bond and found a 2% annual return with 3% volatility compared to a 18% return with 9% volatility for the normal (note that this is just what the returns are and ignores the fact that it will be in cash for significant periods of time, just want to get an idea of the conditional means). As expected, the periods when the model says to get out of the market, there are negative annualized returns(-10% with 7% volatility). However, I am a little worried about false negatives, but after looking at how often the model invests (since it invests for three months), it appears that the problem goes away. Obviously the problem with this is that I use the whole series to develop the probit model rather than going with information available to develop the coefficients. I would suspect that these good returns would get slightly reduced by using the actual trading model (which is what I intend to test when I am back from DC). In comparison, the 10 month MA rule, returns 8.5% with 8.5% standard deviation (ignoring interest) though it is invested more often. Incorporating commercial paper yield into the second model would reduce its return (though risk/reward stays high) though also reduce volatility by more in this model than in the 10 month MA rule.

Nevertheless, it appears to be an interesting development, I am worried that the coefficients are a bit difficult to interpret (too black boxy) and that they won't be stable enough to generate significant returns. I also don't doubt there are problems with autocorrelation, but fixing that in probit models can be a pain.

Monday, June 30, 2008

Bear Stearns in Vanity Fair

The article in Vanity Fair regarding the collapse of Bear Stearns was fascinating. Particularly for an essentially anonymous trader who was able to profit (by shorting other financial stocks as Bear went down) from their collapse. The day that Bear did the final drop (I can't pull up the ticker on any of my normal methods so I can't be sure which day it was) it was up 10 dollars at about 9 o'clock only to get beaten down to flat by 9:30 and then got smoked (pretty sure it dropped at least 25%-50% the next half hour). My only insight is that most traders just see what is happening and react.

Though the entire article is worth a read, I found the following quote particularly enlightening.
It was then that Gary Parr and the bankruptcy attorneys patiently explained that bankruptcy was actually not an option, not for a major securities firm. Changes to the bankruptcy code in 2005 would force federal regulators to take over customer accounts. All its securities would be subject to immediate seizure by creditors.
The 2005 BAPCA bill was a giveaway to credit card companies, but it seems like this statement doesn't really make sense. First, it depends on if the securities are in margin account or traditional customer accounts. Margin accounts are held in the name of the brokerage, so it makes sense that those would be able to be taken in bankruptcy. Though I'm not an expert, by any means, I would assume that this hasn't changed. Within customer accounts, SIPC protects cash and securities less than numbers only lawyers remember. So based on the statement above, the 2005 BAPCA would allow the immediate seizure by creditors of the customer's cash and securities held at Bear Stearns. To me that just means that if Bear declares bankruptcy, it would be forced to liquidate. It couldn't go into bankruptcy protection and eventually hope to emerge. The equity would be worthless. In other words, senior management would never consider bankruptcy for Bear. I could be totally mistaken, but it appears that if it weren't for the BAPCPA bill, Bear could (big assumption) have tried bankruptcy and not purchase by J.P. Morgan. I'm not an expert enough to know if this is the case, but it would be interesting to look further at the influence of this bill and the collapse of the company.

Thursday, June 19, 2008

Natural gas inventories

Natural Gas inventories were surveyed to change by 58 and came in at 57 (prior was 80). Natural Gas proceeded to fall 3% (at writing). For those who aren't traders, generally the natural gas inventories usually don't move the market enough to be worth trading (though they were three and four weeks ago), but I haven't seen such a strong, lasting move on this number when the inventories came in essentially in line. It looks like around 11 there was news (according to Briefing.com) that China would raise some prices of gasoline and crude, but this decision wouldn't affect natural gas. I guess I'm kind of at a loss to describe it.

Generally the trend is your friend, but I can't help put think that this is oversold (the front contract is at 12.72 and UNG is as 60.30 as of this writing). However, bottom picking this kind of strength on the downside can be vicious unless you are looking to hold for a long enough period. Thankfully my only position in UNG was in a play account on updown because I have been wanting to bottom pick this for at least an hour and it just keeps going down. The futures are at 12.65, down 4.3% from the open.

Edit: Looks like I was about ten minutes off the bottom. Also edited for grammar.

Monday, June 16, 2008

Volatility Smile

The Black-Scholes-Merton model makes the assumption of constant volatility. In practice, we observe something called the volatility smile. Basically, options struck at the money have less volatility if you solve for volatility in BSM than options struck far in or out of the money. This is an interesting phenomenon that finance professors like to write about and hedge funds try to exploit.

I wonder whether equity index options (in particular just b/c I know that the 10 month MA strategy works on them and they have a long history) experience different volatility smiles when above the 10 month MA or below the 10 month MA. If the volatility doesn't change, I would look to a situation where calls are cheap when the market is trending up and puts are cheap when the market is trending downwards. I imagine it would take significant work to look into this. If no one else does (let me know if you do), then I might take a stab at looking into this problem sometime within the next six months. Nevertheless, I think it is an interesting question and could present arbitrage opportunities. Volatility is traditionally higher when equity markets are below 200 day moving averages, but I wonder if it is high enough given historical volatility during these times and the small (mostly negative) returns.

Thursday, June 12, 2008

Beta and Sectors

I meant to post something about the interest rate environment and tactical asset allocation, but I haven't gotten around to it since the results aren't that spectacular. Still kind of interesting. Anyway, I've been reading Eric Falkenstein lately over at the Falkenblog and his website DefProb.

One point that he makes is that historically buying low Beta stocks has better returns than buying high Beta stocks (though there are periods of significant underperformance such as the internet bubble). I found this result interesting (risk is inversely related to returns, how could that not be interesting?) and so decided to look into a similar strategy using sectors.

I used weekly dividend adjusted data of the 9 Sector Spiders since they began at the end of '98 along with SPY. I calculated Beta vs. SPY using at least a year's worth of data and no more than 5 years worth of data. At the start of every year I ranked the Sectors on the basis of Beta and formed a high Beta and low Beta portfolio with three Sectors each. I also calculated a portfolio investing equally in each Spider to serve as comparison (SPY is market-weighted).

Over this period (from Jan. 2000 to the end of last week), the equal-weight portfolio return 2.4% annually (15.7% std), the high beta portfolio returned -.14% (20.7 std), and the low beta portfolio returned 4.3% (14.3% std).

I then calculated the 40 week (200 day) moving average and considered a signal at the beginning of the month good through the end of the month (since that is how the 10 month TAA works and I wanted it to be somewhat comparable). The results are reported below:
(After accidentally inflating the returns of the high portfolio) The results indicate that the low Beta portfolio outperforms when the market is above the 40 week moving average and slightly outperforms when the market is below the 40 week moving average which confirms the argument that Mr. Falkenstein had made (note that the Sharpe ratio is higher for the high than the low in the below 40 week, I think that the Sharpe ratio is an incorrect method of comparison when returns are below 0). That doesn't change the fact that investing when below the 200 day moving average is very risky.

CFO advisory posted yesterday regarding the sector momentum strategy (which I have covered before on this site) and noted that a significant portion of the return has been due to XLE. The low Beta portfolio included XLE from 2000 to the beginning of 2007; however, from 2007 until recently XLE return 35% annualized compared to 11% from 2000 to 2007. So I would argue that the performance of the low Beta portfolio doesn't suffer from the XLE criticism (note that I really agree with it anyhow).

Thursday, June 5, 2008

TAA and avoiding pullbacks

I should probably be studying, but this didn't take me that long to work out and was pretty interesting.

This could be considered another extension of the tactical asset allocation system developed by Mebane Faber that I have blogged about several times. The original strategy is to invest in five asset classes (US bonds, US stocks, Foreign stocks, Commodities, Real Estate) when they are greater than their 200 day moving average and commercial paper otherwise.

I modified the system slightly, maintaining the 200 day moving average requirement, but I added an additional constraint: it could not be the case that it was above the 5 month (4 and 6 have similar results) moving average and the return over the previous month was negative. The point of this was to take into account periods being overbought and then getting back in quickly. The periods above the five month that have negative prior month returns have very poor risk to reward ratios, most significantly for stocks and REITs. So making this simple addition can take a system with an 11.9% historical return with 6.8% standard deviation (.867 Sharpe at 6%) to 11.8% with 5.68% standard deviation (1.026 Sharpe). Though there is not a statistically significant difference in means, there is a significant difference in standard deviations according to an F test.

Not only is this improvement a significant, easy to implement improvement, but it is based on logic. Most trends do not continue up continuously. There tend to be pull backs. This strategy maintains the idea that the trend is your friend and attempts to stay out of a pull back if it happens two months in a row.

Note: the portfolio leveraged 50% has a 14% return with 8.5% standard deviation compared to 13.5% with 9% standard deviation for the original version. The best benefit in reducing standard deviation is in keeping the risk to reward statistics strong when using leverage.

Thursday, May 22, 2008

The Hedge Fund strategy that wasn't?

One of Crossing Wall St's more recent posts refers to an older post regarding the returns to trading when the previous day was a large or small return. They conclude that big days lead to more big days in either direction. In order to avoid any biases, I looked at the average daily return and standard deviation each day and created a strategy to buy if it is more than one standard deviation positive and sell if it is more than one negative. I used a ten year lead up and began the strategy in 1960 without including the returns of dividends (12178 observations). I also looked at portfolios using the same strategies for two standard deviation envelopes. For the 1 up and 1 down portfolios, the return (of just the days invested, ignoring risk-free returns) is 53.9% (15.5% standard deviation, 1728 observations) and 26.06% (20% standard deviation, 1817 observations), respectively. For the 2 up and 2 down portfolios, the returns are 82.4% (18.75 standard deviation, 462 observations) and 18.04% (27.5% standard deviation, 501 observations). Also note that these are annualized figures and on average they might make only 35 trades a year.

All things considered, they look like strong strategies. It makes more sense to combine the long strategies since their returns historically are the strongest. My combined strategy was to be long above the 1 standard deviation and use 100% leverage when above the 2 standard deviation. the returns are 79.05% with 23% stdev over 1728 observations.

Just on the basis of my recent trading, I felt that these returns looked too good to be true (granted they are only investing some 15% of the total observations). I hadn't seen this many big days together in the past 5 months or so. So I decided to look at the rolling 10 year cumulative returns to confirm how it has performed historically and how that would appear relative to today.
The chart above plots just that. Particularly back in the 70s the market trended very well. Furthermore the returns to the strategy were strong from the 80s to the 90s. However, the strategy seems to have lost its edge in recent years. The ten year cumulative return most recently was only 17.7%. I'm sure this is greater than the markets return ex-dividend, but my point is that just because a strategy worked in the past, doesn't mean that it will continue. For example, waiting to start the strategy until 1985 cuts the average return from about 70% to 36% with only 500 fewer observations. What is also interesting is that the sign of the minus 1 and minus 2 standard deviation strategy has flipped since 2000. They are buy signals and not sell signals. 13% return (23% stdev) for the down 1 standard deviation if you buy and 50% return (27.7% stdev) for the 2 standard deviation. The up 2 standard deviation strategy still has worked since 2000 (though with dramatically lower returns, 22% with 21% standard deviation), but the 1 standard deviation strategy has not.

The returns to the strategy appear to be stronger if you use 10 year rolling averages and standard deviations for the entry points, but the success of the strategy follows the same trend. For example, this strategy (the one graphed above) since 2000 returned 8% annualized with 28% standard deviation compared to essentially flat with 27% standard deviation the way originally calculated.

Tuesday, May 20, 2008

Stops

I was directed to IBDIndex through Quantifiable Edges. The more recent posts are also interesting, but this older post on stops is fascinating. Essentially, he tests using an 8% trailing stop and then if you have gained 17% on a trade, he uses a 25% trailing stop. It seems to be pretty successful when trading stocks and would be worth it to check out. In part 2, he gives the results on a robust backtest.

Monday, May 19, 2008

TAA update

I probably will not be posting that often for the next three weeks or so. I have the level 2 C.F.A. coming up and I have got to hit the books.

Anyway, unless there is a correction, May will show a signal to invest in equities according to the TAA model. I was interested in the returns in time periods when the previous signal was to not invest and the following month closed above the 200 day moving average. By comparison, the excess monthly TAA return is 5.16% historically with a 6.94% standard deviation (12% normally) and5.8% excess return (13.76% standard deviation) for the S&P500 timing model. When there are two consecutive months of buy signals, the similar statistics are 6.25% return (13.48% standard deviation). For the S&P500 when there is a sell signal in the month prior and a buy signal in the present month, the average excess return has been .09% with a 12.81% standard deviation. However, if you look at all of the assets, commodities and foreign stocks have very strong returns that keep the overall strategy strong. Excluding the S&P500 dates until there are two buy signals slightly reduces the standard deviation while keeping returns positive, though it doesn't appear to be statistically significant.

For the 24 times since 1974 that if you bought the S&P500 at the beginning of the month when price crossed above the 10 month SMA, you probably wouldn't have any return, but the standard deviation of equities.

Wednesday, May 14, 2008

Spurious

I generally like Bespoke. They make some good recap posts of what sectors or countries are performing relative to each other. However, I was disappointed with today's post. Their point is that if you graph the S&P500 since October and compare it to June1990 to July1991, we follow a pretty consistent pattern.

I've seen arguments like this made before, "this is just like the conditions leading up to the '87 ('29 or what have you) crash." To the extent that some market participants believe this (as it can be generally be heard in the financial media), there might be some predictive power in that. I'm not sure, I would have to test it. However, my complaint is that simply graphing one time series onto another and positing a special relationship that could indicate future returns is sloppy statistics and bad practices all around. At a bare minimum, you should report the correlation today vs. that time period, how many times there has been similar correlations over time, and the returns in those situations. There's certainly more you can test, but I would suspect that it would make sense to check whether or not the relationship is spurious.

Well, I decided to look into this a little deeper. I use the weekly S&P500 data and compute the correlation of rolling time periods with May of 2007 through the end of the first week of May. Out of 3,011 weeks that correlations were computed, 457 (15.2%) showed correlations with the recent time period greater than 50% and 135 (4.5%) showed correlations with the most recent time period greater than 75%. The most highly correlated periods showed 90% correlation only 3 other times and two happened in 1953 and the other was 1990. However, if you look at the 75% correlation periods, it is clear that every time there has been a downturn, the market tends to look like it is now. They're right that on average, the market has bounced when it was highly correlated with today, 1.7% over the next three months (7% annualized). However, the standard deviation was also 8.5% (17% annualized) which means that it isn't statistically different than zero. On a six month basis, the return increases to 4.87% (9.7% annualized), but the standard deviation increases to 14.7%(20.8% annualized). So if you wanted to take advantage of the historical correlation, you would also be looking to take on a lot of risk.

Another point I wanted to note is that when you have a series like stock returns that have unit roots, you generally need to difference the series or log difference the series to tease out relationships. A unit root basically means that the process is not stationary, it doesn't have a consistent mean and standard deviation. But, if you put the returns in the form of percentage increases, then the returns might have the same mean and standard deviation over long periods of time. The problem is when you compare two series that both have unit roots (as both comparisons are here) and if you regress one on another and find a large R^2 value and positive autocorrelation. If the residuals are also integrated order 1, then you have what is called spurious regression. If the residuals are integrated order 0, then you have cointegration. Cointegration is like the relationship between gold and gold mining stocks (or oil and oil services stocks). Spurious regression would be like the relationship between defense spending in the U.S. and the population of South Africa. Both go up, but there's no fundamental reason. I can't think of any reason why the stock market would necessarily behave exactly the same way twice, but the way to test this would be to set up a Matlab program that iterates through every week of data and looks at the returns of highly correlated months and invests when they're significant. All things considered, it wouldn't be hard to test (this is just one time period).

For example, if you were looking at 6 month correlations on October 5th, 1987 and would hold for 3 months if the correlation were greater than 75%, then you would find an annualized return of about 10.6% with 11.4% standard deviation (pretty consistent even including the awful 1987 data with the whole series). You might choose to invest and lose 20% over the next three months. The risk/reward ratio looked even better on a 85% basis. Interestingly enough, the situation of greater than a 90% correlation with the 6 months leading up to the 1987 crash has never happened and neither has it happened looking at it including October (despite what anyone else will tell you). My point is that a correlation with a previous time period, or a chart pattern similar to what happened before, may or may not be robust, but it should be statistically tested and caveats given before being used as a buy/sell.

Donchian Channels

A Donchian Channel is the formed by the high and low of the past n days. For my purposes, I used weekly data on the S&P500 from 1950 through May. I ignored interest compared the returns (w/o considering dividends) with a strategy investing when the market is above the 40 week (200 day) average. I checked several different ns, but 20 weeks (100 days) seems fairly standard. The results are generally consistent no matter how many weeks are chosen. When a 20 week high is hit, then a buy signal is generated and similarly a sell signal is generated for the 20 week low. I used a 10 week ATR to measure a trailing stop (high-2*ATR or low+2*ATR) as my exit.

When in a position, the SMA strategy generates a 10.6% annualized return with 12.05% standard deviation (1983 weeks).

The short side of the strategy generally underperforms. In other words, equity markets (as represented by the S&P500), do not tend to trend downwards after hitting 20 week lows. The long side of the strategy generates a 7.6% return with a 14.1% standard deviation in 3005 months. I wouldn't be surprised if additional filters would allow the long-side to have strong profits. For example, an additional requirement for a buy signal (not as an exit) with price greater than the 20 week moving average increases return to 8.3% and a 12.3% standard deviation. Combining the two original strategies together generally results in a return not significantly different from 0%. Since this is the basis for the turtle trader strategy, I would consider this pretty important. Unless you're a short-term trader, quant, or hedge fund, I would recommend staying away from shorting equities. Since the turtles mostly traded commodities and currencies, I wouldn't be surprised if this type of strategy works better on the individual components (as this would probably work better on individual stocks rather than equities as an asset class). I still feel that keeping things simple with the 200 day would probably be your best bet.

Since the short strategy generally results in the underperformance, I considered flipping a long when at the 20 week low and the market is greater than the 25 week SMA (no cases when this occurs for the 20 week). This strategy by itself produces a 14.9% return with 14.1% volatility. Unfortunately, over more than 50 years, this happens in only 55 times. I did some other tests in TradeStation with the ADX which also seems to be a successful filter, but the data I was using wasn't nearly as long a time period. I wouldn't be surprised if short-term reversals in equities generate strong returns, but those strategies generally require strong risk management

Thursday, May 8, 2008

OverBought/OverSold part 2

Regarding yesterday's post with OverBought and OverSold indicators, I combined that with the TAA model from before (5 asset classes, buy above 200 day, invest in Commercial paper otherwise). I just wanted to add in RSI since that had a tendency to be most effective (can't use lower bollinger band since already out, not enough data for stochastics). I started with the method from yesterday (only invest when RSI is less than 75) which works very well with equities, but this method does not work as well with the other asset classes and it significantly underperforms as a diversified strategy. However, it remains significant for equities, so I will leave it in place for them. EAFE benefits from staying away when there is an RSI less than 50, but the other asset classes are already out of the market enough due to the TAA that it really doesn't improve their situation that much (25 results in no change for any of them) and the change just for commodities won't change the results significantly (statistically or economically). Ignoring the OverBought RSI figure for everything except equities also improves returns (different time periods are slightly improved by reducing them to 98 or 95, but it is not statistically or economically significant).

In other words, what is true for yesterday was likely true just for the S&P500 and not something applicable to a diversified strategy. However, just including it for equities can raise the Sharpe ratio from .88 to 1 over the entire time period and from .94 to .99 since 1990. Not a statistically significant difference for the overall strategy, but since it is statistically significant for the underlying, it might be worth considering an addition. A strategy that avoids situations where the monthly return is greater than the 2 (or 2.5 or 3) stdev Bollinger Band does not improve returns overall.

Wednesday, May 7, 2008

OverBought/OverSold

One of my interests is looking into ways to improve investing returns. I decided to look just at the S&P500 on a monthly basis since 1967. Mebane Faber has noted that the returns to a 10 month simple moving average strategy earns significant returns. In this sample, the returns are statistically significant with a 12.2% return (13.5% standard deviation) compared to a statistically insignificant 5.8% (18.3%) when below. I wanted to test three common OverBought/OverSold indicators on a monthly basis and then check to see if they would be any benefit when combined with the 200 day strategy.

The three indicators I used were Relative Strength Index, Slow Stochastic, and Bollinger Bands. I would imagine that most people who would come to this site has heard of these concepts (which you can google if my explanations aren't good enough), but I'll explain their basic concepts anyway. The Relative Strength Index scales the ratio of the size of recent up moves to down moves. If there are more up moves, then the ratio will tick up which is then scaled from 0 to 100. The %K fast stochastic indicator measures where the most recent close is relative to the range the stock has been trading in. If it is trading near recent highs, then it will be closer to 100 and closer to 0 when trading near lows. Slow Stochastic is a 3 month MA of the fast. Bollinger Bands measure 2 (or n) standard deviations away from the moving average. For all of these, I use ten months as the initial range. I'm only able to do the slow stochastic since 1988 since I couldn't get highs or lows before then.

The biggest problem with these is that compared to the 10 month strategy, these have relatively few occurrences. So instead of being concerned with Sharpe ratios, I'm mostly concerned with statistical significance.

The results are that few of the indicators result in statistically significant returns. Overbought/oversold points on the 2 stdev Bollinger Bands are not significant with almost zero return when greater than the 2 and too few observations when less than the -2 (though that return is about 20% annualized). With breakpoints at 20 and 80, the oversold RSI is not statistically significant, but the Overbought is statistically significant in the positive direction. In other words, when the RSI is greater than 80, the market generally keeps going up. However, at the 90 breakpoint, it is no longer statistically significant. Combining those two signals (greater than 80, less than 90 (or 95) is statistically significant and occurs in about 72 months (14.5% of total). This indicates to me that the RSI does work as a momentum indicator and as an OverBought/OverSold indicator. Finally, the Slow Stochastic with 20 or 80 is significant (though both are positive). There are only five cases where the Slow Stochastic was under 20 (including March) and the average return in the next month has been 5.4% (this April did not disappoint). Increasing the low breakpoint up to 25 still gives significance and increasing the high breakpoint all the way up to 95 still shows significance with positive returns (I expected negative). This would indicate to me that Stochastics are not particularly good as OverBought/OverSold indicators on a monthly basis. However, it is really the most extreme readings that really generate statistically insignificant results. So it might make sense to look at a stochastic of 98, but a stochastic of 85 or 90 is probably more indicative of momentum than anything else.

So how would an investor incorporate these into a strategy? In general, you would want to stay away from situations where you do not generate statistically significant returns and invest when they are. Including the strategy when the slow stochastic is greater 80 or 90 combined with the 200 day MA does not change returns. The 200 day covers the momentum effect already. Avoiding the situations where it is above 98 does not result in a statistically significant difference between the two results. The below 20 or 25 is not statistically significant either. However, both of those two increase the Sharpe ratio of the strategy (note I use since 1988 for this part, but since '67 for the rest).

For the Bollinger Bands, you may as well ignore the OverSold indication since it always comes when you are out anyway due to the 200 day. The OverBought indication increases the Sharp ratio, but its inclusion is not statistically significant compared to the 10month SMA strategy.

What is true for the OverSold in Bollinger Bands, is also true for the RSI. The 200 day already gets you out of the market. Even the best combinations of the OverBought indicator (noted before at 80 and 90) do not improve significantly on the 200 day MA. However, if you reduce the break down to 75 and do not invest when the momentum is greater than that, then you will significantly increase returns at the 10% level. I just kind of pulled that number out of the air so I was surprised it works and am more afraid that it was a bit of curve fitting. The only problem is that if you are an investor looking for total returns, you will reduce the months of investing by almost 50%. Even still, though, if you include the risk-free return, then the historic returns for this strategy are at 11.5% (10.7% SMA) with a standard deviation of 8.1%(11.6% SMA). That ratio of return to risk is consistent over multiple time periods. The ratio is also fairly consistent going down through 70 (and below, though the returns suffer since you are in that many fewer days). The good thing about the RSI is that it is easily incorporated into other strategies since it only uses closing prices.

One additional improvement (that could be some curve fitting action) would be to make three requirements for a position, the first is SMA or below 25 on the stochastic, the second is RSI less than 75, and the third that the stochastic is not greater than 95. This return is significantly greater than the original SMA almost at the 2.5% level. After incorporating the risk-free return, the Sharpe ratio is .71 vs. .63 for only the RSI requirement, and finally .43 for the SMA. I plan on backtesting the TAA strategy with the RSI requirement, but I cannot backtest the complete method since I don't have high/low information for total return indices on bonds and REITs. ETFs have the information, but the time frame is smaller which makes comparisons difficult (though implementation is still possible).

In conclusion, OverBought and OverSold indicators can have some value in pointing out time periods to avoid (or get in), but they seem to have the most value when used in conjunction with each other. There are many dangers with curve fitting when using this kind of analysis, so the general rule is to keep it simple stupid and test a strategy that works on one set of data on other sets and look for some kind of consistency in the returns.