Quant Mashup
Quantocracy is now on Bluesky and Threads. See the links in the header. - Mike
Gaussian gold [OSM]
Our previous post, used hierarchical clustering to identify market regimes in the gold miners ETF, GDX. This was inspired by a post from PyQuant News that highlighted a longer article from the London Stock Exchange Group (LSEG). In this post, we’ll continue looking at identifying market regimes
- 5 months ago, 21 May 2024, 09:18pm -
How to easily improve your Sharpe ratio (in no time) [PyQuant News]
Systematic risk affects the entire market and impacts the Sharpe ratio. Any trading strategy must consider the impact of systematic risk. While a strategy must involve some risk to make money, systematic risk cannot be diversified away. So, we need to build a hedge to get rid of it. By hedging
- 5 months ago, 21 May 2024, 09:18pm -
Skewness of Funds - Friend or Foe? [Finominal]
Some funds exhibit strong skewness profiles Skewness is highly time-varying and not necessarily a negative criteria Should be measured but unlikely managed INTRODUCTION The trouble with investing in emerging markets is that they are quite different, which requires extensive due diligence on each of
- 5 months ago, 21 May 2024, 09:18pm -
Tactical Asset Allocation and Taxes: FIFO vs LIFO Deep Dive [Allocate Smartly]
This is a deep dive into which share disposal method – FIFO or LIFO – would have been more tax advantageous for the 80+ asset allocation strategies we track. When selling shares FIFO (first in, first out), the oldest shares held are sold first. When selling LIFO (last in, first out), the most
- 6 months ago, 17 May 2024, 06:22pm -
Is There Alpha in Borrow Fees? [Quant Rocket]
Borrow fees reflect how likely short sellers think a stock is to decline. Can this information be incorporated into trading strategies as an alpha factor? This article uses Alphalens to explore the relationship between borrow fees and forward returns and uses Moonshot and Zipline to demonstrate ways
- 6 months ago, 17 May 2024, 06:21pm -
Golden clusters [OSM]
We recently saw a post from PyQuant News that piqued our interest, compelling us to dust off the old blog files and get back into the saddle. The post highlights a longer article from the London Stock Exchange Group (LSEG) on how to use different machine learning models to identify and forecast
- 6 months ago, 17 May 2024, 06:21pm -
Ehlers’ Ultimate Smoother [Financial Hacker]
In TASC 3/24, John Ehlers presented several functions for smoothing a price curve without lag, smoothing it even more, and applying a highpass and bandpass filter. No-lag smoothing, highpass, and bandpass filters are already available in the indicator library of the Zorro platform, but not Ehlers’
- 6 months ago, 17 May 2024, 06:21pm -
Social Media: The Value of Seeking Alpha’s Recommendations [Alpha Architect]
The increased popularity of social media as a forum for market participants to post and exchange opinions has been accompanied by heightened interest from academic researchers who have sought to determine if there is valuable information in the postings. For example, the June 2020 study “Do
- 6 months ago, 17 May 2024, 06:20pm -
Research Review | 17 May 2024 | Market Analytics [Capital Spectator]
Regime-Based Strategic Asset Allocation Eric Bouyé and Jerome Teiletche (World Bank) April 2024 What should investors do in the presence of economic regimes? Researchers and practitioners usually address this topic from a tactical asset allocation point of view. In this article, we depart from the
- 6 months ago, 17 May 2024, 06:20pm -
Message Arrival Rates and Latency [Mark Best]
There is a common debate when people are discussing code optimisation that relates to how fast code needs to be. A recent Twitter post about parsing binance BBA messages stated processing times of around 200ns. This is, in my admission, very fast. To put it into perspective, Serde is a common rust
- 6 months ago, 13 May 2024, 07:44pm -
Maximum Ulcer Performance Index (UPI) Portfolios [Allocate Smartly]
We’ve added a new objective to the Portfolio Optimizer. Members can now find the combination of TAA strategies that would have maximized the Ulcer Performance Index (UPI), aka the “Martin Ratio”. Members: begin exploring the Max UPI portfolios now. UPI is a measure of return relative to
- 6 months ago, 13 May 2024, 07:43pm -
Rob Hanna Wins the 2024 NAAIM Founders Award [Quantifiable Edges]
It was an exciting week here at Quantifiable Edges as it was officially announced that Rob Hanna won the National Association of Active Investment Managers (NAAIM) Founders Award, which is its annual white paper competition. The paper: Chicken & Egg: Should you use the VIX to time the SPX? Or
- 6 months ago, 13 May 2024, 07:43pm -
Options Trading with Cross-Sectional Volatility Factors [Robot Wealth]
A few years ago, I got deep into the idea of constructing a long/short equity options portfolio based on the kind of simple factor sorts that had been so successful in quant equity. My original intention was to set up an index and license it to fund managers. Of course, there are many reasons why
- 6 months ago, 13 May 2024, 07:43pm -
How Volatility and Turnover Affect Return Reversals [Alpha Architect]
In the research reviewed here, the authors analyze the relationship of aggregate market liquidity to the time-series performance of reversal strategies. The strength and persistence of reversals and reversal driven strategies appear to be different depending on specific risk features of those
- 6 months ago, 13 May 2024, 07:42pm -
Using Machine Learning Programs to Forecast the Equity Risk Premium [Alpha Architect]
The ability to predict stock returns and the equity risk premium (ERP) is of great interest to academics, financial practitioners, and investors, as future estimated returns have implications for asset allocations. To date, the best metric we have for forecasting future equity returns and the ERP is
- 6 months ago, 13 May 2024, 07:42pm -
Design Patterns for Order Latency - Why You May Need to Implement Your Own Gateway for Trading [Hanguk Quant]
Most recently, I announced some coming, exciting upcoming things for quantpylib: Exciting Additions to Quantpylib Exciting Additions to Quantpylib HangukQuant · May 6 Read full story as well as a demontration of its powers: Dual Momentum in Cryptocurrencies? Dual Momentum in Cryptocurrencies?
- 6 months ago, 10 May 2024, 02:04am -
Building Better High Yield Portfolios - II [Finominal]
The higher the yield, the lower the total return on average Combining the highest yielding strategies leads to risky portfolios Combining high yielding but uncorrelated strategies is more sensible INTRODUCTION We previously highlighted an almost linear inverse relationship between an investment
- 6 months ago, 10 May 2024, 02:03am -
Bootstrap Simulations with Exact Sample Mean Vector and Sample Covariance Matrix [Portfolio Optimizer]
Bootstrapping is a statistical method which consists in sampling with replacement from an original data set to compute the distribution of a desired statistic, with plenty of possible variations depending on the exact context (non-dependent data, dependent data…). Because bootstrap methods are
- 6 months ago, 5 May 2024, 11:01pm -
Dual Momentum in Cryptocurrencies? [Hanguk Quant]
Over the last few weeks, we talked about funding arbitrage, Crypto Arbitrage (1 Week Setup) Crypto Arbitrage (1 Week Setup) HangukQuant · Apr 10 Read full story extended the quant library to incorporate crypto backtesting Announcing Crypto and Other Backtesting Logic ; Quantpylib Announcing Crypto
- 6 months ago, 5 May 2024, 11:01pm -
Inventory scores and metal futures returns [SR SV]
Inventory scores are quantamental (point-in-time) indicators of the inventory states and dynamics of economies or commodity sectors. Inventory scores plausibly predict base metal futures returns due to two effects. First, they influence the convenience yield of a metal and the discount at which
- 6 months ago, 5 May 2024, 11:00pm -
Momentum and the Clarity of the Trend [Alpha Architect]
Momentum continues to receive much attention from researchers because of the strong empirical evidence. Out of the hundreds of exhibits in the factor zoo, momentum (both cross-sectional [long-short] and absolute [trend]) was one of just five equity factors that met all the criteria (persistent,
- 6 months ago, 5 May 2024, 11:00pm -
Make Things Easy on Yourself: “Roll up” Small Asset Positions [Allocate Smartly]
Here are some things we know about Tactical Asset Allocation: (Learn more: What is TAA?) We shouldn’t go 100% “all in” on just one TAA strategy. That introduces “specification risk”, or the risk that we’ve bet on an underperforming horse. Instead, we should combine multiple strategies
- 6 months ago, 3 May 2024, 11:31pm -
Replicate Fama French 5-Factor Model from publicly available data sources [DileQuante]
As an equity quantitative analyst, you have recurring positioning analysis tasks. Your most effective approach is to model your object of study (usually stocks, portfolios or indexes) and decompose its behavior into common risk factors. You can create your own “factor model” or use existing
- 6 months ago, 30 Apr 2024, 08:01pm -
Initial Test of Trading Forex News Announcements [Dekalog Blog]
My first test of trading forex news announcements is to test the efficacy of breakouts immediately following a news announcement related to the US dollar, specifically, only the high impact news as shown on the forexfactory calendar in red. The intention would be to capture some of the profit
- 6 months ago, 30 Apr 2024, 12:45am -
How to use autoencoders to create feature embeddings [PyQuant News]
Embeddings are used in neural networks to transform large, sparse data into manageable, dense formats. In other words, they simplify complex data, making it easier to analyze. We can use embeddings to capture dense information about drivers of stock returns. This approach is a great way to select
- 6 months ago, 30 Apr 2024, 12:45am -
Factor Investing Is Dead, Long Live Factor Investing! [Finominal]
Market-neutral multi-factor products have reached all-time highs However, long-only multi-factor products have consistently underperformed Portfolio construction and implementation matters INTRODUCTION Investors have been style investing since the inception of stock markets. Some chase trends, while
- 6 months ago, 30 Apr 2024, 12:45am -
MLMs: do they work better than traditional approaches? [Alpha Architect]
Can AI models improve on the failures in predicting returns strictly from a practical point of view? In this paper, the possibilities are tested with a battery of AI models including linear regression, dimensional reduction methods, regression trees and neural networks. These machine learning models
- 6 months ago, 30 Apr 2024, 12:44am -
Cluster Risk Parity: Equalizing Risk Contributions Between and Within Asset Classes [Portfolio Optimizer]
The equal risk contribution (ERC) portfolio, introduced in Maillard et al.1, is a portfolio aiming to equalize the risk contributions from [its] different components1. Empirically, the ERC portfolio has been found to be a middle-ground alternative1 to an equally weighted portfolio and a minimum
- 6 months ago, 25 Apr 2024, 10:03pm -
A Simple Trick for Dealing with Overlapping Data [Robot Wealth]
Last week, we looked at simple data analysis techniques to test for persistence. But we only looked at a feature that is measured over a single day – the absolute range. Such a feature makes it easy to test persistence because you don’t have the problem of overlapping data. Each data point is
- 6 months ago, 25 Apr 2024, 10:02pm -
Portable alpha for all: Return stacked strategies for diversification without sacrifice [Invest Resolve]
Diversification is the cornerstone of investing. This principle, fundamentally understood as not concentrating all resources into a single investment, inherently seeks to minimise risk while potentially smoothing out returns over the long term. By spreading investments across uncorrelated assets,
- 6 months ago, 25 Apr 2024, 10:02pm -
A Re-introduction To Quantitative Investing [Investing For A Living]
It’s been almost 11 years now since I posted my introduction to quantitative investing. It’s kind of hard to believe as I’m typing these words. A lot has happened since that summer day in 2013. And a lot has stayed the same. Learning about, implementing, and allocating to this type of
- 6 months ago, 22 Apr 2024, 10:26pm -
Macroeconomic data and systematic trading strategies [SR SV]
While economic information undeniably wields a significant and widespread influence on financial markets, the systematic incorporation of macroeconomic data into trading strategies has thus far been limited. This reflects skepticism towards economic theory and serious data problems, such as
- 6 months ago, 22 Apr 2024, 10:26pm -
Quality versus Low Volatility ETFs [Finominal]
Quality and low volatility stocks provide substantially different exposures Neither has outperformed the stock market, but both were less volatile Low volatility stocks have done poorly in recent years INTRODUCTION If you believe that the economy is entering a recession and can only invest in
- 6 months ago, 22 Apr 2024, 10:26pm -
Basic DSPy RAG tutorial on DataGrapple blog posts [Gautier Marti]
This blog is more a note to self for experimenting further with DSPy (arXiv, GitHub) than a pedagogical or original intro to the framework. It essentially follows this weaviate tutorial with small adaptations, notably removing the weaviate part of it, and replacing their retrieval module by a very
- 7 months ago, 18 Apr 2024, 05:14am -
Can Google Trends Sentiment Be Useful as a Predictor for Cryptocurrency Returns? [Quantpedia]
In the fast-paced world of cryptocurrencies, understanding market sentiment can provide a crucial edge. As investors and traders seek to anticipate the volatile movements of Bitcoin, innovative approaches are continuously explored. One such method involves leveraging Google Trends data to gauge
- 7 months ago, 18 Apr 2024, 05:14am -
Is Sector Neutrality in Factor Investing a Mistake? [Alpha Architect]
The justification for neutralizing sectors in factor strategies is a work in progress. To date, academic researchers haven’t had an empirical model to mimic the impact of removing sector “effects” on the measurement and performance of factor strategies. The authors develop and test a
- 7 months ago, 18 Apr 2024, 05:13am -
Use Markov models to detect regime changes [PyQuant News]
It’s rumored that Renaissance Technologies uses hidden Markov models in their trading. In fact, the Baum-Welch algorithm used with Markov models was partially invented by Leonard Baum who would help found RenTec. In today’s newsletter, we’ll look an example of using a Markov model to detect
- 7 months ago, 13 Apr 2024, 08:33pm -
Research Review | 12 April 2024 | Equity Risk Premium [Capital Spectator]
Macroeconomic Announcement Premium Hengjie Ai (University of Wisconsin-Madison), et al. November 2023 The paper reviews the evidence on the macroeconomic announcement premium and its implications on equilibrium asset pricing models. Empirically, a large fraction of the equity market risk premium is
- 7 months ago, 13 Apr 2024, 08:32pm -
Minimizing the Risk of Cross-Sectional Momentum Crashes [Alpha Architect]
While empirical research on cross-sectional (long-short) momentum has shown high returns, investors have also experienced huge drawdowns—momentum exhibits both high kurtosis and negative skewness. Since 1926, there have been several momentum crashes that featured short but persistent periods of
- 7 months ago, 13 Apr 2024, 08:31pm -
Trend Following with Return Stacking [Investing For A Living]
After my last post on using trend following in Crypto markets I thought I’d continue on that thread and look at applying trend following on a newish concept (similar concepts have existed at the institutional level for a long time) in creating diversified portfolios, called return stacking. First,
- 7 months ago, 11 Apr 2024, 10:22pm -
Factor Olympics Q1 2024 [Finominal]
Some factor trends continued from 2023, but there were also two significant rotations Momentum performed the best, size the worst Most long-short multi-factor products have generated positive excess returns INTRODUCTION We present the performance of five well-known factors on an annual basis for the
- 7 months ago, 11 Apr 2024, 10:21pm -
Trend Following in Crypto Markets [Investing For A Living]
It has been a while since I’ve updated the blog. These days I spend most of my time writing for subscribers of my newsletter but I’d like to get back to writing publicly again. So, to launch myself back into public blogging I thought I would write about Crypto and how classic trend following
- 7 months ago, 6 Apr 2024, 06:12pm -
FX trading signals with regression-based learning [SR SV]
Regression-based statistical learning helps build trading signals from multiple candidate constituents. The method optimizes models and hyperparameters sequentially and produces point-in-time signals for backtesting and live trading. This post applies regression-based learning to macro trading
- 7 months ago, 6 Apr 2024, 06:12pm -
How to replicate your favorite investment portfolio [PyQuant News]
Market indices are vital in finance, offering investors a quick look at the overall performance of a specific market or sector. They act as benchmarks for assessing the performance of different investment portfolios. Investors can copy the performance of an index for exposure to securities without
- 7 months ago, 6 Apr 2024, 06:12pm -
How to Test the Assumption of Persistence [Robot Wealth]
An assumption we often make in trading research is that the future will be at least a little like the past. I see a lot of beginners making this assumption implicitly without recognising that they’re making it or thinking about whether it’s reasonable to do so. That’s a mistake. If you are
- 7 months ago, 5 Apr 2024, 07:52pm -
Macro trends and equity allocation: a brief introduction [SR SV]
Macroeconomic trends affect stocks differently, depending on their lines of business and their home markets. Hence, point-in-time macro trend indicators can support two types of investment decisions: allocation across sectors within the same country and allocation across countries within the same
- 7 months ago, 5 Apr 2024, 07:52pm -
Economic Momentum [Alpha Architect]
Out of the hundreds of exhibits in the factor zoo, momentum was one of just five equity factors that met all the criteria (persistent, pervasive, robust, implementable, and intuitive) Andrew Berkin and I established in our book Your Complete Guide to Factor-Based Investing. Because of the strong
- 7 months ago, 2 Apr 2024, 01:18am -
Optimal Mean-Reversion Strategies [Jonathan Kinlay]
Consider a financial asset whose price, Xt, follows a mean-reverting stochastic process. A common model for mean reversion is the Ornstein-Uhlenbeck (OU) process, defined by the stochastic differential equation (SDE): Objective The trader aims to maximize the expected cumulative profit from
- 7 months ago, 2 Apr 2024, 01:18am -
Duration as an Equity Factor [Finominal]
Stocks can have a high, low, or negative sensitivity to interest rates The duration profile of stocks changes frequently Having rates exposure in an equities portfolio is not necessarily a concern INTRODUCTION The goal of conducting research is to provide clarity by answering questions or confirming
- 7 months ago, 2 Apr 2024, 01:17am -
Cryptocurrency Market Dynamics Around Bitcoin Futures Expiration Events [Quantpedia]
In the rapidly evolving landscape of cryptocurrency markets, understanding the underlying dynamics that drive price movements and investor sentiment can be a matter of survival. However, there are myriad facets of trading reality, and the only thing that we can do is to slowly understand them one
- 7 months ago, 27 Mar 2024, 11:13pm -