Tuesday, December 09, 2008

Some readers have doubts about my assertion that mean-reversal models continue to be very profitable during this whole year of financial and economic disasters. So I backtested the mean-reversion strategy in Example 3.8 of my book with the most recent one-year SP1500 data. Without transaction cost, the Sharpe ratio is 4.8. Even after subtracting 10 b.p. round-trip transaction cost, it is still at 3.5.

Since the strategy was constructed over a year ago while I was writing the book, this most recent backtest is done on unseen data, with absolutely no look-ahead bias!

Tuesday, December 02, 2008

Actor Josh Brolin ("Milk", "W", "No Country for Old Man") said on Charlie Rose that his trading portfolio had a 57% return this year. His strategy is based on entering on reversal from a trend. Sounds pretty reasonable to me: maybe some of our readers can backtest this.

Below is the full interview, beginning with Sean Penn, then goes on to Gus Van Sant, then finally Josh Brolin mentioned his day-trading at the very end of the 1 hour show.

Interested? He is starting a multi-million dollar hedge fund to manage your money.

Currently their spreads are above 150 bp. Since the US government has nationalized Fannie and Freddie, this 150 bp is a riskless profit. As the blog Accrued Interest has pointed out, one reason this riskless profit exists is hedge fund deleveraging: nobody has the risk appetite to arbitrage this spread at a meaningful scale.

Brad Setser, a blogger at the Council of Foreign Relations, suggests that the Chinese government, who does have a lot of cash to benefit from this high yield, should go ahead and buy up these agencies debt. However, if you read the Chinese blogs and online comments, there is enormous internal pressure for the government to spend some of this money on infrastructure projects, social security, health care, etc., so I doubt that the Chinese government will have stabilizing the US mortgage market at the top of its agenda. As a result, arbitrageurs out there should have no fear that this opportunity will disappear any time soon.

Monday, October 20, 2008

Now that we are reasonably sure the financial world is not coming to an end yet, it is reasonable to ask how quantitative strategies have been faring under this extreme market stress. Despite reports of massive hedge fund deleveraging and negative YTD returns, I believe quantitative strategies, especially statistical arbitrage, have survived the period relatively unscathed. But here are a few of my thoughts:

1) The paltry 10% annual returns that a mediocre statarb fund can deliver is suddenly looking pretty good when the risk-free rate is under 1% and a prolonged bear market is on the horizon.

2) Mean-reversal models continue to beat momentum models in this crisis environment, as in previous crisis environments. This is not surprising because market returns have completely dominated specific returns, and of course market returns have been highly mean-reverting lately.

3) Models involving shorts are under some tumoil because of regime-change induced by new and ever-changing short-sale regulations. (For a while, I even have difficulties locating SPY for hedging purposes!)

4) Models are generally trained on data with far lower volatility than is recently realized. (Even incorporting VIX in a model does not guarantee that it can match realized volatility any better.)As a result, P&L's fluctuations are also much higher than usual, which induces deleveraging as a risk-management measure, which drains liquidity from the market, which in turn leads to still higher volatility. The usual viscious cycle.

5) Political risks in an election year have further reduced leverage and increased volatility. What if there is an assassination? What if the wrong party got elected? What if the paper-trailess electronic voting machines cause another dispute for a month? The nightmares will continue at least until the morning of Nov 5.

6) Normally, lack of liquidity in the market is good for statarb models since they profit from renting out temporary liquidity. However, this profitability assumes that there are buyers of last resort for the market: the long-term investors, the mutual funds, Warren Buffet, etc. When they are absent, statarb investors can be left holding the bag. Fortunately, Warren Buffet & Co. has indeed stepped in and we statarb traders can breathe a sigh of relief.

7) I have been paying particular attention to 3 websites since the crisis began in order to judge whether I should return to my normal leverage: the Ted spread (I am waiting for it to return to below 2), the Calculated Risk blog, and Paul Krugman's blog. This crisis is caused by panic in the credit market, so we should look for credit market returning to normal before declaring victory. The VIX? Not so much because I believe it is backward-looking in this environment.

8) Watching Fannie, Freddie, Lehman, AIG, WaMu, Wachovia, Iceland, and the initial bailout bill failed feels like reading Chapter 8 of Harry Potter and the Deathly Hallows: "The Ministry has fallen. Scrimgeour is dead. They are coming." The Dark Lord is taking over our economy.

Monday, September 29, 2008

Recently I participated in a webinar on using an algorithmic trading system called Alphacet Discovery. A link to the webinar can be found here. Some previous research using this system was described here.

Monday, September 08, 2008

Some years ago, I traded a simple index change strategy: buying stocks to be added to the SP500 index at the market open right after the index change announcement and exiting the position at the close, and similarly shorting stocks to be deleted. The results were mediocre at best.

However, new research by University of Edinburgh Business School suggests that a similar strategy works well for FTSE350 stocks (Hat tip to J. Rigg for the link). The trick is to predict which stocks are to be added or deleted 30 days before the announcement ("review date"), buy/sell the stocks, and close out the positions just before the review date.

Since the criteria for inclusion in the FTSE index is well-defined (and primarily based on market capitalization), it should not be hard for the interested traders to make their own predictions and profit from this rebalancing.

Monday, August 25, 2008

In their new book "Nudge: Improving Decisions About Health, Wealth and Happiness", U of Chicago economist Richard Thaler (of behavioral finance fame) and Harvard law professor Cass Sunstein gave a few pieces of personal finance advice, one of which coincided with my point in a previous post: buy insurance with the largest deductible available. The others are: don't invest much in your employer's stock, don't pay points on mortages, and don't pay for extended warranties. The book is reviewed in the NYT Book Review.

Friday, August 22, 2008

Ronald Domingues, an economics graduate student, has done an interesting study of how well a group of qualified investors with superior skills can predict the movement of the SP500 index. This group of qualified investors are selected by their track records of making correct predictions, and as a result of submitting their predictions going forward, they are eligible to be notified of the average predictions of other qualified investors, thus enabling them to make a better informed investment decision.

In other words, the elite will benefit from the collective wisdom of other elites -- sort of like the real world, isn't it?

How well does it work in practice? Well, they correctly predicted whether SP500 index will go up, down, or flat, a whopping 65.2% of the time. The details can be found on his website, where you can also sign up to see if you can join the elite.

Saturday, August 16, 2008

I have written before that my ideal trading model is one that has no parameters, and what ways there are to accomplish this. Actually, I forgot to mention that a trading strategy proposed by Dr. Andrew Lo discussed previously is in fact parameterless, and the technique is so general that it can be applied to any mean-reverting strategy.

The technique is simply this: maintain a long (or short) portfolio with capital proportional to the distance between a supposedly mean-reverting measure and its long-term mean value.

For e.g. if you are pair-trading PEP vs KO, and you believe that the spread between PEP and KO is mean-reverting, then this spread is the mean-reverting measure you should employ.

As the spread moves away from its mean, keep buying (or shorting) the spread in equal dollar amount. And as the spread reverts, keep selling (or buying) the spread in the same dollar amount. What this dollar amount should be depends on: a) the total buying power you possess, b) the expected maximum deviation of the spread from its mean, and c) how often you intend to buy/short. Note that point c is not a parameter: it is arbitrary and limited only by transaction costs, technology, and other operational issues. As for the expected maximum deviation, it can be obtained by observing the history of the spread since inception.

This scheme thus obviates the need for entry or exit thresholds, and with them, the possibility of data-snooping bias. (You may still want to impose an entry threshold based on transaction cost consideration - but that would not count as a free parameter.)

Friday, July 18, 2008

I wrote a blog article last year on why hedging isn't always better. The more I try to practice what I preached, the more I am convinced that most of the time, we are hedging the wrong risks.

Hedging should not be about reducing volatility in our portfolio. If reducing overall volatility is our goal, we should simply reduce leverage, as I have argued in my previous article. If volatility in a particular industry group is too much for us, (banks? brokerages? energy stocks?), just reduce the capital allocation in that group.

Sure, if hedging does increase your overall Sharpe ratio, go ahead and hedge to your heart's content. Kelly's formula tells us that the higher the Sharpe ratio, the higher the compounded growth rate of your wealth. The problem is, many of us hedge even when doing so do not clearly increase Sharpe ratio. A further problem is that we can achieve this maximum growth rate only if we use the high leverage recommended by Kelly's formula, but this leverage often exceeds what our brokerage would allow us. It is not clear that it is beneficial to waste our buying power on the hedge if we can only operate at sub-optimal leverage.

To me, hedging should be about eliminating the risk of ruin (equity reduced to zero) due to unexpected, catastrophic events. (Many sophisticated hedge fund managers cannot even meet this simple survival criterion, giving lie to the whole notion of "hedge" funds.)

For instance, let's assume that the worst one-day drop in the market index can be 20%. Furthermore, let's assume that you are able to endure a 30% reduction in equity during one trading period. Then you should not be afraid to have a net long exposure of 150% of your equity. In other words, not only should you not hedge, but you should go ahead and leverage your long-only portfolio 1.5 times.

I believe this notion of hedging, or buying insurance, extends to all spheres of our lives. We should avoid ruin, not mere losses. Otherwise, you will be paying too much on the insurance policy over the long term. In other words, max out the deductible on your insurance policy!

Thursday, June 26, 2008

Floyd Norris, the chief financial correspondent of The New York Times, suggested in his blog today that we are looking at "The Beginning of the End for High Oil Prices". What is the basis of his optimism? He argued that oil stocks have been lagging oil prices lately, and therefore equity investors must believe that high oil prices are causing demand destruction which will eventually reduce oil prices and oil companies earnings.

I beg to differ.

Look at the long-standing spread relation between an oil stock ETF and an oil commodity ETF, e.g. XLE vs USO, which I have been commenting on and tracking since October 2006. At the moment, this spread is within 1.4 standard deviations of its historical value. See my table here (subscription required). In other words, oil prices and oil stock prices are at approximately their long-time historical average. I would hardly call that suggestive of the beginning of the end.

Monday, June 23, 2008

NYTimes columnist and Princeton economist Paul Krugman has previously (see my link here) argued that the trading of oil futures should have no effect on spot oil prices, contrary to what many politicians and pundits think. Here is his latest elaboration of that argument.

Saturday, June 21, 2008

For readers who have been tracking the Gott and Colley presidential electoral vote prediction, they will notice a sudden switch over to a predicted Obama victory in the last few days. That is because polls from OH, VA and MO are now available -- surprising because the 3 states are not hitherto known for their Democratic leanings.

It seems to me that, after all, the stability of prediction at this early date is quite questionable due to the paucity of state polls, a point already made by Dr. Colley.

Thursday, June 12, 2008

There has been a lot of buzz lately about a simple statistical model proposed by astrophysicists Prof. Gott and Dr. Colley that uses the median polls of each state to predict the November electoral vote. (For our un-American readers, the electoral vote is what determines the outcome of a general election, not the popular vote, in case the nightmarish 2000 election has not already drilled this fact into the world's collective consciousness.)

Dr. Colley has set up a website to track daily such polls to gauge the mood of the states. The authors have tested this method on the 2004 election, as well as numerous sporting events outcomes, and found it to be highly predictive.

Right now, they are betting on a McCain victory.

But there is one caveat that many bloggers have pointed out, and it is the same caveat that I have previously applied to the predictive accuracy of political futures market such as intrade.com. The caveat is this: polls (and futures market) change with time. And at different times, they predict different election outcomes. So for example, at this point (June 2008), the polls predict a McCain victory, while the futures market at intrade.com predicts an Obama victory. Who is right?

The answer is: neither. As Dr. Colley has explained to me, no backtest as far back as the June of an election year has been conducted. (Their research was based on polls from September onwards.) So we do not know if the June polling prediction has any accuracy. Similarly, as I pointed out before, the futures market can swing violently even on Election Day, even in the last hours of an election.

One advantage of the Gott and Colley method though, is that the predictions resulting from median poll statistics are remarkably stable over time. In 2004, there was very little movement in the electoral tally from September through election day. Extrapolating this result, we can be somewhat more confident of their prediction vs. Intrade.com's, even at this early date.

And in any case, I have observed that the political futures markets are highly mean-reverting, implying that the current large 20 points spread between the Obama and McCain futures is destined to decrease in the coming months.

As an arbitrage trader, I have therefore proceeded to short the Obama future.

Tuesday, May 27, 2008

A portfolio manager that I used to work for like to pronounce that his trading models have "no free parameters". As is customary in our secretive industry, he would not elaborate further on his technique.

Lately, I begin to understand what a trading model with no free parameter means. It doesn't mean that it does not contain any lookback period for calculating trends, or thresholds for entry or exit. I think that would be impossible. It just means that all such parameters are dynamically optimized in a moving lookback window. This way, if you ask: "Does the model have a fixed profit cap?", the trader can honestly reply: "No, profit cap is not an input parameter. It is determined by the model itself."

The advantage of a parameterless trading model is that it minimizes the danger of overfitting the model to multiple input parameters. (The so-called "data-snooping bias".) So the backtest performance should be much closer to the actual forward performance.

Now, it is quite computationally challenging to optimize all these parameters just-in-time for your next order, but it is often even more difficult to do that in a backtest, given that a multidimensional optimization need to be performed for each historical bar. As a result, I personally have seldom traded parameterless models, until I get to research my regime-switching model. That model is almost parameterless (I left out a few parameters from optimization because of a lack of time, not because of any technical difficulties).

The reason backtest optimization can now be done within a few minutes is due to my use of Alphacet Discovery's server-based optimization engine. There may be other optimization software out there that performs similar functions efficiently -- I welcome comments from the reader.

Friday, May 23, 2008

My article on a trading strategy based on regime switching and machine learning techniques is now available on Automated Trader magazine (subscription required). The software I used to research this model is Alphacet Discovery, an industrial-strength backtesting, optimization, and execution platform.

Monday, May 12, 2008

The economist Paul Krugman advances an interesting argument today in the New York Times against the idea that high oil prices are due to hedge fund speculation.

He believes that speculative buying can lead to persistent high prices (which has been the case for the last few years) only if there is physical hoarding. Yet oil inventory level has been normal for this period.

Indeed, I have been trying to find a mean-reverting strategy to trade oil and oil-related assets for some time now. So far, none have outperformed (even on a risk-adjusted basis) just buy-and-hold energy stocks for the long term!

Saturday, May 10, 2008

Equity investors like to check out a company's price/earnings ratio before they invest in its stock. Likewise, real estate investors should do the same before buying a house. The equivalent of price/earnings ratio for real estate is the price/rent ratio, or inversely, the rent/price yield.

Sunday, May 04, 2008

Mark Hulbert of the New York Times just discussed 2 momentum strategies investigated by professors David Aboody, Brett Trueman and Reuven Lehavy.

Strategy A: pick stocks in the top percentile of 12-month returns. Buy them (individually) 5 days before their earnings announcements and sell them just before the announcement.

Strategy B: pick stocks in the top percentile of 12-month returns. Buy them (individually) 5 days immediately after their earnings announcements and hold them for 5 days.

Strategy A is very profitable: the annualized excess return is 47% before costs. (To be taken with a grain of salt due to the large transaction costs associated with trading momentum strategies, especially if small-cap stocks are involved.) Strategy B is very unprofitable: the annualized excess return is -43% before costs.

So what are the ways we can make best use of this research?

Naturally, instead of buying the top percentile after the earnings announcements, we should have shorted the stocks, thus making Strategy B a reversal strategy instead.

Furthermore, what about the bottom percentile of stocks? Should we have shorted them prior to the announcements, and bought them after the announcements? If so, we would have a very nice dollar-strategy for you statistical arbitrageurs out there!

Sunday, April 20, 2008

I am happy to have my guest blogger Heather Johnson write about economics again. (I hope to emerge from my hiatus soon after finishing the final draft of my book on quantitative trading.)

=====================================

8 Recommended Sites for Economic Research

By Heather Johnson

Without the proper research, your trading strategies are just a shot in the dark. Don't rely on soundbites and headlines to tell you how the economy is doing. A wise investor will be following trends and analyzing his or her own collected data. Below are eight recommended sites for economic research that traders should find very useful.

AEI Research - The American Enterprise Institute (AEI) for Public Policy Research is a non-profit group that is dedicated to educating people on economics, as well as politics, government and social welfare. You can find economic policy reports here that may influence your trading.

BEA – The U.S. Bureau of Economic Analysis (BEA) provides economic data in a timely and unbiased manner. This service to the public helps people to gather a more accurate view of the U.S. economy. Reports are categorized by region and industry.

CIBC World Markets – This organization is the corporate banking department of CIBC, one of the largest North American financial institutions. The global economic data provided by CIBC World Markets is considered to be amongst the most reliable sources for economic indicators.

FedStats – This site offers the full range of economic statistics provided by the U.S. federal government. It also gathers data and trends from over 100 agency Websites.

Federal Reserve – A trader should always be interested in what is going on with the Fed. Here, the institution provides regularly updated bulletins and data.

The Financial Forecast Center – While this isn't a virtual crystal ball, it does offer third-party, objective economic data and forecasts. Compiled by artificial intelligence and available in a free subscription, everything found on this site is completely quantitative.

Free Lunch – Ah, and you thought there was no such thing. This source of economic data and analysis begs the question, "Why pay anything?"

Bloomberg.com Economic Calendar – This helpful calendar is brought to you by one of the most well-known names in finance. A day trader will find this calendar most useful when trying to determine how the market will move.

Although the list above is far from exhaustive, it should give you plenty of information to chew on for a while. Whether you are trying to forecast today's market or the market over the next six months, you will need to conduct some serious research beforehand.

=====================

Heather Johnson is a freelance finance and economics writer, as well as a regular contributor for CurrencyTrading.net, a site for currency trading and forex trading information. Heather welcomes comments and freelancing job inquiries at her email address heatherjohnson2323@gmail.com .

Thursday, March 20, 2008

It might surprise some of you that lending money to middle-class American home owners to buy houses may be much riskier than lending money to Bangladeshi farmers to buy their first cellphones. (The beauty of diversification at work here?)

I have invited guest blogger Heather Johnson to explain microfinancing, and the quantitative risk management tools available if you want to do it yourself.

====

5 Steps to Managing Risk as a Microfinancier

By Heather Johnson

Microfinancing is a growing trend among investors, as it offers low-risk money opportunities and a way to bring social change to poverty-stricken communities. "Low-risk" doesn't equal "no risk," of course, so many potential microlenders are keen to learn the ins and outs of credit risk management in this arena. After all, most microborrowers have poor credit or no credit at all. A villager who needs $200 for starting a third-world chicken farm isn't going to fare well in that department, as you can imagine.

The good news is, even in the event of a loan delinquency, you won't be losing a substantial amount of money. Most microloans range from a few hundred to a few thousand dollars. Any losses are unfortunate, though, so you will want to manage your microlending risks and keep loan delinquencies to a minimum.

Here are five steps to managing your risk as a microfinancier:

Research Your Borrower – If you're lending through a site, such as Prosper, then you will have access to your borrower's profile and credit reports. However, don’t be afraid to ask more questions if you have any doubts about this person's ability to repay the loan. If you are lending the money through other channels, definitely start with the credit reports and interview the borrower.

Lend With a Group – Though this won't make your borrower any more likely to repay a loan, lending with a group will help to spread out the cost and share responsibility. In other words, you will be risking less money and will have other people with the same interests to consult with.

Use Analytical Tools – Third-party applications can help you determine what is working best with your microlending. Both seasoned microlenders and newcomers are highly encouraged to use such tools. Microfinance sites that come with excellent built-in tools include Trickle Up, Opportunity International and Heifer International.

Provide Incentives – Consider an incentive program for those who pay on time. A small, inexpensive gift will be very appreciated by those living in third-world countries. Lenders have used food, such as rice or corn meal, as a bonus.

Be Proactive in Collecting – This doesn't mean you should harass your borrowers. However, you should research your delinquent accounts as soon as payments are late, rather than letting them go into default. There could be a simple breakdown in communication or an emergency on the borrower's end.

One of the biggest draws of microfinancing is the relatively low risk involved. However, that doesn't mean that you will have a 100% success rate. The best way to get your feet wet is to start with a small loan. Something as low as $100 will let you learn the process and allow you to become more comfortable with the system. Microfinancing isn't for everyone, but you may just find your niche with this kind of investment.

====

Heather Johnson is a freelance finance and economics writer, as well as a regular contributor for CurrencyTrading.net, a site for currency trading and forex trading information. Heather welcomes comments and freelancing job inquiries at her email address heatherjohnson2323@gmail.com .

As home prices soared in 2004-5, consumers, realtors, mortgage lenders,homebuilders, and investment banks all benefited. But few thought the goodtimes would last -- after all, everyone had learned to recognize a bubblewhen they saw one. If that's the case, how did mortgage losses turn out solarge, and why do we find ourselves today confronting a major financialcrisis? This presentation will survey the damage resulting from thesubprime mortgage crash and provide a possible explanation for the magnitudeof the surprise which may be relevant to investors and risk managers inother markets.

BIO

Kenneth Posner is a managing director and head of the mortgage finance andspecialty finance equity research team. Prior to joining the Equity Researchdepartment in 1995, Ken worked in Morgan Stanley's investment banking group,where he focused on commercial real estate transactions. He previouslyserved as a captain of infantry in the US Army, and was airborne and rangerqualified. Ken earned a B.A. from Yale University in 1985 and an M.B.A. withhonors from the University of Chicago Graduate School of Business in 1991.He is a Certified Public Accountant and holds the Chartered FinancialAnalyst and Financial Risk Manager designations

Tuesday, February 19, 2008

Momentum vs. mean-reversion has been a perennial theme in investing, not least quantitative investing. My contention has always been that momentum strategies are generally less reliable than mean-reversal strategies. (See here or here.) My reader Mr. J. Rigg told me about a recent article in the Financial Times suggesting that momentum strategies are alive and well, according to the research by Prof. Elroy Dimson et al at the London Business School. The strategy is very simple: buy the stocks with the highest returns in, say, the last 12 months, short the ones with the lowest returns, and hold for, say, 1 month. If you run this strategy for the top 100 UK stocks from 1900 to 2007, the average annualized return before costs is about 10%.

There are, however, a number of caveats worth noting in this study:

First, it is very transaction-costly to implement momentum strategies for small or even mid-cap stocks. If you factor in costs, 10% can easily become 5% -- not an impressive number even for a dollar-neutral strategy. (Though one should note that the infrequent rebalancing renders transaction costs consideration less important.)

Second, the drawdown durations are quite lengthy -- sometimes exceeding 2 years. This is not acceptable performance for many hedge funds. Such lengthy drawdowns have been a common feature of many momentum strategies that I have personally studied and traded.

Third, and most interestingly, in the period 2001-2007, this momentum strategy has stopped working altogether for the US market, while continuing to deliver positive returns in other markets!

What may be the reason for this dichotomy between US and international markets? Momentum strategies generally derive their power from the slow diffusion and analysis of information: if all investors are simultaneously aware of all the relevant financial information about a company and can analyze the significance of the information instantaneously, they will have come to a consensus fair market value instantaneously and no momentum in the price will result. Hence perhaps the disappearance of momentum in the US equity market means what most people know already: that it is the most efficient equity market of all.

Sunday, January 27, 2008

There were reports that quant strategies have been suffering again in January, given the market turmoil generated partly by the Societe Generale scandal. Mr. Matthew Rothman of Lehman Brothers pinned the blame on momentum strategies (Hat tip: 1440 Wall Street). I partly agree with that assessment, but the full picture is more nuanced.

As I have written in my previous post, December has been a disastrous month for value (or mean-reverting) strategies, based on both public commentaries and personal experience. Yet, as always, mean-reverting strategies bounced back in January and all the pain is gone. In fact, the Societe Generale scandal and the subsequent 1/22 Fed bailout has been a huge bonanza to mean-reversion traders, just like the August disaster had been. (Remember: mean-reversion traders profit from providing liquidity during market panic.) Meanwhile, though December has been a good month for momentum strategies, January has become increasingly inhospitable to them. But one should not be surprised at all. As I have explained before, momentum strategies generally tend to be more unstable and have lower Sharpe ratios than reversal strategies. Any wise quantitative portfolio managers would always allocate a lower proportion of capital to momentum strategies than to reversal strategies. Hence it is no excuse at all to say that a quant portfolio has been hurt by losses in momentum trading -- they are to be expected quite frequently!