Quant Mashup
Quantocracy is now on Bluesky and Threads. See the links in the header. - Mike
A Key New Momentum Measure to Consider: Distance from 1-Year High [Allocate Smartly]
This research was inspired by Alpha Architect’s coverage of a new paper looking at how the distance from a stock’s 1-year high has affected the performance of momentum strategies and the likelihood of “momentum crashes”. We look at the same question applied to a stock index: the S&P 500.
- 1 year ago, 22 May 2023, 09:00am -
The Single Greatest Predictor of Future Stock Market Returns, Ten Years After [Portfolio Optimizer]
In his 2013 post The Single Greatest Predictor of Future Stock Market Returns, Jesse Livermore1 from the blog Philosophical Economics introduced an indicator to forecast long-term U.S. stock market returns and empirically demonstrated that it outperformed all the commonly used stock market valuation
- 1 year ago, 22 May 2023, 08:59am -
Mark Virag's “Momentum Based Balancing”: Relative Momentum Taken to the Extreme [Allocate Smartly]
This a test of Mark Virag’s paper “Momentum Based Balancing for the Diversified Portfolio” (NAAIM Wagner Award winner, 2014). This is a relative momentum strategy that provides an interesting contrast to a popular strategy we track: FinancialMentor.com’s Optimum 3. More on this later.
- 1 year ago, 22 May 2023, 08:59am -
Trend Following in Equities [Finominal]
Long-only trend following in equities was more effective than long-short trend following in the US Same for European and Asian stock markets Perhaps explained by the negative skewness of stock markets INTRODUCTION Imagine a world where economic growth is anemic. Governments and central banks do
- 1 year ago, 22 May 2023, 08:59am -
Index Funds Reimagined? [Flirting with Models]
In Reimagining Index Funds (Arnott, Brightman, Liu and Nguyen 2023), the authors propose a new methodology for forming an index fund, designed to avoid the “buy high, sell low” behavior that can emerge in traditional index funds while retaining the depth of liquidity and capacity. Specifically,
- 1 year ago, 20 May 2023, 04:57pm -
Gold as a Safe-Haven Asset [Alpha Architect]
Abstract: In times of extreme macroeconomic events, including war, hyperinflation, or significant economic recessions, many investors believe gold investing is a safe haven. Is that belief warranted? Investors have concerns about the increased risks of inflation and a recession, Congress’ ability
- 1 year ago, 20 May 2023, 04:57pm -
FX trend following and macro headwinds [SR SV]
Trend following can benefit from consideration of macro trends. One reason is that macroeconomic data indicate headwinds (or tailwinds) for the continuation of market price trends. This is particularly obvious in the foreign-exchange space. For example, the positive return trend of a currency is
- 1 year ago, 20 May 2023, 04:57pm -
Creating a Returns Series with @Polygon_io Forex Data [Quant Start]
In this article we will access the Polygon API and download a month of intraday minutely Forex data. We will show you how to access the API, creating a Python function that can be easily adapted to extract FX data for various pairs across different timespans. We will also create and visualise a
- 1 year ago, 19 May 2023, 12:31am -
Ranking aggregation using genetic algorithms [Quant Dare]
In a previous post, we saw how to use genetic algorithms to make implicit optimizations. We used that technique to construct a portfolio, but in a very simple manner: we were just limited to 5 stocks, and we were looking for a constant weight for each of them, assuming daily rebalancing. Today, we
- 1 year ago, 19 May 2023, 12:30am -
Reducing the Impact of Negative Momentum Performance [Alpha Architect]
Momentum crashes are a blight on the performance of momentum strategies. Although there has been a fair amount of research on the topic, few practical solutions have emerged to mitigate the impact on portfolios. In this study, the authors document the outperformance of momentum stocks, made somewhat
- 1 year ago, 17 May 2023, 01:16am -
Emerging Market Funds: Same, Same, but Different? [Finominal]
Emerging markets offer divergent factor exposures across and within regions Smart beta ETFs do not necessarily offer high factor exposures It is all about fund selection INTRODUCTION We highlighted previously that the case for exposure to emerging markets (“EM”) stocks is not as clear as
- 1 year ago, 17 May 2023, 01:16am -
Clustering trading rule p&l [Investment Idiocy]
I recently upgraded my live production system to include all the extra instruments I've added on recently. I also did a little consolidation of trading rules, simplifying things slightly by removing some rules that didn't really have much allocation, and adding a couple from my new book.
- 1 year ago, 13 May 2023, 06:19pm -
Pursuing Factor Premiums at the Industry and Country Level [Alpha Architect]
Given the strong empirical evidence demonstrating the persistence, pervasiveness, robustness, and implementability of premiums for the factors of size, value, momentum, and profitability in the cross-section of returns, investors may be tempted to gain exposure to those factors across industries and
- 1 year ago, 13 May 2023, 06:18pm -
Winning with Simple, not even Linear Time-Series Models [Sarem Seitz]
As the name implies, today we want to consider almost trivially simple models. Although the current trend points towards complex models, even for time-series models, I am still a big believer in simplicity. In particular, when your dataset is small, the subsequent ideas might be useful. To be fair,
- 1 year ago, 10 May 2023, 10:35pm -
A Beginner's Guide to Using DuckDB with Stock Price Data in R [Robot Wealth]
In this blog post, I will demonstrate how to work with stock price data using the DuckDB database management system in R. DuckDB is a fast and lightweight analytical database engine that is designed to work with various programming languages, including R. You can use Duck DB from the command line or
- 1 year ago, 9 May 2023, 10:42pm -
The Gerber Statistic: A Robust Co-Movement Measure for Correlation Matrix Estimation [Portfolio Optimizer]
The Gerber statistic is a measure of co-movement similar in spirit to the Kendall’s Tau coefficient that has been introduced in Gerber et al.1 to estimate correlation matrices within the Markowitz’s mean-variance framework. In this post, after providing the necessary definitions, I will
- 1 year ago, 8 May 2023, 11:06pm -
Finding Funds with Diversification Potential [Finominal]
Downside betas do not help to identify diversifying strategies These need to be combined with upside betas Betas to the S&P 500 were more useful than betas to the VIX INTRODUCTION In our article Downside Betas vs Downside Correlations (read Downside Betas vs Downside Correlations) we contrasted
- 1 year ago, 8 May 2023, 11:05pm -
Building a S&P 500 company classification from Wikipedia articles (guided by ChatGPT) [Gautier Marti]
Collaboration with ChatGPT. I am still useful to package the experiment, and advertise it, but for how long? 🙂 In this joint work, I felt more like the robot copy-pasting rather than the author of the experiment. Sure, I did the prompting, but that too could be automated, after all building
- 1 year ago, 8 May 2023, 12:06am -
Trading and investing performance year nine - part 2: Futures trading [Investment Idiocy]
Here is part two of my annual review. Part one looked at my overall portfolio, including long only, but there was only a cursory look at my futures. Here in this second part I will be looking a my futures trading account in a lot more detail. It's important to say why I'm doing this.
- 1 year ago, 6 May 2023, 03:03am -
Macroeconomic cycles and asset class returns [SR SV]
Indicators of growth and inflation cycles are plausible and successful predictors of asset class returns. For proof of concept, we propose a single balanced “cyclical strength score” based on point-in-time quantamental indicators of excess GDP growth, labor market tightening, and excess
- 1 year ago, 6 May 2023, 03:02am -
Retail Investors - naive and biased? [Alpha Architect]
A series of events has led to significantly increased interest in stock and options trading by retail investors: The arrival of investing platforms (such as Robinhood) with zero trading commissions and no account minimums. The COVID-19 pandemic, causing many workers to largely remain at home for
- 1 year ago, 6 May 2023, 03:02am -
Community fav QuantStrat TradeR back posting after almost 2 year hiatus: This function VITAL for portfolio backtesting is now in Python [QuantStrat TradeR]
So, it’s been a little while. But after a couple of years of some grunt work analytics jobs *and* consulting for a $1B AUM fund, I’ve decided that I had a bit more in the tank to share as far as quant content creation–quantent creation (?)–goes. And a function I’ve searched for in Python
- 1 year ago, 4 May 2023, 01:48am -
ETF Trading: What's the best time? [Alpha Architect]
The expense ratio aside, the cost of transacting in an ETF depends on the size of the bid/ask spread at any point in time during the trading day. The ETF investor should make evidence-based trading decisions since the bid/ask spread can range from 1 basis point (bp) to several hundred bps. What are
- 1 year ago, 2 May 2023, 09:53pm -
Book Review: Volatility Trading [Gautier Marti]
A good book for an introduction to volatility from a trading perspective. Some excerpts from Volatility Trading by Sinclair: I am a trader. I am not a mathematician, financial engineer, or philosopher. My success is measured in profits. The tools I use and develop need only be useful. They need not
- 1 year ago, 2 May 2023, 09:53pm -
Upside versus Downside Stocks [Finominal]
Stocks can be ranked by their upside and downside betas to the S&P 500 Results in strong sector biases and factor exposures Excess returns from upside stocks were negative, zero for downside stocks INTRODUCTION Most capital allocators use correlation to identify strategies that may add
- 1 year ago, 2 May 2023, 09:52pm -
Trading and investing performance: year nine, part one [Investment Idiocy]
A bit late this year, due to a confluence of holidays, book launches, university exam writing and various other things. Here lies within my performance for the UK tax year 2022-23. Previous years can be found here. TLDR: Not great, absolute or relative. It was indeed a complete anus - horrible!.
- 1 year ago, 29 Apr 2023, 12:21am -
Vintage Economic Data [Allocate Smartly]
Some of the strategies we track use economic data, like the unemployment rate, when making investment decisions. Like 99.99% of strategy backtests you’ll encounter, we’ve always taken the shortcut of basing our historical results on that economic data as it looks today. The problem is that
- 1 year ago, 29 Apr 2023, 12:21am -
The Drivers of Booms and Busts in the Value Premium [Alpha Architect]
Over the almost 100 years that we have had data for U.S. stocks, the value premium (the annual average difference in returns, relative to accounting measures, from buying stocks whose market prices are low versus stocks whose market prices are high) has averaged 4.4% per year (when using
- 1 year ago, 29 Apr 2023, 12:20am -
Machine Learning Trading Essentials (Part 2): Fractionally differentiated features, Filtering, and Labelling [Hudson and Thames]
Welcome back, fellow traders and machine learning enthusiasts! We hope you’ve been enjoying our journey towards building a successful machine learning trading strategy. If you missed Part 1 of our series, don’t fret – you can always catch up on our exploration of various financial data
- 1 year ago, 27 Apr 2023, 02:12am -
Democratize Quant 2023 is Live. Sign-up! [Alpha Architect]
We will host our 6th annual “Democratize Quant” conference on May 18th via Zoom. The event is 100% free, but we do screen participants to enforce our “no spammers” policy. Request access Conference website Our speaker line-up is excellent, and we look forward to some exciting discussions.
- 1 year ago, 27 Apr 2023, 02:11am -
Novel explanations for risk-based option momentum [Alpha Architect]
Stock momentum trading is popular in practice and extensively investigated in academic studies. The paper finds a new option momentum, extending a recent study by Heston et al. (2022), who show that options also display momentum. Our risk-based option momentum is substantially stronger, has a risk
- 1 year ago, 27 Apr 2023, 02:11am -
Russell Death Cross Implications for SPX [Quantifiable Edges]
I have seen some chat about the Russell “Death Cross” that occurred on Friday and the potential bearish implications for the market. A “Death Cross” is a catchy (though not terribly accurate) term for when the 50-day moving average of a security cross below its 200-day moving average. It is
- 1 year ago, 24 Apr 2023, 10:28pm -
Book Review: Python for Finance Cookbook, 2nd Ed. [Quant at Risk]
Thanks to the courtesy of Packt Publishing, I had the pleasure of receiving, reading, and studying the new release of Python for Finance Cookbook, the book by Eryk Lewinson. This is the second (and probably the last) edition, according to the author himself. Therefore, it must be solid and
- 1 year ago, 24 Apr 2023, 10:28pm -
Downside Betas vs Downside Correlations [Finominal]
Investors typically use correlation to identify diversifying strategies, but the metric can be misleading Upside and downside betas and correlations provide a better perspective Common hedge fund strategies failed to provide attractive diversification benefits INTRODUCTION Are investors as rational
- 1 year ago, 24 Apr 2023, 10:27pm -
Social Networks and Markets: What's the connection? [Alpha Architect]
What are the Research Questions? Communication in social networks is not new. In fact, it goes back to coffee houses in the 17th century. According to Standage (2006), “the drama of the South Sea Bubble, a fraudulent investment scheme that collapsed in September 1720, ruining thousands of
- 1 year ago, 24 Apr 2023, 10:27pm -
The Quality Factor: can Intangible Intensity improve it? [Alpha Architect]
In our book “Your Complete Guide to Factor-Based Investing,” Andrew Berkin and I provided evidence that among the hundreds of equity factors identified in the literature, there were only five that met our criteria for investment. The factor must have provided a premium that was: persistent
- 1 year ago, 24 Apr 2023, 10:27pm -
Setting up an alpha-generating strategy from scratch: A practical example [DileQuante]
As a quantitative researcher, your main goal is to find new financial edges. In this article, we will show an overview of the pipeline for designing alpha-generating investment strategies, with associated python code as usual. Here are the main steps that will be presented. Investment rationale Data
- 1 year ago, 19 Apr 2023, 09:58pm -
Financial Machine Learning pitfalls: it’s levioosa, not leviosaa [Quant Dare]
Financial data is one of kind: we think is non-stationary, and the samples are non-iid, which means one cannot simply apply common machine learning techniques. In this post, we briefly cover some pitfalls when using machine learning algorithms in a financial context. 1. Harry Potter and the model
- 1 year ago, 19 Apr 2023, 09:58pm -
Advanced Futures Trading Strategies [Investment Idiocy]
Tommorrow marks the official release of my 4th book: Henceforth to be known as AFTS (I've had authors copies since the 24th February, but modern supply chains being what they are it takes considerably longer for the book to arrive in the hands of my readers; although plenty of people on twitter
- 1 year ago, 18 Apr 2023, 09:39am -
Portfolio Allocations vs Risk Contributions [Finominal]
Most investors analyze investment products based on their holdings However, holdings often misportray of what is determining the risk profile A factor exposure analysis can identify the performance & risk contributors INTRODUCTION It is difficult to watch an hour of European television and not
- 1 year ago, 18 Apr 2023, 09:38am -
Information Decay: which factors have the longest half-lives? [Alpha Architect]
What are the research questions? The authors argue that factor exposures are random variables governed by a specific distribution that drives the behavior factor exposures over time. Five factors are examined including value, momentum, quality, investment and low volatility, over 12 developed and
- 1 year ago, 18 Apr 2023, 09:38am -
Machine Learning Trading Essentials (Part 1): Financial Data Structures [Hudson and Thames]
Trading in financial markets can be a challenging and complex endeavour, with ever-changing conditions and numerous factors to consider. With markets becoming increasingly competitive all the time, it is a never ending struggle to stay ahead of the curve. Machine learning (ML) has made several
- 1 year ago, 13 Apr 2023, 10:17pm -
Corrected Cornish-Fisher Expansion: Improving the Accuracy of Modified Value-at-Risk [Portfolio Optimizer]
Modified Value-at-Risk (mVaR) is a parametric approach to computing Value-at-Risk introduced by Zangari1 that adjusts Gaussian Value-at-Risk for asymmetry and fat tails present in financial asset returns2 through a mathematical technique called Cornish–Fisher expansion. Since its publication, mVaR
- 1 year ago, 13 Apr 2023, 10:17pm -
Portfolio Tilts versus Overlays: It's Long/Short Portfolios All the Way Down [Flirting with Models]
Several years ago, I started using the phrase, “It’s long/short portfolios all the way down.” I think it’s clever. Spoiler: it has not caught on. The point I was trying to make is that the distance between any two portfolios can be measured as a long/short strategy. This simple point, in my
- 1 year ago, 12 Apr 2023, 09:53pm -
Trend-Following Filters – Part 6 [Alpha Architect]
This article analyzes six trend-following indicators from a digital signal processing (DSP) frequency domain perspective in which the indicators are considered as digital filters and their frequency response characteristics are determined. In addition, potential trading signals generated by each
- 1 year ago, 12 Apr 2023, 09:53pm -
BERT Model – Bidirectional Encoder Representations from Transformers [Quantpedia]
At the end of 2018, researchers at Google AI Language made a significant breakthrough in the Deep Learning community. The new technique for Natural Language Processing (NLP) called BERT (Bidirectional Encoder Representations from Transformers) was open-sourced. An incredible performance of the BERT
- 1 year ago, 12 Apr 2023, 09:53pm -
Terms of trade as FX trading signal [SR SV]
All other things equal, an improvement in a country’s terms of trade, the ratio of export to import prices, translates into increased demand for its currency and a boost for its growth outlook. However, terms of trade are a rather subtle and sporadic influence. Therefore, many market participants
- 1 year ago, 10 Apr 2023, 10:06pm -
Informational Efficiency of Stock Prices and Index Investing [Alpha Architect]
The authors ask the following questions: Does the rise of index investing change information production in the economy? Does it affect the informational efficiency of stock prices? What are the Academic Insights? The authors augment (and improve) the Grossman and Stiglitz (1980) model of endogenous
- 1 year ago, 10 Apr 2023, 10:06pm -
The Alpha Games: Technology Funds [Finominal]
US tech funds underperformed their benchmark indices by 4% between 2018 and 2022 The factor contributions were marginal This resulted in a median alpha of -4% over the 5-year period INTRODUCTION Every day, fortunes are won and lost on the stock market. However, investing in stocks is not a zero-sum
- 1 year ago, 10 Apr 2023, 10:05pm -
Mean reversion in government bonds [OS Quant]
Interest rates are not necessarily a pure random walk. This assumption falls out from noticing that yields of different bond maturities must be in some way related. Have a look at the yields of the 30 year and 3 year U.S. Treasuries in the plot below. Notice that the 3 year yield bounces up and down
- 1 year ago, 8 Apr 2023, 05:14pm -