Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation Written by Andrew W.Lo, Harry Mamaysky,

Slides:



Advertisements
Similar presentations
Automated Chart Pattern Identification
Advertisements

Bar Charts Point and Figure Charts Moving Averages
The Normal Distribution
Naïve Bayes. Bayesian Reasoning Bayesian reasoning provides a probabilistic approach to inference. It is based on the assumption that the quantities of.
Saeed Ebrahimijam Spring 2013 Faculty of Business and Economics Department of Banking and Finance Doğu Akdeniz Üniversitesi FINA417.
FTP Biostatistics II Model parameter estimations: Confronting models with measurements.
Correlation and regression Dr. Ghada Abo-Zaid
Saeed Ebrahimijam Fall Faculty of Business and Economics Department of Banking and Finance Doğu Akdeniz Üniversitesi FINA417.
Saeed Ebrahimijam Spring Faculty of Business and Economics Department of Banking and Finance Doğu Akdeniz Üniversitesi FINA417.
Visual Recognition Tutorial
A Generalized Model for Financial Time Series Representation and Prediction Author: Depei Bao Presenter: Liao Shu Acknowledgement: Some figures in this.
Kernel methods - overview
Beyond the Fundamentals Technical Analysis. Technical Analysis vs. Fundamental Analysis Fundamental analysis focuses on economic/financial theory and.
Simple Linear Regression
The Lognormal Distribution MGT 4850 Spring 2008 University of Lethbridge.
Part II – TIME SERIES ANALYSIS C2 Simple Time Series Methods & Moving Averages © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Note 9 of 5E Statistics with Economics and Business Applications Chapter 7 Estimation of Means and Proportions Point Estimation, Interval Estimation/Confidence.
Quantitative Trading Strategy based on Time Series Technical Analysis Group Member: Zhao Xia Jun Lorraine Wang Lu Xiao Zhang Le Yu.
Technical Price Analysis H The analysis of historical prices patterns using charts, diagrams, mathematical equations, etc. H This approach emphasizes how.
Technical Analysis Timothy R. Mayes, Ph.D.. Introduction  Technical analysis is the attempt to forecast stock prices on the basis of market-derived data.
Elec471 Embedded Computer Systems Chapter 4, Probability and Statistics By Prof. Tim Johnson, PE Wentworth Institute of Technology Boston, MA Theory and.
Saeed Ebrahimijam SPRING Faculty of Business and Economics Department of Banking and Finance Doğu Akdeniz Üniversitesi FINA417.
Chapter 2 Diversification and Risky Asset Allocation
Chapter 17 TECHNICAL ANALYSIS The Visual Clue.
Advanced Image Processing Image Relaxation – Restoration and Feature Extraction 02/02/10.
Bayesian Adaptive Trading with Daily Cycle Mr Chee Tji Hun Ms Loh Chuan Xiang Mr Tie JianWang Algernon.
1Capital IQ, A Standard & Poor’s Business Variations on Minimum Variance March 2011 Ruben Falk, Capital IQ Quantitative Research.
©2013 Cengage Learning. All Rights Reserved. Business Management, 13e Data Analysis and Decision Making Mathematics and Management Basic.
Investment Analysis and Portfolio management Lecture: 24 Course Code: MBF702.
(a.k.a: The statistical bare minimum I should take along from STAT 101)
The Power of Moving Averages in Financial Markets By: Michael Viscuso.
Chapter McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. 11 Diversification and Risky Asset Allocation.
Some Background Assumptions Markowitz Portfolio Theory
MOVING AVERAGES. MOVING AVERAGE METHOD IS THE MOST WIDELY USED METHOD OF IDENTIFYING TREND REVERSAL SINCE THEY DO A GOOD JOB AT ROUNDING UP THE FLUCTUATIONS.
LECTURE 22 VAR 1. Methods of calculating VAR (Cont.) Correlation method is conceptually simple and easy to apply; it only requires the mean returns and.
Statistics and Quantitative Analysis U4320 Segment 8 Prof. Sharyn O’Halloran.
Chapter Diversification and Risky Asset Allocation McGraw-Hill/IrwinCopyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved. 11.
Digital Image Processing
Breaks in Daily Climate Records Ralf Lindau University of Bonn Germany.
Investment Analysis and Portfolio Management First Canadian Edition By Reilly, Brown, Hedges, Chang 6.
What is a Moving Average? b Indicator that shows the average value of a security’s price over a period of time. b Used to produce buy and sell signals.
The two way frequency table The  2 statistic Techniques for examining dependence amongst two categorical variables.
Foundations of Technical Analysis
23 November Md. Tanvir Al Amin (Presenter) Anupam Bhattacharjee Department of Computer Science and Engineering,
Wong, Gardner, Krieger, Litt (2006) Zack Dvey-Aharon, March 2008.
Financial Time Series Analysis with Wavelets Rishi Kumar Baris Temelkuran.
12.3 Efficient Diversification with Many Assets We have considered –Investments with a single risky, and a single riskless, security –Investments where.
Choosing an Investment Portfolio
TECHNICAL ANALYSIS. PRICE PATTERNS A typical price cycle has three trends: up, sideways, and down. The sideways trend is essentially a horizontal or.
Probability Theory Modelling random phenomena. Permutations the number of ways that you can order n objects is: n! = n(n-1)(n-2)(n-3)…(3)(2)(1) Definition:
Statistics with TI-Nspire™ Technology Module E Lesson 1: Elementary concepts.
Page 0 of 7 Particle filter - IFC Implementation Particle filter – IFC implementation: Accept file (one frame at a time) Initial processing** Compute autocorrelations,
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
1 5. Technical trading strategies 5.1 Introduction TA: various forecasting methods using past prices (volume, volatility). Note: look-ahead bias Edwards.
OPTIONS PRICING AND HEDGING WITH GARCH.THE PRICING KERNEL.HULL AND WHITE.THE PLUG-IN ESTIMATOR AND GARCH GAMMA.ENGLE-MUSTAFA – IMPLIED GARCH.DUAN AND EXTENSIONS.ENGLE.
Chapter McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. 11 Diversification and Risky Asset Allocation.
Chapter Nine Hypothesis Testing.
Momentum and Reversal.
Investment Management
Market-Risk Measurement
Process Capability and Capability Index
Introduction to Probability and Statistics Twelfth Edition
Inference: Conclusion with Confidence
Momentum Effect (JT 1993).
10701 / Machine Learning Today: - Cross validation,
The Essentials of 2-Level Design of Experiments Part I: The Essentials of Full Factorial Designs Developed by Don Edwards, John Grego and James Lynch.
DESIGN OF EXPERIMENT (DOE)
Skills 5. Skills 5 Standard deviation What is it used for? This statistical test is used for measuring the degree of dispersion. It is another way.
Probabilistic Surrogate Models
Presentation transcript:

Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation Written by Andrew W.Lo, Harry Mamaysky, and Jiang Wang Presented by Xiaodai Guo

Main Idea of the Paper Combine chart patterns of technical analysis with quantitative trading skills by achieving three sub-goals: I.Smooth the data. II.Define technical patterns mathematically, identify them and use them to do algorithm trading. III.Ways to test the statistical significance of the results (skipped).

Example: What is a technical pattern: Head and Shoulder Top: a signal for sell

Part I: Smoothing the data Why smoothing the data? Raw stock price data in reality is very noisy, and to observe the patterns behind the data, we must filter out the noise:

Part I: Smoothing the data How to smooth the data? A traditional way used by technical analysts to smooth the data: SMA(simple moving average): For any day(Day M): Shortcomings: 1.Every data point is assigned the same weight. 2.At every point of time M, only the information at and before M is used for smoothing.

Part I: Smoothing the data How to smooth the data? A new way proposed by this paper: A smoothing estimator using Kernel Regression: is a weight which is calculated using the Gaussian kernel.

Part I: Smoothing the data How to smooth the data? Intuition: For any time point x, its smoothed estimator should be the weighted average of all the time points t in the time window (t ranges 1 to T).

Part I: Smoothing the data How to smooth the data? (skip) Important formulas: Important concepts: Kernel: a weight function which is constructed from a probability density function. Gaussian Kernel: a weight function which is constructed from the density function of normal distribution.

Part I: Smoothing the data Example: After smoothing VS before smoothing

Part I: Smoothing the data Another Example: After smoothing VS before smoothing

Part II: Identifying patterns A. What is “local extrema” Local maximum(minimum): A day whose stock price is higher(lower) than the stock price of the days before and after it.

Part II: Identifying patterns B. Define the technical patterns mathematically

Part II: Identifying patterns B. Define the technical patterns mathematically Head-and-shoulders Reverse head-and-shoulders Broadening tops Broadening bottoms Triangle tops Triangle bottoms Rectangle tops Rectangle bottoms Double tops Double bottoms

Part II: Identifying patterns C. Test out whether patterns exist in smoothed data How do we look for patterns: For every time window of 38 days, do the smoothing, and then test for patterns using the first 35 days’ smoothed data. Constraint: The last local extrema of the pattern must appear on the 35 th day.

Part II: Identifying patterns D. Calculate the results How do we trade: According to the author,for every time window of 38 days, if a pattern is observed, we long/short the stock at the closing price of the 38 th day, and close our position at the closing price of the 39 th day. A modification: For every time window of 38 days, if a pattern is observed, we long/short the stock at the closing price of the 39 th day, and close our position at the closing price of the 40 th day.

Part III: Results A. Calculate the results Implement a back testing using Ford’s daily stock price from 1993/9/24 to 2013/9/24.

Part III: Results B. The results of back-testing Number of transactions occurred:130 The probability of one transaction to make money:49.2% Mean return of transactions:0.207% Standard deviation of mean return of transactions:0.263% P-value of the mean return under t-test:0.2927

Part III: Results C. An improved trading strategy An improved trading strategy: After detecting a pattern, instead of holding the stock for one day, we will hold it for five days. The reason for this improvement: Practitioners want to take full advantage of the technical patterns discovered.

Part III: Results D. Back-testing results of the improved trading strategy Number of transactions occurred:130 The probability of one transaction to make money:53.8% Mean return of transactions:0.816% Standard deviation of mean return of transactions:0.488% P-value of the mean return t-test:0.0986

Part IV: Pros and cons What we can learn from this paper: How to smooth the data with kernel regression. How to define technical patterns in a numerical way. How to use patterns to trade quantitatively

Part IV: Pros and cons Criticism: When optimizing the bandwidth h for kernel regression, the author uses the “Cross-Validation” method, which seems to be inappropriate for this problem. Also, the author multiplies this optimized h value by 0.3, which makes this optimization process even less rigorous. Many of the parameters are ad-hoc and come from “empirical experience”, which is not well-explained in this paper. Examples: length of the time window; percentage numbers used in definitions of technical patterns.