Friday, January 16, 2009

Algorithmic Trading Technology Update

Lately a number of new (at least to me) technologies useful to the algorithmic trader came to my attention:

1) Matlab2IB API

I said in my book that it is difficult to use Matlab as an execution platform. As Max has pointed out, this is no longer true. This inexpensive API connects Matlab to your Interactive Brokers' account. It allows you to retrieve historical data, get real-time quotes, and send orders. In other words, all the basic functions you need to create your own execution engine.

2) R

Many people (hat tip: Steve H.) know that R is an open-source (i.e. free) alternative to Matlab. I find that there is also an API that connects R to Interactive Brokers, though I have not tried it myself.

3) Trade Ideas

Trade Ideas (hat tip: Russell M.) is a complete automated trading platform that provides connections to different brokerages (scottrade, IB, TD Ameritrade, etc.)

4) Amazon EC2 cloud computing platform

Running out of PC's to run your myriad strategies? Try Amazon's EC2 cloud computing platform. For a modest hourly fee, you get access to an instance of either Linux or Windows environment, and you can add as many instances as you want. The connection speed is supposed to be at least 10x T-1 line, well-suited to high frequency traders . Here is some other performance benchmarks.

Monday, January 12, 2009

Hedge funds move to "easy-to-understand liquid strategies"

See this interesting article (registration required) on FT on the state of the hedge fund industry. Paul Tudor Jones, Citadel, and Fortress Investment Group are all said to be moving to "easy-to-understand liquid strategies", otherwise known as "statistical arbitrage".

(By the way, I have been urging traders to do just that in my book.)

Friday, January 09, 2009

How is the job market for quants these days?

Felix Salmon claimed in this post (hat tip: J. Rigg) that the quant job market is alive and well. However, I haven't heard much from the usually diligent headhunters in the last few months, which doesn't bode well. Maybe some of our readers can comment on the current state of the quant job market?

In that same post, Felix wondered whether to incorporate the extraordinary period of 2008 as part of backtesting data. Actually, I don't see much of a problem here -- of course one should include 2008. The only reason a trading model would have performed poorly in 2008, as opposed to 2006, 2007 or 2009, would be that its parameters are fitted too tightly to historical data. If you try out some parameterless trading models like I advocated, 2008 is not that unusual except for its higher volatility.

Tuesday, December 09, 2008

The enduring profitability of mean-reversion strategies

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

Josh Brolin on day trading

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.

Friday, November 07, 2008

My book on Quantitative Trading is published

My book on Quantitative Trading has been published and is now available from Amazon.com. Many thanks to all of you for your ideas, comments, and support!

Tuesday, October 28, 2008

Some riskless profit, and why it exists

Numerous commentators have pointed out the enormous yield spread between agencies debt (Fannie/Freddie) and US Treasuries.

Here are some links kindly provided by a reader: 10 yr Fannie/Treasury, 5 yr Fannie/Treasury, 10 yr Freddie/Treasury, and 5 yr Freddie/Treasury.

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

How does the financial crisis affect quantitative trading?

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

Webinar on algorithmic trading system

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

Index change strategy

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

Behavioral finance we can all use

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

Predicting SP500 futures using investor sentiment

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

More on parameterless trading model

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

What are we hedging here?

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

Have oil stocks exhausted their run?

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

Futures markets have no effect on spot prices

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

Statistical electoral vote predictor: Update

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

Statistical model predicts a McCain victory?

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.

Wednesday, May 28, 2008

Tuesday, May 27, 2008

Parameterless trading models

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

Machine Learning + Regime Switching = Profitability?

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

Are high oil prices due to hedge fund speculation?

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

5%: an important number for real estate investors

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.

What is a reasonable rent/price yield for US residential real estate? According to Morris Davis of the University of Wisconsin-Madison, and Andreas Lehnert and Robert Martin of the Fed, the long-term average is 5% (i.e. the annual rent of a house should be about 5% of its market value). As the Economist magazine has reported, at the height of the US housing boom, this figure dropped to as low as 3.5%.

Currently, this ratio is at about 4.3%, which implies that average US housing price has to drop another 14% in order to return to its historical fair value.

Can quantitative traders profit from this prediction? Well, we can always short the S&P/Case-Shiller Home Price Indices futures at the Chicago Mercantile Exchange.

Sunday, May 04, 2008

A combination momentum and mean reversal model based on earnings annoucements

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

8 Recommended Sites for Economic Research

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. Free Lunch – Ah, and you thought there was no such thing. This source of economic data and analysis begs the question, "Why pay anything?"
  8. 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

5 Steps to Managing Risk as a Microfinancier

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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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 .

Monday, March 03, 2008

Upcoming seminar on subprime mortgage crisis

For readers who live in the New York area, here is an interesting upcoming seminar at Columbia University:

The subprime mortgage crisis of 2007: Anatomy of a market failure

Date: 03-10-2008
Start Time: 6:00pm
End Time: 7:30pm
Speaker: Kenneth A. Posner, Morgan Stanley
Location: 412 Schapiro CEPSR, Davis Auditorium


ABSTRACT

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


BIO

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

Friday, February 22, 2008

Had it been really that bad?

According to Eurekahedge Hedge Fund Index, hedge funds had the worst performance in eight years during this past January. And long-short equity funds had the poorest performance among them all.

Tuesday, February 19, 2008

Looking for momentum? Check outside the US

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

Are quant strategies in trouble yet again?

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!

Saturday, December 15, 2007

A sea of pain

This Economist Magazine article confirms my personal experience that value investing is in a sea of pain at the moment. The reasons are quite different from the last time (during the dotcom era) when value investing was in the doldrums. This time around, people are not full of euphoria about the prospects of growth stocks -- they are just getting increasingly gloomy of value stocks which seem to be getting cheaper by the minute.

Friday, November 23, 2007

Seasonal trades in stocks

Readers of this blog have seen my discussions of various seasonal trades in commodities futures (e.g. see this article). Recently, Mark Hulbert of the NYTimes drew our attention to a seasonal trade in stocks. The strategy is very simple: each month, buy a number of stocks that performed the best in the same month a year earlier, and short the same number of stocks that performed poorest in that month a year earlier. The average annual return is more than 13% before transaction costs, and since it is market neutral, this already considerable return can be leveraged to 2 or 3 times higher. Also, since it turns over the stocks only once a month, transaction costs should not be a major problem. The strategy was developed by Profs. Steven Heston and Ronnie Sadka, and details can be found online here. Besides its simplicity, the strategy is not as affected by survivorship bias in the data set as a mean-reverting strategy, since survivorship bias would tend to lower its backtest performance by excluding very poorly performing stocks that we would short. All in all, it seems to be a market neutral strategy made for retail trading!

Saturday, October 27, 2007

Economist article on quant funds

The media seems to have an endless fascination with quant funds. Here is the latest article from the Economist magazine, summarizing the postmortem published by several researchers. (Hat tip, once again, to reader Mr. J. Rigg.)

The key points are as follows:

1) Quant funds are now becoming the primary market makers in many securities, which normally would provide liquidity and decrease volatility.

2) Unlike ordinary market makers, however, quant funds are highly leveraged.

3) Because of the high leverage, in the face of large losses these market-making quant funds are forced to liquidate their assets instead of buying them, thus behaving in a way opposite to ordinary market makers just when the need for liquidity is direst.

4) Thus quant funds are actually contributing to instability of the market despite their apparent market-making function.

Fortunately, when all else has gone wrong, there is alway Mr. Bernanke to count on ...

Sunday, October 07, 2007

Emerging markets stocks vs. natural resource stocks

Emerging market stocks have been reaching new highs almost everyday (see this article in the Economist magazine), and the natural resource sector has been on a tear as well. Given the giddy valuations of both sectors, which one is a better relative buy at this point? For those of you who have been following the IGE-EEM spread that I proposed before, its value is at an all-time-low these days -- it was at -6.77 standard deviations. Given their historical cointegration, I wouldn't be surprised if it will revert to a more sane value in the near future.

Saturday, October 06, 2007

How a mean-reversion strategy performed in August

Prof. Andrew Lo and Mr. Amir Khandani at MIT recently wrote a paper on "What Happened To The Quants In August 2007?" (Hat tip to my reader Mr. J. Rigg for the article). Most of their conclusions confirm what many observers already suspected: that the loss is likely due to the simultaneous forced liquidation of portfolios holding similar positions by various quantitative funds. What is noteworthy, however, is that they constructed a mean-reversion strategy and observed what happened to it during August. This strategy is very simple: buy the stocks with the worst previous 1-day returns, and short the ones with the best previous 1-day returns. Despite its utter simplicity, this strategy has had great performance since 1995, ignoring transaction costs. The Sharpe ratio was an astounding 53.87 in 1995, gradually decreasing to 4.47 in 2006. However, the strategy also had a disastrous few days on August 7-9, suffering a cumulative (arithmetic) return of -6.85% in those 3 days. Then on August 10, it rebounded, like the rest of the quant funds, with a return of 5.92%, almost reversing all of its previous losses. For me, this experiment reveals three interesting points: 1) a simple price factor seems to capture most of the performance of the complex factor models run by the gigantic hedge funds; 2) even technical mean-reverting factors suffer losses, not just momentum (growth) factors based on fundamentals; and 3) if one wants to avoid disasters and enjoy spectacular returns, even a one-day holding period is too long. I haven't done the experiment myself yet, but I bet that if we were to liquidate the portfolio at market close each day, not only would we avoid the loss of -6.85% in those 3 days, but would probably end up with a positive return of a similar magnitude!

Thursday, September 20, 2007

So how much did quantitative strategies actually lose last quarter?

The numbers have started to come in: Morgan Stanley lost $480MM last quarter due to quantitative trading -- about 10% of operating profits.

Wednesday, September 19, 2007

Hedge fund replication

I wrote about how hedge fund returns can be replicated with simple factor models. I just learn that IndexIQ, a company in Rye Brook, NY, has just launched such products available to retail investors as managed accounts.

Monday, September 17, 2007

More discussion on returns, risk and leverage

Previously I discussed an important debate on whether it is better to increase a portfolio's return by taking on more risks (e.g. holding high-beta stocks), or by increasing leverage but holding low-risk assets. A reader Mr. F. Sudirga has kindly send me some other research papers supporting the conclusion that increasing leverage is the preferred way.

In a paper titled "Risk Parity Portfolios", Dr. Edward Qian at PanAgora Asset Management argued that a typical 60-40 asset allocation between stocks and bonds is not optimal because it is overweighted with risky assets (stocks in this case). Instead, to achieve a higher Sharpe ratio while maintaining the same risk level as the 60-40 portfolio, Dr. Qian recommended a 23-77 allocation while leveraging the entire portfolio by 1.8. The stock-bond dichotomy is for illustration only -- the results can be improved further by including other asset classes such as commodities.

The only reservation I have with all this enthusiasm with increasing leverage is one that many risk-managers are aware of: most of the research uses concepts such as standard deviations to measure risk. But as the LTCM debacle as well as the recent subprime mortgage meltdown has reminded us, risky events have fat-tailed distributions. Therefore, one should be very wary of using standard deviation as the sole determinant of leverage.

Monday, August 27, 2007

Whatever happened to the XLE-USO spread?

Recently Mr. Teetor, a subscriber of mine, has posted an enthusiastic comment on trading the XLE-USO spread that I suggested. While Mr. Teetor has a lot of success trading this spread, I must say that I have lost faith in the cointegrating characteristic of this spread because of two reasons:

1) The spread appeared to have experienced a regime-shift since the historic backtest period before August 2006: the out-of-sample performance of the spread since then did not support cointegration; and

2) The fundamental argument in support of cointegration between XLE and USO fell apart upon closer investigation.

The two reasons are, I believe, intertwined. Unlike GLD (part of a much more cointegrating spread that I discussed and tracked in my premium content area), USO does not actually hold commodity assets in its portfolio. It holds nearby futures contracts in oil. When the USO fund started trading in April 2006, its price per share was very close to the spot oil price. Now, however, USO is trading at about $53, while spot oil price is at about $70.6. How can a fund that is supposed to reflect oil price diverge so much from it after a year and 5 months? The reason is that the oil futures market has been in contango since 2005 or so, i.e. far month futures costs more than the nearby contracts, which results in negative roll-yield for long position in oil futures. In the historic period from which the XLE-USO cointegration relation was established, oil futures market exhibited backwardation: far month futures cost less than nearby futures. This regime shift partially explains the breakdown of the cointegration relation in the present out-of-sample period.

The lesson I have learned from all these is to avoid analyzing cointegration relation when either side of a spread involves futures contracts at different points of the forward curve, at least on a time-scale when the shape of that curve might change. (I argued before that XLE, the other side of the spread, can be modeled as an average over the entire forward curve.) Meanwhile, the fund manager of USO would really have done investors a much better favor by getting their hands dirty, leasing some oil storage tanks and buying some real oil assets rather than keeping their hands clean and dealing in futures contracts alone. After all, retail investors like myself can just as easily buy oil futures ourselves, but we can't very well go out and rent an oil tank.

Thursday, August 23, 2007

CIO Magazine Innovation and IT Strategy blog

Ms. Elana Varon who writes the CIO Magazine's Innovation and IT Strategy blog quoted me today in saying that some quantitative investment models are over-engineered. This old article of mine is an elaboration of my view on this.

Wednesday, August 22, 2007

The Perils of Momentum Strategies

Not so long ago I was an agnostic with respect to choosing between mean-reverting and momentum models: I felt that depending on the particular model or environment, each can be profitable. Lately, however, I am increasingly skeptical about the long-term profitability of momentum models. The main reason is the increasing competition among traders, algorithmic or otherwise.

As I mentioned in my previous post, when more and more traders decide to adopt mean-reverting strategies, all they do is to eliminate the trading opportunity. The market becomes efficient, and nobody makes any money, but nobody loses either. In contrast, when more and more traders decide to adopt momentum strategies, the momentum will be established sooner and sooner. For e.g. in the case of event-driven strategies which are mostly momentum-based, the new equilibrium price will have been established almost instantaneously after the event is publicly disclosed. Under this circumstance, any momentum trades that are entered just a little bit late will not only suffer zero profit, but will likely suffer losses as mean-reversion almost inevitably takes over. But how soon do we need to enter in order to avoid this fate? (It can't be too soon either because often a trend need to be established first in order to trigger an entry signal.) It is unfortunately a moving target as competition increases: 1 day earlier might work now, but may not be sufficient a few months from now. (The exit trade also suffers the same problem, as we don't know how long the momentum will last.) It is a dangerous game to play.

Indeed, time is often a friend of the mean-reversion trader: the longer s/he waits, perhaps the more profitable the trading opportunity. And if s/he enters too early and suffers a loss, s/he can always double the position. As I explained in a previous article, stop-loss should generally not be applied to mean-reverting trades on a short time-scale. So even if the trader does not double-up the position, an eventual re-couping of the loss is more than likely. On the other hand, time is an enemy of the momentum trader: if s/he loses the first-mover advantage and suffers heavy loss, I argued in that article that a stop-loss is advised, and thus the loss is forever locked-in.

Given this asymmetry, it is no wonder that algorithmic traders have been warning me long ago that it is hard to find a profitable momentum trade. And I was silly enough not to pay heed to them until now.

Tuesday, August 21, 2007

Further debate on factor models

A reader from a hedge fund (who wishes to remain anonymous) sends me some thoughtful comments about factor models. He has graciously allowed me to reprint them here:

"With regards to your blog entry, 'The Robin Hood regime': this weekend I was actually also thinking about the philosophy behind factor models which you allude to in the post. I am wondering if you have any other thoughts as to what service factor models provide? Relegating them to 'just arrogant bets on the correctness of the managers' convictions' isn’t completely intellectually satisfying to me.

I look at factors as such: the returns I get for exposure to various factors can come either because the market is inefficient and systematically misprices those factors (alpha), and/or because I am providing some service via the exposure (and collecting some kind of risk premium associated with that service). My question #1 to you is, are you convinced that all of the returns to factor models are indeed simply from risk premiums and not alpha? If alpha exists, it’s less clear that a service needs to be provided to the market, at least to me.

However, let’s assume (as I believe your boss did) that in the long run, the market is efficient. Then, you will be compensated for factor exposure only by bearing some risk or providing some service. In my mind, some particular conviction of a manager doesn’t necessarily qualify for a risk factor in and of itself - I think we agree on that point. But are there possible fundamental, valuation-based explanations behind these factors? Perhaps low VALUE companies are generally those companies with bad recent performance but which are expected to turnaround / mean-revert (as you somewhat suggest in your post) and the risk you bear when buying a low P/E company is “turnaround risk”. Or perhaps high MOMENTUM companies are companies riding an industry trend and you are bearing “trend continuation risk”. So, my question #2 to you is, are you convinced that there are no such explanations?

If factor models do indeed work, it seems to me that there must either be real risks behind the factors, or alpha, or both."

And here is my response:

"I believe the service that some value factors provide is the efficient allocation of capital to those companies that deserve them, just like any value investors do. In this case, the factors hope to identify these companies faster than humans can, and therefore bring capital to them sooner. I have no argument with these factors as they also provide liquidity, albeit on a longer time-scale. However, with regard to various momentum factors, they are in fact just betting on certain behavioral characteristics of investors, or on the slow dissemination of news, etc. You can argue that they provide a service by improving the efficiency with which information about companies disseminate. But the problem is that once everybody are using these momentum factors, the market becomes efficient and any further bets generate losses.

So I am quite willing to accept that many of these (momentum) factors represent alpha, but these factors are generating more losses as more investors employ them. I am also willing to accept that many of the (value) factors represent risk premia. As more investors employ these, the profit goes to zero, but fortunately not negative as the risk also disappears."

Sunday, August 19, 2007

The "failed" factors have reverted

As I said in my CNBC interview, investors just got to be patient with the factor models. Sure enough, we are seeing reports that the large drawdown suffered by these models has already reverted as of Friday.

Saturday, August 18, 2007

The Robin Hood regime

It has become apparent to me in the last month that there has been a massive transfer of wealth from the gigantic hedge funds running factor models to many day-traders with accounts less than $10M. I call this the Robin Hood regime (regime being a common technical term referring to a particular trading environment, as in "this is a mean-reverting regime"). Many, many day-traders that I heard from have had one of their best months in a long while. Is this just luck, or is there a deeper explanation?

I believe that there is a philosophical difference between factor models and many of the mean-reverting strategies that day-traders like to employ, a difference that works to the day-traders' favor. I recall a wise musing from one of my former bosses: he believes that a trading strategy will be profitable in the long run only if it performs a service for other market participants. The service that mean-reverting strategies performs is the provision of liquidity, in particular, short-term liquidity. What service does factor models provide? They seem to be just arrogant bets on the correctness of the managers' convictions. For e.g. I believe that stocks with good earnings will rise in value. Or, I believe that stocks with increasing price momentum will continue in that momentum. True, most of the time the convictions of the best managers are correct, and many of these convictions are actually mean-reverting as well (for e.g. the "value" factors). But on average, a factor model may take away as much liquidity from the market as it provides. And sooner or later, some of these convictions are wrong. Maybe not wrong for very long, but long enough to cause investors' panic. This may be part of what we are seeing recently.

Now am I advocating that every gigantic fund simply just switch from factor models to pure mean-reverting strategies? No: that would be impractical when the portfolios involved are in the tens of billions. If everybody run mean-reverting strategies, there will hardly be any mean-reversion left to profit from. (Look what happened to pair-trading in the last few years.) When you are an investor in a multi-billion fund, and you expect the fund to deliver higher returns than the risk-free rate, you just have to accept that high short-term returns volatilities will be part of the bargain, just like any long-term investments.

Tuesday, August 14, 2007

CNBC Interview video

Here is the link to my interview on why quantitative models are losing money of late:

Monday, August 13, 2007

CNBC interview

Folks, I will be appearing on CNBC tomorrow (Tue, August 14) for a live interview about quantitative trading with Maria Bartiromo. The segment will be aired around 3:20 pm ET.

A reader's comment on quant funds' losses

A reader of mine (who wish to remain anonymous) pointed out that most of the losses seem to come from low-frequency trading models, while high frequency models continue to perform superbly. This also confirms my own experience. My enthusiasm for high frequency trading was expressed previously here and here.

An update on why quantitative funds are losing money recently

A story just came through Dow Jones newswire ("How Black Boxes Became Pandora's Boxes" by Spencer Jakab) suggesting that recent losses are due to factor models gone bad. Given my expressed distaste for such models, that should have been my first guess instead of blaming the "exotic" models!

Why are quantitative funds losing money these days?

The New York Times today has an article about several well-known quantitative hedge funds incurring significant losses in recent months. I was quoted in saying that traders running similar quantitative models could contribute to market volatility. This is certainly true if the strategies are trend-following. What puzzles me, however, is that most statistical arbitrage strategies are mean-reverting: they buy during investors' panic, and sell during investors' euphoria, and should be richly rewarded in this volatile market by providing sorely needed liquidity. And indeed, from my own experience as well as hearing from other traders, mean-reverting strategies are performing very well recently. So where did those losses come from? My guess is that, as I have observed before, many traditional stat arb strategies are getting boring and generating diminishing returns, and therefore many of the quantitative researchers are driven (by their own professional pride or their bosses) to come up with more exotic and higher-return strategies that ultimately may not stand the test of time. For us quants, remembering Occam's razor and that our job is to generate returns as opposed to producing brilliant mathematical models is often a hard lesson to learn.

Thursday, August 02, 2007

Currency trading resources

For those of you who are into currency trading, this blog looks interesting. You can also subscribe to a free daily email newsletter called "The Daily Pfennig" from www.everbank.com.

Monday, July 16, 2007

More on news-driven trading

For readers who are interested in news-driven trading, here is another article. This article pointed out a contrarian view offered by Richard Oldfield, a fund manager, who says “price movements in response to news are exaggerated, providing an opportunity to those who do not base too much on what has happened in the last hour or 24 hours.” [my italics] I am not sure whether Mr. Oldfield's statement is based on any statistical research or not -- as far as I can ascertain, his book "Simple But Not Easy” cannot be purchased anywhere in North America. However, I should point out that this statement is in contradiction to an abundance of research done on Post Earnings Annoucement Drift (PEAD): the phenomenon that stocks with positive earnings news continue to trend up for a long time. Furthermore, if indeed price movements in response to news are exaggerated (contrary to the findings of PEAD), it would seem to suggest a reversal trade rather than suggesting that the news can be ignored!

Thursday, June 28, 2007

Fair value of currencies

In the same issue of the Economist magazine I cited previously, there is an article about the valuation of currencies based on 13 quantitative models that Morgan Stanley developed. They found that the most overvalued currency (against the US dollar) is the New Zealand dollar, while the most undervalued currency is the Japanese Yen.

What about the Chinese Yuan that arouses much hoopla in Congress? The models found it to be almost exactly fairly valued.

Wednesday, June 27, 2007

News-driven algorithmic trading

There is an article about algorithmic trading in the latest issue of the Economist magazine, where it says that one-third of all stock trades in the US are due to algorithmic trading. This should not surprise us. What is more interesting is its mention of the electronically tagged news products that are coming out of Dow Jones and Reuters, which purportedly enable computers to buy or sell stocks immediately upon the release of a news item. The data suppliers regard these news products as some kind of secret high-tech weapons: "Dow Jones claims the business is so secretive that it cannot divulge details of customers." Is this hype justified?

Actually, to get a taste of news-driven trading, you don't need to pay a hefty fee to buy one of these products. You can just monitor the regularly scheduled economic news release (consumer confidence, new homes sales, crude inventories, etc.), trade the relevant futures, and proceed to make millions.

The fact that most of us who monitor these economic news releases haven't yet made our millions is an indication whether these news products will help you do the same. The information contained in the news is often difficult to interpret. Even the initial price reaction to the news may be wrong, leading to swift reversal after an apparent initial trend. And finally, what's wrong with scanning for sudden price movemenets, and then check for possible news to confirm that the price movement is due to the release of new information?

Friday, June 22, 2007

Pair trading stocks and the life-cycle of strategies

I have discussed in various articles trading the spreads between pairs of ETF’s, or between a basket of stocks against an ETF using cointegration technique. There is, however, a glaring omission, as I haven’t yet mentioned the classic statistical arbitrage strategy: pair-trading stocks.

There are pros and cons on applying cointegration to pair-trading stocks. On the pro side: because of the large number of stocks, we can enjoy a highly diversified portfolio that improves the validity of our results. Even if a number of spreads fail to cointegrate going forward, we can count on a larger number of spreads that still do. (For e.g. my USO-XLE spread fell apart, while GLD-GDX spread is still tightly cointegrated.) There are 2 main cons: 1) stocks are subject to various specific risks which may render our purely statistical model useless, especially in M&A situations. Therefore it is customary to remove such stocks from our portfolio when they are involved in special situations – however, by the time the news is public we may have incurred substantial loss already; also 2) because of the technique’s long history, it became known to many hedge funds and indeed students of finance, and therefore pair trading stocks has not been very profitable, especially in the period 2003-2005. Here I plotted the excess returns of the strategy as applied to US bank stocks from 20010102-20041231. (Excess returns means credit interest on margin balance is not included.)

Interestingly, when a strategy becomes too popular and less profitable, many traders start to abandon it, or at least reduce their trading capital invested in the strategy. After a while, its popularity decreases, and the profitability recovers! This life-cycle of strategies reveals itself as mean-reversion of strategies, on top of mean-reversion of stock prices. In our case, this strategy recovery starts in 2005, and is still in full-force. Here I plotted the excess returns of the strategy as applied to US bank stocks from 20050103 to 20070531:


The average annual excess return in 2005-now is about 7.7% (on one-side of capital), and the Sharpe ratio is 0.8. Since I have applied the technique on only one industry group, diversification is limited and therefore the Sharpe ratio is low. For the interested readers, they can attempt to apply this technique to more industry groups and perhaps generate a higher Sharpe ratio. Even with just one industry group, this trading strategy may be a good complement to a portfolio heavy on trend-following strategies and therefore require a reversal model to smooth out the returns.

I have started a model portfolio in my subscription area to demonstrate this strategy which will be updated daily around 3pm ET. Other details of the strategy will be detailed in an accompanying article there as well.


The effect of terrorism on forex trading

Here is an interesting and thoughtful article, with reference to an academic study, on how terrorism affects forex trading.

Tuesday, June 12, 2007

A factor model that I can believe in

Some of you may remember that I preached about the uselessness of factor models in predicting short term return, and the unreliability of many exotic factors even for the long term. In particular, factor models are especially inaccurate in valuing growth stocks (i.e. stocks with low book-to-market ratio), as evidenced by such models' poor performance during the internet bubble. This is not surprising because most commonly used factors rely on historical sales or earnings measures to judge companies, while many growth stocks have very short history and little or no earnings to report. However, as pointed out recently by Barry Rehfeld in the New York Times, Professor Mohanram of Columbia University has devised a simple factor model that rely on 8 very convincing factors to score growth stocks. These factors are:

  1. Normalized return on assets.
  2. Normalized return on assets based on cash flow.
  3. Cash flow minus net income. (i.e. negative of accrual.)
  4. Normalized earnings variability.
  5. Normalized sale growth variability.
  6. Normalized R&D expenses.
  7. Normalized capital spending.
  8. Normalized advertising expenses.
By "normalized", I mean we need to standardize the numbers with respect to the industry median. To Prof. Mohanram's credit, he claims only that these factors will generate returns after 1 or 2 years, not the short-term returns that many traders expect factor models to deliver. The excess annual return based on buying the group of stocks with the highest score and shorting the group with the lowest score is a good 21.4%. Not only does the combined score generate good returns, but each individual factor also delivers good correlation with future returns, proving that the performance is not due to some questionable alchemy of mixing the factors. For example, it makes good intuitive sense that extra spending on R&D and advertising will boost future earnings for growth stocks.

Interestingly, Prof. Mohanram pointed out that most of the out-performance of the high-score stocks occur around earnings announcements. Hence for those investors who don't like holding a long-short portfolio for a full year, they can just trade during earnings season.

One caveat of this research is that it was based on 1979-99 data (at least for the preprint version that I read). As many traders have found out, strategies that work spectacularly in the 90's don't necessarily work in the last few years. At the very least, the returns are usually greatly diminished. In the future, I hope to perform my own research to see whether this strategy is still holding up with the latest data.

Monday, May 14, 2007

Platinum vs. Gold

The Economist magazine has given us a fundamental reason to buy platinum (if not to short gold), in addition to my seasonal one.

Saturday, May 05, 2007

Recap: Australian dollar futures seasonal trade

Yesterday was the exit of the Australian dollar futures seasonal trade which I discussed in my premium content. It incurred a loss of $920 per contract, despite a 12-year winning streak previously. This may be the peril of a trade that is not based on any fundamental rationale that I know of, as well as an in-sample bias that I alluded to in my previous article. I will keep it on my watchlist for another year.

By the way, due to a technical glitch, my previous article on seasonality in commodities futures was not sent to many subscribers, so here is the link.

Wednesday, May 02, 2007

Are claims of seasonality in commodity futures markets "fraudulent "?

I have written about several commodities futures seasonal trades (e.g. PL-GC here, and RT here) recently, and while I was researching another such trade I came upon this webpage from the Commodity Futures Trading Commission. It says, in no uncertain terms,

" The Commodity Futures Trading Commission (CFTC) warns consumers to be alert to possible fraudulent claims that they can profit on commodity futures or options trading as a result of changes in the prices of physical commodities based on seasonal weather patterns or other well-known events."

It goes on to say that

"Futures and options markets adjust very quickly to news events and announcements, and by the time salesmen come calling, the opportunity to profit from such news is gone."

Whoa, this certainly got my attention! Since I am not a journalist, I don't normally go around challenging claims made by the United States government. But if this statement, which is basically the efficient market hypothesis, is generally true, then all of us traders should just pack up and go home. Now whether or not the efficient market hypothesis is true is subject to much academic debate. But is it right for the government to state definitively that this hypothesis is true, and that all claims otherwise are "fraudulent"?

Political arguments aside, I think that the commodities market may have more arbitrage opportunities (i.e. less efficient) than the stock market. Perhaps this is because there are more participants in the commodities markets that are not speculators, particularly for "consumption" commodities such as oil and gas.

This is not to say that every seasonal pattern that we have backtested is necessarily going to repeat itself. Many of these patterns occur only once a year, and there are just so many years that we can use for our backtest, and needless to say, most of them are "in-sample". My practice is to paper-trade the pattern for at least one year going forward as an "out-of-sample" test, especially if the pattern is not supported by a strong fundamental rationale (like the Australian dollar trade that I talked about in my premium content area.) Furthermore, by publishing my backtest results on this blog, any future repeat of the pattern can indeed be regarded as out-of-sample, increasing our confidence in them.

My own interest in researching seasonality in commodities market was (hopefully) not piqued by the kind of snake-oil salesman that CFTC warns us about. About a year or so ago, I attended a talk given by Dr. David Eliezer at Columbia University's Financial Engineering seminar. The topic is "Structure and Behavior of Commodities Markets" in which he outlined various seasonal patterns that persist in the futures markets. Dr. Eliezer was formerly the chief quantitative researcher at Goldman Sachs' commodities group. Given this academic respectability, I certainly feel emboldened to enter into the debate!

Wednesday, April 25, 2007

Recap: Gasoline futures seasonal trade

The gasoline futures seasonal trade that I mentioned in a previous post and discussed in details in my premium content area reached its exit today. It has been profitable for at least 11th consecutive years: the profit this year is $4,321.80 per contract of RT.

Friday, April 20, 2007

Recap: Platinum-gold spread trade

The platinum-gold spread trade that I discussed is once again profitable this year. If a trader entered the positions near the close on February 26 and exited the positions near the close on April 19, the profit would have been about $6,610 this time. However, I did made a calculation mistake when I plotted the historical profit graphs before. So here it is again:















The maximum draw-down experienced in the last 7 years is -$4,860. The average profit is $3,064, the maximum profit is $7,320 and the maxmium loss is -$540.

Monday, April 16, 2007

Out-of-sample test on cointegrating basket of stocks

An anonymous reader "L" posted some thoughtful objections to the way I constructed the basket of stocks that is supposed to cointegrate with XLE. His main objection is that even though my basket shows cointegration with XLE in-sample, this is likely to fail out-of-sample. Actually, I agree with him that the strong statistical relationship discovered in-sample is most likely going to be weakened out-of-sample, most often because the nature of the component stocks is always changing, due to various corporate events (management change, restructuring, change of strategic direction, etc.). However, from a practical trading point of view, I believe that the relationship should not be weakened to the point that the trading signals become spurious, at least over a time-scale of a trade which is several months to half-a-year at most.

To demonstrate this, let's break up the dataset over 2 periods: 20010522 - 20030123 and 20030124 - 20070403. In the first in-sample period (with 1,000 data points), we pick our 10 stocks to form the basket, and in the second out-of-sample period we see how well it cointegrates with XLE, and we observe how the spread behaves. I found that in the first period, the t-statistic for cointegration is -3.61934140, indicating the basket cointegrates with over 95% probability. No surprise here. Here is a plot of the spread in this period:


















Now, let's find out what happens in the out-of-sample period. Here the t-statistic is just -2.72, whereas the critical value for cointegration at 90% probability is -3.03. So indeed the basket fails to cointegrate at the 90% confidence level. Does that mean our trades will therefore be losing out-of-sample? Not necessarily. Take a look at the behavior of the spread out-of-sample:



















Even though it is not nicely symmetric around zero as in the in-sample period, the spread is still clearly bounded around zero. If the basket completely falls out of cointegration with XLE, it will show a random drift away from zero as time goes on.

To show that this is not just good luck based on our specific in-sample period, let's try a longer in-sample period of 1500 days (shorter in-sample period won't work, because we need a minimum of 1,000 data points here to construct a good reliable basket.) Here the cointegration t-statistic is a bit worse, at -2.62. If we look at the spread:



















Once again, we see that the spread is bounded, not wandering off to infinity. So in conclusion, I maintain that my method of constructing the basket is good for practical trading, though not necessarily guaranteeing as high a statistical confidence level as might be indicated in the in-sample period.

Saturday, April 07, 2007

Hedging isn't always better

Many of the strategies I wrote about in this blog are market-neutral strategies: long one instrument and short another one as a hedge. In many hedge funds, these are the only strategies that are allowed: investors imagine that only market-neutral hedge funds can deliver consistent returns in bull and bear markets alike, and the typically smaller drawdowns experienced by such funds allow them to obtain higher leverage from their prime brokerages. However, over the years I have become convinced that this bias in favor of market neutral strategies is misplaced in several ways.

First off, it is a bit silly to work hard to find a market-neutral strategy so that we can have a smaller drawdown so that we can increase its leverage to boost its return. After all these leveraging, the drawdown is often back to the same level as a long-only strategy! Why not just run a long-only strategy at a lower leverage, but that is often simpler in design and that incurs lower transaction costs (since there is only one-side of the trade to execute)?

Secondly, there is a misconception that long-only strategies will surely lose money in bear markets. This is probably true when you are holding overnight -- but long-only day-trading strategies are often profitable in both bull and bear markets.

Thirdly, there are strategies where only the long trades work. A simple example is a strategy that buys an index at its 10-day low, and exit when... well, there are multiple ways to exit and most of them work! If you try the mirror image of this strategy, i.e. short an index at its 10-day high, it works far less well. This simply reflects the positive mean return of the equity market, and why not take advantage of that?

Finally, related to the third point, sometimes the short hedge fails simply because the short instrument is actually quite different in nature than the long one, despite their superficial similarity. An example is provided by Mr. Sandy Fielden at Logical Information Machines. There is a usually profitable trade where you long a May gasoline futures contract and simultaneously short a May heating oil contract in the spring. The logic is that as the weather gets warmer, the driving season will begin which drives the price of gasoline futures up, and the demand for heating will decrease which drives the price of heating oil futures down. This hedged trade is supposed to eliminate general energy market risk. However, the weather is sometimes unpredictable, and in 2005, this trade went quite wrong primarily because the winter lasted longer. On the other hand, if you only enter the long side of this trade, i.e. buy gasoline futures in the spring, it works like a charm every year in the past 10 years! (I have posted a detailed analysis of this long-only gasoline futures trade in my Premium Content area.)

Therefore, if you trade for yourself and not for some institutions with a mandate only for market-neutral strategies, there is no need to be bounded by the same rules that they have to play by.