Quant Mashup
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
- 2 days 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
- 3 days 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
- 3 days 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
- 3 days 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.
- 3 days 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
- 4 days 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
- 4 days 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
- 6 days 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.
- 6 days 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 week 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 week 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 week ago, 20 Nov 2023, 09:41pm -
Takeaways from QuantMinds 2023 [Cuemacro]
It’s been exactly a decade since I attended my first QuantMinds event. At the time, it was called Global Derivatives, and as the name suggests, it was very much focused towards option pricing and its associated areas. It was held for a number of years in Amsterdam, at the Okura Hotel (whilst I
- 1 week 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 week 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 week 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 week 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
- 2 weeks 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
- 2 weeks 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
- 2 weeks 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,
- 2 weeks 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
- 2 weeks 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
- 2 weeks 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
- 3 weeks 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
- 3 weeks 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
- 3 weeks 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
- 3 weeks 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
- 3 weeks 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
- 3 weeks 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
- 3 weeks ago, 6 Nov 2023, 10:20pm -
Organization Capital and the Cross-Section of Expected Returns [Alpha Architect]
This paper focuses on “organization capital,” representing intangible assets in a firm’s key employees that is not captured by classic value measures such as book-to-market. The authors propose a structural model to analyze the impact of organizational capital on asset prices and argue that
- 3 weeks ago, 6 Nov 2023, 10:20pm -
CLOs - Diversifier, or another Equity Clone? [Finominal]
Multiple collateralized loan obligation (CLO) ETFs have been launched since 2020 CLOs are promoted as low-risk fixed-income products However, these simply represent diluted equity exposure and offer limited diversification benefits INTRODUCTION The U.S. leveraged loan market has increased from $100
- 3 weeks ago, 6 Nov 2023, 10:19pm -
Technology Spillover Impacts Stock Returns [Alpha Architect]
The increasing role of intangible assets compared to physical assets in our economy has been accompanied by increased research into their impact on asset prices and returns. Studies such as the 2020 papers “Explaining the Recent Failure of Value Investing,” “Intangible Capital and the Value
- 3 weeks ago, 6 Nov 2023, 10:19pm -
Inflation and Stock/Treasury Correlation [Allocate Smartly]
There has been a surge in correlation between US stocks and Treasuries over the last couple of years. To illustrate, below we’ve shown the rolling 3-year correlation between US stocks and 10-year Treasuries since 1900 (based on monthly returns). Note the spike at the far right of the chart. What
- 1 month ago, 3 Nov 2023, 08:00am -
Big boost for quant_rv going long/short SPY/SH (Part 11) [Babbage9010]
sum: quant_rv was already beating SPY in our last post, with a long-only approach. Testing the remaining (flat) days finds that they’re dominated by losers, so if we go short (using SH ETF) instead of flat, boom! performance jumps again recap quant_rv is a simple quant strategy written in R that
- 1 month ago, 2 Nov 2023, 02:15am -
Index Tracking: Reproducing the Performance of a Financial Market Index (and more) [Portfolio Optimizer]
An index tracking portfolio1 is a portfolio designed to track as closely2 as possible a financial market index when its exact replication3 is either impractical or impossible due to various reasons4 (transaction costs, liquidity issues, licensing requirements…). In this blog post, after reviewing
- 1 month ago, 1 Nov 2023, 02:15am -
Higher Volatility, Higher Alpha? [Finominal]
Intuitively fund managers should create more alpha when volatility is higher However, neither mutual nor hedge fund managers have been able to do so Likely explained by fund managers being less rational than assumed INTRODUCTION “However, a period of higher volatility is ‘a good environment for
- 1 month ago, 1 Nov 2023, 02:14am -
Dissecting the Idiosyncratic Volatility Puzzle [Alpha Architect]
Idiosyncratic volatility (IVOL) is the volatility of a security that cannot be explained by overall market volatility—it is the risk unique to a particular security. IVOL contrasts with systematic risk, which is the risk that affects all securities in a market (such as changes in interest rates or
- 1 month ago, 29 Oct 2023, 10:13pm -
Part 10 quant_rv: getting somewhere now, by adding normalized ATR [Babbage9010]
TL;DR ~ This post explores adding a normalized Average True Range (nATR) measure that behaves in a similar fashion to other volatility measures, including a “low volatile anomaly” and nATR gives quant_rv a nice boost in backtesting performance. Not all goals for quant_rv are met yet, but we’re
- 1 month ago, 25 Oct 2023, 09:41pm -
Demystifying Equity Market Neutral Investing [Simplify]
The 60/40 portfolio, the bread-and-butter portfolio of today’s wealth management industry, is limited to just two core drivers of returns: equities and bonds. Is there someplace else we can turn to for a compelling yet distinct source of returns? Yes, there are several places to look in fact, one
- 1 month ago, 25 Oct 2023, 09:41pm -
Unmasking Insights through Human-AI Differences in Earnings Conference Q&A [Alpha Architect]
This paper acknowledges the pivotal role of earnings calls in disseminating value-relevant information, with particular emphasis on the Q&A segment. However, it confronts the inherent challenge posed by the unstructured nature of language in these calls, complicating quantitative analysis. In
- 1 month ago, 23 Oct 2023, 11:12pm -
Determining the Optimal Benchmark for Funds [Finominal]
SUMMARY Identifying the right benchmark for a fund or portfolio can be difficult Many common metrics like correlation or betas do poorly for benchmark selection Combining metrics is more effective INTRODUCTION Is gold the right benchmark for gold miners? Although these companies focus on excavating
- 1 month ago, 23 Oct 2023, 10:35pm -
Market Cap vs Dollar Volume: Which to Use for Universe Selection? [Quant Rocket]
Market cap and dollar volume are two commonly used metrics for filtering a trading universe by size of security. Does it matter which one you use? In this post, I quantify the difference between market cap and dollar volume and explain the kinds of stocks that may unexpectedly appear in your
- 1 month ago, 22 Oct 2023, 11:16pm -
Macro demand-based rates strategies [SR SV]
The pace of aggregate demand in the macroeconomy exerts pressure on interest rates. In credible inflation targeting regimes, excess demand should be negatively related to duration returns and positively to curve-flattening returns. Indeed, point-in-time market information states of various macro
- 1 month ago, 22 Oct 2023, 11:16pm -
How an old Nintendo baddie boosts portfolio analysis [PyQuant News]
Today’s newsletter is based on a reader’s suggestion. We look at k-medoids which is a villain in the popular Nintendo game Metroid. No it’s not. But if you know Metroid, you have to agree: It sounds like one! It’s actually a powerful method used in data science to cluster similar data
- 1 month ago, 22 Oct 2023, 11:16pm -
Volatility Forecasting: Simple and Exponentially Weighted Moving Average Models [Portfolio Optimizer]
One of the simplest and most pragmatic approach to volatility forecasting is to model the volatility of an asset as a weighted moving average of its past squared returns1. Two weighting schemes widely used by practitioners23 are the constant weighting scheme and the exponentially decreasing
- 1 month ago, 20 Oct 2023, 02:18am -
Hello ChatGPT, Can You Backtest Strategy for Me? [Quantpedia]
You may remember our blog post from the end of March, where we tested the current state-of-the-art LLM chatbot: Time flies fast. More than six months have passed since our last article, and half a year in a fast-developing field like Artificial intelligence feels like ten times more. So, we are here
- 1 month ago, 18 Oct 2023, 10:07pm -
Vector AutoRegression models: Implementation in Python and R [Quant Insti]
Whenever you want to estimate a model for multiple time series, the Vector Autoregression (VAR) model will serve you well. This model is suitable for handling multiple time series in a single model. You will learn here the theory, the intricacies, the issues and the implementation in Python and R.
- 1 month ago, 17 Oct 2023, 12:56am -
Momentum Research: a summary: high quality articles of note [Alpha Architect]
The Jegadeesh and Titman (1993) paper on momentum established that an equity trading strategy consisting of buying past winners and selling past losers, reliably produced risk-adjusted excess returns. The Jegadeesh results have been replicated in international markets and across asset classes. As
- 1 month ago, 17 Oct 2023, 12:56am -
Use OpenAI prompts for stock news sentiment [PyQuant News]
In today’s newsletter, you’ll use the OpenBB SDK to download news for a topic. Then, you’ll use OpenAI and build a prompt to predict the sentiment of a news headline. You’ll bring it all together with LangChain. The result is a pandas DataFrame with a column of news headlines and a column
- 1 month ago, 15 Oct 2023, 11:02pm -
Aliens made this rock: The post-hoc probability fallacy in biology, finance and cosmology [Mathematical Investor]
While out hiking, I found this rock. Evidently it was created by aliens, as can be shown by a probability argument. The following table gives measurements made on the rock. The first two rows give the overall length and width of the rock. Each of the next six rows, after the first two, gives
- 1 month ago, 15 Oct 2023, 11:01pm -