Quant Mashup A Factor Investor’s Perspective of the Economic Cycle [Factor Investor]Debates abound on the relative importance of the economic cycle to investment success. Peter Lynch famously said, "If you spend more than 13 minutes analyzing economic and market forecasts, you've wasted 10 minutes.” On the flip side, macro investment houses have constructed intricate(...) Want to spot a true Value Investor? Look for horrible recent performance [Alpha Architect]Harry Houdini is perhaps the best-known magician of all time, gaining notoriety in the early 20th century through his daring escape acts. Houdini escaped from straight jackets while suspended from chains, fought his way out of submerged mailbags, and performed a “buried alive” stunt. Crowds(...) mini-Meucci : Applying The Checklist - Step 1 [Return and Risk]Introduction In this mini-Meucci series of posts we'll put the 10 steps of The Checklist into practice by constructing a low volatility portfolio in Python. This toy/basic example will be a short tourist trip, highlighting key attractions that you can then explore further... Of course, these(...) A Few Little Links [Factor Wave]I'm currently working on three things: a VIX option trading strategy, a piece about how factors relate to earnings announcements and a Kelly criterion type thing for options. But none is particularly close to being done. So I thought i would post a few links to articles that I found(...) Diversification Will Always Disappoint [Flirting with Models]Summary For its ability to reduce risk without necessarily sacrificing potential reward, diversification is known as the only free lunch on Wall Street. Diversification provides investors with the important ability to invest in the face of uncertainty. When viewed for its pieces instead of as a(...) A Long Term Look At Memorial Week Seasonality [Quantifiable Edges]The week of Memorial Day has shown some interesting seasonal tendencies over the years. And for a long time it exhibited consistent bullishness. But it has faltered greatly the last several years. The chart below examines SPX performance from the Friday before Memorial Day to the Friday after it.(...) Build Technical Indicators in Python [Quant Insti]Technical Indicator is essentially a mathematical representation based on data sets such as price (high, low, open, close, etc.) or volume of a security to forecast price trends. There are several kinds of technical indicators that are used to analyse and detect the direction of movement of the(...) Best Links of the Last Two Weeks [Quantocracy]The best quant mashup links for the two weeks ending Saturday, 05/28 as voted by our readers: A simple breakout trading rule (pysystemtrade) [Investment Idiocy] Some Impressions from R Finance 2016 [Revolutions] Most popular machine learning R packages [Eran Raviv] Exploring Extreme Asset Returns(...) Podcast: Tribute to Nelson Freeburg [Better System Trader]Nelson Freeburg was the editor of Formula Research, a newsletter that developed systematic timing models for the stock, bond, and commodity markets. He was also a research consultant working with institutional money managers to design proprietary timing models. Nelson had been an active trader since(...) Reminiscences of R in Finance 2016 [Portfolio Probe]When I announced R in Finance 2016 I talked about 2 days of conference and 50 speakers. I missed out the 3 days of sleep deprivation. But a pleasant 3 days of sleep deprivation it was — seeing old friends and making new ones. I’m not sure that Mother Mary believed me that in our house we still(...) PDF from Artur Sepp: Gaining the Alpha Advantage in Vol Trading (h/t Quant News)1. Present some empirical evidence for short volatility strategies and the cyclical pattern of their P&L: alpha in good times, beta in bad times 2. Introduce a factor model with risk-aversion to explain the risk-premium of short volatility strategies as a compensation to bear losses in bad(...) Why Algo Traders Prefer Python [Quant Insti] Exploring Extreme Asset Returns [Quant Dare]Tail or extreme assets returns have been extensively studied. In his amazing paper: “Empirical properties of assets returns: stylized facts and statistical issues”, Rama Cont provides a framework on statistical analysis of price variations in various types of financial markets. He presents(...) Some Impressions from R Finance 2016 [Revolutions]R / Finance 2016 lived up to expectations and provided the quality networking and learning experience that longtime participants have come to value. Eight years is a long time for a conference to keep its sparkle and pizzazz. But, the conference organizers and the UIC have managed to create a vibe(...) Updated Dual Momentum Test [Scott's Investments]I frequently get asked for updated tests on various strategies. Using Portfolio123 I ran a backtest on a Dual Momentum strategy from 1/1/2007 – 5/25/2016. The strategy is updated on Scott’s Investments monthly, the most recent update is here. The strategy invests equally in one ETF from each of(...) ConnorsRSI Analysis [Alvarez Quant Trading]A couple posts ago, I did the RSI Analysis. This post will focus on ConnorsRSI which I created while working for Larry Connors. When creating the indicator, the focus was on short-term mean-reversion results. We will look at that here but also how does it handle longer-term holds. Since I did not(...) Forecasting the VIX to Improve VIX-Derivatives Trading [Quantpedia]Konstantinidi et. al. state in their broad survey of Volatility-Index forecasting: "The question whether the dynamics of implied volatility indices can be predicted has received little attention". The overall result of this and the quoted papers is: The VIX is too a very limited extend (R2(...) A Candid Discussion with an Algorithmic Trader [Quant Insti]The role of Algorithm in a person’s life is too substantial to be ignored. From a simple coffee-making machine to the music system in his car, from elevators to search engine like Google, all are governed by a set of logical instructions – Algorithms or Algos, which enable them to respond to a(...) Seasonal Effects in Equity Markets [Jonathan Kinlay]There are a plethora of seasonal anomalies documented in academic research. For equities these include the Halloween effect (“Sell in May”), January effect, turn-of-the-month effect, weekend effect and holiday effect. For example, Bouman and Jacobsen (2002) and Jacobsen and Visaltanachoti (2009)(...) The Paradox of Active Management [Philosophical Economics]In this piece, I’m going to introduce a simple market model, and then use the model to illustrate certain important concepts in the debate between active and passive management. Some of these concepts have already been discussed in prior pieces, others are going to be new to this piece. Consider,(...) Day of month effect on Bond Equity portfolio [Sanz Prophet]In this post we will: Take a look at a simple, momentum based, monthly rebalanced Equity/Bond portfolio. Search for what has been the optimal dates in the month to rebalance such a portfolio. Each month we allocate to two ETFs: SPY and TLT. If SPY has outperformed TLT we rebalance to 60% SPY – 40%(...) Automatic Support/Resistance using ML [Largecap Trader]I think an interesting application of ML could be generating the ‘features’ for inclusion in a trading algorithm, converting non-numerical data into numerical. For example, converting market sentiment or satellite imagery to count cars in a retailer’s parking lot. More examples here. I had(...) A simple breakout trading rule (pysystemtrade) [Investment Idiocy]Breakout. Not the classic home arcade game, seen here in Atari 2600 version, but what happens when a market price breaks out of a trading range. The Atari 2600 version was built by Wozniak with help from Jobs exactly 40 years ago. Yes that Wozniak and Jobs. Source: wikipedia In this post I'll(...) Behavioral Finance Strikes Again: Contrast Effects in Markets [Alpha Architect]At this point, even hard core efficient market fans will likely admit that behavior can influence investment decisions. Humans aren’t robots. However, just because some investors exhibit bad behavior that doesn’t mean they can influence prices. As the story goes, smart investors are prepared to(...) New Whitepaper: Why Tactical FIxed Income is Different [Flirting with Models]We recently updated, expanded, and put a new face on a whitepaper we had written last year called, “Why Tactical Fixed Income is Different.” You can access the new paper here. In the original version, we looked at some of the reasons why a simple tactical strategy that commonly works in equities(...) A Stunning New Finding: Return Seasonalities are Everywhere [Alpha Architect]We’ve discussed return seasonalities in the past, especially as they pertain to our approach to momentum. Turns out seasonality effects aren’t confined to momentum — they are literally everywhere and they are incredibly strong. This paper will blow your mind once you let the results settle in(...) Which Institution Has The Best Asset Allocation Model? [Meb Faber]If you’re like most investors, you’re asking the wrong questions. I was chatting with a group of advisors this week down in La Jolla and a question arose. I’ll paraphrase: “Meb, thanks for the talk. We get a steady stream of salespeople and consultants in here hawking their various asset(...) Optimising weights with costs (pysystemtrade) [Investment Idiocy]In a previous post I showed you how to use my open source python backtesting package, pysystemtrade, to estimate forecast weights and instrument weights. At the time I hadn't included code to calculate costs. Now that has been remedied I thought I should also write some code to demonstrate the(...) The State of Risk Management [Flirting with Models]How effective is your method of managing portfolio risk? We compare and contrast different approaches – including fixed income, managed futures, low volatility equities, and tactical – to explore the relative protection they can deliver versus the return drag they can create. Machine Beats Human: Machine Learning in Forex [Jon.IO]Machine learning and trading is a very interesting subject. It is also a subject where you can spend tons of time writing code and reading papers and then a kid can beat you while playing Mario Kart. In the nexts posts, we are going to talk about: Optimize entries and exits. This and only this could(...) Can We Predict Forward Alternative Investment Performance? [EconomPic]My friend Ben from A Wealth of Common Sense poses the interesting question, How Should Alternative Investments Be Benchmarked? Please go read his post for a number of interesting thoughts on that topic. In this post, rather than rehash his arguments, I'll go a different direction and will try(...) The Fine Art of Opening Range Breakout Trading [Milton FMR]The goal of this research is to find various set-ups and exit strategies that could be used for trading the opening range breakouts. The time frames we will be looking at are 10min, 15min and 30min opening range breakouts. We will focus our attention on the very liquid futures markets in particular(...) Not so Simple: Valuations and Low Volatility Strategies [Alpha Architect]Low volatility funds are everywhere. The reasons for their proliferation are clear: Who wouldn’t want to own something with the label “low volatility” and Recent performance has been great. Open the AUM floodgates! But perhaps not all is well in low volatility land. A recent snippet by Josh(...) Trading With Indices [Jonathan Kinlay]In this post I want to discuss ways to make use of signals from relevant market indices in your trading. These signals can add value regardless of whether you trade algorithmically or manually. The techniques described here are one of the most widely applicable in the quantitative analyst's(...) Update on Attilio Meucci's The Checklist and ARPM Bootcamp / Code [Return and Risk]Last week I organised for Attilio Meucci to give a webinar to members of CFA Singapore and NUS Risk Management Institute on an Introduction to “The Checklist” – Ten Steps for Advanced Risk and Portfolio Management. It served the dual-purpose of a professional development talk and marketing of(...) Giving Up on Recursive Sine Formula for Period Calculation [Dekalog Blog]I have spent the last few weeks trying to get my recursive sine wave formula for period calculations to work, but try as I might I can only get it to do so under ideal theoretical conditions. Once any significant noise, trend or combination thereof is introduced the calculations explode and give(...) Where Do All the Clicks Go? [Quantocracy]It’s been about a year since we launched Quantocracy. Over that time, we’ve sent about 450,000 clickthroughs to sites in the quant community, and that doesn’t even include RSS, Twitter, StockTwits and Facebook. To all of the denizens of Quantocracy: a big mahalo, gracias, 謝謝 and thank you(...) Most popular machine learning R packages [Eran Raviv]The good thing about using open-source software is the community around it. There are very many R packages online, and recently CRAN package download logs were released. This means we can have a look at the number of downloads for each package, so to get a good feel for their relative popularity. I(...) The asymmetry zone [Flirting with Models]The math of losses is not a secret: as losses grow, the return required to hit breakeven grows asymmetrically. At losses below -15%, this relationship is nearly linear; at higher levels, the gap grows dramatically. By reducing the “capture ratio” of an investment approach, we can exploit this(...) Best Links of the Week [Quantocracy]The best quant mashup links for the week ending Saturday, 05/14 as voted by our readers: Machine learning for financial prediction: experimentation with Aronson’s latest work – part 2 [Robot Wealth] Deep Learning with Theano – Part 1: Logistic Regression [Quant Start] How To Compute Turnover(...) The Smoother "PATH": PutWriting At the High [EconomPic]The analysis presented below combines two separate frameworks that were previously outlined: Avoiding Bear Markets to Improve Risk-Adjusted Returns The Case for Put Writing / Further Improving PutWrite Performance The first post outlined how avoiding bear markets (by only holding equities when they(...) Asset-Pricing Implications of Dimensional Analysis [Alex Chinco]I have been trying to use dimensional analysis to understand asset-pricing problems. In many hard physical problems, it is possible to gain some insight about the functional form of the solution by examining the dimensions of the relevant input variables. In the canonical example of this brand of(...) 52 Pick-Up and factor investing [Factor Investor]Remember 52 Pick-Up? A dubious sibling, usually older, would ask if you wanted to play a game while holding a deck of cards. Emphatically, you agree, only to be showered with the deck of playing cards and told to pick them up. Wikipedia in its infinite wisdom defines 52 pick up as "a game of(...) How Portfolio Construction Affects Value Funds [Alpha Architect]Value investing is an investment philosophy that has been extensively discussed and examined at least since the days of Ben Graham, who popularized it as a discipline in the 20s and 30s. While there are some who are dismissive of its advantages as a long-term strategy, the historical evidence is(...) Deep Learning with Theano - Part 1: Logistic Regression [Quant Start]Over the last ten years the subject of deep learning has been one of the most discussed fields in machine learning and artificial intelligence. It has produced state-of-the-art results in areas as diverse as computer vision, image recognition, natural language processing and speech recognition.(...) Heatmaps in R [Quant Finance Academy]In exploratory data analysis, we often need to visualize our data in different formats, in order to gain more understanding about the numbers and the relationship between the parameters. One such wonderful and informative representation is the ‘Heatmap’, which is basically a colored image, the(...) How To Compute Turnover With Return.Portfolio in R [QuantStrat TradeR]This post will demonstrate how to take into account turnover when dealing with returns-based data using PerformanceAnalytics and the Return.Portfolio function in R. It will demonstrate this on a basic strategy on the nine sector SPDRs. So, first off, this is in response to a question posed by one(...) State of Trend Following in April [Au Tra Sy]The state of trend following was negative last month, as it was in March. The index is now just above the zero-line for the year, back from nearly the +20% mark a month and a half ago. Please check below for more details. Detailed Results The figures for the month are: April return: -2.35% YTD(...) Cliff Asness's (AQR) View on Factor Timing [Quantpedia]Everyone seems to want to time factors. Often the first question after an initial discussion of factors is “ok, what’s the current outlook?” And the common answer, “the same as usual,” is often unsatisfying. There is powerful incentive to oversell timing ability. Factor investing is often(...) Machine learning for financial prediction: experimentation with Aronson’s latest work - part 2 [Robot Wealth]My first post on using machine learning for financial prediction took an in-depth look at various feature selection methods as a data pre-processing step in the quest to mine financial data for profitable patterns. I looked at various methods to identify predictive features including Maximal(...)