Mean Reverting Asset Trading

Slides:



Advertisements
Similar presentations
Saeed Ebrahimijam Spring 2013 Faculty of Business and Economics Department of Banking and Finance Doğu Akdeniz Üniversitesi FINA417.
Advertisements

1 Machine Learning: Lecture 10 Unsupervised Learning (Based on Chapter 9 of Nilsson, N., Introduction to Machine Learning, 1996)
Risk and Return in Capital Markets
2.3. Measures of Dispersion (Variation):
Experimental Evaluation
PSY 307 – Statistics for the Behavioral Sciences Chapter 8 – The Normal Curve, Sample vs Population, and Probability.
Chapter 11: Random Sampling and Sampling Distributions
The Lognormal Distribution
CHEN RONG ZHANG WEN JUN.  Introduction and Features  Price model including Bayesian update  Optimal trading strategies  Coding  Difficulties and.
1. Statistics 2. Frequency Table 3. Graphical Representations  Bar Chart, Pie Chart, and Histogram 4. Median and Quartiles 5. Box Plots 6. Interquartile.
Technical Price Analysis H The analysis of historical prices patterns using charts, diagrams, mathematical equations, etc. H This approach emphasizes how.
Common Cents Investment Group Welcome! Monday September 30 th.
Saeed Ebrahimijam SPRING Faculty of Business and Economics Department of Banking and Finance Doğu Akdeniz Üniversitesi FINA417.
Data Mining BS/MS Project Decision Trees for Stock Market Forecasting Presentation by Mike Calder.
by B. Zadrozny and C. Elkan
Estimation in Sampling!? Chapter 7 – Statistical Problem Solving in Geography.
Inquiry Unit.
+ Chapter 12: Inference for Regression Inference for Linear Regression.
© 2009 IBM Corporation 1 Improving Consolidation of Virtual Machines with Risk-aware Bandwidth Oversubscription in Compute Clouds Amir Epstein Joint work.
Revealing Structure within Clustered Parallel Coordinates Displays Jimmy Johansson, Patric Ljung, Mikael Jern, Matthew Cooper NVIS- Norrkoping Visualization.
Chapter 10 Capital Markets and the Pricing of Risk.
Make observations to state the problem *a statement that defines the topic of the experiments and identifies the relationship between the two variables.
Linear Regression Least Squares Method: an introduction.
Seminar: Timely Topics for Today’s Business World Mr. Bernstein Risk January 2015.
8 Sampling Distribution of the Mean Chapter8 p Sampling Distributions Population mean and standard deviation,  and   unknown Maximal Likelihood.
STATISTIC : DESCRIPTIVE MEASURES
Chapter 11 Correlation and Simple Linear Regression Statistics for Business (Econ) 1.
Chapter 9: Correlation and Regression Analysis. Correlation Correlation is a numerical way to measure the strength and direction of a linear association.
Mean Reverting Asset Trading Project Presentation CSCI-5551 Grant Meyers.
Mean Reverting Asset Trading Research Topic Presentation CSCI-5551 Grant Meyers.
Statistics Unit 9 only requires us to do Sections 1 & 2. * If we have time, there are some topics in Sections 3 & 4, that I will also cover. They tie in.
Lecture 3. Option Valuation Methods  Genentech call options have an exercise price of $80 and expire in one year. Case 1 Stock price falls to $60 Option.
INTRODUCTION RSI- RELATIVE STRENGTH INDEX MOVING AVERAGE BOLLINGER BANDSSUMMARY.
AP Statistics Section 15 A. The Regression Model When a scatterplot shows a linear relationship between a quantitative explanatory variable x and a quantitative.
MM150 ~ Unit 9 Statistics ~ Part II. WHAT YOU WILL LEARN Mode, median, mean, and midrange Percentiles and quartiles Range and standard deviation z-scores.
Chapter 13 Linear Regression and Correlation. Our Objectives  Draw a scatter diagram.  Understand and interpret the terms dependent and independent.
 Analysis of statistics generated by market activity such as past price and volume to come up with reasonable outcome in future using charts as a primary.
John A. Paulson School of Engineering and Applied Sciences
Normal Distribution and Z-scores
Momentum and Reversal.
Markowitz Risk - Return Optimization
BAE 5333 Applied Water Resources Statistics
Regression Analysis Module 3.
Advanced Gann Elliott Techniques ‘With an Optionetics View’
Statistical Quality Control, 7th Edition by Douglas C. Montgomery.
The Lease Squares Line Finite 1.3.
Linear Regression and Correlation Analysis
Momentum Effect (JT 1993).
Introduction to Decision Analysis & Modeling
Quantitative Approaches for the Student-Managed Investment Fund
Behavioral Finance Economics 437.
Chapter 7 Sampling Distributions.
Graphs.
Spark vs Storm in Pairs Trading Predictions
Mean Reverting Asset Trading
Evaluation of a Stochastic Oscillator Equity Trading Method
Alix Spruce, Nathan Moore,
Chapter 7 Sampling Distributions.
The Byzantine Secretary Problem
CHAPTER 12 More About Regression
Chapter 7 Sampling Distributions.
Predictive Keyword Scores to Optimize Online Advertising Campaigns
Behavioral Finance Economics 437.
Higher National Certificate in Engineering
2.3. Measures of Dispersion (Variation):
Chapter 7 Sampling Distributions.
BEC 30325: MANAGERIAL ECONOMICS
Momentum Momentum is used to indicate the speed with which prices are changing. When a change in direction occurs in a short-term trend, technicians say.
Clustering Deviance From CART Analysis and Silhouette Widths
Algorithm Course Algorithms Lecture 3 Sorting Algorithm-1
Presentation transcript:

Mean Reverting Asset Trading Project Presentation CSCI-5551 Grant Meyers

Table of Contents Review Revision of Technique New Search Algorithm Parallelization Project Results

1. Review Mean Reverting Asset + Goal

Review – Mean Reverting Asset  

Example Mean Reverting Asset Example Generated with: data=RandomFunction[OrnsteinUhlenbeckProcess[0,1,.1],{0,15,.1}] ListLinePlot[data,Filling->Axis,AxesLabel->{HoldForm[Time],HoldForm[Worth]},PlotLabel->HoldForm[Mean Reverting Stock Price - Centered at 0],LabelStyle->{12,GrayLevel[0],Bold}] Via Mathematica. Due to OrnsteinUhlenbeckProcess being a random process, your generated graph will look different, but will maintain the properties required.

Goal – Price Selection We want to select 2 prices. Price 1 is ‘buy’ price, this is an upper limit of when to start purchasing shares. Price 2 is ‘sell’ price, this is a lower limit of when to start selling shares.

Goal – Price Selection Better:

Goal – Optimal Price Selection What are the best buy / sell prices for a given stock? How do we find these prices?

Goal – Optimal Price Selection What are the best buy / sell prices for a given stock? Specific per stock. How do we find these prices? Algorithmic search on historic data

Table of Contents Review Revision of Technique New Search Algorithm Parallelization Project Results

2. Revision of Technique Mean reverting assets are rare

Findings from Previous Work Finding #1 – Mean Reverting Assets are hard to find. None of the tech / commodity stocks I tested could be classified as a ‘Mean Reverting Asset’. Finding #2 – Most stocks follow fairly closely with a regression line. Finding #3 - Deviation from regression line is parallelizable much more easily than the Stochastic Approximation techniques previously discussed.

A New Technique – Deviation from Regression Line Stocks tend to follow a fairly predictable trend. Regression is history based and is an attempt to find the overall direction and slope of an asset’s price. Similar to the ‘mean reversion’ process where volatility pushes the price above and below a known / calculable quantity. Follow the same strategy of - Buy low Sell High.

Table of Contents New Search Algorithm Review Revision of Goals Parallelization Project Results

3. New Search Algorithm Subset of regression deviation ranges

Regression Line Search Space Orange is the regression line Green is the highest possible selling point Red is the lowest possible buying point

Regression Line Search Space - Partitions Each color band is a range to test – Buy or Sell ranges Top 3 are sell ranges 105% of regression normal 110% of regression normal 115% of regression normal Bottom 3 are buy ranges 95% of regression normal 90% of regression normal 85% of regression normal

Independent Search Threads We have 3 buy ranges and 3 sell ranges (on example graph). Creating all pairs of 1 buying range and 1 selling range, creates 9 sets. All of these sets can be optimized independently as they do not overlap. Optimized - most profit, from buying in buy range and selling sell range.

Table of Contents Parallelization Review Revision of Goals New Search Algorithm Parallelization Project Results

4. Parallelization

Required work Load training data. Create regression model. Find high and low points for price deviation from regression line. Partition work space. Find best price in assigned ranges to buy & sell. Calculate profit for assigned ranges buy & sell. Merge best ranges + find most profitable range. Calculate + return profit on test data. Steps 5, 6 are done in parallel.

Serial Work Load training data. Create regression model. Find high and low points for price deviation from regression line. Partition work space. Find best price in assigned ranges to buy & sell. Calculate profit for assigned ranges buy & sell. Merge best ranges + find most profitable range. Calculate + return profit on test data. Clean-Up

Top Level Parallel Work Load training data. Create regression model. Find high and low points for price deviation from regression line. Partition work space. Find best price in assigned ranges to buy & sell. Calculate profit for assigned ranges buy & sell. Merge best ranges + find most profitable range. Calculate + return profit on test data. Clean-up Steps 5, 6 are done in parallel.

2nd Level Parallel Work Load training data. Create regression model. Find high and low points for price deviation from regression line. Partition work space. Find best price in assigned ranges to buy & sell. Calculate profit for assigned ranges buy & sell. Merge best ranges + find most profitable range. Calculate + return profit on test data. Clean-up Steps 5, 6 are done in parallel.

Work Diagram – See Work Diagram PDF Steps 5, 6 are done in parallel.

Table of Contents Project Results Review Revision of Goals New Search Algorithm Parallelization Project Results

5. Project Results Sample Results

Observations The larger the deviations from the regression model, the larger the search space and time it takes to find the optimum buy / sell deviation prices. Small deviation search spaces go REAL quick (in less than a second). Executor services can take a decent amount of time to clean-up after they are completed.

Observations The largest factor in determining the runtime is the STEP_SIZE variable in the FindOptimumInRange class. 1 cent is the maximal logical STEP_SIZE, but it will max the search timeout for any decently size deviation.

Some Statistics Symbols: CVX, GOOGL, AAPL, MSFT Time To Completion STEP_SIZE THREAD_POOL_SIZE PARTITIONS_COUNT SUB_THREAD_POOL_SIZE 42.396s 0.05 1 4 8 12.975s 0.1 2.117s 0.5 1.869s 43.456s 2 12.191s 2.324s 1.875s 43.649s 3 12.258s 2.436s 2.043s 44.373s 12.388s 2.511s 1.710s

SUB_THREAD_POOL_SIZE Some Statistics Symbol: CVX Time To Completion STEP_SIZE THREAD_POOL_SIZE PARTITIONS_COUNT SUB_THREAD_POOL_SIZE 3.511s 0.01 1 0.484s 0.1 0.360s 0.5 0.313s 3.228s 2 0.375s 0.328s 0.343s 2.119s 0.344s 2.174s 4 0.391s

SUB_THREAD_POOL_SIZE Some Statistics Symbol: GOOGL Time To Completion STEP_SIZE THREAD_POOL_SIZE PARTITIONS_COUNT SUB_THREAD_POOL_SIZE 240.304s 0.01 1 24.759s 0.1 1.316s 0.5 0.578s 240.318s 2 24.716s 1.325s 0.594s 240.326s 13.102s 0.844s 0.437s 240.333s 4 7.641s 0.672s 6.757s 8 0.641s

SUB_THREAD_POOL_SIZE Some Statistics Symbol: AAPL Time To Completion STEP_SIZE THREAD_POOL_SIZE PARTITIONS_COUNT SUB_THREAD_POOL_SIZE 240.476s 0.01 1 16.216s 0.1 0.978s 0.5 0.485s 240.329s 2 17.629s 1.176s 0.641s 240.450s 9.384s 0.844s 0.657s 240.555s 4 5.690s 0.610s 0.406s 4.501s 8 0.546s

SUB_THREAD_POOL_SIZE Some Statistics Symbol: MSFT Time To Completion STEP_SIZE THREAD_POOL_SIZE PARTITIONS_COUNT SUB_THREAD_POOL_SIZE 0.528s 0.01 1 0.453s 0.1 0.422s 0.5 0.547s 2 0.469s 0.438s 0.516s 0.437s 0.515s 4 0.500s 0.485s 0.483s