Handbook of High-Frequency Trading and Modeling in Finance
()
About this ebook
Reflecting the fast pace and ever-evolving nature of the financial industry, the Handbook of High-Frequency Trading and Modeling in Finance details how high-frequency analysis presents new systematic approaches to implementing quantitative activities with high-frequency financial data.
Introducing new and established mathematical foundations necessary to analyze realistic market models and scenarios, the handbook begins with a presentation of the dynamics and complexity of futures and derivatives markets as well as a portfolio optimization problem using quantum computers. Subsequently, the handbook addresses estimating complex model parameters using high-frequency data. Finally, the handbook focuses on the links between models used in financial markets and models used in other research areas such as geophysics, fossil records, and earthquake studies. The Handbook of High-Frequency Trading and Modeling in Finance also features:
• Contributions by well-known experts within the academic, industrial, and regulatory fields
• A well-structured outline on the various data analysis methodologies used to identify new trading opportunities
• Newly emerging quantitative tools that address growing concerns relating to high-frequency data such as stochastic volatility and volatility tracking; stochastic jump processes for limit-order books and broader market indicators; and options markets
• Practical applications using real-world data to help readers better understand the presented material
The Handbook of High-Frequency Trading and Modeling in Finance is an excellent reference for professionals in the fields of business, applied statistics, econometrics, and financial engineering. The handbook is also a good supplement for graduate and MBA-level courses on quantitative finance, volatility, and financial econometrics.
Ionut Florescu, PhD, is Research Associate Professor in Financial Engineering and Director of the Hanlon Financial Systems Laboratory at Stevens Institute of Technology. His research interests include stochastic volatility, stochastic partial differential equations, Monte Carlo Methods, and numerical methods for stochastic processes. Dr. Florescu is the author of Probability and Stochastic Processes, the coauthor of Handbook of Probability, and the coeditor of Handbook of Modeling High-Frequency Data in Finance, all published by Wiley.
Maria C. Mariani, PhD, is Shigeko K. Chan Distinguished Professor in Mathematical Sciences and Chair of the Department of Mathematical Sciences at The University of Texas at El Paso. Her research interests include mathematical finance, applied mathematics, geophysics, nonlinear and stochastic partial differential equations and numerical methods. Dr. Mariani is the coeditor of Handbook of Modeling High-Frequency Data in Finance, also published by Wiley.
H. Eugene Stanley, PhD, is William Fairfield Warren Distinguished Professor at Boston University. Stanley is one of the key founders of the new interdisciplinary field of econophysics, and has an ISI Hirsch index H=128 based on more than 1200 papers. In 2004 he was elected to the National Academy of Sciences.
Frederi G. Viens, PhD, is Professor of Statistics and Mathematics and Director of the Computational Finance Program at Purdue University. He holds more than two dozen local, regional, and national awards and he travels extensively on a world-wide basis to deliver lectures on his research interests, which range from quantitative finance to climate science and agricultural economics. A Fellow of the Institute of Mathematics Statistics, Dr. Viens is the coeditor of Handbook of Modeling High-Frequency Data in Finance, also published by Wiley.
Related to Handbook of High-Frequency Trading and Modeling in Finance
Titles in the series (11)
Handbook of Modeling High-Frequency Data in Finance Rating: 0 out of 5 stars0 ratingsHandbook of Volatility Models and Their Applications Rating: 5 out of 5 stars5/5Handbook in Monte Carlo Simulation: Applications in Financial Engineering, Risk Management, and Economics Rating: 5 out of 5 stars5/5Handbook of Market Risk Rating: 4 out of 5 stars4/5Handbook of Fixed-Income Securities Rating: 4 out of 5 stars4/5Advances in Heavy Tailed Risk Modeling: A Handbook of Operational Risk Rating: 4 out of 5 stars4/5Fundamental Aspects of Operational Risk and Insurance Analytics: A Handbook of Operational Risk Rating: 4 out of 5 stars4/5Handbook of High-Frequency Trading and Modeling in Finance Rating: 0 out of 5 stars0 ratingsExtreme Events in Finance: A Handbook of Extreme Value Theory and its Applications Rating: 0 out of 5 stars0 ratings
Related ebooks
Quantitative Methods in Derivatives Pricing: An Introduction to Computational Finance Rating: 2 out of 5 stars2/520/20 Money: See the Markets Clearly and Invest Better Than the Pros Rating: 2 out of 5 stars2/5Periodically Correlated Random Sequences: Spectral Theory and Practice Rating: 0 out of 5 stars0 ratingsModeling Financial Markets Rating: 4 out of 5 stars4/5Practical Risk-Adjusted Performance Measurement Rating: 0 out of 5 stars0 ratingsThe Nature of Infinitesimals Rating: 0 out of 5 stars0 ratingsRobust Optimization Rating: 5 out of 5 stars5/5Managing Biotechnology: From Science to Market in the Digital Age Rating: 0 out of 5 stars0 ratingsFinancial Models with Levy Processes and Volatility Clustering Rating: 3 out of 5 stars3/5Quantitative Finance: Mastering Mathematical Models for Market Success Rating: 0 out of 5 stars0 ratingsThe Markets Never Sleep: Global Insights for More Consistent Trading Rating: 0 out of 5 stars0 ratingsThe Way Rating: 0 out of 5 stars0 ratingsINVESTMENT PROJECTS TO GENERATE POSITIVE RATES OF RETURN in CONDITIONS OF NEAR ZERO or NEGATIVE INTEREST RATES Rating: 0 out of 5 stars0 ratingsThe Principle of Relativity Rating: 0 out of 5 stars0 ratingsAlgorithmic Market Making: Strategies for Liquidity and Profitability Rating: 0 out of 5 stars0 ratingsAbstract Methods in Partial Differential Equations Rating: 0 out of 5 stars0 ratingsArtificial Neural Systems: Principle and Practice Rating: 0 out of 5 stars0 ratingsMastering International Finance Rating: 0 out of 5 stars0 ratingsThe Malliavin Calculus Rating: 5 out of 5 stars5/5Deep Belief Nets in C++ and CUDA C: Volume 2: Autoencoding in the Complex Domain Rating: 0 out of 5 stars0 ratingsThe Long and Short Of Hedge Funds: A Complete Guide to Hedge Fund Evaluation and Investing Rating: 0 out of 5 stars0 ratingsMarkov Processes and Applications: Algorithms, Networks, Genome and Finance Rating: 0 out of 5 stars0 ratingsInvesting Redefined: A Proven Investment Approach for a Changing World Rating: 0 out of 5 stars0 ratingsBuilding WealthThrough Compounding Rating: 0 out of 5 stars0 ratingsSmart(er) Investing: How Academic Insights Propel the Savvy Investor Rating: 0 out of 5 stars0 ratingsRandom Graphs Rating: 5 out of 5 stars5/5Day Trading Rating: 1 out of 5 stars1/5DIFFERENTIAL CALCULUS: A Mathematical Analysis for Applied Sciences Rating: 0 out of 5 stars0 ratings
Finance & Money Management For You
The Psychology of Money: Timeless lessons on wealth, greed, and happiness Rating: 5 out of 5 stars5/5Buy, Rehab, Rent, Refinance, Repeat: The BRRRR Rental Property Investment Strategy Made Simple Rating: 5 out of 5 stars5/5The Intelligent Investor, Rev. Ed: The Definitive Book on Value Investing Rating: 4 out of 5 stars4/5Principles: Life and Work Rating: 4 out of 5 stars4/5Capitalism and Freedom Rating: 4 out of 5 stars4/5The Great Reset: And the War for the World Rating: 4 out of 5 stars4/5Set for Life: An All-Out Approach to Early Financial Freedom Rating: 4 out of 5 stars4/5Die With Zero: Getting All You Can from Your Money and Your Life Rating: 4 out of 5 stars4/5Good to Great: Why Some Companies Make the Leap...And Others Don't Rating: 4 out of 5 stars4/5The Great Awakening: Defeating the Globalists and Launching the Next Great Renaissance Rating: 4 out of 5 stars4/5The Richest Man in Babylon Rating: 4 out of 5 stars4/5The Book on Advanced Tax Strategies: Cracking the Code for Savvy Real Estate Investors Rating: 4 out of 5 stars4/5The 7 Habits of Highly Effective People: 15th Anniversary Infographics Edition Rating: 5 out of 5 stars5/5Financial Words You Should Know: Over 1,000 Essential Investment, Accounting, Real Estate, and Tax Words Rating: 4 out of 5 stars4/5Alchemy: The Dark Art and Curious Science of Creating Magic in Brands, Business, and Life Rating: 4 out of 5 stars4/5The Tax and Legal Playbook: Game-Changing Solutions To Your Small Business Questions Rating: 3 out of 5 stars3/5Summary of The Algebra of Wealth: A Simple Formula for Financial Security Rating: 4 out of 5 stars4/5How to Make Money in Stocks: A Winning System in Good Times and Bad, Fourth Edition Rating: 5 out of 5 stars5/5Just Keep Buying: Proven ways to save money and build your wealth Rating: 5 out of 5 stars5/5Summary of The Intelligent Investor: by Benjamin Graham and Jason Zweig | Includes Analysis Rating: 5 out of 5 stars5/5The Freedom Shortcut: How Anyone Can Generate True Passive Income Online, Escape the 9-5, and Live Anywhere Rating: 5 out of 5 stars5/5Retire Before Mom and Dad: The Simple Numbers Behind A Lifetime of Financial Freedom Rating: 4 out of 5 stars4/5
Reviews for Handbook of High-Frequency Trading and Modeling in Finance
0 ratings0 reviews
Book preview
Handbook of High-Frequency Trading and Modeling in Finance - Ionut Florescu
Notes on Contributors
Editors
Ionut Florescu Financial Engineering Division, Stevens Institute of Technology, Hoboken, NJ, USA Maria C. Mariani Department of Mathematical Sciences, University of Texas at El Paso, El Paso, TX, USA H. Eugene Stanley Boston University, Boston, MA, USA Frederi G. Viens Purdue University, West Lafayette, IN, USA
List of Contributors
K. Basu
Department of Mathematics, Occidental College, Los Angeles, CA, USA
M. P. Beccar-Varela
Department of Mathematical Sciences, University of Texas at El Paso, El Paso, TX, USA
Claas Becker
Studiengang Angewandte Mathematik, Hochschule RheinMain, 65197 Wiesbaden, Germany
P. Bezdek
Department of Mathematics, The University of Utah, Salt Lake City, UT, USA
F. Biney
Department of Mathematical Sciences, The University of Texas at El Paso, El Paso, TX, USA
Michael Carlisle
Department of Mathematics, Baruch College, City University of New York, New York, NY, USA
Bernardo Creamer
Universidad de las Américas, Quito, Ecuador
Germán G. Creamer
School of Business, Stevens Institute of Technology, Hoboken, NJ, USA
Alexis Fauth
SAMM, Université de Paris 1 Panthéon-Sorbonne, 90, rue de Tolbiac, 75634, Paris, France and Invivoo, 13 rue de l'Abreuvoir, 92400 Courbevoie, France
Olympia Hadjiliadis
Department of Mathematics and Statistics, Hunter College, City University of New York, and Departments of Computer Science and Mathematics, Graduate Center, City University of New York, New York, NY, USA
Baron Law
Purdue University, West Lafayette, IN, USA
Forrest Levin
Financial Engineering Division, Stevens Institute of Technology, Hoboken, NJ, USA
Michael Marzec
Stevens Institute of Technology, Hoboken, NJ, USA
Ambar N. Sengupta
Department of Mathematics, Louisiana State University, Baton Rouge, LA, USA
I. SenGupta
Department of Mathematics, North Dakota State University, Fargo, ND, USA
Mark B. Shackleton
Department of Accounting and Finance, Lancaster University Management School, Lancaster, England, United Kingdom
M. Shpak
NeuroTexas Institute, St. David's Medical Center, Austin, TX, USA
Ioannis Stamos
Department of Computer Science, Hunter College, City University of New York, and Department of Computer Science, Graduate Center, City University of New York, New York, NY, USA
Ping-Chen Tsai
Department of Finance, Southern Taiwan University of Science and Technology, Yongkang, Tainan City, Taiwan
Ciprian A. Tudor
Laboratoire Paul Painlevé, Université de Lille 1, F-59655 Villeneuve d'Ascq, France, and Department of Mathematics, Academy of Economical Studies, Bucharest, Romania
Preface
This Handbook is a collection of chapters that describe a range of current empirical and analytical work on financial industry data sampled at high frequency (HF).
Our contemporary Age of Information is a world dominated by ever-increasing quantitative elements that decision makers are expected to take into account. Many fields are confronted with large amounts of data. The phenomenon is particularly challenging in the finance industry, in that evidently relevant data can be sampled with increasingly HF, a trend that started in earnest more than a decade ago and does not seem to be letting down. Some of the special challenges posed by these now staggering amounts of data stem from the uncomfortable evidence that traditional models and information technology tools can be poorly suited to grapple with their size and complexity.
Probabilistic modeling and statistical data analysis attempt to uncover order from apparent disorder. By illustrating this methodological framework in the context of HF finance, the current volume may serve as a guide to various new systematic approaches concerning how to implement these quantitative activities with HF financial data. The chapters herein cover a wide range of topics related to the analysis and modeling of data sampled with HF, principally in finance, as well as in other fields where new ideas may prove helpful to HF finance applications. The first chapters cover the dynamics and complexity of futures and derivatives markets as well as a novel take on the portfolio optimization problem using quantum computers. The following chapters are dedicated to estimating complex model parameters using HF data. The final chapters create links between models used in financial markets and models used in other research areas such as geophysics, fossil records, and earthquake studies.
The editors express their deepest gratitude to all the contributors for their talent and labor in bringing together this Handbook, to the many anonymous referees who helped the contributors perfect their work, and to Wiley for making the publication a reality.
Ionut Florescu
Hoboken, NJ
Maria C. Mariani
El Paso, TX
H. Eugene Stanley
Boston, MA
Frederi G. Viens
Washington, DC
August 9, 2015
Chapter One
Trends and Trades
Michael Carlisle¹, Olympia Hadjiliadis², and Ioannis Stamos³
¹Department of Mathematics, Baruch College, City University of New York, New York, NY, USA
²Department of Mathematics and Statistics, Hunter College, City University of New York, and Departments of Computer Science and Mathematics, Graduate Center, City University of New York, New York, NY, USA
³Department of Computer Science, Hunter College, City University of New York, and Department of Computer Science, Graduate Center, City University of New York, New York, NY, USA
1.1 Introduction
High-frequency data in finance is often characterized by fast fluctuations and noise (see, e.g., [7]), a trait that is known to make the volatility of the data very hard to estimate (see, e.g., [13]). Although this characteristic creates many challenges in modeling, it offers itself to the study of distinguishing signal
from noise,
a topic of interest in the area of quickest detection (see [25], [5]). One of the most popular algorithms used in quickest detection is known as the cumulative sum (CUSUM) stopping rule first introduced by Page [24]. In this work, we employ a sequence of CUSUM stopping rules to construct an online trading strategy. This strategy takes advantage of the relatively frequent number of alarms CUSUM stopping times may provide when applied to high-frequency data as a result of the fast fluctuations present therein. The trading strategy implemented settles frequently and thus eliminates the risk of large positions. This makes the strategy implementable in practice. Prior work has been done by Lam and Yam [20] on drawing connections between CUSUM techniques and the filter trading strategy, yet both the filter trading strategy (see [2, 3]), or its equivalent, the buy and hold strategy (see [12]), run high risks of great losses mainly due to the randomness associated with settling. The well-known trailing stops strategy whose properties have been thoroughly studied in the literature (see, e.g., [15] or [1]) is also related to the filter strategy and thus suffers similar risks.
Although our proposed rule presents clear merits in terms of minimizing the risk of large positions by taking advantage of the high volatility frequently present in high-frequency data, the main purpose of this chapter is to present and illustrate the use of detection techniques (in this case the CUSUM) in high-frequency finance. In particular, the strategy proposed is based on running in parallel two CUSUM stopping rules: one detects an upward (+) change and the other a downward (−) change in the mean of the observations. Once an upward/downward CUSUM alarm (called a signal
) goes off, there is a buy/short sale of one unit of the underlying asset. At that moment, we repeat a CUSUM stopping rule, and for every alarm of the same sign, we continue buying or short selling one unit of the underlying asset until a CUSUM alarm of the opposite sign is set off, at which time we sell off all of what we bought or buy up all of what we short sold. The high frequency of CUSUM alarms in high-frequency tick data permits the implementation of this rule in practice since large exposures on one side, whether on the buy or on the sell side, are settled relatively quickly.
The algorithmic strategy proposed is applied on real tick data of a 30-year asset and a 5-year note sold at auction on various individual days. It is seen that the algorithm is most profitable in the presence of upward or downward trends (which we call subperiods
), even in the presence of noise, and is less profitable on periods of price stability. The proposed strategy is, in fact, a trend-following algorithm.
To quantify the performance of the proposed algorithmic strategy, we calculate its expected reward in a simple random walk model. Our diagnostic plots indicate that the more biased the random walk is, the more profitable the proposed strategy becomes, which is consistent with the actual findings when the strategy is applied to real data. This is because in the presence of a bias, trends are more likely to form than in the absence of a bias.
We take the analytical approach of discrete data and a linear random walk model, rather than taking the continuous approach via, for example, the geometric Brownian motion model, because we are analyzing the movement of individual ticks of a price, quantized in a linear fashion (e.g., at the level of 1 cent, cent, or cent). Our models focus on tracking the motion of an asset price via these ticks, and so a linear approach is a more realistic setting, when short interest rate effects would be minimal.
We begin our analysis in Section 1.2 by describing a general trading strategy based on following upward or downward trends in a data stream, without specifying the timing mechanism behind such a strategy. We then develop the notion of gain over the time period of an individual trend. In Section 1.3, we build a timing scheme stemming from quickest detection considerations and give a preliminary performance evaluation of the overall strategy on real tick data. Next, in Section 1.4, we analyze the specific case of random walk-based data and calculate the expected value of the gain over a trend in this case. We give an explicit formula for this gain in the special case of simple asymmetric random walk on asset tick changes. Then, in Section 1.5, we give results of Monte Carlo simulations for the asymmetric lazy simple random walk and symmetric lazy random walk on tick changes. In Section 1.6, we discuss the effect of the CUSUM threshold parameter on the trading strategy. We conclude in Section 1.7 by a discussion of ways in which the proposed strategy may be improved with suggestions for further work.
1.2 A trend-based trading strategy
Let {Sn}n = 0, 1, 2... be a sequence of data points; for our purposes, they will be samples of the price of an asset. We assume that S0 = s is a constant, and Sk = 0 for some k implies that Sn = 0 for all n > k. Let T0 = 0, and define Tk, k = 1, 2, ... as an increasing sequence of (stopping) times, called signals, noting some trend in the sequence. We call Tk the k-th signal.
1.2.1 SIGNALING AND TRENDS
In this subsection, we construct a trading strategy in the case that there are two types of signals: + signals
(declaring the detection of an upward trend in the data) and − signals
(declaring the detection of a downward trend in the data). Let "Property + (k)" be the property that causes a + signal to occur as the kth signal, and denote this event by {Tk = T+k}. Likewise, let "Property − (k)" be the property that causes a − signal to occur as the k-th signal, and denote this by {Tk = T−k}. Only one type of trend can be detected at a time, so we formally define T+k and T−k by
(1.1)
numbered Display Equation(1.2)
numbered Display EquationThus, Tk = T+k∧T−k for every k = 1, 2, ....
Next, we state what it means for the data to stay in a trend. We define the sequence of signal indices α(l) as follows: let α(0) = 0, so Tα(0) = 0, and for l ≥ 1, with k ≥ 2, define the properties
numbered Display EquationThen, we define the lth shift point as, for l = 1, 2, ...,
(1.3)
numbered Display EquationNote that Tα(l) is at least two signals after Tα(l − 1). Definition (1.3) is equivalent to
(1.4)
numbered Display EquationA sequence of the same type of signal will be called a subperiod of the sample points. A shift point denotes the end of a subperiod of the same type of signal.
Let Δn be the number of shares of the asset S held at time n. Set Δ0 = 0. Note that, for every n ∈ (Tα(l), Tα(l + 1)), the sign of Δn is invariant, that is, either Δn > 0 holds for every n ∈ (Tα(l), Tα(l + 1)) or Δn < 0 holds for every n ∈ (Tα(l), Tα(l + 1)).
Our trading strategy is as follows:
(1.5)
numbered Display EquationWe assume a market in which all market orders are instantly fulfilled. The intent of this strategy is to profit from following subperiods of + or − signals by the old adage buy low, sell high.
The success of this strategy relies mainly on the length of such subperiods.
1.2.2 GAIN OVER A SUBPERIOD
We wish to analyze the gain Gl, l = 1, 2, ..., for this trading strategy over the time period (Tα(l − 1), Tα(l)], called subperiod l; this is the amount of cash earned or lost by liquidating the transactions made from signals Tα(l − 1) + 1, ..., Tα(l) − 1 at Tα(l).
Note that a subperiod is determined by the first signal on that run: if T1 = T+1, then the run from signal 1 to signal α(1) − 1 is a bull run
subperiod of individual buy orders followed by a sell-off at time Tα(1) = T−α(1); if T1 = T−1, then this run is a bear run
subperiod of individual short sales followed by a buy-up at Tα(1) = T+α(1). Define Gl to be the gain on subperiod l; thus, G1 is the gain on the first subperiod, starting at signal Tα(0) + 1 = T1 and ending at signal Tα(1). We require, as a condition, the sign of the first signal of the subperiod. Let c ≥ 0 be the percentage cost per transaction, and define
(1.6)
numbered Display EquationThe gain on a subperiod is calculated as follows:
(1.7)
numbered Display EquationFor example, if c = 0.01, T1 = T+1, and α(1) = 4, then Tα(1) = T4 = T−4. Say the prices at the buy-signal times are , , , and we sell everything off at . Then , , , , and we liquidate at time T4 to . The gain on the first subperiod would then be G1 = (0.99)(3)(8) − (1.01)(5 + 7 + 9) = 2.55.
Combining the 1 − c terms and adding on the random variable , we have after some algebra a sum of price increments:
(1.8)
numbered Display EquationWe can rewrite each difference in the sum as a telescoping sum: setting
(1.9) numbered Display Equation
as the incremental price change between signals k and k + 1, we have
numbered Display EquationSubstituting this back into (1.8) yields
(1.10)
numbered Display EquationTherefore, by (1.11), the gain over subperiod l is
(1.11)
numbered Display EquationNote that, in the absence of transaction costs (i.e., c = 0), the expected gain Gl is entirely determined by price increments and the sign of the first signal of the subperiod.
1.3 CUSUM timing
Next, we describe a version of the CUSUM statistic process and its associated CUSUM stopping rule, which we will use to devise a timing scheme based on the quickest detection of trends, and incorporate this scheme to our trading strategy.
1.3.1 CUSUM PROCESS AND STOPPING TIME
In this section, we begin by introducing the measurable space , where , and . The law of the sequence Yi, i = 1, …, is described by the family of probability measures {Pν}, . In other words, the probability measure Pν for a given ν > 0, playing the role of the change point, is the measure generated on Ω by the sequence Yi, i = 1, …, when the distribution of the Yi’s changes at time ν. The probability measures P0 and P∞ are the measures generated on Ω by the random variables Yi when they have an identical distribution. In other words, the system defined by the sequence Yi undergoes a regime change
from the distribution P0 to the distribution P∞ at the change point time ν.
The CUSUM statistic is defined as the maximum of the log-likelihood ratio of the measure Pν to the measure P∞ on the σ-algebra . That is,
(1.12) numbered Display Equation
is the CUSUM statistic on the σ-algebra . The CUSUM statistic process is then the collection of the CUSUM statistics {Cn} of (1.12) for n = 1, …. The CUSUM stopping rule is then
(1.13)
numbered Display Equationfor some threshold h > 0. In the CUSUM stopping rule (1.13), the CUSUM statistic process of (1.12) is initialized at
(1.14) numbered Display Equation
The CUSUM statistic process was first introduced by Page [24] in the form that it takes when the sequence of random variables Yi is independent and Gaussian; that is, Yi ~ N(μ, 1), i = 1, 2, …, with μ = μ0 for i < ν and μ = μ1 for i ≥ ν. Since its introduction by Page [24], the CUSUM statistic process of (1.12) and its associated CUSUM stopping time of (1.13) have been used in a plethora of applications where it is of interest to perform detection of abrupt changes in the statistical behavior of observations in real time. Examples of such applications are signal processing (see [10]), monitoring the outbreak of an epidemic (see [29]), financial surveillance (see [14] and [9]), and more recently computer vision (see [19] or [30]). The popularity of the CUSUM stopping time (1.13) is mainly due to its low complexity and optimality properties (see, for instance, [21], [22, 23], [6] and [27] or [26]), in both discrete and continuous time models.
As a specific example, we now derive the form in which Page [24] introduced the CUSUM. To this effect, let Yi ~ N(μ0, σ²) that change to Yi ~ N(μ1, σ²) at the change point time ν. We now proceed to derive the form of the CUSUM statistic process (1.12) and its associated CUSUM stopping time (1.13) in the example set forth in this section. To this effect, let us now denote by the Gaussian kernel. For the sequence of random variables Yi given earlier, we can now compute (see also [28] or [25]):
(1.15)
numbered Display EquationIn view of (1.14), we initialize the sequence (1.15) at and proceed to distinguish the following two cases:
Case 1: μ1 > μ0: divide out μ1 − μ0, multiply by the constant σ² in (1.15), and use (1.13) to obtain the CUSUM stopping rule T+ :
(1.16)
numbered Display Equationfor an appropriately scaled threshold h+ > 0.
Case 2: μ1 < μ0: divide out μ1 − μ0, multiply by the constant σ² in (1.15), and use (1.13) to obtain the CUSUM stopping rule T−:
(1.17)
numbered Display Equationfor an appropriately scaled threshold h− > 0.
As shown in the study [24] or [11], we can reexpress the stopping times (1.16) and (1.17) in terms of the recurrence relations
(1.18)
numbered Display Equation(1.19)
numbered Display Equationwhich lead to
(1.20) numbered Display Equation
(1.21) numbered Display Equation
The sequences un and dn of (1.18) and (1.19), respectively, form a CUSUM according to the deviation of the monitored sequential observations Yn from the average of their pre- and postchange means. The first time that one of these sequences reaches its threshold (in (1.20) or (1.21)), the respective alarm T+ or T− fires.
Although the stopping times (1.16) and (1.17) and their respective equivalents (1.20) and (1.21) can be derived by formal CUSUM regime change considerations using the example set forth in this section, they may also be used as general nonparametric stopping rules directly applied to sequential observations as seen in the study by Brodsky and Darkhovsky [8] or Devore [11]. The former can be used as a general stopping rule to detect an upward change in the mean while the latter a downward one. In many applications, it is of interest to monitor an upward or downward change in the mean of sequential observations simultaneously. This gives rise to the two-sided CUSUM (2-CUSUM), which was first introduced by Barnard [4], and whose optimality properties have been established in Hadjiliadis [17], Hadjiliadis and Moustakides [16], and Hadjiliadis et al. [18]. In the context presented in this section, the 2-CUSUM stopping time takes the form
(1.22) numbered Display Equation
where T+(h+) appears in (1.20) and T−(h−) in (1.21). The symmetric version of the 2-CUSUM stopping time is that of (1.22) when h+ = h− = h.
1.3.2 A CUSUM TIMING SCHEME
We now apply the aforementioned CUSUM stopping rule of (1.22) to a stream of data representing the value of the underlying asset without any model assumptions. In other words, the underlying asset is not necessarily assumed to be independent or normally distributed. That is, we apply the forms (1.16) and (1.17) in a nonparametric fashion. Let M > 0 denote the tick size
of the asset being monitored (presuming that S changes in increments of M; we do not know the probability distribution of these changes), and h > 0 be a given threshold. Given that S0 = s, recall that T0 = 0. We monitor the progress of upward or downward adjustments in the price Sn of the underlying, by individual ticks.
In view of the previous subsection at time Tk, μ0 is set to the value of the underlying at time Tk, namely and μu1 = STk + M and μd1 = STk − M are the two new
mean levels to be monitored against. Thus, as in equations (1.18) and (1.19), which cumulate the deviations of the monitored sequence from the average of their pre- and postchange means, we now monitor the deviations of the underlying sequence Sn, n = 1, 2…, from the quantities
(1.23) numbered Display Equation
where k ≥ 0. To this effect, set uk0 = d0k = 0, and for n ≥ 1, define the CUSUM statistics
(1.24) numbered Display Equation
Thus, for k ≥ 0, the CUSUM timing scheme for our trend-following trading strategy is defined by using (1.20) and (1.21) (and coming from (1.1) and (1.2)),
(1.25)
numbered Display EquationIn other words, each Tk is the symmetric 2-CUSUM stopping time of (1.22) for cycle k. Finally, at the end of day,
that is, on the final tick, we close out our position, inducing a final shift point to end trading, for algorithmic purposes.
1.3.3 US TREASURY NOTES, CUSUM TIMING
The following figures and chart describe the CUSUM timing scheme (1.25) applied to the trading strategy (1.5) for US Treasury notes sold at auction in 2011. Gains quoted are in increments of $1000. In Figure 1.1, we show the asset price, along with the number of shares held, per-subperiod gain, and running total gain. Figures 1.2, 1.3, 1.4, 1.5 and 1.6 show the individual subperiod gains, plotted by the number of signals during a subperiod, of the gain for 5-year and 30-year treasury notes, and Figure 1.7 aggregates the data from Figures 1.3, 1.4, 1.5 and 1.6 for 30-year notes.
Graph shows regions for gains, runs, asset price, negative gain and cumulative gains along with pulses and waves.FIGURE 1.1 Plot of the first subperiods, and cumulative gain, for the CUSUM strategy, August 2, 2011, US 5-year treasury note.
Subperiod length versus gain graph from 0 to 0.5 and 0 to 10 respectively shows data points plotted vertically on the gains 1, 2, 3, 4, 5, 6, 7, 8 and 9 for US 5-year treasury note.FIGURE 1.2 Lengths of subperiods versus gains, August 2, 2011, US 5-year treasury note.
Subperiod length versus gain graph from minus 0.2 to 1 and 0 to 9 respectively shows data points plotted vertically on the gains 1, 2, 3, 4, 5, 6, 7 and 8 for US 30-year treasury note.FIGURE 1.3 Subperiod length versus gain, July 29, 2011, US 30-year treasury note.
Subperiod length versus gain graph from minus 0.2 to 1 and 0 to 8 respectively shows data points plotted vertically on the gains 1, 2, 3, 4, 5, 6 and 7 for US 30-year treasury note. Negative point is plotted on the gain 3.FIGURE 1.4 Subperiod length versus gain, August 1, 2011, US 30-year treasury note.
Subperiod length versus gain graph from minus 0.2 to 1 and 0 to 9 respectively shows data points plotted vertically on the gains 1, 2, 3, 4, 5, 6, 7 and 8 for US 30-year treasury note. Negative points are plotted on the gains 1, 2 and 5.FIGURE 1.5 Subperiod length versus gain, August 2, 2011, US 30-year treasury note.
Subperiod length versus gain graph from minus 0.5 to 2.5 and 0 to 14 respectively shows data points plotted vertically on the gains 1, 2, 3, 4, 5, 6, 7, 8 and 12 for US 30-year treasury note.FIGURE 1.6 Subperiod length versus gain, August 3, 2011, US 30-year treasury note.
Subperiod length versus gain graph from minus 0 to 2.5 and 0 to 14 respectively shows the combined effect of data points plotted vertically on the gains 1, 2, 3, 4, 5, 6, 7, 8 and 12 for US 30-year treasury note.FIGURE 1.7 Figures 1.3, 1.4, 1.5 and 1.6 combined (30-year).
1.4 Example: Random walk on ticks
We now describe a simple example to model the asset price motions. Assume that ∃N > 0 such that the sequence are the steps of a random walk taking integer values bounded between − N and N, that is, |Xj| ≤ N for all , and that Xj ∈ { − N, −N + 1, ..., N − 1, N} for every j, with pk = P(Xj = k) ≥ 0 and ∑Nk = −Npk = 1. Let S0 = s, and for n ≥ 1, set Sn = s + ∑nj = 1Xj. We will consider Sn to be a random walk on ticks, rather than price itself, and so normalize tick size to M = 1.
Note that, since Δn = 0⇔n = α(l) for some l ∈ {0, 1, 2, ...}, the expected gain over a subperiod is the expected gain over an excursion to zero on Δn, and so we can simply consider the first excursion (independent of other excursions) on the time interval (Tα(0) = 0, Tα(1)]. Also, note that in this case, if the transaction cost c = 0, the Gl of (1.11) are IID random variables.
Set
(1.26)
numbered Display Equationand note that signal timing increments are independent. Conditioned on the sign of signal α(l − 1) + 1 at time Tα(l − 1) + 1, Yl is a geometric random variable (starting at 1) which gives the number of signals of the same sign in subperiod l. The distribution of Yl, conditioned on , is
(1.27)
numbered Display EquationTo explain this, consider the case Tα(l − 1) + 1 = T+α(l − 1) + 1 (the first + signal of a bull run subperiod): a subperiod of + has failure
probability p+ (a + signal continues the subperiod with another buy) and success
probability p− (a − signal causes a sell-off and ends the subperiod).
Al is an -measurable random variable, and every increment in the sum in (1.11) is independent of time Tα(l − 1) + 1. Finally, note that the Yl are independent of the walk up to time Tα(l − 1), and if c = 0, so are the Gl.
1.4.1 RANDOM WALK EXPECTED GAIN OVER A SUBPERIOD
We wish to examine the expected gain E(Gl) over subperiod l. For simplicity in our initial analysis, set c = 0. Since the Gl are IID, we will calculate E(G1). This is, since α(0) = 0 and Y1 = α(1) − α(0) − 1 = α(1) − 1, by (1.11),
(1.28) numbered Display Equation
We condition over the possible values of Y1 and A1. Note that the sign of T1 also determines the possibilities of Zj for j = 1, 2, ..., Y1 − 1. Zj depends on the type of subperiod it resides on, so by the fact that the event , and by setting, for j = α(l − 1) + 1, ..., α(l),
(1.29)
numbered Display Equationthen, for n = 1, 2, ..., we have
(1.30)
numbered Display EquationSince the conditioning on B+j, 1, n (and, likewise, B−j, 1, n) is based only on the walk during the time increments (T0, T1] and (Tα(1) − 1, Tα(1)], for n > 1, B+j, 1, n and B−j, 1, n are numbers for j = 1, 2, ..., n − 1. Also, for these j, B+j, 1, n are the same by the strong Markov property at Tj − 1 since the signs on the Tj are all +. However, since the signal Tα(1) = Tn + 1 has different sign than Tn, B+n, 1, n has a different distribution. In fact, since this condition implies that Tn + 1 = Tα(1) = T−α(1), B+n, 1, n can be written by the strong Markov property at Tn = Tα(1) − 1 as
numbered Display EquationTo simplify notation, we rewrite B+1, 1, n = B+ and B−1, 1, n = B−, since they do not depend on n. In the case n = 1, we simply have B+1, 1, 1 = B− and B−1, 1, 1 = B+, and note that B+ ≥ 0 and B− ≤ 0. Thus, our sum (1.30) becomes
(1.31)
numbered Display EquationThe only thing that needs to change for the analogous argument for B−j, 1, n are the signs; thus, we also have
(1.32)
numbered Display EquationNext, we give the probability that Y1 = n, conditioned on the sign of T1. This is easy, since we know that, conditioned on the sign of T1, Y1 is a geometric random variable. By (1.27), for n = 1, 2, ...,
(1.33) numbered Display Equation
By (1.31), (1.32), and (1.33), and recalling that p− = 1 − p+, the expected gain on a subperiod, given that the subperiod consists of n signals before a liquidation, is
(1.34)
numbered Display EquationThe probability that a subperiod lasts n signals, regardless of its sign, is, by (1.27) and (1.33),
(1.35)
numbered Display Equationwhich also gives the expected number of same-sign signals in a subperiod
(1.36)
numbered Display EquationNote that this necessarily matches the calculation via conditioning on T1’s sign; that is, by (1.33),
numbered Display EquationWe can sum over all possible values n in (1.34), and use (1.35) to get the expected gain of a subperiod in terms