Quant Mashup
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 -
Merchandise import as predictor of duration returns [SR SV]
Local-currency import growth is a widely underestimated and important indicator of trends in fixed-income markets. Its predictive power reflects its alignment with economic trends that matter for monetary policy: domestic demand, inflation, and effective currency dynamics. Empirical evidence
- 1 year ago, 20 Jun 2023, 02:35am -
Preferential Times for Preferred Income Strategies? [Finominal]
Preferred income funds offer exceptionally high yields However, the higher the yield, the lower the total return The diversification benefits of these funds were limited INTRODUCTION Although the job of a stock analyst is not easy, fixed-income analysts have it arguably harder. Sure, there might be
- 1 year ago, 20 Jun 2023, 02:34am -
Long-Only Value Investing: Size Doesn't Matter! [Alpha Architect]
Many factor investors are familiar with “small-cap value investing,” which is a reasonable allocation for long-term investors who can tolerate a lot of volatility. Why are there so many small-cap value investors? Small-cap value investors have been told that the value premium is higher, on
- 1 year ago, 16 Jun 2023, 03:32am -
Exploratory Data Analysis of Fundamental Factors [Quant Rocket]
When researching fundamental factors, analyzing alpha shouldn't be your first step. You can save time and spot issues early by starting with a basic exploration of your factor's distribution and statistical properties, a process known as exploratory data analysis (EDA). This post looks at
- 1 year ago, 16 Jun 2023, 03:31am -
Linking Impact in Divergence Attribution II [Quant Dare]
In my post Linking Impact in Divergence Attribution I explained the need to use linking algorithms in order to aggregate single-period returns. I ended my exposition by setting out the formula for adjusted returns using Andrew Frongello’s algorithms (arguably the ones with best qualities in the
- 1 year ago, 16 Jun 2023, 03:30am -
Enhance your portfolio analysis framework with carbon emissions attributions [DileQuante]
As a portfolio manager, of a mutual or dedicated fund, you have to regularly report the performance of your fund on a specific time frame (monthly, quarterly, yearly, etc.). One of the common tools is the performance attribution analysis, which is a framework that allows to isolate the effect
- 1 year ago, 15 Jun 2023, 02:00am -
Industry classification and the role it plays in momentum strategies [Alpha Architect]
Momentum strategies have been popular since the original Jagadeesh and Titman article was published in 1993. Variations on the strategies have employed calculating momentum on an individual and industry basis. For instance, in a 1999 study, Moskowitz and Grinblatt produced a positive and significant
- 1 year ago, 12 Jun 2023, 07:43pm -
Did COVID ruin Opex week? [Quantifiable Edges]
This week is options expiration week. And we have known for a long time that opex is often a bullish week for the market. Interestingly, that seasonal tendency has not seemed to hold true since the COVID crash in 2020. Below is a look at performance of all opex weeks since 1984. Opex week
- 1 year ago, 12 Jun 2023, 07:42pm -
Diversification versus Hedging II [Finominal]
Ideally diversifying funds are uncorrelated and generate positive returns However, identifying such funds is more challenging than expected Creating a diversified portfolio requires thoughtful fund and asset class selection INTRODUCTION In our last research note (read Diversification versus
- 1 year ago, 12 Jun 2023, 07:42pm -
How do AI exposures impact future stock returns? [Alpha Architect]
In this article we examine the research about how artificial intelligence influences stock returns by analyzing a measurement of firm-level AI exposures called Alness. AI Narrative and Stock Mispricing Arka Bandyopadhyay, Dat Mai, Kuntara Pukthuanthong SSRN, Working Paper A recent version of the
- 1 year ago, 12 Jun 2023, 07:42pm -
The Bogle Model for Bonds: Predicting the Returns of Constant Maturity Government Bond ETFs [Portfolio Optimizer]
In his original 1991 article Investing in the 1990s1, John Bogle described a simple model to help investors setting reasonable expectations for long-term U.S. government bond returns. This model relies on what Bogle describes as the single most important factor in forecasting future total returns
- 1 year ago, 9 Jun 2023, 03:27am -
Efficiency Ratio and Mean Reversion [Alvarez Quant Trading]
While reading the January 2023 issue of Technical Analysis of Stocks & Commodities, I came across an article about Efficiency Ratio (ER) by Perry Kaufman. In the article, he discusses using ER to decide when to trade mean reversion strategy vs a trend following one. My curiosity on this was
- 1 year ago, 7 Jun 2023, 09:03pm -
Active Reading with ChatGPT: Systematic Investing in Credit [Gautier Marti]
Yet another experiment with ChatGPT-4: Active reading a semi-technical book. Chapter 1 Can a Combination of Treasuries and Equities Replace Credit in a Portfolio? What is the size of the corporate bond market? As of my knowledge cutoff in September 2021, I don’t have the most recent data on the
- 1 year ago, 6 Jun 2023, 10:35pm -
Finding (latent) trading factors [SR SV]
Financial markets are looking at a growing and broadening range of correlated time series for the operation of trading strategies. This increases the importance of latent factor models, i.e., methods that condense high-dimensional datasets into a low-dimensional group of factors that retain most of
- 1 year ago, 6 Jun 2023, 10:35pm -
Diversification versus Hedging [Finominal]
Hedging and diversifying strategies have different objectives Downside betas can be used to differentiate these Alternative strategies have overtaken bonds as the most diversifying strategies INTRODUCTION In investing, some terms are used interchangeably, despite these having quite different
- 1 year ago, 6 Jun 2023, 10:34pm -
In-Sample vs. Out-Of-Sample Analysis of Trading Strategies [Quantpedia]
Science has been in a “replication crisis” for more than a decade. Researchers have discovered, over and over, that lots of findings in fields like psychology, sociology, medicine, and economics don’t hold up when other researchers try to replicate them. There are many interesting questions of
- 1 year ago, 2 Jun 2023, 08:47pm -
Negative Screening and the Sin Premium [Alpha Architect]
Negative exclusionary screening refers to an investment strategy in which socially controversial firms in particular sectors are excluded from the portfolio. The Global Sustainable Investment Review reports that, in 2020, more than $15 trillion (43% of total sustainable investments) were invested
- 1 year ago, 2 Jun 2023, 08:47pm -
Our Take on "The Single Greatest Predictor of Future Stock Market Returns" [Allocate Smartly]
Readers have asked for our take on “the single greatest predictor of future stock market returns”, aka the Aggregate Investor Allocation to Equities. This indicator was first shared by Philosophical Economics back in 2013, and recently resurrected by Portfolio Optimizer (two excellent sites you
- 1 year ago, 30 May 2023, 09:00am -
Alpha Generation: Equity Generalists vs Sector Specialists [Finominal]
Neither equity generalists nor sector specialists have generated alpha on average There is no consistency in alpha generation by either type of fund manager The most consistent alpha generators produced no alpha out-of-sample INTRODUCTION When I joined Citigroup as an analyst in their mergers &
- 1 year ago, 30 May 2023, 09:00am -
An Evaluation of the Skewness Model on 22 Commodities Futures [Quantpedia]
Skewness is one of the less-known but practical measures from statistics that can be used in trading. It is defined as a measure of the asymmetry of the probability distribution of a random variable around its mean. Financial mathematics and most quantitative models assume some kind of symmetric
- 1 year ago, 28 May 2023, 10:09pm -
Active Reading with ChatGPT [Gautier Marti]
Another experiment with ChatGPT-4: Active reading a semi-technical book. This book by Michael Isichenko is probably the best I have read so far in this field. Let’s dive into it! You can (and should) buy this book. Chapter 1 Market Data Gautier’s Prompt: The author mentions in his book that
- 1 year ago, 28 May 2023, 10:08pm -
Intangible-Adjusted Profitability Factor [Alpha Architect]
The past decade has witnessed a dramatic increase in spending on intangibles (not just research and development and advertising expenditures, but also expenses related to human capital) relative to tangible capital expenditures on plants and equipment. Given the change, it is not surprising that
- 1 year ago, 28 May 2023, 10:08pm -
2023 Democratize Quant Conference Recap and Materials [Alpha Architect]
We recently hosted our 6th Annual Democratize Quant Conference (sign up here for updates). This post is a recap of what we learned at the conference and some resources we can make available to the public. The agenda for the 2023 conference is outlined below: Date Time Topic Presenter Notes 5/18
- 1 year ago, 25 May 2023, 11:39pm -
Rotational Trading in Python [Ed West]
Rotational trading is a strategy used by investors that involves purchasing top-performing assets and simultaneously selling the underperforming ones in their portfolio. It’s a great way to periodically manage a portfolio by holding winners and selling losers. Backtesting a rotational trading
- 1 year ago, 25 May 2023, 11:39pm -
Drawdowns and recoveries - what lessons do they hold? [Alpha Architect]
This paper helps investors better understand drawdowns and recoveries, in terms of empirical facts, practical implications, and strategies for handling them. It shows the importance of the “interplay” between drawdowns and recoveries (which the authors call “submergence”), which should not
- 1 year ago, 25 May 2023, 11:38pm -
A Key New Momentum Measure to Consider: Distance from 1-Year High [Allocate Smartly]
This research was inspired by Alpha Architect’s coverage of a new paper looking at how the distance from a stock’s 1-year high has affected the performance of momentum strategies and the likelihood of “momentum crashes”. We look at the same question applied to a stock index: the S&P 500.
- 1 year ago, 22 May 2023, 09:00am -
The Single Greatest Predictor of Future Stock Market Returns, Ten Years After [Portfolio Optimizer]
In his 2013 post The Single Greatest Predictor of Future Stock Market Returns, Jesse Livermore1 from the blog Philosophical Economics introduced an indicator to forecast long-term U.S. stock market returns and empirically demonstrated that it outperformed all the commonly used stock market valuation
- 1 year ago, 22 May 2023, 08:59am -
Mark Virag's “Momentum Based Balancing”: Relative Momentum Taken to the Extreme [Allocate Smartly]
This a test of Mark Virag’s paper “Momentum Based Balancing for the Diversified Portfolio” (NAAIM Wagner Award winner, 2014). This is a relative momentum strategy that provides an interesting contrast to a popular strategy we track: FinancialMentor.com’s Optimum 3. More on this later.
- 1 year ago, 22 May 2023, 08:59am -
Trend Following in Equities [Finominal]
Long-only trend following in equities was more effective than long-short trend following in the US Same for European and Asian stock markets Perhaps explained by the negative skewness of stock markets INTRODUCTION Imagine a world where economic growth is anemic. Governments and central banks do
- 1 year ago, 22 May 2023, 08:59am -
Index Funds Reimagined? [Flirting with Models]
In Reimagining Index Funds (Arnott, Brightman, Liu and Nguyen 2023), the authors propose a new methodology for forming an index fund, designed to avoid the “buy high, sell low” behavior that can emerge in traditional index funds while retaining the depth of liquidity and capacity. Specifically,
- 1 year ago, 20 May 2023, 04:57pm -
Gold as a Safe-Haven Asset [Alpha Architect]
Abstract: In times of extreme macroeconomic events, including war, hyperinflation, or significant economic recessions, many investors believe gold investing is a safe haven. Is that belief warranted? Investors have concerns about the increased risks of inflation and a recession, Congress’ ability
- 1 year ago, 20 May 2023, 04:57pm -
FX trend following and macro headwinds [SR SV]
Trend following can benefit from consideration of macro trends. One reason is that macroeconomic data indicate headwinds (or tailwinds) for the continuation of market price trends. This is particularly obvious in the foreign-exchange space. For example, the positive return trend of a currency is
- 1 year ago, 20 May 2023, 04:57pm -
Creating a Returns Series with @Polygon_io Forex Data [Quant Start]
In this article we will access the Polygon API and download a month of intraday minutely Forex data. We will show you how to access the API, creating a Python function that can be easily adapted to extract FX data for various pairs across different timespans. We will also create and visualise a
- 1 year ago, 19 May 2023, 12:31am -
Ranking aggregation using genetic algorithms [Quant Dare]
In a previous post, we saw how to use genetic algorithms to make implicit optimizations. We used that technique to construct a portfolio, but in a very simple manner: we were just limited to 5 stocks, and we were looking for a constant weight for each of them, assuming daily rebalancing. Today, we
- 1 year ago, 19 May 2023, 12:30am -
Reducing the Impact of Negative Momentum Performance [Alpha Architect]
Momentum crashes are a blight on the performance of momentum strategies. Although there has been a fair amount of research on the topic, few practical solutions have emerged to mitigate the impact on portfolios. In this study, the authors document the outperformance of momentum stocks, made somewhat
- 1 year ago, 17 May 2023, 01:16am -
Emerging Market Funds: Same, Same, but Different? [Finominal]
Emerging markets offer divergent factor exposures across and within regions Smart beta ETFs do not necessarily offer high factor exposures It is all about fund selection INTRODUCTION We highlighted previously that the case for exposure to emerging markets (“EM”) stocks is not as clear as
- 1 year ago, 17 May 2023, 01:16am -
Clustering trading rule p&l [Investment Idiocy]
I recently upgraded my live production system to include all the extra instruments I've added on recently. I also did a little consolidation of trading rules, simplifying things slightly by removing some rules that didn't really have much allocation, and adding a couple from my new book.
- 1 year ago, 13 May 2023, 06:19pm -