Quant Mashup
Quantocracy is no longer available via daily email. You can still follow us via RSS or our other socials. - Mike
Realistic Backtester for Perpetual Futures (Part 1/2) (With Code) [Taiwan Quant]
Introduction Simulator/backtester architecture Preparing the data Simulating a single market Simulating market orders Part 2: Simulating trading costs Simulating funding Simulating many markets Finish Subscriber materials (source code) Introduction In the last article, we looked at how markets work
- 1 year ago, 30 Jul 2023, 07:29pm -
Pure macro FX strategies: the benefits of double diversification [SR SV]
Pure macro(economic) strategies are trading rules that are informed by macroeconomic indicators alone. They are rarer and require greater analytical resources than standard price-based strategies. However, they are also more suitable for pure alpha generation. This post investigates a pure macro
- 1 year ago, 30 Jul 2023, 07:29pm -
Quant And Machine Learning Links: 20230730 [Machine Learning Applied]
Quantocracy: This is a curated mashup of quantitative trading links. Adversarial Deep Hedging: Learning to Hedge without Price Process Modeling – Masanori Hirano, Kentaro Minami, Kentaro Imajo Deep hedging is a deep-learning-based framework for derivative hedging in incomplete markets. The
- 1 year ago, 30 Jul 2023, 07:28pm -
Square root of a portfolio covariance matrix [OS Quant]
The square root of your portfolio’s covariance matrix gives you a powerful way of understanding where your portfolio variance is coming from. Here I show how to calculate the square root and provide an interactive example to explore how it works. Author Adrian Letchford Published 27 July 2023
- 1 year ago, 28 Jul 2023, 07:38pm -
Retail attention metrics: do they produce differences in returns? [Alpha Architect]
Abstract: We find that by using a novel measure of investor attention, generated from InvestingChannel’s clickstream data on online financial news consumption, we can identify broad groups of stocks which are less efficiently priced and therefore where anomalies such as Value and Momentum are
- 1 year ago, 28 Jul 2023, 07:37pm -
XRP-based Crypto Investment Portfolio Inspired by Ripple vs SEC Lawsuit [Quant at Risk]
Crypto-market price actions often revolves around the news. Good or bad? It does not matter. However, the recent long-term battle between the SEC and Ripple seemed to reignite the markets. On July 13, 2023, XRP/USDT suddenly shoot up, dragging a number of not so obvious cryptos up along. This was
- 1 year ago, 27 Jul 2023, 11:24pm -
Top Models for Natural Language Understanding (NLU) Usage [Quantpedia]
In recent years, the Transformer architecture has experienced extensive adoption in the fields of Natural Language Processing (NLP) and Natural Language Understanding (NLU). Google AI Research’s introduction of Bidirectional Encoder Representations from Transformers (BERT) in 2018 set remarkable
- 1 year ago, 27 Jul 2023, 11:23pm -
Building a No Code Quantitative Backtest Engine for Machine Trading [Hanguk Quant]
We started off with the conceptualisation of trading alpha in different abstract representations, such as mathematical formulas, graphs and visual representations: Alpha-Encoding Data Structures Alpha-Encoding Data Structures HangukQuant · Jun 30 Read full story For machine trading this would
- 1 year ago, 27 Jul 2023, 11:21pm -
Regression is a tool that can turn you into a fool [Alpha Architect]
Running regressions on past returns is a great tool for academic researchers who understand this approach’s nuance, assumptions, pitfalls, and limitations. However, when factor regressions become part of a sales effort and/or are put in the hands of investors/advisors/DIYers, “the tool can
- 1 year ago, 27 Jul 2023, 11:21pm -
Managing Missing Asset Returns in Portfolio Analysis: Backfilling through Residuals Recycling [Portfolio Optimizer]
In a multi-asset portfolio, it is usual that some assets have shorter return histories than others1. Problem is, the presence of assets whose return histories differ in length makes it nearly impossible to use standard portfolio analysis and optimization methods… Estimating the historical
- 1 year ago, 26 Jul 2023, 06:06pm -
All the vols, for quant_rv [Babbage9010]
It’s just too easy to do all the volatility measures, with quantmod (well, with TTR actually). Let’s skip all the preliminaries and have a look. And, a Pearson pairs table: C2C Parkinson Rogers-Satchell Garman-Klass,Yang-Zhang C2C 1.0000000 0.4395541 0.2619220 0.3573710 Parkinson 0.4395541
- 1 year ago, 25 Jul 2023, 06:56pm -
Recursive least-squares linear regression [OS Quant]
I first learned about this algorithm in the book Kernel Adaptive Filter: A Comprehensive Introduction1 sometime in 2012 or 2013. This book goes in depth into how to build kernel filters and does a fantastic job of easing you into the mathematics. I highly recommend having a read if you can. In my
- 1 year ago, 23 Jul 2023, 11:01pm -
Quant And Machine Learning Links: 20230723 [Machine Learning Applied]
Reinforcement Learning for Credit Index Option Hedging – Francesco Mandelli, Marco Pinciroli, Michele Trapletti, Edoardo Vittori In this paper, we focus on finding the optimal hedging strategy of a credit index option using reinforcement learning. We take a practical approach, where the focus is
- 1 year ago, 23 Jul 2023, 11:01pm -
Research Review | 21 July 2023 | Forecasting Markets [Capital Spectator]
Betting on War? Oil Prices, Stock Returns and Extreme Geopolitical Events Knut Nygaard (Oslo Metropolitan U.) and L.Q. Sørensen (Storebrand Asset Mgt.) July 2023 We show that the ability of oil price changes to predict stock returns is largely limited to five extreme geopolitical events: the 2022
- 1 year ago, 23 Jul 2023, 11:01pm -
Risk of Momentum Crashes: can it be reduced? [Alpha Architect]
My August 4, 2022, Alpha Architect article examined the research demonstrating that cross-sectional momentum has provided a premium that has been found to be persistent across time and economic regimes, pervasive around the globe and across sectors and asset classes (stocks, bonds, commodities and
- 1 year ago, 23 Jul 2023, 11:00pm -
A different measure of volatility for quant_rv [Babbage9010]
Everybody knows what volatility is. But there’s more than one way to measure it. The last couple of posts I’ve been trying to document a little more about the plain vanilla standard way to measure vol in the context of my efforts toward finding an ETF switching strategy to use realized
- 1 year ago, 20 Jul 2023, 06:08pm -
Fund Concentration: Does it impact return? [Alpha Architect]
This study explores the degree to which fund concentration as measured by high tracking error or active share, affects the magnitude of excess returns and whether or not the likelihood of outperformance or underperformance are distributed similarly. Three methods of analysis were used to examine the
- 1 year ago, 20 Jul 2023, 06:07pm -
Quant_rv: more exploration of strategy parameters [Babbage9010]
There is grave danger in tying your strategy to one selected set of parameters, particularly if those parameters are cherry picked to give more exciting results than other possible choices. I’m trying to working to avoid that in quant_rv. So far, quant_rv has two main parameters that can vary: the
- 1 year ago, 16 Jul 2023, 07:40pm -
Quant And Machine Learning Links: 20230716 [Machine Learning Applied]
Financial Machine Learning – Bryan T. Kelly, Dacheng Xiu We survey the nascent literature on machine learning in the study of financial markets. We highlight the best examples of what this line of research has to offer and recommend promising directions for future research. This survey is designed
- 1 year ago, 16 Jul 2023, 07:39pm -
Are Sustainable Investors Compensated Adequately? [Alpha Architect]
While sustainable investing continues to gain in popularity, economic theory suggests that if a large enough proportion of investors choose to favor companies with high sustainability ratings and avoid those with low sustainability ratings (sin businesses), the favored company’s share prices will
- 1 year ago, 16 Jul 2023, 07:37pm -
A model for bond risk premia and the macroeconomy [SR SV]
An empirical analysis of the U.S. bond market since the 1960s emphasizes occasional abrupt regime changes, as defined by yield levels, curve slopes, and related volatility metrics. An arbitrage-free bond pricing model illustrates that bond risk premia can be decomposed into two types. One is related
- 1 year ago, 16 Jul 2023, 07:36pm -
What's Better, High Profit Margins or Improving Profit Margins? [Quant Rocket]
Should investors prefer companies with high profit margins or companies with improving profit margins? Is it better to own an unprofitable company that's getting better, or a profitable company that's getting worse? This post explores these questions by analyzing the profitability growth
- 1 year ago, 14 Jul 2023, 01:28am -
Visual Quantitative Analysis of Dow 30 Stocks [Machine Learning Applied]
Using the input data as described in Quantitative And Machine Learning Asset Analysis: Single Moving Average (SMA) – (current price – N day average)/N day average, where N = 21, 42, 63, …, 231, 252, formed into an array. Dual Moving Average (DMA) – Same as SMA with 21 day average substituted
- 1 year ago, 14 Jul 2023, 01:28am -
The Powerful Advantages of Investing in Conglomerate Stocks [Quant Dare]
The conventional wisdom suggests that by spreading your investments across a wide range of assets, you can mitigate risk and achieve greater long returns. In this article, we will explore the diversification benefits of conglomerate stocks and why they can be valuable additions to a stock portfolio.
- 1 year ago, 14 Jul 2023, 01:27am -
Selected ML Papers from ICML 2023 [Gautier Marti]
This blog post serves as a summary and exploration of ~100 papers, providing insights into the key trends presented at ICML 2023. The papers can be categorized into several sub-fields, including Graph Neural Networks and Transformers, Large Language Models, Optimal Transport, Time Series Analysis,
- 1 year ago, 10 Jul 2023, 06:50pm -
Covered Call Strategies Uncovered [Finominal]
Covered call strategies aim to offer index-like returns with lower volatility and higher yields They have underperformed their benchmarks significantly over longer periods They are tools for market timing, but that is difficult to execute successfully INTRODUCTION JP Morgan has been a late-comer to
- 1 year ago, 10 Jul 2023, 06:49pm -
Structure Function: Forgotten Detection Tool for Periodic Signals [Quant at Risk]
In time-series analysis we often examine signals for specific volatility patterns. The simplest one is a periodic or quasi-periodic modulation. In finance these modulations are of paramount importance allowing for signal decomposition, separating short-term variations from long-term trends.
- 1 year ago, 7 Jul 2023, 05:54pm -
And the Winner Is: Examining Alternative Value Metrics [Alpha Architect]
Value as an investment strategy has long been popular in both academia and among practitioners and is supported by valuation theory, which provides a framework for identifying the drivers of expected returns: the prices investors pay and the expected future cash flows investors will receive.
- 1 year ago, 7 Jul 2023, 05:53pm -
Simulation from a Multivariate Normal Distribution with Exact Sample Mean Vector and Sample Covariance Matrix [Portfolio Optimizer]
In the research report Random rotations and multivariate normal simulation1, Robert Wedderburn introduced an algorithm to simulate i.i.d. samples from a multivariate normal (Gaussian) distribution when the desired sample mean vector and sample covariance matrix are known in advance2. Wedderburn
- 1 year ago, 6 Jul 2023, 05:50pm -
Parameter exploration with quant_rv and heatmap [Babbage9010]
For v1.2.0 we take a step back from 1.1.0 to meet some of the new goal requirements right off the bat, and to play explore. In particular, we remove the code to test QQQ (or other ETFs) and related vars. Next we change code to make it easy to explore parameters (like the volatility threshold) to see
- 1 year ago, 6 Jul 2023, 05:50pm -
Jumping into quant_rv [Babbage9010]
So we need some starter code, and some goals for where we’re going. The starter code comes from a blog post by Learning Machines back in April 2023. He’s got some great stuff on his blog (we’ll use some of his ideas here), so take a good look through his Quantitative Finance category, at
- 1 year ago, 5 Jul 2023, 04:10am -
Clustering Forex Market [Quant Dare]
The Forex Market is the global marketplace where currencies are bought and sold. It is the largest and most liquid financial market in the world, with trillions of dollars traded daily. A currency pair is an asset composed of two currencies traded on the financial market. Its price represents the
- 1 year ago, 5 Jul 2023, 04:10am -
Selected ML Papers from ICML 2023 [Gautier Marti]
This blog post serves as a summary and exploration of ~100 papers, providing insights into the key trends presented at ICML 2023. The papers can be categorized into several sub-fields, including Graph Neural Networks and Transformers, Large Language Models, Optimal Transport, Time Series Analysis,
- 1 year ago, 3 Jul 2023, 05:04pm -
Factor Olympics 2023 1H [Finominal]
All popular factors generated negative excess returns in 1H 2023 Small caps performed best, low-risk stocks worst Somewhat surprisingly, long-short multi-factor products produced positive returns INTRODUCTION We present the performance of five well-known factors on an annual basis for the last 10
- 1 year ago, 3 Jul 2023, 05:03pm -
Taking your MLFinLab strategy live [Hudson and Thames]
Executing a live trading strategy can be a daunting task. From analyzing market data and identifying trading signals to deploying and monitoring trades in real-time, the process requires precision, speed, and accuracy. Fortunately, advancements in technology have paved the way for innovative
- 1 year ago, 30 Jun 2023, 05:30pm -
Financial Statements Effect [Quant Dare]
Effect J. González 28/06/2023 No Comments In a previous post we saw how avoiding being in the market during Earnings publications could be a zero-sum game in the long run. In this post our purpose is to study if it is possible to take advantage of the effect in the stock prices based on the
- 1 year ago, 30 Jun 2023, 05:30pm -
Performance of Factors: what the research says [Alpha Architect]
Since the discovery of the size, value, and momentum effects in the 1980s and 1990s, a plethora of other factors have been identified in the asset pricing literature, which led John Cochrane to coin the phrase “zoo of factors.” It has raised questions and led to research into how many factors
- 1 year ago, 30 Jun 2023, 05:30pm -
Analyzing the Profitability Factor with Alphalens [Quant Rocket]
How does a company's profitability affect its stock returns? In this post, I use Alphalens, a Python library for analyzing alpha factors, to investigate the relationship between operating margin, a profitability ratio, and future returns. This is the second post in the fundamental factors
- 1 year ago, 29 Jun 2023, 05:03am -
Calculating Realised Volatility with Polygon Forex data [Quant Start]
In the previous article we wrote a Python function which utilised the Polygon API to extract a month of minutely data for both a major (EURUSD) and exotic (MZXZAR) FX pair. We plotted the returns series and looked at some of the issues that can occur when working with this type of data. This article
- 1 year ago, 29 Jun 2023, 05:03am -
BloombergGPT: Where Large Language Models and Finance Meet [Alpha Architect]
Developments in the use of Large Language Models (LLM) have successfully demonstrated a set of applications across a number of “domains”, most of which deal with a very wide range of topics. While the experimentation has elicited lively participation from the public, the applications have been
- 1 year ago, 29 Jun 2023, 05:02am -
Can AI Explain Company Performance? [Finominal]
The rapid evolution of language models has the potential to revolutionise financial analysis GPT outperformed when analyzing earnings calls, followed by Word2Vec and BERT However, overall models should be selected carefully as each has its pros and cons ABSTRACT This paper aims to evaluate the
- 1 year ago, 29 Jun 2023, 05:01am -
Quant Infrastructure #5 - Order Executor [Taiwan Quant]
In the previous article of the main series, we looked at robustly tracking our trading inventory and built an Inventory component for our Quant Infrastructure. In this article, we look at tracking and managing orders and build an OrderExecutor for this purpose. Orders require a different approach
- 1 year ago, 24 Jun 2023, 02:51pm -
Intangible Value: Modernizing the Factor Portfolio [Alpha Architect]
Abstract: The “Intangible Value Factor” (IHML) can play an additive role in factor portfolios alongside the established market, size, value, quality, and momentum factors. This Six-Factor Model avoids the problematic “anti-innovation” bias of traditional factor portfolios and can be easily
- 1 year ago, 23 Jun 2023, 02:55pm -
Research Review | 23 June 2023 | Forecasting Equity Returns [Capital Spectator]
The Realized Information Ratio and the Cross-Section of Expected Stock Returns Mehran Azimi (University of Massachusetts Boston) January 2023 This study investigates the predictability of asset returns with the information ratio and its specific variant, the Sharpe ratio. We find that the realized
- 1 year ago, 23 Jun 2023, 02:55pm -
Attenuation of Anomalies: what role do fundamentals play? [Alpha Architect]
The article aims to explore the possibility that changes in fundamentals play a role in the attenuation of stock market anomalies, offering an alternative explanation to the prevailing arbitrage-based explanation. Can the changes in fundamentals explain the attenuation of anomalies? Choi, Lewis and
- 1 year ago, 23 Jun 2023, 02:54pm -
Several Key PerformanceAnalytics Functions From R Now In Python [QuantStrat TradeR]
So, thanks to my former boss, and head of direct indexing at BNY Mellon, Vijay Vaidyanathan, and his Coursera course, along with the usual assistance from chatGPT (I officially see it as a pseudo programming language), I have some more software for the Python community now released to my github. As
- 1 year ago, 21 Jun 2023, 06:08pm -
Negative Hypergeometric Distribution and USDT [Quant at Risk]
In crypto market, stablecoins are meant to maintain their constant value with respect to the underlying currency. At least in theory. The problem begins with an idea of stablecoin’s value to be stable or being stabilised over time. Different backup mechanisms are at work. For example, Tether
- 1 year ago, 21 Jun 2023, 06:08pm -
Introduction to Matching Pursuit Algorithm with Stochastic Dictionaries [Quant at Risk]
There is a huge number of ways how one can transform financial times-series in order to discover new information about changing price dynamics. We talk here about certain transformation that takes price time-series (or return-series) and transforms it into a new domain. Every solid textbook on
- 1 year ago, 21 Jun 2023, 06:07pm -
Is Managed Futures Value-able? [Flirting with Models]
In Return StackingTM: Strategies for Overcoming a Low Return Environment, we advocated for the addition of managed futures to traditionally allocated portfolios. We argued that managed futures’ low empirical correlation to both equities and bonds and its historically positive average returns makes
- 1 year ago, 20 Jun 2023, 02:36am -
Index Replication: avoid the negatives! [Alpha Architect]
There are several significant, well-documented benefits of index funds. In addition to outperforming a large majority of actively managed funds, they tend to have low fees, low turnover (resulting in low trading costs and high tax efficiency), broad diversification, high liquidity, and near-zero
- 1 year ago, 20 Jun 2023, 02:35am -