Quant Mashup
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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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 »,
- 1 year 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
- 1 year 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,
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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.
- 1 year 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
- 1 year 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
- 1 year 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
- 1 year 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.
- 1 year 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 -
Using time series lag() in R finance [Babbage9010]
Backtesting quant strategies in R requires paying attention to how we lag() our time series. Here be dragons. Lagging a time series relative to another is important in many areas, but we use it a lot in backtesting financial strategies. I’ve struggled with the logic of lag() several times, and
- 1 year ago, 15 Nov 2023, 08:37pm -
Sector Rotation Strategy: Should Trading Rules Make Sense? [Alvarez Quant Trading]
I was doing my usual reading when I came across a sector rotation strategy. I have seen lots of these strategies but this one had a different twist. The strategy was a momentum strategy but instead of buying the top three, it was buying the middle three. The article gave no reason other than it
- 1 year ago, 15 Nov 2023, 08:37pm -
Small Trader Alpha: An Arbitrage Strategy in SPY Options [Return Sources]
In this post, I'll discuss in detail an arbitrage trade in SPY options that I'd been running for about a year. (Some of you may have read a short version of this in this twitter post). I'm no longer using it, but it's still a viable strategy to earn some extra money. To be clear,
- 1 year ago, 14 Nov 2023, 09:38pm -
Inflation surges - how long to return to normal? [Alpha Architect]
How long will it take for the current level of inflation to subside? If history is any guide, it could take quite a while. Across 198 policy interest rate hikes of at least 1%, a decrease of 1% in inflation took 2 to 4 years (Havranke and Rusnak, 2013). The authors of this research article conduct
- 1 year ago, 14 Nov 2023, 09:37pm -
Wiener–Khinchin theorem and Gaussian processes [OS Quant]
The Wiener-Khinchin theorem provides a clever way of building Gaussian processes for regression. I’ll show you this theorem in action with some Python code and how to use it to model a process. The Wiener-Khinchin theorem states that an autocovariance function of a weakly stationary process is a
- 1 year ago, 12 Nov 2023, 09:26pm -
An Exponenetially Weighted Covariance Matrix in R [Robot Wealth]
Exponential weighting schemes can help navigate the trade-off between responsiveness and stability of the inherently noisy estimates we make from market data. We previously saw examples of calculating the exponentially weighted moving average of a vector, and estimating the correlation between SPY
- 1 year ago, 12 Nov 2023, 07:02am -
Quant_rv performance over three decades [Babbage9010]
In recent posts we added nATR as a vol measure, went short instead of flat, and significantly improved quant_rv’s performance over our in-sample test period 2006-2019. Now we look at the more recent record including the Covid Swoon and Inflation Coaster, and the years prior from the Roaring 90s
- 1 year ago, 11 Nov 2023, 05:23pm -
The Performance of Major Private Equity/LBO Firms [Alpha Architect]
Attracted by the glamour and potential for lottery-like returns, global private equity (PE) assets under management reached $4.2 trillion in 2022. PE involves pooling capital to invest in private companies by providing venture capital (VC) to startups or by taking over and restructuring mature firms
- 1 year ago, 11 Nov 2023, 05:22pm -
Calibrating volatility smiles with SABR [PyQuant News]
In today’s newsletter, we’ll explore the SABR stochastic volatility model. It’s a very popular volatility model used by professionals for many types of derivatives. Today, we’ll look at how to calibrate the SABR parameters and use them to fit a volatility smile for equity options. Sound
- 1 year ago, 9 Nov 2023, 12:08am -
NEW CONTRIBUTOR: Improving Trend With Mean Reversion [Return Sources]
In a 2011 paper, “To Trade or Not to Trade? Informed Trading with Short-Term Signals for Long-Term Investors,” Roni Israelov discusses how investors could use short-term trading signals that are normally too costly to trade, such as short-term reversal. He describes using the short-term signal
- 1 year ago, 6 Nov 2023, 10:20pm -
Using Exponentially Weighted Moving Averages to navigate trade-offs in systematic trading [Robot Wealth]
A big part of the job of the indie trader is data analysis. We’re always looking in the past data to validate (or more often, invalidate) a hypothesis about what might predict future returns. And one could argue that recent data is more useful than past data, since it may reflect the current state
- 1 year ago, 6 Nov 2023, 10:20pm -
Sovereign debt sustainability and CDS returns [SR SV]
Selling protection through credit default swaps is akin to writing put options on sovereign default. Together with tenuous market liquidity, this explains the negative skew and heavy fat tails of generic CDS (short protection or long credit) returns. Since default risk depends critically on
- 1 year ago, 6 Nov 2023, 10:20pm -