Quant Mashup
Quantocracy is now on Bluesky and Threads. See the links in the header. - Mike
Look-Ahead Bias, and Why Backtests Overpromise [Enjine]
The Korean drama ‘Sisyphus’ is a story about a couple of heroes who struggle against a villain from the future. Villains need deep pockets to pull off large schemes, and in Sisyphus’ case, the villain amasses his wealth by using his knowledge of the future to make money on the stock market. In
- 3 years ago, 21 Sep 2021, 12:14pm -
Monday’s Strong Selling & New Lows Triggered This Historically Bullish Setup [Quantifiable Edges]
Many studies identified by the Quantifnder Monday afternoon showed the strong selling and closing lows to be potentially bullish. And Turnaround Tuesday is typically the best day for a bounce to begin. The study below considered the long-term uptrend, intermediate-term low, and strong selling on
- 3 years ago, 21 Sep 2021, 12:14pm -
ESG Ratings are Noisy. Buyer Beware [Alpha Architect]
ESG products have been flooding the market and it is difficult for investors to assess the ground truth. To make matters worse, with limited sample size periods and datasets, trying to determine “evidence-based” ESG insights, is challenging. Nonetheless, we’ve been covering the academic
- 3 years ago, 21 Sep 2021, 12:14pm -
Researcher Motives [CXO Advisory]
Do motives of financial market researchers justify strong skepticism of their findings? In his brief August 2021 paper entitled “Be Skeptical of Asset Management Research”, Campbell Harvey argues that economic incentives undermine belief in findings of both academic and practitioner financial
- 3 years ago, 20 Sep 2021, 11:12am -
Are Stock Markets Becoming More Correlated? [Factor Research]
The correlation of stock markets has stopped increasing since the GFC The Value and Momentum factors are trading at peak correlations Correlations can change dramatically when using different data sources INTRODUCTION Globalization is less of a smooth ride on a river barge and more akin to river
- 3 years ago, 20 Sep 2021, 11:11am -
Research Review | 17 Sep 2021 | Financial Shocks And Crises [Capital Spectator]
We present a new database of banking-crisis interventions since the 13th century. The database includes 1886 interventions in 20 categories across 138 countries, covering interventions during all of the crises identified in the main banking-crisis chronologies, while also cataloguing a large number
- 3 years ago, 20 Sep 2021, 11:11am -
Introduction to Clustering Methods In Portfolio Management - Part 1 [Quantpedia]
At the beginning of October, we plan to introduce for our Quantpedia Pro clients a new Quantpedia Pro report dedicated to clustering methods in portfolio management. The theory behind this report is more extensive; therefore, we have decided to split the introduction into our methodology into three
- 3 years ago, 16 Sep 2021, 10:07pm -
Is Currency Momentum Factor Momentum? [Alpha Architect]
A large body of evidence, including the studies “Is There Momentum in Factor Premia? Evidence from International Equity Markets,” Factor Momentum Everywhere (Summary)” and “Factor Momentum and the Momentum Factor,” has demonstrated that momentum exists across financial markets (stocks,
- 3 years ago, 16 Sep 2021, 10:06pm -
Netting income [OSM]
For fundamental equity investors, the financial statement is the launchpad for the search for value. True, quants use financial statements too. But they spend less time on what the numbers mean, than on what they are. To produce a financial statement that adequately captures the economic (not GAAP
- 3 years ago, 15 Sep 2021, 10:03pm -
New Site! Designing a high-frequency-trading system/simulation lab [Caravaggio in Binary]
This text is a primer on how to develop a high-frequency-trading system/simulation lab, with focus on the Nasdaq exchange and the ITCH protocol. The code is entirely written in C and follows the data-oriented-design methodology. The reason for picking C instead of C++, when the latter is the
- 3 years ago, 13 Sep 2021, 10:40am -
Long Short Equity Strategy [Quant Insti]
As the name suggests, long short equity strategy is one where we take both long and short positions in different equities. This strategy is normally used by hedge funds to generate greater risk adjusted returns due to its inherently low risk characteristics. In this article, you will learn about how
- 3 years ago, 13 Sep 2021, 10:39am -
Equal vs Market Cap-Weighted Portfolios in Stock Market Crashes [Factor Research]
There is no consensus whether an equal or market cap-weighted allocation model for stocks is superior Both generated similar drawdowns during stock market crashes on average Theoretically, equal-weight is superior, but practically cap-weighted INTRODUCTION “Diversify, reduce fees, avoid active
- 3 years ago, 13 Sep 2021, 10:38am -
How To Reduce Lag In A Moving Average [Raposa Trade]
Moving average indicators are commonly used to give traders a general idea about the direction of the trend by smoothing the price series. One of the big drawbacks to most common moving averages is the lag with which they operate. A strong trend up or down may take a long time to get confirmation
- 3 years ago, 13 Sep 2021, 10:38am -
The Reciprocal Fibonacci Constant [Jonathan Kinlay]
- 3 years ago, 11 Sep 2021, 11:35am -
How to Use Lexical Density of Company Fillings [Quantpedia]
The application of alternative data is currently a strong trend in the investment industry. We, too, analyzed few datasets in the past, be it ESG data, sentiment, or company fillings. This article continues the exploration of the alt-data space. This time, we use the research paper by Joenväärä
- 3 years ago, 10 Sep 2021, 11:49am -
Optimizing implicitly using genetic algorithms [Quant Dare]
Sometimes it is too costly, even impossible, to explicitly optimize an equation. Today we will see how to optimize implicitly using genetic algorithms. Sometimes, in finance as well as in other aspects of life, a problem presents itself in the most clear of terms: an explicit equation which we must
- 3 years ago, 10 Sep 2021, 11:49am -
Is The Value Premium Smaller Than We Thought? [Alpha Architect]
From 2017 through March 2020, the relative performance of value stocks in the U.S. was so poor, experiencing its largest drawdown in history, that many investors jumped to the conclusion that the value premium was dead. It is certainly possible that what economists call a “regime change” could
- 3 years ago, 10 Sep 2021, 11:48am -
A New Return Asymmetry Investment Factor in Commodity Futures [Quantpedia]
As mentioned several times, Quantpedia is a big fan of transferring ideas from one asset class to another. This article is another example; we use an idea originally tested on Chinese stocks and apply it to the commodity futures investment universe. The resultant return new asymmetry investment
- 3 years ago, 8 Sep 2021, 09:09pm -
Managing Data Outliers With Quantile Regression: Part I [Capital Spectator]
One of the more difficult challenges for modeling is deciding how (or if) to deal with extreme data points. It’s a common problem in economic and financial numbers. Fat tailed distributions are standard fare in stock market returns, for example. Meanwhile, the dramatic collapse in the economy
- 3 years ago, 8 Sep 2021, 09:09pm -
Do Cryptocurrencies Improve Portfolio Diversification? [Alpha Architect]
Portfolio diversification benefits are often driven by correlation coefficients, but this analysis can get complicated, fast. Over time academics and practitioners have realized that it is not enough to simply calculate a correlation using short return intervals (daily?, monthly?) over a sample
- 3 years ago, 8 Sep 2021, 09:09pm -
Introduction to Hedge Ratio Estimation Methods [Hudson and Thames]
The hedge ratio estimation problem is one of the most important issues for portfolio managers. The key concept of the hedging problem can be posed as the following equation: S_{t}=P_{1, t}+\sum_{n=2}^{N} \omega_{n} P_{n, t} where P_1 represents the market value at observation t of a portfolio we
- 3 years ago, 7 Sep 2021, 11:35am -
Hierarchical Risk Parity: Introducing Graph Theory and Machine Learning in Portfolio Optimizer [Portfolio Optimizer]
In this short post, I will introduce the Hierarchical Risk Parity portfolio optimization algorithm, initially described by Marcos Lopez de Prado1, and recently implemented in Portfolio Optimizer. I will not go into the details of this algorithm, though, but simply describe some of its general ideas
- 3 years ago, 7 Sep 2021, 11:35am -
Why you need more data than you think in your backtest [Raposa Trade]
How many years does it take before you can be confident in a trading strategy? Does one great year mean you have a tremendous strategy? Does one bad year mean you should pack it up and try something else? How soon can you tell that a system is flawed and needs changing? These aren’t easy
- 3 years ago, 7 Sep 2021, 11:35am -
Truth and Liebor [Investment Idiocy]
This will be a bit different from my normal posts. It's basically some personal reflections on the LIBOR fixing scandal, prompted by having just read this book written by Stelios Contogoulas: This post isn't really a book review, although I will say that the book is definitely worth
- 3 years ago, 7 Sep 2021, 11:35am -
How to Trade the MACD: Four Strategies with Backtests [Raposa Trade]
The Moving Average Convergence-Divergence (MACD) is a popular and versatile indicator that appears in a number of trading systems. In it’s most basic form, we have the difference between two exponential moving averages (EMA), one fast and the other slow. The MACD is the difference between these
- 3 years ago, 5 Sep 2021, 10:01pm -
Ten things investors should know about nowcasting [SR SV]
Nowcasting in financial markets is mainly about forecasting forthcoming data reports, particularly GDP releases. However, nowcasting models are more versatile and can be used for a range of market-relevant information, including inflation, sentiment, weather, and harvest conditions. Nowcasting is
- 3 years ago, 5 Sep 2021, 10:00pm -
Matrix profile: Using Weakly Labeled Time Series to Predict Outcomes [Dekalog Blog]
Back in May of this year I posted about how I had intended to use Matrix Profile (MP) to somehow cluster the "initial balance" of Market Profile charts with a view to getting a heads up on immediately following price action. Since then, my thinking has evolved due to my learning about the
- 3 years ago, 5 Sep 2021, 10:00pm -
Handling Big Data [Jonathan Kinlay]
One of the major challenges that users face when trying to do data science is how to handle big data. Leaving aside the important topic of database connectivity/functionality and the handling of data too large to fit in memory, my concern here is with the issue of how to handle large data files,
- 3 years ago, 3 Sep 2021, 10:57am -
A Streamlit Dashboard for the @AlpacaHQ API (h/t @PyQuantNews)
The Alpaca brokerage service is very useful for algorithmic traders that comes with an API to retrieve data and execute trades in a paper or live environment. While you can also check the status and returns of your positions through the API, Alpaca has spent some time creating a frontend where users
- 3 years ago, 3 Sep 2021, 10:57am -
Factor Timing Is Tempting [Alpha Architect]
Academic research has found that factor premiums are both time-varying and dependent on the economic cycle. For example, Arnav Sheth, and Tee Lim, authors of the December 2017 study “Fama-French Factors and Business Cycles,” examined the behavior of six Fama-French factors—market beta (MKT),
- 3 years ago, 3 Sep 2021, 10:55am -
The three kinds of (over) fitting [Investment Idiocy]
This post is something that I've banged on about in many presentations at several conferences* (most complete slides are here), and in various interviews, but never actually formally described in a blog post. In fact this post has existed in draft form since 2015 (!). * you know, when you leave
- 3 years ago, 2 Sep 2021, 11:03am -
Purchasing Power Parity [Quant Dare]
Purchasing Power Parity (PPP) is a well-known measure used to compare the currencies of different countries in terms of price levels. So, in this post, we are going to explain PPP and study, through an example, its relation with the currency pairs. PPP is based on the law of one price (LOOP). For
- 3 years ago, 1 Sep 2021, 10:49am -
VVIX/VIX as a Return Indicator? [CXO Advisory]
Is the ratio of implied volatility of implied volatility (CBOE VVIX Index), interpretable as a measure of changes in investor fear level, to CBOE VIX Index itself a useful indicator of future stock market returns? To investigate, we relate monthly VVIX/VIX and monthly change in VVIX/VIX to monthly
- 3 years ago, 1 Sep 2021, 10:49am -
Mutual Funds: Negative $125B in Value-Add? [Alpha Architect]
Elton, Gruber, and Busse (2004) as well as Hortacsu and Syverson (2004) suggest that mutual fund markets are not perfectly competitive and that fees do matter to investors. In contrast, the neoclassical view of mutual funds (see for example Berk and Green, 2004; Pastor, Stambaugh and Taylor, 2019
- 3 years ago, 1 Sep 2021, 10:49am -
Caveats in Calibrating the OU Process [Hudson and Thames]
This is a series where we aim to cover in detail various aspects of the classic Ornstein-Uhlenbeck (OU) model and the Ornstein-Uhlenbeck Jump (OUJ) model, with applications focusing on mean-reverting spread modeling under the context of pairs trading or statistical arbitrage. Given the universality
- 3 years ago, 30 Aug 2021, 08:22pm -
Training Neural Networks: Why, As With Humans, Teaching Methods Matter [Enjine]
I achieved my life’s biggest accomplishment in 2004, when I defeated dozens of other contestants to clinch the Canadian Settlers of Catan championship. “Settlers”, as it’s called by its enthusiasts, is a strategy board game where players collect resources, build settlements, trade with and
- 3 years ago, 30 Aug 2021, 08:22pm -
The Best Systematic Trading Strategies in 2021: Part 3 [Quantpedia]
Finally, what are the five top-performing quantitative trading strategies in 2021? In part 1 of our article, we analyzed tendencies and trends among the Top 10 quantitative strategies of 2021. Thanks to Quantpedia Pro’s screener, we published several interesting insights about them. In part 2 of
- 3 years ago, 30 Aug 2021, 10:52am -
Building an Inflation Portfolio Using Asset Classes [Factor Research]
We recently explored using stocks to create an inflation-proxy portfolio that resulted in a collection of stocks with strong sector and factor biases. Specifically, the portfolio exhibited overweights in energy and financial stocks, perhaps as expected, as well as a long position in the value and
- 3 years ago, 30 Aug 2021, 10:51am -
Dijkstra algorithm [Quant Insti]
Start learning all about the Dijkstra algorithm for finding the shortest path. We briefly review the Kruskal algorithm, Prim algorithm, Johnson algorithm and Bellman algorithm as well. We'll cover: What is the Dijkstra algorithm? How does the Dijkstra algorithm work? Pseudo code of Dijkstra
- 3 years ago, 30 Aug 2021, 10:51am -
Countercyclical Trend Following [Allocate Smartly]
This is a test of a tactical strategy based on contrarian timing of the business cycle, increasing risk during periods of stress and decreasing risk during periods of calm. The strategy adds trend-following to this countercyclical approach to manage short-term market shocks. Backtested results from
- 3 years ago, 27 Aug 2021, 09:47pm -
International Tests of Factor Anomalies: Most Don’t Survive [Alpha Architect]
Since the development of the capital asset pricing model (CAPM) about 50 years ago, academic researchers have documented hundreds of “anomalies” that generate significant positive alpha. There are now so many that economist John Cochrane, in his 2011 presidential address to the American Finance
- 3 years ago, 27 Aug 2021, 09:46pm -
How to Use Exotic Assets to Improve Your Trading Strategy [Quantpedia]
As we have mentioned several times, the best course of action for a quant analyst who wants to develop a new trading strategy is to understand a well-known investment anomaly/factor fundamentally and then improve it. Quantpedia is a big fan of transferring ideas derived from academic research from
- 3 years ago, 26 Aug 2021, 12:57pm -
4 Ways to Trade the Trend Intensity Indicator [Raposa Trade]
Determining the strength of a trend can provide a valuable edge to your trading strategy and help you determine when to go long and let it ride, or not. This is what the Trend Intensity Indicator (TII) was designed to do. This indicator is as simple to interpret as more familiar values like the RSI.
- 3 years ago, 26 Aug 2021, 12:57pm -
Linear regression on market data using Python and R [Quant Insti]
This is the second installment of my series on regression analysis used in finance. In the first installment, we touched upon the most important technique in financial econometrics: regression analysis, specifically linear regression and two of its most popular flavours: univariate linear
- 3 years ago, 26 Aug 2021, 12:57pm -
Mean Reversion Entry: At Open vs. Intraday Pullback vs Confirmation [Alvarez Quant Trading]
For the mean reversion strategies that I have created in the past and are trading now, they typically enter at the next day’s open or wait for a further pullback intraday before entering. My current mean reversion strategy, which enters on a limit down, was doing great until a few months ago when
- 3 years ago, 25 Aug 2021, 12:49pm -
The Value Premium Might be Smaller Than We Originally Thought [Alpha Architect]
Remember HML? It was the original formulation for estimating the “value” premium published by Fama & French in 1992. In that seminal article, FF argued based on the results they obtained, that the risk of owning equity is multidimensional. One of those dimensions of risk they used was
- 3 years ago, 25 Aug 2021, 12:49pm -
Correlation Matrix Stress Testing: Shrinkage Toward an Equicorrelation Matrix [Portfolio Optimizer]
Financial research has consistently shown that correlations between assets tend to increase during crises and tend to decrease during recoveries1. The recent COVID-19 market crash was no exception, as illustrated on Alvarez Quant Trading blog post Correlations go to One for both the individual
- 3 years ago, 23 Aug 2021, 10:35pm -
The Best Systematic Trading Strategies in 2021: Part 2 [Quantpedia]
The year 2021 has been an incredible year for passive equity investors so far. However, in the first part of our article, we talked about quantitative strategies which achieved even better results in 2021 than passive US equity investors. Indeed, there do exist such strategies, at least definitely
- 3 years ago, 23 Aug 2021, 10:32pm -
Building a Long Volatility Strategy without Using Options [Factor Research]
Long volatility strategies can be built without using options Securities can be selected on different risk metrics like the VIX or high yield spread Although portfolios differ, the strategies exhibited similar trends INTRODUCTION We started our exploration of long volatility strategies by analyzing
- 3 years ago, 23 Aug 2021, 10:32pm -
Macro trends for trading models [SR SV]
Unlike market price trends, macroeconomic trends are hard to track in real-time. Conventional econometric models are immutable and not backtestable for algorithmic trading. That is because they are built with hindsight and do not aim to replicate perceived economic trends of the past (even if their
- 3 years ago, 23 Aug 2021, 10:31pm -