Quant Mashup
Machine Learning Classification Methods and Factor Investing [Alpha Architect]
In the last post in our machine learning series, we showed how nonlinear regression algos might improve regression forecasting relative to plain vanilla linear regression (i.e., when underlying reality is nonlinear with complex interactions). In this piece, we’ll first review machine learning for
- 6 years ago, 21 Dec 2018, 10:49am -
Position Sizing for Practitioners Part 3: A Portfolio Approach [Quant Fiction]
“Diversification is the Only Free Lunch” I’m sure everyone has heard this old adage at some point in their trading career. Most people probably shrug it off and go back to watching The Big Short and dreaming of putting on that one career-making trade. Or maybe they’re still trying to figure
- 6 years ago, 20 Dec 2018, 06:50pm -
What to do when you find the Holy Grail [Alvarez Quant Trading]
As I have mentioned in several interviews, I am always looking for new strategies. One area that fascinates me is stock options. Because it is difficult to get good data and to do backtests, I believe that there are good edges here to be found. A few weeks ago, I found myself with lots of time and
- 6 years ago, 20 Dec 2018, 06:49pm -
Cash or Bonds at Low Yields and a Flat Yield Curve? [EconomPic]
While there have been a few cyclical periods of rising rates over the past 40 years, we've largely been in one large downtrend... meaning that it has consistently paid to own bonds vs cash / take duration risk for nearly my / many investment lives. Now that we've moved away from a zero
- 6 years ago, 19 Dec 2018, 11:30am -
Algorithmic Trading Regulations - European Union [Quant Insti]
A game of cat and mouse. Technological development more often than not stays ahead of regulators. Each new technological advance or disruption carries risks for the stability of things and advantages for those who are at the forefront. Regulators try to set rules and good practices that limit
- 6 years ago, 19 Dec 2018, 11:29am -
Data Science is Revolutionizing Investment Practice [Alpha Architect]
What are the Research Questions? This editorial introduces data science to the wider investment community and highlights some of the advantages (and potential pitfalls as discussed yesterday) it can bring to everyday investment practice. The paper answers two apparently simple questions: What is
- 6 years ago, 19 Dec 2018, 11:29am -
The Overlooked Half of the Global Stock Market [Quant Rocket]
The US stock market is the largest and most liquid stock market in the world and tends to get all the attention. Many brokers and trading platforms are US-only, and many traders focus exclusively on the US market. This post compares the number of stock listings in each of 17 countries to quantify
- 6 years ago, 18 Dec 2018, 09:26am -
What do portfolios and teacups have in common? [Flirting with Models]
Portfolio risk is often measured as the variance of returns over time. Another form of risk is the variance of terminal wealth that can arise from small variations in strategy inputs or asset returns. Strategies or portfolios that are more sensitive to small changes in inputs are inherently
- 6 years ago, 17 Dec 2018, 01:20pm -
Factor Investing Made In China [Factor Research]
This research note was originally published by the CAIA Association’s AllAboutAlpha blog. Here is the link. SUMMARY Common equity factors generated attractive risk-adjusted returns in the Chinese stock market Factor performance in China often mirrors global factor performance Indicates common
- 6 years ago, 17 Dec 2018, 01:20pm -
A Protocol to Prevent "Quants Gone Wild" [Alpha Architect]
What are the Research Questions? Data mining in finance has long been a concern for academic researchers. Campbell Harvey, one of the authors on this paper, is leading the effort to ensure the integrity of empirical finance research. For example, see here for a post on his address to the AFA. The
- 6 years ago, 17 Dec 2018, 01:19pm -
Weekly Recap: Value Performance & ETFs' impact on correlations & liquidity [Alpha Architect]
This week Ryan and I discuss two posts. First, we examine a guest post by Matthew Bartolini of State Street Global Advisors, discussing the underperformance of Value and its outlook for 2019. Second, we examine a guest post by Elisabetta on a recent JPM paper examining the effects that ETFs have had
- 6 years ago, 17 Dec 2018, 01:19pm -
Modern backtesting with integrity [SR SV]
Machine learning offers powerful tools for backtesting trading strategies. However, its computational power and convenience can also be corrosive for financial investment due to its tendency to find temporary patterns while data samples for cross validation are limited. Machine learning produces
- 6 years ago, 15 Dec 2018, 10:09am -
Portfolio construction through handcrafting: implementation [Investment Idiocy]
This post is all about handcrafting; a method for doing portfolio construction which human beings can do without computing power, or at least with a spreadsheet. The method aims to achieve the following goals: Humans can trust it: intuitive and transparent method which produces robust weights Can be
- 6 years ago, 14 Dec 2018, 08:12pm -
The Most Wonderful Week of the Year…2018 edition [Quantifiable Edges]
Over several time horizons op-ex week in December has been the most bullish week of the year for the SPX. The positive seasonality actually has persisted for up to 3 weeks. I’ve shown the study below in the blog many times since 2008. It looks back to 1984, which was the first year that SPX
- 6 years ago, 14 Dec 2018, 08:12pm -
Estimating the Bid-Ask Spread [Dekalog Blog]
Below I provide a vectorised Octave function to estimate the bid-ask spread from high, low and close prices according to "A Simple Way to Estimate Bid-Ask Spreads from Daily High and Low Prices," (Corwin and Schultz, 2012). The paper can be downloaded from one of the author's homepage
- 6 years ago, 14 Dec 2018, 10:44am -
Random Walk Simulation Of Stock Prices Using Geometric Brownian Motion [Quant Insti]
In this blog on random walk simulation, we will learn how to simulate stock prices. Future stock prices are very hard to predict and are dependent on the past trend and volatility. While simulating the stock prices one has to give reasonable weightage to these two parameters. The random walk model
- 6 years ago, 14 Dec 2018, 10:44am -
Does the Sunspot Cycle Predict Grain Prices? [CXO Advisory]
As a follow-up to “Sunspot Cycle and Stock Market Returns” a reader asked: “Sunspot activity does have a direct relationship to weather. Could one speculate on the agriculture market using the sunspot cycle?” To investigate, we relate sunspot activity to the fairly long U.S. Producer Price
- 6 years ago, 14 Dec 2018, 10:43am -
Sunspot Cycle and Stock Market Returns [CXO Advisory]
A reader asked whether Charles Nenner, self-described as “the talk of Wall Street since accurately predicting some of the biggest moves in the Markets over the past few years,” accurately forecasts equity and commodity markets. We consider the following: In his July 2007 discussion of the
- 6 years ago, 14 Dec 2018, 10:43am -
Placing your first Forex trade with Python [Jon.IO]
Update: I updated the code so it works with Oanda's new API. Get it here Time to talk about brokers, how to place a trade programmatically and most importantly how not to get scammed. This is the third part of the series: How to build your own algotrading platform. A broker is nothing more than
- 6 years ago, 12 Dec 2018, 09:45pm -
More examples in Financial Visualisation [Quant Dare]
In line with the previous post Group Funds with the Sun we continue exploring new ways to visualise and analyse financial data. We will take annual data from the current components of Dow Jones Industrial with data going back to 2000 to play around. Animated Risk – Return scatter Risk-Return
- 6 years ago, 12 Dec 2018, 09:44pm -
The Mechanical Turk [Financial Hacker]
We can see thinking machines taking over more and more human tasks, such as car driving, Go playing, or financial trading. But sometimes it’s the other way around: humans take over jobs supposedly assigned to thinking machines. Such a job is commonly referred to as a Mechanical Turk in
- 6 years ago, 11 Dec 2018, 11:57am -
After a Lost Decade, Will Value Get its Groove back in 2019? [Alpha Architect]
Borne in academia and raised by fund managers seeking to outperform, value style mutual funds and ETFs today hold close to $2 trillion(1). But with poor returns over the past decade, the question of whether “value is dead” has become a popular topic of conversation.(2) The search term “is
- 6 years ago, 11 Dec 2018, 11:57am -
ETFs Have NOT Screwed Up Correlations, Liquidity, and Alpha Opportunities [Alpha Architect]
What are the Research Questions? The paper investigates the following research question: Have ETFs flows affected the correlation structure of returns? Have ETFs flows affected the liquidity of underlying securities? Have ETFs flows affected the ability of managers to generate alpha? What are the
- 6 years ago, 11 Dec 2018, 11:57am -
The Risk in the Risk-Free Rate [Flirting with Models]
The risk-free rate is an important concept in financial theory, but the risk-free rate accessible to most investors can vary significantly in level. The variation in risk-free rate not only has an important impact on the theoretically optimal portfolio, but it can have a very real impact upon
- 6 years ago, 10 Dec 2018, 09:45am -
Factor Optimisation [Factor Research]
Equity factors exhibit sector biases and exposures to other common factors A factor optimisation process allows investors to create pure factors Risk-adjusted returns do not increase, but pure factors are attractive from analytical, risk and allocation perspectives INTRODUCTION When large quantities
- 6 years ago, 10 Dec 2018, 09:44am -
Commodity carry [SR SV]
Across assets, carry is defined as return for unchanged prices and is calculated based on the difference between spot and futures prices (view post here). Unlike other markets, commodity futures curves are segmented by obstacles to intertemporal arbitrage. The costlier the storage, the greater is
- 6 years ago, 10 Dec 2018, 09:44am -
Is there a signal in the noise? Yield Curves, Economic Growth and Stock Prices [Musings on Markets]
The title of this post is not original and draws from Nate Silver's book on why so many predictions in politics, sports and economics fail. It reflects the skepticism with which I view many 'can't fail" predictors of economic growth or stock markets, since they tend to have
- 6 years ago, 7 Dec 2018, 08:36pm -
Portfolio construction through handcrafting: The method [Investment Idiocy]
This post is all about handcrafting; a method for doing portfolio construction which human beings can do without computing power (although realistically you'd probably need a spreadsheet unless you're some kind of weird masochist). The method aims to achieve the following goals: Humans can
- 6 years ago, 7 Dec 2018, 12:42pm -
Trend Following on Steroids [Alpha Architect]
Trend following is well-known and the simplest version is as follows: you buy an asset when it has positive momentum (the price goes up) and you sell it and go to cash (or any other safe haven) when the momentum turns negative.(1) The best-known example of trend following is on the monthly ETF SPY
- 6 years ago, 7 Dec 2018, 12:41pm -
90 Years Of Death Crosses [Quantifiable Edges]
The SPX could complete a “Death Cross” formation today or tomorrow, in which the 50-day moving average crosses below the 200-day moving average. In the past I have looked back to 1960 when examining Death Crosses. This time I decided to use Amibroker with my Norgate database, which goes back to
- 6 years ago, 7 Dec 2018, 12:41pm -
Weekly Recap: Trend-Following, Portfolios, and Risk Factors [Alpha Architect]
You can watch the video via the link below: This week Ryan and I discuss three posts. First, we examine a guest post titled, “Trend Following on Steroids,” which examines ways to enhance a simple trend-following strategy. Second, we examine a post I wrote regarding how to use trend-following
- 6 years ago, 7 Dec 2018, 12:41pm -
RNN, LSTM, GRU For Trading [Quant Insti]
In my previous article, we have developed a simple artificial neural network and predicted the stock price. However, in this article, we will use the power of RNN (Recurrent Neural Networks), LSTM (Short Term Memory networks) & GRU (Gated Recurrent Unit Network) and predict the stock price. We
- 6 years ago, 6 Dec 2018, 10:49am -
Portfolio construction through handcrafting: motivating [Investment Idiocy]
I've talked around a type of portfolio construction called "Handcrafting" for some time now, in both of my first two books, and in the odd blog post. I thought it would be useful to explain how the technique works in a more thorough and complete series of blog posts, and also share
- 6 years ago, 5 Dec 2018, 12:42pm -
The Emotional Quant Curve [Alvarez Quant Trading]
While writing my presentation for TradersFest 2018, I wanted to add the trader’s emotional curve. But looking at it closer, it did not capture my feelings as I go through the cycle of up and downs of trading a strategy. Here is my curve. I have been on every part of this curve multiple times.
- 6 years ago, 5 Dec 2018, 12:42pm -
MACD: Moving Average Convergence Divergence (Part 1) [Oxford Capital]
I. Trading Strategy Developer: Gerald Appel. Source: Appel, G. (2005). Technical Analysis. NJ: Pearson Education, Inc; Star, B., PhD (2016). Zero In On The MACD. Stocks & Commodities, May 2016. Concept: Trend following trading strategy based on the MACD (Moving Average Convergence Divergence)
- 6 years ago, 5 Dec 2018, 12:41pm -
A Portfolio of Leveraged Exchange Traded Funds vs. Benchmark Asset Allocation [Quantpedia]
A new interesting financial research paper gives an idea to build a diversified portfolio of leveraged ETFs (scaled down to have the same risk as a benchmark asset allocation built from a non-leveraged ETFs) to beat benchmark asset allocation. However, caution is needed as the most of the
- 6 years ago, 5 Dec 2018, 12:41pm -
How to Use Trend Following within a Portfolio [Alpha Architect]
A question we have been receiving recently is the following: How should I use trend following within a portfolio? Generally, the questions are related to our Global Value, Momentum, and Trend Index, which allocates to the (1) Value, (2) Momentum, and (3) Trend factors. A big difference between the
- 6 years ago, 4 Dec 2018, 12:24pm -
GARCH and a rudimentary application to Vol Trading [QuantStrat TradeR]
This post will review Kris Boudt’s datacamp course, along with introducing some concepts from it, discuss GARCH, present an application of it to volatility trading strategies, and a somewhat more general review of datacamp. So, recently, Kris Boudt, one of the highest-ranking individuals pn the
- 6 years ago, 3 Dec 2018, 11:16pm -
The relationship between ATR and standard deviation [Investment Idiocy]
Let's begin this post with a gross generalisation: Professional traders tend to measure risk and target risk using standard deviation. Amateur traders tend to use a funky little number called the ATR: 'Average True Range'. Both try and achieve the same aim: summarise the typical
- 6 years ago, 3 Dec 2018, 11:39am -
Maximizing Diversification [Flirting with Models]
Diversification within a portfolio can be quantified using the diversification ratio, which measures how much the volatility is reduced relative to a scenario where all assets are perfectly correlated. By maximizing the diversification ratio, we can construct the most diversified portfolio for a
- 6 years ago, 3 Dec 2018, 11:38am -
Measuring Factor Exposures: Uses and Abuses [Alpha Architect]
What are the research questions? USES: Can investors really separate “alpha” from “beta”? What are the ins-and-outs of understanding the exposures in a portfolio and their contribution to “alpha”? ABUSES: Are there differences in the way strategies are constructed in academic articles
- 6 years ago, 3 Dec 2018, 11:38am -
Private Equity: The Emperor Has No Clothes [Factor Research]
This research note was originally published by the CFA Institute’s Enterprising Investor blog. Here is the link. SUMMARY Private equity returns can be replicated with small cap equities Small, cheap and levered stocks would have achieved higher returns since 1988 Valuation and debt multiples are
- 6 years ago, 3 Dec 2018, 09:50am -
Free Data and the Collapse of Trading Costs [CXO Advisory]
How have costs of U.S. stock trading data evolved in recent years? In his October 2018 paper entitled “Retail Investors Get a Sweet Deal: The Cost of a SIP of Stock Market Data”, James Angel examines costs of U.S. stock market data. He also describes the production of these data and their
- 6 years ago, 3 Dec 2018, 09:49am -
Tactical Asset Allocation in November [Allocate Smartly]
This is a summary of the recent performance of a wide range of excellent tactical asset allocation strategies, net of transaction costs. These strategies are sourced from books, academic papers, and other publications. While we don’t (yet) include every published TAA model, these strategies are
- 6 years ago, 1 Dec 2018, 12:31pm -
Understanding the correlation of equity and bond returns [SR SV]
The correlation of equity and high grade sovereign bond returns is a powerful driver of portfolio construction and the term premia of interest rates. This correlation has turned from positive in the 1970s-1990s to negative in the 2000s-2010s, on the back of similar shifts in the correlation between
- 6 years ago, 1 Dec 2018, 08:39am -
Research Review | 30 November 2018 | Risk Factors [Capital Spectator]
Factor Investing: Get Your Exposures Right! François Soupé (BNP Paribas Asset Management), et al. October 26, 2018 This paper is devoted to the question of optimal portfolio construction for equity factor investing. The first part of the paper focusses on how to make sure that a given equity
- 6 years ago, 30 Nov 2018, 09:40am -
Stiffness Indicator Analysis [Alvarez Quant Trading]
A reader pointed me the November 2018 issue of Technical Analysis of Stocks & Commodities to an article about a trend following indicator on S&P500 stocks. I liked the concept of the indicator and the article had backteted results and AmiBroker code. How could I resist not looking into this?
- 6 years ago, 28 Nov 2018, 09:33pm -
Deep Reinforcement Trading [Quant Dare]
Deep Reinforcement Learning applications in finance are still largely unknown. Nonetheless, recent developments in other fields have pushed researchers towards exciting new horizons. I believe that there is a huge potential for Reinforcement Learning in finance. As investment guru Ray Dalio, founder
- 6 years ago, 28 Nov 2018, 09:33pm -
When SPX Closes Higher On Bad Breadth [Quantifiable Edges]
While the SPX closes higher on Tuesday, NYSE breadth was weak – both from an % Up Issues and % Up Volume standpoint. This triggered the study below from the Quantifinder. I also discussed it in last night’s subscriber letter. 2018-11-28-1 Here we see numbers suggesting a substantial bearish edge
- 6 years ago, 28 Nov 2018, 09:32pm -
Create own Recession Indicator using Mixture Models [Eran Raviv]
Broadly speaking, we can classify financial markets conditions into two categories: Bull and Bear. The first is a “todo bien” market, tranquil and generally upward sloping. The second describes a market with a downturn trend, usually more volatile. It is thought that those bull\bear terms
- 6 years ago, 27 Nov 2018, 09:31pm -