Quant Mashup Backtesting ESG Factor Investing Strategies [Quantpedia]Socially Responsible Investing (also called ESG Factor Investing) grows in popularity. More and more investors enter the stock market not just to invest their savings, but they are also want to support companies that bring positive social or environmental change. ESG factor investing can bring(...) The Size Effect in Multifactor Portfolios [Alpha Architect]The lack of a statistically significant size premium in the U.S. since the publication of Rolf Banz’s 1981 paper, “The Relationship Between Return and Market Value of Common Stocks,” published in the Journal of Financial Economics, led many investors to question its use in building portfolios.(...) Sentiment analysis: ifo business climate data [Grzegorz Link]Sentiment analysis is one of the investing tools I'm most fond of. There are multiple ways of measuring sentiment: from basic investor surveys to advanced text mining techniques, but one of the most robust and long-term datasets is ifo Institute's business climate sentiment polls.[4](...) Can neural networks predict the stock market just by reading newspapers? [Quant Dare]Markets are said to be driven by randomness, but this does not imply that they are 100% random and thus, completely unpredictable. In the end, there are always people behind investments and many of them are making decisions based on what they read in newspapers. We will be trying to estimate the(...) How to download fundamentals data with Python (h/t @PyQuantNews) [TheAutomatic.net]In this post we will explore how to download fundamentals data with Python. We’ll be extracting fundamentals data from Yahoo Finance using the yahoo_fin package. For more on yahoo_fin, including installation instructions, check out its full documentation here. Getting started Now, let’s import(...) Pairs Trading Literature Review [Robot Wealth]This post summarises the key lessons of the academic literature that has been published on pairs trading. The key themes are highlighted at the end of the page. Pair Trading Literature Review Gatev, Goetzmann, Rouwenhorst – “Pairs Trading: Performance of a Relative Value Arbitrage Strategy”(...) Using Aggregate TAA Allocation as a Tool for Timing the Market [Allocate Smartly]We track 50+ public Tactical Asset Allocation (TAA) strategies. A unique feature of our platform is that we show the aggregate allocation across all of those strategies each day (member link). For example, the graph below shows the aggregate allocation year to date by category of asset. Note the(...) Cheap vs. Expensive Factors: Does Valuation Matter for Future Returns? [Alpha Architect]Tesla (TSLA) breached the $100 billion market capitalization in January 2020 and became the most valuable car manufacturer globally. However, valuing the company is challenging given the growth profile, complexity of the business, and erratic CEO. It is not yet profitable and cash flow is negative,(...) Overnight and Intraday SPX returns [Robot Wealth]One of the things I’ve noticed from staring at the screen all day for the last few months is that most of the large negative returns in US stock indexes have come overnight. What do you mean by “overnight”? The core stock trading session for US stocks is between 9:30 am and 4 pm Eastern Time.(...) LSTM Networks: Can They Predict Equity Index Prices? [Quant Insti]In this article, we will study a deep learning framework based on recurrent neural networks to predict daily equity index price movements. Specifically, the focus will be on long short-term memory (LSTM) networks - which are a type of recurrent neural network. Different types of inputs and network(...) Why Passively Investing in Active Methods May Not Work [Alpha Architect]In this piece, David Blitz provides an interesting perspective on using the passive framework as a blueprint for constructing active (ETF-like) products. The article is not an empirical (no charts!) nor a theoretical (no analytics) analysis, but is focused on just one question: Is it efficient to(...) Using Apache Airflow to Extract CoT Data [Robot Wealth]In today’s post we are going to be extracting CoT (Commitment of Traders) reports from the CFTC website using a pipeline built on Apache Airflow. What is CoT data? The CoT report is a weekly publication which reports the open positions of market participants in the U.S futures market. It’s(...) Online Portfolio Selection: Momentum [Hudson and Thames]Today we will be exploring the second chapter of our newest online portfolio selection module, momentum. Momentum strategies have been a popular quantitative strategy in recent decades as the simple but powerful trend-following allows investors to exponentially increase their returns. This module(...) Value Crashes: Deep History [Two Centuries Investments]Value investing is struggling big time! As of March 2020, Value factor is down -51% from the peak reached 14 years ago. It is the longest and largest drawdown in value’s recent history. Many value investors have already rotated into growth. The remaining diehards also want to quit. Even Warren(...) Market Profile Chart in Octave [Dekalog Blog]In a comment on my previous post, visualising Oanda's orderbook, a reader called Darren suggested that I was over complicating things and should perhaps use a more established methodology, namely Market Profile. I had heard of Market Profile before Darren mentioned it, but had always assumed(...) Merger Arbitrage: Arbitraged Away? [Factor Research]As AUM in merger arbitrage has increased, alpha decreased Investors can access merger arbitrage via hedge funds, bank indices, and ETFs The strategy is not as uncorrelated from equities as likely perceived by allocators INTRODUCTION Working in the restructuring team of a corporate finance boutique(...) Equilibrium theory of Treasury yields [SR SV]An equilibrium model for U.S. Treasury yields explains how macroeconomic trends and related expectations for future short-term interest rates shape the yield curve. Long-term yield trends arise from learning about stable components in GDP growth and inflation. They explain the steady rise of(...) Tactical Asset Allocation in April: Stubbornly Defensive [Allocate Smartly]Tactical Asset Allocation (TAA) dodged the worst of the bear in February and March, but trailed the big bounce in April. Entering May, TAA remains stubbornly defensive. We track 50+ TAA strategies sourced from books, papers, etc., allowing us to draw broad conclusions about TAA as a style. In the(...) Performance After 10% Up Months [Quantifiable Edges]April finished with a 12.7% gain for the SPX. That is the strongest 1-month gain since January of 1987. In last night’s subscriber letter I decided to look back at all other instances following 1-month SPX (or its predecessor the S&P 90) gains of 10% or more. The table below shows all(...) What's the Story Behind EBIT/TEV? [Alpha Architect]A common question we receive at Alpha Architect is the following: Why do you focus on EBIT/TEV as a value screen for stocks instead of the more traditional measures such as book to price? In short, we believe stocks are ownerships in businesses (I know that sounds crazy coming from a quant shop!).(...) Using random forest to model limit order book dynamic [R Trader]In this article I use the random forest algorithm to forecast mid price dynamic over short time horizon i.e. a few seconds ahead. This is of particular interest to market makers to skew their bid/ask spread in the direction of the most favorable outcome. Most if not all the literature on the topic(...) The VIX Futures Basis [Robot Wealth]In the eye of the recent storm, with VIX up over 50, many traders were looking to “short the VIX” using products like TVIX. “Surely it’s going to coming back down?” Well yeah, it will, eventually, but that doesn’t mean that you can profitably short VIX products. First, some basics…(...) Understanding Neural Networks (with Graphs) [Quant Dare]Artificial Neural Networks (ANN) have been applied with success to many daily tasks that needed human supervision, but due to its complexity, it is hard to understand how they work and how they are trained. Along this blog, we have deeply talked about what Neural Networks are, how they work, and how(...) How to Design Intraday Algo-Trading Model for Cryptocurrencies using Bitcoin-based Signals? [Quant at Risk]With a growing popularity of cryptocurrencies and their increasing year-over-year traded volumes, crypto algo-trading is a next big thing! If you study this market closely you will notice that it offers quick gains in much shorter unit of time comparing to stocks or FX. No wonder why a participation(...) Overnight Risk Premium in Equity and Commodity Markets [Philipp Kahler]Over the last 20 years equity markets and ETFs did a significant part of their total performance over night. This article will examine the relationship of in-session moves vs. the out-of-session moves of ETFs and commodities. The overnight risk premium As an investor you can expect to get paid for(...) Ways to Measure Extreme Downside Risk [Alpha Architect]Larry Swedroe recently wrote a post titled “Is there a Tail Risk Premium in Stocks.” This post is a good complement to Larry’s as this paper proposes two new measures of systematic tail risk and explores whether they are associated with a significant risk premium. The first measure, Extreme(...) Introducing Online Portfolio Selection [Hudson and Thames]Online Portfolio Selection is an algorithmic trading strategy that sequentially allocates capital among a group of assets to maximize the final returns of the investment. Traditional theories for portfolio selection, such as Markowitz’s Modern Portfolio Theory, optimize the balance between the(...) VIX - Simple and Intuitive Explanation of Volatility Index [Only VIX]Few years ago I published two post trying to give simple explanations and intuition behind complicated formulas used for calculating vol indexes. However few of you emailed that some charts are missing from these older posts, and for technical reasons since I could not restore them, I decided to(...) Tranching, Trend, and Mean Reversion [Flirting with Models]In past research we have explored the potential benefits of how-based diversification through the lens of pay-off functions. Specifically, we explored how strategic rebalancing created a concave payoff while momentum / trend-following created a convex payoff. By combining these two approaches, total(...) Tail Risk Hedge Funds [Factor Research]Tail risk funds tend to be most in demand when they are least attractive Short-term bonds provided similar benefits to tail risk funds The TAIL ETF closely replicates the performance of tail risk funds INTRODUCTION In a year where the S&P 500 lost more than 30% in a few weeks, there are few(...) Efficiently Simulating Geometric Brownian Motion in R [Robot Wealth]For simulating stock prices, Geometric Brownian Motion (GBM) is the de-facto go-to model. It has some nice properties which are generally consistent with stock prices, such as being log-normally distributed (and hence bounded to the downside by zero), and that expected returns don’t depend on the(...) Podcast with @MebFaber: Why an investment plan is a must and how to behave in a market crash [System Trader Show]Meb Faber is a co-founder and the Chief Investment Officer of Cambria Investment Management. His speciality is quant investing. Meb is the host of The Meb Faber Show podcast and has authored numerous white papers and books. He is a frequent speaker and writer on investment strategies and has been(...) Risk premia [OSM]Our last post discussed using the discounted cash flow model (DCF) as a method to set return expectations that one would ultimately employ in building a satisfactory portfolio. We noted that if one were able to have a reasonably good estimate of the cash flow growth rate of an asset, then it would(...) Research Review | 24 April 2020 | Covid-19 Blowback [Capital Spectator]Howell E. Jackson (Harvard Law School) and Steven L. Schwarcz (Duke U.) April 19, 2020 The coronavirus has produced a public health debacle of the first-order. But the virus is also propagating the kind of exogenous shock that can precipitate – and to a considerable degree is already precipitating(...) Visualising Oanda's Orderbook [Dekalog Blog]My earlier post of 26th March shows code to visualise the most recent instantaneous snapshot of Oanda's order book, realised as a horizontal bar chart superimposed over a price chart. Below is a screen shot of a different type of chart designed to show the historical order book, which is(...) Paul Novell's Flagship Strategy SPY-COMP [Allocate Smartly]This is a test of the flagship proprietary strategy from Paul Novell’s Investing for a Living. Paul has been kind enough to share his strategy rules to allow for independent verification of his results. SPY-COMP is like Growth-Trend Timing and a handful of other tactical strategies we track, in(...) Trend Following is Everywhere [Alpha Architect]Similar to some better-known factors, such as size and value, time-series momentum (TSMOM) historically has demonstrated abnormal excess returns. For the less familiar with trend following it’s worth your time to review Alpha Architects white paper on trend following here. TSMOM is measured by a(...) Trend Analysis using Open Interest, Rollover and FII/DII Activity in Python [Quant Insti]The first quarter of 2020 has been one of the most challenging times in the post World War II era. The crash in oil prices due to geopolitical reasons and the COVID-19 global pandemic were the dominant themes. Financial markets act as bellwethers and give us a reflection of the overall sentiment for(...) Brent Oil Price Time-Series in Python with 1-Minute Data Sampling [Quant at Risk]Recent actions in WTI Futures pricing on Apr 20, 2020 caused my curiosity to have a deep look at intraday crude oil price time-series. With no surprise, I couldn’t find any free and effortlessly available dataset on the Internet. This is a common problem for lots of quants and data analysts:(...) The Pandemic Portfolio - Risk Parity, Convexity, and Multi-Asset Factors in Extreme Markets [Invest Resolve]How long will the recession last? How deep will it be? What are the long-term implications for the economy, markets, and society? The global pandemic has ushered in a period of extreme uncertainty and investors are left with too many unanswered questions and afraid for their portfolios. Where do we(...) Market Cap vs. Crash Severity [Alvarez Quant Trading]Has the market sell-off and subsequent bounce treated all stocks the same? A good portion of the bull market move from 2009 to 2019 has been led by the big-cap stocks. Did they hold up better during the March sell-off? What about with the bounce? Did the smaller-cap stocks have a bigger bounce? The(...) Hedging an Option through the Black-Scholes model in discrete time [Quant Dare]The Black-Scholes formula can be used to create a hedge for an option. However, this model is derived in continuous time. What happens when we use it to hedge an option in discrete-time? European options are financial securities which give their holder the right (but not the obligation) to buy or(...) Geek Note: How to Properly Lag Monthly Economic Data [Allocate Smartly]We’ll be talking about Paul Novell’s flagship SPY-COMP strategy on the blog tomorrow. The strategy uses monthly economic data, like the kind available from the FRED database. We’ve covered a handful of strategies like this in the past (think Philosophical Economics’ Growth Trend-Timing).(...) How to Compute Active Share [Alpha Architect]In the short video below, I show how to compute Active Share. The accompanying excel file with the formulas can be found here. I start by computing the active share for two hypothetical funds, and then examine the active share of a few live ETFs. Factor Momentum vs Factor Valuation [Falkenblog]I am not a fan of most equity factors, but if any equity factor exists, it is the value factor. Graham and Dodd, Warren Buffet, Fama and French have all highlighted value as an investment strategy. Its essence is the ratio of a backward-looking accounting value vs. a forward-looking discounting of(...) One Factor World [Two Centuries Investments]For the past decade, asset managers have been educating clients about factor investing as it became the new norm. And yet after all these years, portfolios are still composed of one factor: Equity Beta. Among many questionable assertions and assumptions behind factor investing (our thoughts here,(...) Estimating Pandemic Economic Costs for "Face-to-Face" Businesses [Alpha Architect]To describe the impact of social distancing, a theory of communication is developed and described comprehensively in this article. The focus is on the relative importance of worker interactions, the cost of those interactions and their impact on the size of wage subsidies intended as compensation(...) Smart Beta Fixed Income ETFs [Factor Research]Factor investing in fixed income has been heralded as the next frontier in asset management Smart beta fixed income ETFs in the US manage only slightly more than $2 billion of assets Defensive strategies reduced drawdowns during the ongoing coronavirus crisis INTRODUCTION Investing is becoming more(...) “Well, you… No, you gotta do more than that.” [Flirting with Models]Since 2009, any decision to de-risk in a trend equity portfolio has largely been the wrong decision. At the time of writing, we implement a 1-month tranching process in most of our trend mandates, which has the effect of dollar-cost averaging signal changes over a 1-month period. We adopted this(...) Dual Momentum & Rate of Change: Trading Strategy Review [Oxford Capital]Concept: Dual momentum trading strategy based on Rate of Change (ROC). Research Goal: Performance verification of dual momentum signals. Specification: Table 1. Results: Figure 1-2. Trade Filter: Long Filter: Slow Rate of Change (ROC1) is above zero. Short Filter: Slow Rate of Change (ROC1) is below(...)