Quant Mashup
Quantocracy is now on Bluesky and Threads. See the links in the header. - Mike
Quickly store 2,370,886 rows of historic options data with ArcticDB [PyQuant News]
Over 1,200,000 options contracts trade daily. Storing options data for analysis has become something only professionals can do using sophisticated tools. One of the professionals recently open sourced their tools for lightening fast data storage and retrieval. ArcticDB is a DataFrame database that
- 10 months ago, 30 Dec 2023, 03:16am -
Tracking systematic default risk [SR SV]
Systematic default risk is the probability of a critical share of the corporate sector defaulting simultaneously. It can be analyzed through a corporate default model that accounts for both firm-level and communal macro shocks. Point-in-time estimation of such a risk metric requires accounting data
- 10 months ago, 30 Dec 2023, 03:16am -
The Financial Distress Puzzle [Alpha Architect]
That riskier assets should command higher expected returns is the most basic of asset pricing theories. Clearly, financial distress is a risk characteristic, but it presents a puzzle, as there has not been a linear relationship between it and stock returns. For example, John Birge and Yi Zhang,
- 10 months ago, 30 Dec 2023, 03:16am -
Differentiated Trend Following [Return Sources]
Trend following boils down to one basic idea: buy when the price goes up, and sell when it goes down. Its implementation, though, could be much more complicated. There are a myriad methods and timeframes to choose from, and these methods and timeframes are by and large the dials that CTAs can turn
- 10 months ago, 26 Dec 2023, 10:08pm -
Easily cross-validate parameters to boost your trading strategy [PyQuant News]
Trading strategies often rely on parameters. To enhance and effectively cross-validate these parameters can provide a competitive advantage in the market. However, reliable cross-validation strategies can lead to look-ahead bias and other pitfalls that can lead to overestimating a strategy’s
- 10 months ago, 26 Dec 2023, 07:13pm -
Are stock returns predictable at different points in time? [Alpha Architect]
The question of whether stock returns are predictable is of long-standing interest to both academics and investment practitioners. Commonly accepted investment strategies, for example, will behave quite differently in the presence of stock return predictability. The research literature is unclear on
- 10 months ago, 26 Dec 2023, 07:13pm -
Momentum Everywhere, Including Equity Options [Alpha Architect]
Because of the strong evidence, momentum continues to receive much attention from researchers. Out of the hundreds of exhibits in the factor zoo, one of just five equity factors that met all the criteria (persistent, pervasive, robust, implementable, and intuitive) Andrew Berkin and I established in
- 10 months ago, 26 Dec 2023, 07:12pm -
2023 Rally - How Strong Is It? [Alvarez Quant Trading]
This end of year rally which started on October 2023 has been strong. My trading buddy and I started wondering how this compares to the past. Is this a “normal” strong rally or an “abnormally” strong one? Determining this is always tough because it depends on the indicators you use. Because
- 11 months ago, 21 Dec 2023, 11:34pm -
Judging the Quality of Indicators [Dekalog Blog]
In my previous post I said I was trying to develop new indicators from the results of my new PositionBook optimisation routine. In doing so, I need to have a methodology for judging the quality of the indicator(s). In the past I created a Data-Snooping-Tests-GitHub which contains some tests for
- 11 months ago, 21 Dec 2023, 11:34pm -
Research Review | 21 DEC 2023 | Portfolio Design & Risk Factors [Capital Spectator]
Factor Zoo (.zip) Alexander Swade (Lancaster University) et al. October 2023 The number of factors allegedly driving the cross-section of stock returns has grown steadily over time. We explore how much this ‘factor zoo’ can be compressed, focusing on explaining the available alpha rather than
- 11 months ago, 21 Dec 2023, 11:34pm -
Trend Following VS. Volatility Capping: Two Kinds of Insurance [Return Sources]
An equity investor can purchase two kinds of financial insurance. The first, more straightforward kind, is a put option. This contract simply pays off when the S&P 500 (which we’ll use as our stand-in for “equity”) goes down. In other words, it’s like any other insurance contract. It
- 11 months ago, 20 Dec 2023, 02:04am -
Beyond Modified Value-at-Risk: Application of Gaussian Mixtures to Value-at-Risk [Portfolio Optimizer]
In a previous post, I described a parametric approach to computing Value-at-Risk (VaR) - called modified VaR12 - that adjusts Gaussian VaR for asymmetry and fat tails present in financial asset returns3 thanks to the usage of a Cornish–Fisher expansion. Modified VaR, when properly used4, provides
- 11 months ago, 19 Dec 2023, 06:52pm -
Can Machine Learning help to select mutual funds with positive alpha? [Alpha Architect]
The study emphasizes the importance of integrating machine learning with other tools for investment managers, pension-plan administrators, financial advisors, and independent analysts to help investors select active mutual funds with positive alpha. It also highlights the significance of fund
- 11 months ago, 19 Dec 2023, 06:51pm -
Spearman's rank correlation of technical indicators [Grzegorz Link]
RSI, MACD, Stochastic, ROC, CCI, %b - technical indicators come in many shapes and sizes.[1] Their names suggest something very technical at play. Maybe even scientific. Yet, they are a polarizing tool. They generate strong, opposing opinions. Some traders value them with near religious zeal, while
- 11 months ago, 19 Dec 2023, 12:15am -
Directional Change in Trading: Indicators, Python Coding, and HMM Strategies [Quant Insti]
Usually, regime detection is made with an HMM estimation over price returns or price return volatility. However, Chen and Tsang (2021) propose to use the Directional Change indicators as input for a HMM to detect regime shifts. They show that the HMM applied to the Directional Change indicators
- 11 months ago, 19 Dec 2023, 12:14am -
How to ingest premium market data with Zipline Reloaded [PyQuant News]
This article explains how to build the two Python scripts you need to use premium data to create a custom data bundle using Zipline Reloaded. Step 1: Subscribe to premium data By now you should already have an account with Nasdaq Data Link. If not, head over to https://data.nasdaq.com and set one
- 11 months ago, 19 Dec 2023, 12:13am -
Are Alternative Social Data Predictors Useful for Effective Allocation to Country ETFs? [Quantpedia]
The part of the attention of our own research from the last few months was a little skewed on the side of countries’ indices and their corresponding ETFs representing them, and we finally conclude our “trilogy” of investigation on the efficiency of these markets. Firstly, we analyzed
- 11 months ago, 16 Dec 2023, 06:06pm -
The Temptation of Factor Timing [Alpha Architect]
The timing of equity factor premiums has a strong allure for investors because 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
- 11 months ago, 16 Dec 2023, 06:05pm -
Pick the best strike and expiration for trading options [PyQuant News]
One of the hardest parts of trading options is picking the best strike price and expiration date for your strategy. Whether a simple covered call or more complex strangles, the key to success is constructing the position. But backtesting options is tough: There are millions of contracts that trade
- 11 months ago, 16 Dec 2023, 06:05pm -
How Much Damage Can I Do Turbo-Punting Shitcoins? [Robot Wealth]
Here in Australia, we’re right in the depths of the silly season. We indulge in long lunches, take days off work, and generally let our hair down. In that spirit, I thought I might have some fun punting shitcoins. (Maybe my definition of fun differs from yours, but let’s run with it). For the
- 11 months ago, 13 Dec 2023, 09:10pm -
Portfolio optimisation, uncertainty, bootstrapping, and some pretty plots. Ho, ho, ho [Investment Idiocy]
Twas the night before Christmas, and all through the house.... OK I can't be bothered. It was quiet, ok? Not a creature was stirring... literally nothing was moving basically. And then a fat guy in a red suit squeezed through the chimney, which is basically breaking and entering, and found a
- 11 months ago, 12 Dec 2023, 08:46pm -
Why A New High Before A Fed Day Is Discouraging [Quantifiable Edges]
Wednesday is a Fed Day. Fed Days have historically shown an upside tendency. I have documented this tendency in great detail over the years. A higher close today would not be the most favorable Fed Day setup. A big reason for this is that it would mark a 20-day high close. Fed Day bullishness has
- 11 months ago, 12 Dec 2023, 08:45pm -
Managed Futures Rotation [Return Sources]
Managed futures / trend following is a valuable strategy to have in a portfolio, but it's also somewhat difficult to hold. The reason is that its positive performance tends to come in bursts, as opposed to steadily over time. This can (and does) lead to frustration as the investment in managed
- 11 months ago, 11 Dec 2023, 08:31pm -
The Illusion of the Small-Cap Premium [Finominal]
Small-cap investing is intuitively appealing However, small-caps have underperformed in most markets Screening out low-quality small-caps has not helped significantly INTRODUCTION Investing means parting ways with your money, which is not something we tend to do lightly. The easiest way to get
- 11 months ago, 11 Dec 2023, 08:31pm -
Brownian Motion Simulation with Python [Quant Start]
In this article we will explore simulation of Brownian Motions, one of the most fundamental concepts in derivatives pricing. Brownian Motion is a mathematical model used to simulate the behaviour of asset prices for the purposes of pricing options contracts. A typical means of pricing such options
- 11 months ago, 10 Dec 2023, 07:24pm -
Simulation of Gary Antonacci’s Dual Momentum Sector Rotation Strategy [NLX Finance]
Here’s a backtest of Gary Antonacci’s DMSR (Dual Momentum Sector Rotation) strategy. The author is best known for his GEM (Global Equity Momentum) strategy, which he popularised in 2014, in his book « Dual Momentum Investing: An Innovative Strategy for Higher Returns with Lower Risk »,
- 11 months ago, 10 Dec 2023, 07:24pm -
Adaptive Asset Allocation Replication [Foss Trading]
The paper, “Adaptive Asset Allocation: A Primer” by Adam Butler, Mike Philbrick, Rodrigo Gordillo, and David Varadi addresses flaws in the traditional application of Modern Portfolio Theory related to Strategic Asset Allocation. It shows that estimating return and (co)variance parameters over
- 11 months ago, 9 Dec 2023, 04:06am -
The Art and Science of Trading Carry [Robot Wealth]
Let’s talk about carry trades. First, what exactly is a carry trade? A carry trade is a trade that pays you to hold it. A position where, if nothing changes except the passing of time, you expect to make money. Let’s go through some examples. FX carry The classic example is the FX carry trade,
- 11 months ago, 9 Dec 2023, 04:06am -
Diseconomies of Scale in Investing [Alpha Architect]
Abstract: One of the problems for investment funds is that success contains the seeds of destruction as cash inflows follow outperformance. In his seminal 2005 paper, “Five Myths of Active Portfolio Management,” Jonathan Berk suggested asking, “Who gets money to manage?” He answered that
- 11 months ago, 9 Dec 2023, 04:06am -
The "Strike Price" of Long-Only Trend Following [Return Sources]
Long-only trend following is a popular way to protect equity portfolios from huge drawdowns, and for several good reasons: 1) It has the advantage of behaving somewhat like insurance, or put options, in that you’re exposed to much of the upside and not much of the downside. 2) It doesn’t damage
- 11 months ago, 6 Dec 2023, 09:37pm -
How to stream real-time options data [PyQuant News]
I’ve been trading options contracts for more than 23 years. When I started out, I had to rely on expensive broker data feeds for real-time options data for trading and low-quality free data I scraped from websites for analysis. I spent countless hours reverse engineering the CBOE website for
- 11 months ago, 6 Dec 2023, 04:38pm -
Introduction to XGBoost in Python [Quant Insti]
XGBoost…!!!! Often considered a miraculous tool embraced by machine learning enthusiasts and competition champions, XGBoost was designed to enhance computational speed and optimise machine learning model’s performance. Let's proceed with XGBoost!!! We will cover the following things: Brief
- 11 months ago, 6 Dec 2023, 04:38pm -
Forecasting time series with decomposition [PyQuant News]
In today’s newsletter, I’m going to show you how to forecast a time series of US unemployment data using decomposition. Time series decomposition is breaking down a single time series into different parts. Each part represents a pattern that you can try to model and predict. The patterns usually
- 11 months ago, 6 Dec 2023, 04:37pm -
After-Tax Performance of Actively Managed Funds [Alpha Architect]
Market efficiency, higher trading costs and higher expense ratios are not the only hurdles to successful active management (market timing and individual security selection). For taxable investors, the burden of higher taxes raises the hurdle.(1) From 2002 until now, S&P Dow Jones Indices has
- 11 months ago, 6 Dec 2023, 04:37pm -
Cloud or Local: Where to Run Your Quant Trading? [Quant Rocket]
Is it better to run your quant trading in the cloud or locally? In this article, I outline the pros and cons of each approach and explain why running locally is often better for research while running in the cloud is better for live trading. Don't assume the cloud is better It's common to
- 11 months ago, 1 Dec 2023, 03:40am -
What is a robust stochastic volatility model – research paper [Artur Sepp]
I would like to share my research and thoughts about stochastic volatility models and, in particular, about the log-normal stochastic volatility model that I have been developing in a series of papers (see introductory paper with Piotr Karasinski in 2012, the extension to include quadratic drift
- 11 months ago, 29 Nov 2023, 08:32pm -
Commodity carry as a trading signal – part 2 [SR SV]
Carry on commodity futures contains information on implicit subsidies, such as convenience yields and hedging premia. Its precision as a trading signal improves when incorporating adjustments for inflation, seasonal effects, and volatility. There is strong evidence for the predictive power of
- 11 months ago, 29 Nov 2023, 08:32pm -
A New Book Takes A Deep Dive At Solving The Portfolio Problem [Capital Spectator]
Financial “wisdom” is said to be cyclical rather than cumulative, but that’s unfair. At least in the dominion of portfolio management and design, academics and money managers have made great strides in decoding Mr. Market’s cryptic signals over the past half century. The challenge, having
- 11 months ago, 29 Nov 2023, 08:32pm -
Statistical Shrinkage (4) - Covariance estimation [Eran Raviv]
A common issue encountered in modern statistics involves the inversion of a matrix. For example, when your data is sick with multicollinearity your estimates for the regression coefficient can bounce all over the place. In finance we use the covariance matrix as an input for portfolio construction.
- 11 months ago, 29 Nov 2023, 08:31pm -
A Guide to Forecast Scalars [Return Sources]
In my last post about the overnight anomaly, I created a trading signal based on the difference between recent overnight returns and recent intraday returns. I calculated the signal for various time frames (ranging from about a week to about a year), and I mentioned that I applied different
- 11 months ago, 28 Nov 2023, 10:48pm -
Overlapping Momentum Stocks - do they cause outperformance? [Alpha Architect]
Momentum investors utilize different timeframes to identify high momentum equities: past 6, 9, 12 months as an example. Obviously, there is a significant degree of overlap in momentum stocks identified across various past time frames. However, there has been little research focused on understanding
- 11 months ago, 28 Nov 2023, 10:48pm -
Improving the default plot timescale for backtesting in R [Babbage9010]
Default plots often include a few or many bars of misleading data where a strategy may have zeros or NAs compared with the benchmark, for example where the strategy uses a moving average lookback period before generating a trade signal. There’s a simple way to start the plot after the strategy is
- 11 months ago, 26 Nov 2023, 04:43pm -
Covered calls: are investors making a devil's bargain? [Alpha Architect]
Many retail investors focus on generating what they consider to be income, leading to the popularity of dividend-focused strategies. To take advantage of this demand, investment firms have marketed covered call strategies that are purported to not only generate income but also reduce volatility.
- 11 months ago, 26 Nov 2023, 04:43pm -
The Overnight Anomaly: Alive and Well [Return Sources]
In finance, the “overnight anomaly” is the name for the unusual phenomenon that overnight stock market returns are much higher than intraday returns. In a 2008 paper, “Return Differences between Trading and Non-trading Hours: Like Night and Day”, the authors break down the U.S. equity
- 1 year ago, 22 Nov 2023, 12:15am -
A Long-Term Look at the Wednesday Before Thanksgiving [Quantifiable Edges]
Thanksgiving week has shown some strong seasonal tendencies over the years. I’ve documented this in years past on the blog. From a seasonal standpoint, Wednesday before Thanksgiving is one of the most bullish trading days of the year. The chart below shows performance from Tuesday’s close to
- 1 year ago, 22 Nov 2023, 12:13am -
Exponentially weighted covariance in an Equal Risk Contribution portfolio optimisation problem [Robot Wealth]
The Equal Risk Contribution (ERC) portfolio seeks to maximally diversify portfolio risk by equalising the risk contribution of each component. The intuition is as follows: Imagine we have a 3-asset portfolio Assets 1 and 2 are perfectly correlated (correlation of 1.0) Asset 3 is uncorrelated with
- 1 year ago, 20 Nov 2023, 09:41pm -
Statistical Shrinkage [Eran Raviv]
Imagine you’re picking from 1,000 money managers. If you test just one, there’s a 5% chance you might wrongly think they’re great. But test 10, and your error chance jumps to 40%. To keep your error rate at 5%, you need to control the “family-wise error rate.” One method is to set higher
- 1 year ago, 20 Nov 2023, 09:41pm -
Commodity carry as a trading signal – part 1 [SR SV]
Commodity futures carry is the annualized return that would arise if all prices remained unchanged. It reflects storage and funding costs, supply and demand imbalances, convenience yield, and hedging pressure. Convenience and hedging can give rise to an implicit subsidy, i.e., a non-standard risk
- 1 year ago, 20 Nov 2023, 09:41pm -
Research Review | 17 November 2023 | Return Expectations [Capital Spectator]
Causes of Deviations from a Real Earnings Yield Model of the Equity Premium Austin Murphy and Zeina N. Alsalman (Oakland University) October 2023 A market-based forecast of inflation added to equity earnings yields explains much of the variation in stock market returns over multi-year horizons.
- 1 year ago, 20 Nov 2023, 09:40pm -
Military Expenditures and Performance of the Stock Markets [Quantpedia]
“Si vis pacem, para bellum“, is an old Roman proverb translated to English as “If you want peace, prepare for war”, and it is the main idea behind the military policy of a lot of modern national states. In the current globally interconnected world, waging a real “hot war” has very often
- 1 year ago, 15 Nov 2023, 08:38pm -