Author: shyam

Trend Following vs. Trend Prediction, Part I

Traditional equity momentum strategies are variations of algos that try to figure out “trending” stocks so that they can be ranked to create a long/short portfolio. The key thing to remember is that these algos are following a trend, the prediction that a trending stock will continue to trend is implicit. However, using machine learning techniques, stocks can be ranked based on their predicted returns over a future time frame.

The simplest momentum strategy looks only at a price series. However, it quickly runs into problems when additional factors are overlaid on top of basic momentum. For example, you may want to filter out volatile stocks out the basket. You can do this either by setting a maximum volatility level or by weighing both momentum and volatility to arrive at a combined rank. Either approach leads to ad hoc decisions of cut off levels and the ratio with which to weigh each of those factors. Luckily, typical machine learning algorithms can work with multiple factors and weigh them based on the training set you supply.

The biggest drawback of using machine learning is that the larger the number of factors/features you use, the less explainable the resulting model becomes. As a trader, if you want to use any of these models, you should have a fairly good idea of what is going in, how the model is setup and what exactly is the model getting trained with.

As a first step in taking a crack at this, we have setup four machine learning algos. Two of them use SVRs and the other two use LR to train on data that is either return-series only or a combination of returns and volatility. You can have look at them here.

We will have more of these machine learning models out as we ramp up our understanding of these models. Stay tuned!

Book Review: Principles – Life and Work

In Principles: Life and Work (Amazon,) Ray Dalio, a highly successful hedge fund manager tries to write out rules for living one’s life and conducting business.

He should have stuck to managing other people’s money and spared us this tome. It is highly repetitive and completely off the rails. He thinks the world and our minds work like “machines” and that if you can figure out how that machine works, you are all set. The problem is that once you call something a “machine,” your imagination is handicapped by the fact that most machines are deterministic. Real life, business and investing is a system – a complex dynamic system. A system that changes based on how the people in the system behave. Good luck trying to “figure it out.”

The book is gibberish. If you really want to read a self-help book, read the very entertaining The Subtle Art of Not Giving a F*ck (Amazon.)

Book Review: Fragile by Design

Fragile by Design (Amazon) by Calomiris and Haber explains how the banking system of every country is the result of a unique set of starting conditions and how politics and culture shape their overall stability and purpose. They call it the Game of Bank Bargains.

My personal take-away from this is India is screwed. We will never get rid of our public banks who will conspire with our politicians to bleed our country dry. Politicians will find our banks ready and willing to impose an inflation tax on us. Who could blame them when hardly 2% of our population pays an income tax? We seem to have borrowed from the worst elements of US, Mexican and Brazilian banking systems. No Hope.

Read the book!

Transaction Cost Analysis of a Momentum Strategy

Momentum strategies have been on a tear over the last few years and have generally out-performed pure-value strategies. When we compare momentum returns with mutual funds, the most common criticism we encounter is that mutual fund returns are after transaction costs whereas our “Theme” returns are before transaction costs.

Momo (Relative) v1.1 vs ABSL S&M Fund (Annualized returns are 85.50% and 35.12%, respectively.)

The challenge we face in showing post-cost returns is that we offer different brokerage slabs to different types of clients, making a one-cost-fits-all analysis impossible. However, we can show how different brokerage slabs impact returns.

A gross return of 83.82% translates to returns of 74.20%, 69.58% and 65.08% for brokerage slabs of 0.1%, 0.05% and 0% respectively (STT of 0.1% was assumed.) Momentum out-performs even after transactions costs.

Book Review: Fantasyland

Fantasyland: How America Went Haywire (Amazon,) is about how over the years, Americans have become less rational and more prone to magical thinking.

The author, Kurt Andersen, posits that Americans have self-selected both from a genetic and cultural point of view to believe in fantasies. The rise of social media and the internet has allowed everyone to live in his “own” truth, a fantasy land. He touches upon all weird, non-scientific things that Americans believe to be true, their outlandish religious beliefs, gun ownership and so on.

The main take-away for me was this: a liberal government can keep its populace fed and make sure that the country progresses scientifically and economically. However, it cannot give its citizens purpose. Purpose is something everybody seeks. And if the government cant give it, then religions/cult/tribes will fill the void. And the more vulnerable you are economically, the more you seek out a tribe to be part of.

Read the book!