Quant Mashup
Generation of Syntactic Quantitative Signals and Alpha Factories [Hanguk Quant]
This is the last of the advanced quant dev series post - next week, we will go back to the basics, and cover the details in how we arrive at the advanced quant backtesting library, which evolved from a rudimentary system consisting of a single signal, single model strategy to a multi signal, multi
- 1 year ago, 13 Aug 2023, 03:11am -
How to use capture ratios to improve investment performance [PyQuant News]
In today’s newsletter, we’ll cover the up-market capture ratio, a framework for evaluating investment performance in rising markets. Even though the ratio is used by professional money managers, you can use it to better gauge your own investment performance. Let’s dive in! How to use capture
- 1 year ago, 13 Aug 2023, 03:10am -
Nowcasting macro trends with machine learning [SR SV]
Nowcasting economic trends can make use of a broad range of machine learning methods. This not only serves the purpose of optimization but also allows replication of past information states of the market and supports realistic backtesting. A practical framework for modern nowcasting is the
- 1 year ago, 13 Aug 2023, 03:09am -
8 ways pandas is losing to Polars for quick market data analysis [PyQuant News]
In today’s newsletter, you’ll use Polars, a high-speed data-handling tool that’s becoming essential in quantitative finance and algorithmic trading. You’ll see how to compare its performance to pandas for many common data manipulation techniques. By the end of this post, you’ll understand
- 1 year ago, 11 Aug 2023, 09:06pm -
Value and Profitability/Quality: Complementary Factors [Alpha Architect]
In his 2012 paper “The Other Side of Value: The Gross Profitability Premium,” Robert Novy-Marx demonstrated that profitability, as measured by gross profits-to-assets, had roughly the same power as book-to-market (value factor) in predicting the cross-section of average returns – profitable
- 1 year ago, 11 Aug 2023, 09:03pm -
Forecasting currency rates with fractional brownian motion [OS Quant]
Fractional Brownian motion is defined as a stochastic Gaussian process XtXt that starts at zero X0=0X0=0 has an expectation of zero E[Xt]=0E[Xt]=0 and has the following covariance1: E[XtXs]=σ212(∣t∣2H+∣s∣2H−∣t−s∣2H)(1)
- 1 year ago, 9 Aug 2023, 06:17pm -
Quant_rv part 8: a multi-vol approach [Babbage9010]
Sum up: by combining all the vols into one strategy and randomizing key parameters, we can generate useful signals that yield a decent return with some consistency. We’re not meeting all the quant_rv goals yet, but we’re making progress on all the fronts. ~ Links to earlier parts ~ Part 1:
- 1 year ago, 8 Aug 2023, 12:47am -
Quant And Machine Learning Links: 20230806 [Machine Learning Applied]
Portfolio Management: A Deep Distributional RL Approach – David Pacheco Aznar This thesis presents the development and implementation of a novel Deep Distributional Reinforcement Learning (DDRL) approach in the field of quantitative finance: the Distributional Soft Actor-Critic (DSAC) with an LSTM
- 1 year ago, 8 Aug 2023, 12:46am -
Statistical Shrinkage (2) [Eran Raviv]
During 2017 I blogged about Statistical Shrinkage. At the end of that post I mentioned the important role signal-to-noise ratio (SNR) plays when it comes to the need for shrinkage. This post shares some recent related empirical results published in the Journal of Machine Learning Research from the
- 1 year ago, 8 Aug 2023, 12:46am -
Investor demand: can it explain returns? [Alpha Architect]
The traditional financial theory attributes security returns to market- or factor-based risk, with no role ascribed to other influences. In this research, the authors argue for including investor demand as an additional variable in explaining returns. Can changes in investor demand generate
- 1 year ago, 8 Aug 2023, 12:46am -
Integrating the No-Code Quant Backtester into the Russian Doll Engine [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, 5 Aug 2023, 07:01pm -
Why Backtests Run Fast or Slow: A Comparison of Zipline, Moonshot, and Lean [Quant Rocket]
Backtest speed can significantly affect research friction. The ability to form a hypothesis and quickly get an answer from a backtest allows you to investigate more hypotheses. In this article, I explore several factors that affect backtest speed and compare the performance of 3 open-source
- 1 year ago, 5 Aug 2023, 07:01pm -
The Low-Beta Anomaly: are its returns justified? [Alpha Architect]
The low-beta anomaly for the capital asset pricing model (CAPM)—low-beta stocks outperform high-beta stocks—was first documented more than 50 years ago by Fischer Black, Michael Jensen, and Myron Scholes in their 1972 paper, “The Capital Asset Pricing Model: Some Empirical Tests.” In our
- 1 year ago, 5 Aug 2023, 07:00pm -
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 -