14
Archived articleThis is an archived article from 2013 - please note that any content within the article may be out of date.

The not so Magic Formula?

New subscribers to Stockopedia can often be a little bewildered by the number of different Guru Screens that we model - I often find myself answering the question "where do I start?". We've modelled these 65 strategies from dozens of classic books and research papers and doing the background reading around it all could take a busy person years - years that they just don't have!

When it comes to answering this question I often find myself suggesting a read of  "The Little Book that Beats the Market" by Joel Greenblatt. It's a title I recommend not only for it's brevity (it's only 150 short pages long) but also for it's brilliant summary of the principles of modern Value Investing and as an introduction to systematic investing.

The author, Joel Greenblatt, is to me the modern era's Benjamin Graham given the amount he has given back to the investment community since his success at the hedge fund Gotham Capital - where he returned 50% per year to his investors annualised for over a decade. Since closing the fund he has continued his investing success while teaching students at Columbia Business School and writing several highly recommended investment bestsellers.

Buy Good, Buy Cheap

Magic Formula Book

In "The Little Book…" Greenblatt explains simply and clearly a systematic investing strategy based on a very understandable principle - that buying shares in cheap, good quality companies beats the market. The strategy ranks the stock market by 'cheapness', ranks the stock market by 'quality' and adds the two ranks. The 30 or so companies scoring most highly by this sum are then selected for purchase and rebalanced annually. Backtesting this strategy, Greenblatt claimed that it would have returned an astonishing 30.8% per year over the 17 year period to 2004.

It proved so effective that Greenblatt christened it 'The Magic Formula', creating in the process something of a cult. The book has sold hundreds of thousands of copies while institutional and individual investors the world over have been putting these principles to work. Morgan Stanley and Societe Generale are just two of the big international brokers that still track the strategy on a monthly basis. But as the years have rolled by Greenblatt's results have proven hard to replicate, both in backtesting by third parties, and in the wild of the market itself.

 Does it really work?

One of the first indications of a backlash was by an online blogger, who for five years or so dedicated himself to putting the Magic Formula to work. At the end of it all, after some very sub-par returns, he threw in the towel. Greenblatt himself had found that investors using his Magic Formula website had a tendency to take the list of qualifying stocks but only buy a subset of the stocks they felt most comfortable owning. As a result they shied away from the 'ugly' stocks that often actually did the best. Greenblatt found that "on average the people who “self-managed” their accounts took a winning system and used their judgment to unintentionally eliminate all the outperformance and then some!"

But is investment success really as simple as rote-following Greenblatt's system? Stockopedia's UK model of the Magic Formula, which is based upon painstaking research to replicate the formula, has underperformed significantly to date. Greenblatt himself said that the system should only be judged over 3 to 5 years so it may still early days, but in this bullish market environment while other value strategies have gone gangbusters it seems to have been left behind.

Magic Formula Performance Chart

 

Is there a flaw at the heart of the Magic Formula?

An excellent book recently published called Quantitative Value, by Dr Wesley Gray and Tobias Carlisle attempts to build a systematic investment process based upon the work of Ben Graham and Warren Buffett. The authors figured there was no better place to start than the Magic Formula which they proceed to deconstruct, backtest and critique in an attempt to improve on it.

But similarly to the results of other researchers, their backtests of the Magic Formula did not outperform by anywhere near extent Greenblatt claimed. Taking their analysis further they made some more startling discoveries - The Magic Formula, which ranks stocks by cheapness and quality, couldn't even beat a strategy ranked on cheapness alone. In fact, the 'quality' factor at the heart of the Magic Formula actually detracted from the performance of the portfolio.

Quant Value Book

Why would this be? High quality stocks have a tendency to be more expensive than low quality stocks, and in the long run expensive stocks don't appear to ever outperform cheap stocks. As a result the authors find that the Magic Formula tends to systematically *pay too high a price* for quality. There's a great line in the book from Ben Graham that from memory goes something like this - "when you mix raisins with turds you've still got turds".

While I won't go into the details of how they improved on the Magic Formula in this post I will wholeheartedly recommend that anyone who really cares about systematic investing to go out, buy the book and have a read - their strategy incorporates lots of the goodies that we've built into the Stockopedia subscriber product including - the Beneish "Earnings Manipulation" Score, Bankruptcy Risk indicators like the Altman Z-Score, and a financial strength algorithm that is evolved from the Piotroski F-Score.

Given that the ranking system for the Magic Formula weights quality and cheapness in equal measures, the authors suggest that it would be far smarter to construct a portfolio tilted more strongly towards value than quality. By taking the 20% cheapest stocks in the market and ranking them for quality the authors increased the annual returns from a large cap strategy to almost 18% per annum compared with less than 14% for the Magic Formula.  That's the kind of outperformance most fund managers would kill for.

For those who want to dive into the kinds of stocks in the UK or Europe that may be qualifying for this kind of strategy, I've put together a screen based upon similar principles - at this link.

Disclaimer

This is not financial advice. Our content is intended to be used and must be used for information and education purposes only. Please read our disclaimer and terms and conditions to understand our obligations.

13 comments


Avatar for Edward Croft

Hi lightningtiger - yes I do remember our ARM conversation - ARM seems to be pretty much where it was then which doesn't surprise me too much given how far it had run. ASOS is a similar glamour stock to ARM - very high valuation, great company. Which side of that equation wins is anyone's guess right now.

Re. Magic Formula. Greenblatt actually has always said that investors shouldn't really pick stocks from his list as they'll tend to buy stocks that they prefer rather than the unpopular ones that often pay off more. Often a large proportion of the gains in a systematic value strategy come from just a few of the stocks - knowing which will turn around the most in a set of value stocks can be a very difficult task - Greenblatt actually said in an online blog once that investors should just buy the list. Not sure I exactly agree as it's a v. v. simplistic strategy, but I certainly agree with the principles. Our own ranking system is based on similar principles of Quality & Value.

Re. D & E stocks. Frankly, there's been a big surge into low quality (junk) stocks over the summer so that doesn't surprise me. The 'appetite for risk' increased. Just because something is ranked E on the Magic Formula doesn't mean it won't quadruple in a year. Remember everything in the stock market is a bet based on probability. It's best to place your bets in slightly higher than average probability payoffs.

1
Avatar for lightningtiger

Just noticed the Magic formula is supposed to be over 3 to 5 years. That explains it, with good growth previously. I was wandering why some of the magic formula scoring D or E were doing better for this year, which is where the search page goes to. Another lesson learned. Read the detail. Cheers Lightningtiger

0
Avatar for lightningtiger

Hi Ed,
I am still trying to find my way round the Stockopedia site at the moment, having first met you in London earlier this year with my wife & we had a chat after your presentation about ARM. We are coming up to the investor show on 25th October so hope to see you again there. My first impressions are that it is full of very useful in depth detail to delve into. After inputting 100 aim stocks through the screens I only saw GEM & CEO with a magic formula A+. On further investigation Soco comes into the same rating of A+. From the screen now with fluctuations over a year GEM -42.2%, CEO -10.5% & SOCO+8.8%. In my book, this would appear to me to be surprising as I was expecting to see good results from this filter screen. Interestingly SOCO seems to have great interest too in the intracate details.

Meanwhile, with over 2000 or more choices of stocks to choose from I to hold ASOS.because of good potential as one of my 20 holdings. I am attemting to have my own screen to work with, but there are so many variations for imput that I can't do it at the moment. I Want a screen showing+% in a week + a higher% in a Momth + higher% 3 Months + higher% 6Months + higher% 1year minimum 100%. Can you help? At the moment I have a Folio 52 week high with about 30 choices, having to labouriously gone through loads of selections. there must be an easier way to sort this out. Also from the Stockopedia PTO looks interesting potential & fits that criteria along with CLIN, which I am holding. Cheers from Lightningtiger.

0
Avatar for Mark Simpson

Hi Ed,

I've started to read Quantitative Value based on your recommendation and I'm finding it an excellent read. I like how they comprehensively and systematically address all the major issues we face as value investors such as how to avoid companies that appear cheap on earnings metrics due to manipulation rather than true business performance. And they do this by seeking out the most recent or powerful quantitative research on the topic and testing it's impact to confirm the research based on their own data.

Although based on your own systematic approach to reading investment research you've already implemented quite a few of the ideas I think there is still some gems to be mined and Quantitative Value provides an excellent resource to push the screener and composite ranks to the next level.

I've just finished the section 'How to avoid a permanent loss of capital' Here are a couple of suggestions based on that section:

1. You already include the Beneish M-Score and, while if you know the research uses a cut-off value of -1.78 you can run screens, in QV they convert this using a cumulative density function into a probability of manipulation (p74) This becomes more readable and allows better comparison of previous years e.g. their Enron example on p76. It's easier to see a movement of 2% chance of earnings manipulation to 30% chance in one year as a red flag than an M-Score movement from -2.0 to -0.5. Could this be converted to the percentage and have a little graph on the stock report of the past percentages instead of just the yes/no?

2. They also include a couple of cash flow items that they call STA & SNOA. STA I believe you have as the accrual ratio. (Although as you point out in this article: http://www.stockopedia.com/content/the-accrual-anomaly-why-investors-should-care-about-accruals-earnings-quality-63003/ this may be improved by scaling by earnings instead of total assets.) However SNOA measures the long term relationship between cashflow and earnings - maybe this could be added?

3. Obviously you have the altman Z-Score in your toolkit however QV suggest this can be improved upon based on a 2008 paper by Campbell et al. p86-89. (And I think you are aware of the limitations of the z-score given the articles & discussions here: http://www.stockopedia.com/content/the-altman-z-score-is-it-possible-to-predict-corporate-bankruptcy-using-a-formula-55725/ and here http://www.stockopedia.com/content/improving-on-the-altman-z-score-part-2-the-ohlson-o-score-70800/) This is also better than the O-Score according to QV. Again this can be converted to a probability of financial distress for ease of analysis. Another one to add?

4. Your Quality Rank combines measures of business fundamentals (ROCE, GPA, margins etc.) and earnings (Beneish) and bankruptcy (Altman) risk in one ranking. However to me these are very different concepts. One measures how good the nature of the business is, the other how accurately the accounts reflect the business performance and the risk inherent in how the business is financed and run.

I would therefore split the Quality Rank (or at least subdivide it so that one could rank by the combined quality rank or the subcomponents) into:

Business Quality would be the existing franchise Factors & F-Score. (Will feedback on any improvements based on QV when I finish the next section.)

Earnings Quality (or Risk) which would be based on the 4 QV factors STA, SNAO, PMAN (Beneish) and PFD.

Therefore one could screen based on excluding the worst manipulators and financial distress companies (i.e. include say 80% of the market) but select only the best quality businesses (based on the nature of those businesses) e.g. exclude 80% of the market. If you still would like a single Quality Rank then you could just combine the two.

What do you think? I'm happy to raise these as suggestions if that would help you track these ideas?

Cheers,

Danger

3
Avatar for Edward Croft

Hi danger,

I can address each of these points in turn.

  1.  I'm well aware that the Beneish, Altman and other academic risk criteria cutoff points are very hard to remember when screening.  The approach taken in QV to turn the Beneish M-Score into a probability makes a lot of sense.  Our approach to ranking Earnings Quality is going to be similar with some caveats.  Beneish is heavily geared to flagging growth stocks as manipulators, which really I see as a potential weakness.  Beneish is very predictive of future profit warnings due to it's focus on this class of enthusiastic growth stocks, but as a result I don't feel it's as useful an indicator in many no growth classes of shares.  For this reason we are experimenting with evolving/diversifying our own version of the  manipulation rank (which will be a zero to 100 scale) to include other earnings quality approaches.  More to come on this point.
  2. I'll discuss the SNOA with Dave to see if we can include it.
  3. As you've noted on the blogs we've been investigating several enhancements to monitoring bankruptcy risk - especially as Altman ignores many well known distress risk factors such as stock price volatility and can be something of a blunt tool.  We've already got a CHS score in the pipeline and we'll again be blending several approaches to create our own composite bankruptcy risk (again a 0 to 100 score).  Am sure we'll make CHS available too.
  4. We are working on all of our ranking library.  We have already broken the Quality Rank score down into a Buffettesque franchise rank and some other components.  The thinking is that we should have a hierarchy of rankings each of which combines into our top level Quality, Growth, Value, Momentum, (+ Technical and Smart Money) Ranks.   How we end up publishing the entire hierarchy is under current discussion.  What excites me is the ability to compose these in different recipes.  

 

For my own personal investing,  I am mostly interested in two specific strategies - one is systematic value investing, the other is finding accelerating growth & earnings momentum winners regardless of value (I've always had a soft spot for ASOS profile stocks which can hit it out of the park).   The goal really is to make finding stocks with different general profiles much, much easier without having to rely on blunt sequential screening techniques which can often be rather limiting.

 

Lots to come on these fronts,  we've been working away with the database team in recent weeks to take some of our work to the next level.  It's a big process handling all this computation every day and the database is only going to grow in size and complexity.  The kind of granular feedback you are giving is extremely helpful in guiding that process. 

The challenge for us really is to take all the finance geek stuff that we so enjoy and making it really easy to understand for the layman.  I believe explaining and popularising the Stock Ranks can be a big part of this.

 

 

 

 

 

 

4
Avatar for Mark Simpson

Hi Ed,

Thanks for the detailed feedback - a few extra comments:

Beneish is heavily geared to flagging growth stocks as manipulators, which really I see as a potential weakness. Beneish is very predictive of future profit warnings due to its focus on this class of enthusiastic growth stocks, but as a result I don't feel it's as useful an indicator in many no growth classes of shares.

I was thinking something similar when reading through the details of the M-Score in QV. There’s actually two components to Beneish – one looks for evidence of manipulation in the sort of places that management can manipulate e.g. Days Sales in Receivables looks for manipulation in revenue recognition, Depreciation index in depreciation policy. The other component ( Sales Growth Index, Gross Margin Index etc.) really just looks for what types of companies are likely to manipulate – highly rated growth companies facing increasing competitive pressures. This last component is still a valuable test because one of the fundamental tenets of economics is that people respond to incentives and a financial incentive to manipulate is a very powerful one. However you are right that combining the two components may fail to distinguish which factor is at play and could miss companies that manipulate for reasons other than to keep up appearance of a high eps growth rate.

When viewed like this you see that the QV measures of STA & SNOA are really more like additional components of the first part of beneish seeking to identify evidence that points towards manipulation but by looking at the difference between income & cashflow both currently & historically.

For this reason we are experimenting with evolving/diversifying our own version of the manipulation rank (which will be a zero to 100 scale) to include other earnings quality approaches.

Great, looking forward to seeing what you come up with. I think the challenge will be getting something that separates the two components of Beneish to address your concerns, adds any extra factors and still works effectively. Obviously Beneish generated the weights his M-Score by performing a regression based on past data. Although the output is linear so I think you could split the factors then it’s not clear what the thresholds would be, whether you could apply the conversion to probability or how you would add in additional factors. Obviously your own regression would give you this but this is a non-trivial task imo.

Even assuming that you could do all that then it’s not clear without testing if this adds value to stock selection process because investment results have a habit of defying even well-founded logical strategies! So a challenge, but a good one, and I certainly applaud your efforts.

We are working on all of our ranking library. We have already broken the Quality Rank score down into a Buffettesque franchise rank and some other components. … How we end up publishing the entire hierarchy is under current discussion.

Here’s my idea of what an ideal composite rank would look like. Firstly I’d introduce a few sub-sections of the growth, quality & momentum ranks. These should be separately screenable. Also I’d add a few of the missing ratios from QV or use the improved ones that QV propose over the original. (My changes from the current ranks are highlighted in bold.) Finally I’d split Beneish as described above (if this is indeed possible.)

Composite Rank

Also I wonder if this sort of mind map (but interactive) would be a good way of explaining the stock ranks to users?

Final random thought – when searching for short candidate (or viewing the existing short screens) I always end up with a load of property companies, oil explorers and biotech companies. Essentially stuff that is not easily valued by the usual metrics. These must skew the stock ranks. Now in screening I can always try to exclude these sectors but these are so wide that I’d lose a lot of companies that I do want to include. Is there a need to consider if certain sectors need different stock ranking formulae or exclude certain types of companies?

Cheers,

Danger

EDIT: Mindmap is cropped a bit on my screen but if you right click save as image you should get the whole thing.

3
Avatar for Edward Croft

That's an excellent visualisation. The development plan is in agreement with much of what you've outlined though with a few key differences.

The composite Momentum rank will split between price momentum factors (strength, highs etc), and earnings momentum factors (EPS surprise, EPS upgrades, standardised unexpected earnings).

The Value rank will be split between Traditional value (a blended average of current value ratios) and Relative Value (current value ratios relative to the company's own historical range and the sector peer group).

While I agree with much of the Quantitative Value book, I don't think one needs to take their specific optimisations or factor choices as gospel - such as the Piotroski adjustments and Margin Max approaches. It's the overall ethic that they have got right - that of trying to find great companies and reduce the risk of capital loss. There are plenty of alternative routes to the same goal.

The book is also particularly focused on beating the S&P 500 with a market cap weighted portfolio (I presume as they are/were trying to raise capital to professionally manage). While that's great for scale, it isn't really the best investment approach for an individual, who could do far better by equal weighting their portfolio over a wider mkt cap range.

0
Avatar for Mechanical Bull

Monty - I am with you on that. It is logical that a mechanical investing strategy will work less well the more people use it. However, there seems to be plenty of scope to sniff out inefficencies in the market as demonstrated in the overall performance of Stockpedia's guru screens.

1
Avatar for Monty9

It is such a widely respected strategy I wonder if the stocks get bought a lot more quickly that in Joel's day, as the price/value indicator starts to flag the company as a buy. It is a shame for the value investor community but it looks like capitalism making sure the right companies are getting support .

2
Avatar for jjis

Good article and a good book which I read recently. I have also been developing some screens based on it. I did one which simply used your Value Rank and Quality Rank as the screen & showed those >60 as I wanted to see more stocks.

I also did one based on the best performing value metric mentioned in the book + the Stockopedia Quality rank with a yield hurdle as that suits my investment objectives. Happy to share details if anyone is interested, not sure if I should put a link to my screens on here Ed.!?

1
Avatar for Edward Croft

Hi jjis - yes you can link to any screen here. If you share the link publicly then any other subscriber can view the results and fork. It's really up to you if you want to share the link - please do if you want to discuss.


We are actually putting a lot of work into the ranking systems at the moment - the first iteration that we've published is extremely useful, but we do think that the extra finesse we are adding will make a difference. We are creating a hierarchy of ranking systems beyond the basic QVGM ranks... will be fun to discuss them and see what opportunities different combinations can throw up for different market environments.

Some of the areas we are researching include the following.

  • Momentum Rank
    • Earnings Momentum Rank (including EPS & Sales upgrades, Earnings Surprises)
    • Price Momentum Rank (Rel Strength, 52 wk highs etc)
  • Quality Rank
    • Buffettesque Franchise Rank (Long term Margins, Cashflow, Growth Stability etc)
    • Financial Strength Rank
    • Earnings quality Rank
  • Value Rank
    • Traditional Value - P/E, P/B, PEG etc vs market
    • Relative Value - vs company's own History and Sector/Industry groups
  • Growth Rank
    • Historic Growth Rank
    • Forecast Growth Rank
  • Technical Rank
    • Based much more on TA factors to highlight good trend & reversal opportunities etc
  • Smart Money Ranks
    • Insider Dealing Scores - based on clustered/large director buys 
    • Institutional Accumulation/Distribution
    • Short Selling Ratios
    • Buybacks

 

Basically we want to create a library that calculates all the proven stock market factors for every stock in the market.    I hope we'll have them live by the end of the summer.  Anything I've missed let me know.

3
Avatar for jjis

That is great Ed and it looks like a pretty comprehensive list. As an income investor the only extra things I would like to see covered under growth would be ranks for Historic & Forecast Dividend growth. In addition under either quality or financial security it would be good to have rankings of Dividend Cover both by earnings and Cash flow as these are usually used when screening for yield and there is research to suggest it helps when using these in combination with yield.

1
Avatar for Edward Croft

Hi jjis,

You can of course rank for simple ratios on their own in the screener. There is an option to create a screening filter by creating a rank between zero (worst) and 100 (best) - so you can filter for e.g. the top 10% by rank and add other criteria. What I'm talking about above is the creation of 'composite' ranks - which blend different ratios according to an optimised formula. Will write more on this topic in future !



1
Get the free newsletter