
A full breakdown of the three types of backtests that can be used, the common pitfalls of backtesting and how to avoid them, including a tutorial on adjusting your Sharpe Ratio for multiple trials.
An introduction to a simple backtest for a moving average cross over strategy. Here we discuss and present the effect of volatility targeting as well as look-ahead bias with performance metrics presented in a tearsheet.
We make use of QuantStats for the performance tearsheet.
These libraries offer an array of statistical tools and metrics tailored for analyzing trading strategies, providing insights into performance, risk, and various other critical factors for your backtest.
We explore:
Pyfolio
Quantstats
Probabilistic & Deflated Sharpe Ratio in MlFinLab
Moreover, we'll discuss an aspect within Hudson and Thames' MlFinLab — Lopez de Prado's innovative contributions on probabilistic and deflated Sharpe Ratios. These metrics, available within MlFinLab, offer insights into risk-adjusted returns, reshaping how we gauge the performance of strategies by accounting for probabilities and adjusting for biases.
In this session, we explore the impact of volatility targeting on the performance of different types of investment portfolios. Research shows that volatility-managed portfolios, which adjust their notional exposure based on market volatility, tend to achieve higher Sharpe ratios for "risk assets" such as equities and credit. However, for bonds, currencies, and commodities, the impact of volatility targeting on the Sharpe ratio is negligible. Importantly, making it particularly relevant for investors. We also examine the impact of volatility on popular balanced and risk parity portfolios.
Machine learning offers a set of powerful tools that holds considerable promise for investment management. As with most quantitative applications in finance, the danger of misapplying these techniques can lead to disappointment. One crucial limitation involves data availability. Many of machine learning’s early successes originated in the physical and biological sciences, in which truly vast amounts of data are available. Machine learning applications often require far more data than are available in finance, which is of particular concern in longer-horizon investing. Hence, choosing the right applications before applying the tools is important. In addition, capital markets reflect the actions of people, which may be influenced by others’ actions and by the findings of past research. In many ways, the challenges that affect machine learning are merely a continuation of the long-standing issues researchers have always faced in quantitative finance. While investors need to be cautious—indeed, more cautious than in past applications of quantitative methods—these new tools offer many potential applications in finance. In this video lecture, we explore the author's research protocol that pertains both to the application of machine learning techniques and to quantitative finance in general.
Data is a crucial aspect of a successful quant model. But what is good data and what are some of the best practice tips for data?
This video discusses the importance of data to a successful quantitative model, what are some of the characteristics of good data, and some best data practice tips.
The video is based on the paper “Best Practices in Research for Quantitative Equity Strategies” by Joseph A. Carniglia, Frank J. Fabozzi, and Petter N. Kolm.
What are some of the different types of quant strategies? And what characteristics are needed for a good quant model?
This video provides a taxonomy of some of the best quant strategies and outlines some of the key characteristics of constructing a quant model that every quant should know.
The video is based on the paper “Best Practices in Research for Quantitative Equity Strategies” by Joseph A. Carniglia, Frank J. Fabozzi, and Petter N. Kolm.
What are some of the best steps to follow when developing a successful quant strategy?
This video discusses the idea and philosophy behind quant strategies and models, and how quant strategies are developed in 6 steps:
Formulating investment ideas and strategies
Developing signals
Acquiring and processing data
Analyzing the signals
Building the strategy
Evaluating, testing, and implementing the strategy.
The video is based on the paper “Best Practices in Research for Quantitative Equity Strategies” by Joseph A. Carniglia, Frank J. Fabozzi, and Petter N. Kolm.
Quant models are always an approximation to some aspect of the markets and, therefore, wrong. Still, we can use models to make accurate forecasts about new financial data.
In this video, we discuss the idea concerning models and the real world. We then present 9 tips for better model development and, finally, we discuss what quant models can mean to quant investors and fundamental investors.
The video is based on the paper “Best Practices in Research for Quantitative Equity Strategies” by Joseph A. Carniglia, Frank J. Fabozzi, and Petter N. Kolm.
This article guides users through essential resources for learning. It recommends a comprehensive book for theoretical understanding and two Python libraries, for practical application, giving readers a solid foundation in the principles and techniques of causality in data science.
We delved into how Lopez de Prado's work makes the argument for utilizing causality in factor investing through causal graphs. These graphs uncover intricate causal ties shaping strategies.
In addition to the paper, we explored a comprehensive beginner's introduction to causality.
This lecture we review the first 4 chapters of Marcos Lopez de Prado's latest paper from ADIA Labs, which lays out the foundation of the scientific discovery process in finance and how Causal Inference is the next step.
Based on: Causal Factor Investing: Can Factor Investing Become Scientific?
In this lecture, we discuss the seven common mistakes investors tend to make when they perform backtesting and build quant models. Some of these may be familiar to our students, but nonetheless, you may be surprised to see the impact of these biases. The other sins are so commonplace in both academia and practitioner’s research that we usually take them for granted.
Machine Learning has been used in the financial services industry for over 40 years, yet it is only in recent years that it has become more pervasive across investment management and trading. Machine learning provides a more general framework for financial modeling than its linear parametric predecessors, generalizing archetypal modeling approaches, such as factor modeling, derivative pricing, portfolio construction, optimal hedging with model-free, data-driven approaches which are more robust to model risk and capture outliers. Yet despite their demonstrated potential, barriers to adoption have emerged – most of them artifacts of the sociology of this inter-disciplinary field. Based on discussions with several industry experts and the authors' multi-decadal experience using machine learning and traditional quantitative finance at investment banks, asset management and securities trading firms, this position article identifies the major red flags and sets out guidelines and solutions to avoid them. Examples using supervised learning and reinforcement in investment management & trading are provided to illustrate best practices.
In this lecture, we discuss the 9 principles of effective machine learning in finance:
Problem definition
Modeling assumptions
Develop intuition
Defensible results
Diagnostics
Keep it simple
Choice of the utility function
Solution constraints
Is your data biased?
Feature Engineering
In this video, we explore the False Strategy Theorem proposed by Marcos Lopez de Prado and David Bailey, which provides a solution for selection bias under multiple testing in investment strategy development.
The False Strategy Theorem argues that most investment strategies fail due to the "false positive" problem, where a strategy may appear successful when backtested on historical data, but fails when applied to new and unseen data. This is because traditional backtesting methods do not account for selection bias and multiple testing, leading to the false discovery of successful strategies.
In this video, we discuss the paper "Detection of false investment strategies using unsupervised learning methods". We discuss several topics such as the Probabilistic Sharpe Ratio and Deflated Sharpe Ratio and how to use them. Practical considerations are also discussed for estimating certain variables within these equations, which is done through the Optimal Number of Clusters (ONC) algorithm.
In this video we discuss the paper "Backtesting", which provides a statistical framework to analytically determine the discount factor applied to the Sharpe ratio when multiple testing is factored in.
Prof. Campbell R. Harvey delivers the keynote address at the 18th Annual Portfolio Management Conference, June 10, 2015 in Frankfurt.
We delve into the fascinating world of Kelly Criterion and explore its four different approaches to bet sizing.
We will enhance your understanding of optimal capital allocation strategies with both theory and code. Discover the discrete-time and continuous-time Kelly Criterion, delve into the optimal allocation Kelly Criterion, and explore the risk-constrained Kelly Criterion.
Don't miss out on this opportunity to deepen your knowledge and gain insights into bet sizing techniques that can enhance your decision-making in the world of investments.
Tackling the intricacies of stop-loss rules was the focus of our latest reading group session, building upon prior discussions like 'Penny-Picking' and 'Skewness-Seeking.' A robust framework guided our analysis of stop-loss impact on expected returns.
The Random Walk Hypothesis, AR(1) and Regime-switching models also entered the conversation, offering insights into the efficacy of stop-loss strategies under varying market conditions. Various performance metrics were considered for evaluating the effectiveness of stop-loss
This lecture discusses the fundamentals of the market structure and trading, along with how these impact the execution of investment strategies.
This course is designed to equip you with the tools and knowledge needed to effectively backtest trading strategies using Python. It is tailored for those who want to test and validate their trading ideas with historical market data, ensuring a robust and data-driven approach to trading.
Building Your Own Backtester in Python: Dive into the technicalities of building a backtester from scratch. Learn to code in Python and use popular libraries to create a versatile and reusable backtesting framework.
Before You Backtest - Use This Protocol!: Understand the essential steps to prepare for backtesting. This module focuses on data collection, hypothesis formation, and setting up testing parameters.
Best Practices in Research for Quantitative Equity Strategies: Learn the industry-standard research methodologies that quantitative analysts use for developing equity strategies. We cover data analysis techniques, statistical tests, and more.
The Importance of Causality in Your Experiment Design: Understand the role of causality in trading strategy design. Learn how to differentiate between correlation and causation to build more effective trading strategies.
What Not to Do!: A critical look at common pitfalls in strategy backtesting. Learn to identify and avoid mistakes that can lead to inaccurate conclusions and poor strategy performance.
Detecting False Investment Strategies: Equip yourself with the knowledge to spot and avoid strategies that appear profitable but are actually flawed due to overfitting, data-snooping biases, or other errors.
Bonus Lectures: Engage with additional content that delves into advanced topics, real-world case studies, and emerging trends in quantitative finance.