Quant Mashup
Quantocracy is now on Bluesky and Threads. See the links in the header. - Mike
Interview with ChatGPT about its book 'From Data to Trade: A Machine Learning Approach to Quantitative Trading' [Gautier Marti]
Introducing the first book ever generated by an artificial intelligence on the subject of using machine learning for quantitative trading: “From Data to Trade: A Quantitative Approach to Machine Learning”! This groundbreaking work offers a unique perspective on the use of machine learning in the
- 1 year ago, 4 Jan 2023, 10:19am -
Most popular posts – 2022 [Eran Raviv]
As per usual this point in time, I check my blog’s traffic-analytics to see which were the most popular pieces last year. Without further ado.. First: Correlation and Correlation Structure (6) – Distance Correlation (08:33 minutes average time on page) Second: Similarity and Dissimilarity
- 1 year ago, 4 Jan 2023, 10:18am -
Factor Olympics 2022 [Finominal]
2022 is the best year for factor investing over the last decade Value generated the best and size the worst return in 2022 Despite the strong returns, investors remain cautious on factor investing INTRODUCTION We present the performance of five well-known factors on an annual basis for the last 10
- 1 year ago, 4 Jan 2023, 10:17am -
Asset pricing theory & the role labor displacement plays [Alpha Architect]
In this article about asset pricing theory, we examine the research on the impact of technological advances that displace human labor in favor of machine capital to asset pricing. Automation and the displacement of labor by capita: Asset pricing theory and empirical evidence Jiˇrí Knesl Journal of
- 1 year ago, 4 Jan 2023, 10:17am -
When Point Forecasts Are Completely Useless [Sarem Seitz]
In the last article, we discussed one advantage of probabilistic forecasts over point forecasts - namely, handling time-to-exceedance problems. In this post, we will examine another limitation of point forecasts: Higher order statistical properties. The ideas will be very familiar to those with a
- 1 year ago, 2 Jan 2023, 03:29pm -
Survivorship Bias [Jonathan Kinlay]
The relprice Index in the Performance Data table shows the price of the stock relative to the S&P 500 index over a specified period. Let’s look at the median relPrice for all stocks that are currently members of the S&P500 index, eliminating any for which the relevant Performance Data is
- 1 year ago, 2 Jan 2023, 03:29pm -
Why Technical Analysis Doesn't Work [Jonathan Kinlay]
Generally speaking, one of the major attractions of working in the equities space is that the large number of available securities opens up a much wider range of opportunities for the quantitative researcher than for, say, futures markets. The focus in equities tends to be on portfolio strategies
- 1 year ago, 2 Jan 2023, 03:29pm -
Modified and balanced FX carry [SR SV]
There are two simple ways to enhance FX carry strategies with economic information. The first increases or reduces the carry signal depending on whether relevant economic indicators reinforce or contradict its direction. The output can be called “modified carry”. It is a gentle adjustment that
- 1 year ago, 2 Jan 2023, 03:28pm -
Expected Returns to Green Stocks [Alpha Architect]
The past decade has seen a dramatic growth in sustainable investing—applying environmental, social and governance (ESG) criteria to investment strategies. Investments considered environmentally friendly are often referred to as “green,” while “brown” denotes the opposite. Important
- 1 year ago, 2 Jan 2023, 03:28pm -
Factor's Performance During Various Market Cycles [Quantpedia]
We have already showed How to extend history of any asset, portfolio or strategy to a 100-year long history. We’ve done this by introducing Quantpedia’s Multi-Factor Regression Model, which aims to replicate any portfolio and recreate what its 100-year history would have looked like. The model
- 1 year ago, 29 Dec 2022, 06:36pm -
Cryptocurrencies with Python: A new YouTube video series! [Quant at Risk]
We kicked off a new series of go-to solutions for #Cryptocurrencies with #Python. Subscribe to our YouTube channel for regular updates!
- 1 year ago, 29 Dec 2022, 06:36pm -
Geopolitical risk: novel econometric methods! [Alpha Architect]
Traditional measures of geopolitical risk have been primarily qualitative. In this article, the authors describe and analyze not just new, but novel measures including textual analysis of news and expert reports, novel econometric methods and machine learning applications for measuring geopolitical
- 1 year ago, 29 Dec 2022, 06:35pm -
Trading a 2s10s Inversion [Simplify]
The latest inversion of the Treasury yield curve has been a popular topic of conversation among market pundits and participants alike. In this blog, we explain what a curve inversion is, why it is important, and what (if any) bearing it has on bond prices going forward. The 2s10s Yield Curve The
- 1 year ago, 27 Dec 2022, 10:13am -
Research Compendium 2022 [Finominal]
“If we knew what it was we were doing, it would not be called research, would it?” – Albert Einstein December 2022. Reading Time: 10 Minutes. Author: Finominal RESEARCH COMPENDIUM 2022 In 2022, we published more than 50 research articles on a wide range of investing topics including CTA
- 1 year ago, 27 Dec 2022, 10:12am -
Multi-Factor Long-Short Portfolios – how have they performed? [Alpha Architect]
Multi-factor, long-short portfolios have provided significant portfolio diversification benefits by adding unique sources of risks that have historically produced premiums that meet the criteria Andrew Berkin and I established in our book “Your Complete Guide to Factor-Based Investing”—the
- 1 year ago, 27 Dec 2022, 10:12am -
Slava Ukraini! Latest from Quantocracy contributor in Ukraine: MOVE Index [Only VIX]
In the previous article I wrote about using VIX / MOVE index ratio as an indicator for SPX returns. Here is the google sheet for your reference and experiments. The ratio itself is very stable - in fact 11 years ago I wrote that VIX = EXP(-1.84+1.06*LN(MOVE)) As you can see the relationship has held
- 1 year ago, 22 Dec 2022, 09:15pm -
Probabilistic alpha and beta: quantifying an uncertain edge [Artifact Research]
In finance, the performance of an asset is often quantified by alpha (the excess returns above a benchmark return) and beta (the volatility or risk of the asset relative to a benchmark). These metrics are estimated from historical data and are often based on only short track records. Even if a long
- 1 year ago, 21 Dec 2022, 12:32am -
A Balanced Portfolio and Trend-Following During Different Market States [Quantpedia]
What’s the performance of a balanced portfolio during rising rates? How does it behave when inflation is high? What about a combination of these market states? And how do trend-following strategies fare in such an environment? These and even more questions we will attempt to resolve in our
- 1 year ago, 20 Dec 2022, 06:52pm -
Alpha Vantage API Python Tutorial [Analyzing Alpha]
This article explains how to call the Alpha Vantage API to retrieve stock market data in a Python application using the Python alpha_vantage library and the Python requests module. The documentation for the Python alpha_vantage client library is limited. It isn’t easy to understand the mapping
- 1 year ago, 20 Dec 2022, 06:51pm -
Do Poor YTD Results Mean Late December Rally Will Flop? [Quantifiable Edges]
I’ve heard people saying recently that the typical 2nd half of December bullish tendency is unlikely to unfold this year. The theories suggest that the market is often up on the year. And people and institutions flush with profits tend to push it higher as the New Year approaches. There is also
- 1 year ago, 20 Dec 2022, 06:51pm -
Scale in Active Management - a look at its Diseconomies [Alpha Architect]
Pastor, Stambaugh, and Taylor (2015) and Zhu (2018) provide significant evidence of decreasing returns to scale (DRS) at both the fund and industry levels. The authors examine the robustness of their inferences after Adams, Hayunga, and Mansi (2021) critique the above two studies. What are the
- 1 year ago, 20 Dec 2022, 06:50pm -
Zakamulin's Optimal Trend Following [Allocate Smartly]
This is a test of a novel trend-following strategy from the paper Optimal Trend Following Rules in Two-State Regime-Switching Models by Valeriy Zakamulin and Javier Giner. These results aren’t as eye catching as many we track, but the paper contributes some important ideas to the study of tactical
- 1 year ago, 19 Dec 2022, 09:49am -
Serverless architecture for crypto trading [Gautier Marti]
I recently asked on LinkedIn about advice and opinions on infrastructure for collecting, storing, processing, and storing back derived data (features, signals) for some simple mid freq / stat arb trading strategies. I did not expect to receive so much feedback about infrastructure for trading data
- 1 year ago, 18 Dec 2022, 10:29pm -
MOVE Index and SPX returns [Only VIX]
MOVE index (Merrill Lynch Option Volatility Estimate) was developed by Merrill Lynch to measure implied volatility of US Treasury markets. ML became a part of Bank of America in 2008, and then indexes were sold to ICE in 2019, so now the index is called "ICE BofAML MOVE Index" The index is
- 1 year ago, 18 Dec 2022, 10:28pm -
100 Years of Historical Market Cycles [Quantpedia]
Which assets perform best when rates are rising, and inflation is high? And what happens if rates are still rising but inflation is already falling? And what’s the impact of the business cycle? These are the questions that everyone is currently trying to answer. Today, we will start a longer
- 1 year ago, 16 Dec 2022, 08:41pm -
The Informativeness: Measuring the Homogeneity of a Universe of Assets [Portfolio Optimizer]
In this post, I will describe a measure of the homogeneity of a universe of assets, called the informativeness, introduced by Brockmeier et al.1 in their paper Quantifying the Informativeness of Similarity Measurements. After quickly going through the associated mathematics, I will present two
- 1 year ago, 16 Dec 2022, 08:40pm -
Machine Learning and Emerging Market Stock Returns [Alpha Architect]
More specifically, the paper differentiates between: Traditional linear models (ordinary least squares regression and elastic net) and Machine learning methods that allow for non-linearities and interactions (tree-based models such gradient boosted regression trees and random forest and neural
- 1 year ago, 16 Dec 2022, 08:40pm -
Experimental Design and Common Pitfalls of Machine Learning in Finance [Hudson and Thames]
The first lecture from the Experimental Design and Common Pitfalls of Machine Learning in Finance series addresses the four horsemen that present a barrier to adopting the scientific approach to machine learning in finance. The second lecture focuses on a protocol for backtesting and how to avoid
- 1 year ago, 13 Dec 2022, 09:42pm -
CoinGecko API Python Tutorial [Analyzing Alpha]
This article will show you how to access the CoinGecko API endpoints in Python to retrieve live cryptocurrency information. You will use the pycoingecko and the Python requests library to fetch data from CoinGecko API. The official CoinGecko API and pycoingecko libraries’ documentations lack
- 1 year ago, 13 Dec 2022, 09:42pm -
Beware of Spurious Factors [Eran Raviv]
The word spurious refers to “outwardly similar or corresponding to something without having its genuine qualities.” Fake. While the meanings of spurious correlation and spurious regression are common knowledge nowadays, much less is understood about spurious factors. This post draws your
- 1 year ago, 13 Dec 2022, 09:41pm -
Myth Busting: Alts' Uncorrelated Returns Diversify Portfolios [Finominal]
Alternatives with lower correlations to equities & bonds did not lead to greater diversification benefits Correlations often break when markets crash Better metrics are required to measure the diversification potential of alternatives INTRODUCTION Alternative investments accounted for $13
- 1 year ago, 13 Dec 2022, 09:41pm -
Volatility scaling: is it useful for factor timing? [Alpha Architect]
The research summarized here is built upon a documented risk management strategy applied to factor investing (Barroso and Santa-Clara, 2015; Moreira and Muir, 2017). The idea was to overlay a scaled volatility measure designed to change risk exposures and hopefully produce higher Sharpe ratios. That
- 1 year ago, 13 Dec 2022, 09:41pm -
Managed Futures and Trend Following - Inside the Black Box [Light Finance]
It goes without saying that 2022 has been a difficult year across markets. Investors have had to contend with an inflationary bear market for which the traditional playbook has proven woefully inadequate. NASDAQ and high yield debt, the darlings of yesteryear, have fallen from grace with few
- 1 year ago, 11 Dec 2022, 09:30pm -
The Size Effect: Does it vary in accordance with monetary policy? [Alpha Architect]
The size effect was first documented by Rolf Banz in his 1981 paper “The Relationship Between Return and Market Value of Common Stocks,” which was published in the Journal of Financial Economics. After the 1992 publication of Eugene Fama and Kenneth French’s paper “The Cross-Section of
- 1 year ago, 11 Dec 2022, 09:30pm -
Research Review | 9 Dec 2022 | Valuation Analysis [Capital Spectator]
Preference for dividends and stock returns around the world Allaudeen Hameed (National University of Singapore), et al. November 2022 We find strong international evidence favoring dividend payout as a salient stock characteristic affecting expected stock returns. We find that dividend-paying stocks
- 1 year ago, 11 Dec 2022, 09:29pm -
Building a Raspberry Pi Cluster for QSTrader Using SLURM - Part 5 [Quant Start]
In the previous article we created a virtual environment and installed QSTrader on all our secondary nodes. We then carried out a test of the sixty forty strategy across all secondary nodes to make sure our installation had been successful. Now that we have successfully paralellised QSTrader we can
- 1 year ago, 7 Dec 2022, 10:27pm -
Volume and Mean Reversion [Alvarez Quant Trading]
Overall, I have had very little success integrating volume into any of my strategies. Either volume would have no predictive value or if it did, using it reduced the number of trades too much to be worthwhile. It has been a long while since I have looked into this and I had some new ideas. The Rules
- 1 year ago, 7 Dec 2022, 10:27pm -
Why I prefer probabilistic forecasts - hitting time probabilities [Sarem Seitz]
Probabilistic forecasts are a more comprehensive way to predict future events compared to point forecasts. Probabilistic forecasts involve creating a model that predicts the entire probability distribution for a given future period, providing insight into all likely outcomes. This allows for the
- 1 year ago, 7 Dec 2022, 10:10am -
Doubling Down: Double Deep Q-networks for trading [Quant Dare]
In previous posts, we have seen the basic RL algorithm, Deep Q learning (DQN). We have also seen it applied, using Neural Networks as the Agent, to an investment strategy. We finally even used it for a cryptocurrency investment strategy. This time, we will implement a slightly more advanced
- 1 year ago, 7 Dec 2022, 10:10am -
Investing in Deflation, Inflation, and Stagflation Regimes [Alpha Architect]
Spikes in inflation and fear of stagflation prompted this study which answers the following question: 1. How do risk premiums and investment strategies behave across inflationary regimes like periods of high inflation, deflation, or stagflation? What are the Academic Insights? By utilizing the
- 1 year ago, 6 Dec 2022, 09:52pm -
Are Alternative ETFs Good Diversifiers? [Finominal]
Alternative products with uncorrelated returns do not necessarily provide diversification benefits Out of 10 alternative ETFs, only one product improved the Sharpe ratio of a 60/40 portfolio Correlations should be regarded carefully in fund selection INTRODUCTION Given the demise of the traditional
- 1 year ago, 6 Dec 2022, 09:52pm -
Vol-of-Vol for Crypto-Derivative Products [Quant at Risk]
In quantitative finance, the Volatility of Volatility (also referred to as Vol-of-Vol or VoV) is an important parameter for pricing various derivative products (e.g. Volatility Dispersion Swaps) and its correct estimation is frequently desired. VoV is usually a single number treated an an input
- 1 year ago, 3 Dec 2022, 06:53pm -
How Much Are Bitcoin Returns Driven by News? [Quantpedia]
The main theme of these days in the crypto world is unmistakenly clear, it’s the mayhem connected with the collapse of the FTX empire, insolvencies of various lenders, and questions about underlying holdings in GBTC OTC ETF and reserves of exchanges and Tether (or other stablecoins as well). With
- 1 year ago, 3 Dec 2022, 06:52pm -
Trend Following and Relative Sentiment: Complementary Factors [Alpha Architect]
Trend following (time series momentum) is one of the most well-documented and well-known factors in investing, demonstrating persistence, pervasiveness, robustness, and implementability (survives transaction costs). Lesser well-known is relative sentiment—an indicator that measures the positions,
- 1 year ago, 3 Dec 2022, 06:52pm -
Weekly rebalancing Sector ETFs using Structural Entropy [Pravin Bezwada]
Based on previous article Structural Entropy, this article attempts to test the performance of a long short strategy on US sectors using structural entropy. Ideally it should use liquid US sector futures but since data is unavailable (not for free), it uses ETFs as proxy. The assumption in previous
- 1 year ago, 29 Nov 2022, 10:46pm -
Slava Ukraini! Latest from Quantocracy contributor in Ukraine: VIX and Expected Range [Only VIX]
Continuing on trying to fight disinformation about VIX. Everyone knows that VIX index the square root of the expected 30-day variance, and if we drop mathematical precision - 30 day expected volatility of S&P index. Scott Bauer, on CBO's website - "the VIX Index tells us the level of
- 1 year ago, 28 Nov 2022, 09:33pm -
Binance API Python Tutorial [Analyzing Alpha]
This tutorial explains how to call Binance API endpoints in Python using the python-binance library and the Python requests function. The Binance API provides extensive documentation on how to call its various endpoints. Furthermore, multiple online blogs explain how to call the Binance API using a
- 1 year ago, 28 Nov 2022, 09:32pm -
Replicating a CTA via Factor Exposures [Finominal]
Strategies can be copied by recreating them from scratch or using factor exposures CTAs can be replicated via factor exposure analysis by utilizing only 4 asset classes Not a perfect replication, but surprisingly good given the limited input INTRODUCTION Our two most recent research articles focused
- 1 year ago, 28 Nov 2022, 09:16am -
Identifying the drivers of the commodity market [SR SV]
Commodity futures returns are correlated across many different raw materials and products. Research has identified various types of factors behind this commonality: [i] macroeconomic changes, [ii] financial market trends, and [iii] shifts in general uncertainty. A new paper proposes to estimate the
- 1 year ago, 28 Nov 2022, 09:15am -
Creating a CTA from Scratch - II [Finominal]
CTAs pursue trends across asset classes, regardless if long or short 2022 is exceptional as CTAs have more short positions than during the GFC No single long bond index position remains, fixed income is one big short INTRODUCTION In our last research article (read Creating a CTA from Scratch – I)
- 1 year ago, 25 Nov 2022, 09:44am -