A TEMPORAL PATTERN APPROACH FOR PREDICTING WEEKLY FINANCIAL TIME SERIES

Similar documents
Volatility Forecasts of the S&P100 by Evolutionary Programming in a Modified Time Series Data Mining Framework

A Big Data Analytical Framework For Portfolio Optimization

International Journal of Computer Science Trends and Technology (IJCST) Volume 5 Issue 2, Mar Apr 2017

Backpropagation and Recurrent Neural Networks in Financial Analysis of Multiple Stock Market Returns

Using Sector Information with Linear Genetic Programming for Intraday Equity Price Trend Analysis

Artificially Intelligent Forecasting of Stock Market Indexes

A Comparative Study of Ensemble-based Forecasting Models for Stock Index Prediction

Forecasting Design Day Demand Using Extremal Quantile Regression

Stock Trading System Based on Formalized Technical Analysis and Ranking Technique

Business Strategies in Credit Rating and the Control of Misclassification Costs in Neural Network Predictions

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18, ISSN

Neural Network Prediction of Stock Price Trend Based on RS with Entropy Discretization

A Framework for Valuing, Optimizing and Understanding Managerial Flexibility

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18, ISSN

Forecasting stock market prices

A Genetic Algorithm for the Calibration of a Micro- Simulation Model Omar Baqueiro Espinosa

An enhanced artificial neural network for stock price predications

A DECISION SUPPORT SYSTEM FOR HANDLING RISK MANAGEMENT IN CUSTOMER TRANSACTION

An Algorithm for Trading and Portfolio Management Using. strategy. Since this type of trading system is optimized

International Journal of Research in Engineering Technology - Volume 2 Issue 5, July - August 2017

Two kinds of neural networks, a feed forward multi layer Perceptron (MLP)[1,3] and an Elman recurrent network[5], are used to predict a company's

A STUDY ON TESTING OF EFFICIENT MARKET HYPOTHESIS WITH SPECIAL REFERENCE TO SELECTIVE INDICES IN THE GLOBAL CONTEXT: AN EMPIRICAL APPROACH

Cognitive Pattern Analysis Employing Neural Networks: Evidence from the Australian Capital Markets

STOCK PRICE PREDICTION: KOHONEN VERSUS BACKPROPAGATION

HKUST CSE FYP , TEAM RO4 OPTIMAL INVESTMENT STRATEGY USING SCALABLE MACHINE LEARNING AND DATA ANALYTICS FOR SMALL-CAP STOCKS

Multivariable Modeling on Complex Behavior of a Foreign Exchange Market

OPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODEL

Applying Independent Component Analysis to Factor Model in Finance

Classification of Capital Expenditures and Revenue Expenditures: An Analysis of Correlation and Neural Networks

Neuro-Genetic System for DAX Index Prediction

COGNITIVE LEARNING OF INTELLIGENCE SYSTEMS USING NEURAL NETWORKS: EVIDENCE FROM THE AUSTRALIAN CAPITAL MARKETS

Tuomo Lampinen Silicon Cloud Technologies LLC

Naïve Bayesian Classifier and Classification Trees for the Predictive Accuracy of Probability of Default Credit Card Clients

Stock Prediction Model with Business Intelligence using Temporal Data Mining

An Application of CAN SLIM Investing in the Dow Jones Benchmark

Optimizing the Incremental Delivery of Software Features under Uncertainty

DOES TECHNICAL ANALYSIS GENERATE SUPERIOR PROFITS? A STUDY OF KSE-100 INDEX USING SIMPLE MOVING AVERAGES (SMA)

The Use of Neural Networks in the Prediction of the Stock Exchange of Thailand (SET) Index

Discovering Intraday Price Patterns by Using Hierarchical Self-Organizing Maps

Data Mining: A Closer Look. 2.1 Data Mining Strategies 8/30/2011. Chapter 2. Data Mining Strategies. Market Basket Analysis. Unsupervised Clustering

Risk changes around convertible debt offerings

THE investment in stock market is a common way of

ARTIFICIAL NEURAL NETWORK SYSTEM FOR PREDICTION OF US MARKET INDICES USING MISO AND MIMO APROACHES

Effect of Trading Halt System on Market Functioning: Simulation Analysis of Market Behavior with Artificial Shutdown *

A Dynamic Hedging Strategy for Option Transaction Using Artificial Neural Networks

An introduction to Machine learning methods and forecasting of time series in financial markets

Data based stock portfolio construction using Computational Intelligence

Creation Bankruptcy Prediction Model with Using Ohlson and Shirata Models

White Paper. Not Just Knowledge, Know How! Artificial Intelligence for Finance!

Prediction Using Back Propagation and k- Nearest Neighbor (k-nn) Algorithm

Predicting Economic Recession using Data Mining Techniques

Model-Based Trading Strategies. Financial-Hacker.com Johann Christian Lotter / op group Germany GmbH

Predicting Abnormal Stock Returns with a. Nonparametric Nonlinear Method

OPTIMIZATION STUDY OF RSI EXPERT SYSTEM BASED ON SHANGHAI SECURITIES MARKET

Book References for the Level 2 Reading Plan. A Note About This Plan

Lending Club Loan Portfolio Optimization Fred Robson (frobson), Chris Lucas (cflucas)

SURVEY OF MACHINE LEARNING TECHNIQUES FOR STOCK MARKET ANALYSIS

Research Article A Novel Machine Learning Strategy Based on Two-Dimensional Numerical Models in Financial Engineering

A Novel Method of Trend Lines Generation Using Hough Transform Method

Estimating term structure of interest rates: neural network vs one factor parametric models

The Use of Artificial Neural Network for Forecasting of FTSE Bursa Malaysia KLCI Stock Price Index

Market Variables and Financial Distress. Giovanni Fernandez Stetson University

Optimal Portfolio Inputs: Various Methods

(NASDAQ: AAL) American Airlines Group Inc. Bullish. Investment Highlights

Predicting the stock price companies using artificial neural networks (ANN) method (Case Study: National Iranian Copper Industries Company)

Short Term Alpha as a Predictor of Future Mutual Fund Performance

VelocityShares Equal Risk Weighted Large Cap ETF (ERW): A Balanced Approach to Low Volatility Investing. December 2013

Nonlinear Manifold Learning for Financial Markets Integration

CFA Level II - LOS Changes

Stock Market Prediction using Artificial Neural Networks IME611 - Financial Engineering Indian Institute of Technology, Kanpur (208016), India

Draft. emerging market returns, it would seem difficult to uncover any predictability.

An Improved Approach for Business & Market Intelligence using Artificial Neural Network

AN ARTIFICIAL NEURAL NETWORK MODELING APPROACH TO PREDICT CRUDE OIL FUTURE. By Dr. PRASANT SARANGI Director (Research) ICSI-CCGRT, Navi Mumbai

Trading Financial Markets with Online Algorithms

Distance-Based High-Frequency Trading

COST MANAGEMENT IN CONSTRUCTION PROJECTS WITH THE APPROACH OF COST-TIME BALANCING

A Neural Network Approach to Predicting Stock Exchange Movements using External Factors

Trading Global Markets using Technical Analysis. Andy Bower

Integrated GIS-based Optimization of Municipal Infrastructure Maintenance Planning

A note on forecasting exchange rates using a cluster technique

AN APPLICATION OF CAN SLIM INVESTING IN THE DOW JONES BENCHMARK

EFFECT OF IMPLEMENTATION TIME ON REAL OPTIONS VALUATION. Mehmet Aktan

Economics of Behavioral Finance. Lecture 3

Portfolio Selection: The Power of Equal Weight

JACOBS LEVY CONCEPTS FOR PROFITABLE EQUITY INVESTING

Is There a Friday Effect in Financial Markets?

An Analysis of a Dynamic Application of Black-Scholes in Option Trading

A Study of Stock Market Crash in India using Trend Indicators

Introducing GEMS a Novel Technique for Ensemble Creation

Evolutionary Refinement of Trading Algorithms for Dividend Stocks

Trading Volume and Stock Indices: A Test of Technical Analysis

Unit01. Introduction, Creation of Financial Assets, and Security Markets

Quantitative Trading System For The E-mini S&P

STATISTICAL FLOOD STANDARDS

Chapter 11. The Macroeconomic Environment for Investment Decisions

U.S. GDP U.S. GDP data: In 2010 U.S. GDP was 14,526.5 billions

Testing Static Tradeoff Against Pecking Order Models. Of Capital Structure: A Critical Comment. Robert S. Chirinko. and. Anuja R.

Measuring DAX Market Risk: A Neural Network Volatility Mixture Approach

978 J.-J. LAFFONT, H. OSSARD, AND Q. WONG

Computational Finance Improving Monte Carlo

Transcription:

A TEMPORAL PATTERN APPROACH FOR PREDICTING WEEKLY FINANCIAL TIME SERIES DAVID H. DIGGS Department of Electrical and Computer Engineering Marquette University P.O. Box 88, Milwaukee, WI 532-88, USA Email: david.diggs@marquette.edu Ph: 44.288.646 RICHARD J. POVINELLI Department of Electrical and Computer Engineering Marquette University P.O. Box 88, Milwaukee, WI 532-88, USA Email: richard.povinelli@marquette.edu Ph: 44.288.788 ABSTRACT Discovering patterns and relationships in the stock market has been widely researched for many years. The goal of this work is to find hidden patterns within stock market price time series that may be exploited to yield greater than expected returns. A data mining approach provides the framework for this research. The data set is composed of weekly financial data for the stocks in two major stock indexes. Experiments are conducted using a technique designed to discover patterns within the data. Results show that these methods can outperform the market in longer time ranges with bull market conditions. Results include consideration of transaction costs. INTRODUCTION Data mining is the process of discovering hidden patterns in data. Due to the large size of databases, importance of information stored, and valuable information obtained, finding hidden patterns in data has become increasingly significant. The stock market provides an area in which large volumes of data are created and stored on a daily basis, and hence an ideal dataset for applying data mining techniques. Statistical analysis has been widely used for many years to make predictions on the future values of a security price and study its behavior over time. Times series such as the stock market are often seen as non-stationary which present challenges in predicting future values. The focus of this research is in analyzing and predicting weekly financial time series. This work will show the advantage of using a weekly trading strategy, which is an extension of the daily trading strategy, to overcome the transaction cost associated with trading. The proposed method is a data mining approach that uses time-delay embedding and temporal patterns to characterize events. The method is designed to analyze non-stationary time series and provides the basis for this work. The paper is broken into five sections, which describe the goal of this work, overview of the Time Series Data Mining method, financial applications, results, and research conclusions. PROBLEM STATMENT Previously, we have applied our Time Series Data Mining (TSDM) approach to making one-step daily price predictions (Povinelli, 2). We have shown that a simple trading strategy based on these predictions can yield greater returns than expected by the efficient market hypothesis. However, these returns are adversely affected by transaction

costs. Hence, the goal of the current research is to develop an approach that increases returns and overcomes transaction costs. This is achieved by studying weekly stock price time series and making one-step weekly predictions. Li and Tsang (22) previously researched stock prediction using genetic programming in order to do financial forecasting. Results showed they were able to trade with better accuracy on long positions in indexes and individual stocks. Sauer (994) also proposed a method similar to TSDM, in which time-delay embedding with interpolation and weighted regression were used to make time series predictions. TIME SERIES DATA MINING The proposed approach is based on TSDM (Povinelli, 2). This method discovers hidden temporal structures predictive of sharp movements in price, using a time-delay embedding process that reconstructs the time series into a phase space that is topologically equivalent to the original system under certain assumptions. These assumptions are discussed in (Sauer et al., 99). The TSDM technique was developed to make one-step predictions (Povinelli, 2; Povinelli and Feng, 998). The approach is used to make a prediction, which determines the buying and selling of stocks in a given time period. Figure below shows two possible examples of the types patterns for which the TSDM method searches. The illustrated patterns are predictive of sharp increases in a time series. 9 8 7 6 5 4 3 2 time series sharp increasse predictive pattern 5 5 2 25 3 Figure Time series example The patterns are determined by the three previous points to make a prediction for the next time step. The method involves clustering patterns, which are used to detect these sharp increases in the stock price. To find these temporal patterns the time series is embedded into a reconstructed phase space with a time delay of one and a dimension of three (Sauer et al., 99). Once the data is embedded, temporal structures are located using a genetic algorithm search. Clusters are made of points within a fixed distance of the temporal structures. A percent change function ( ) ( ) g t = x x x () t+ t t determines the value given to the prediction made from the clustering using the temporal structures. This value is the percent change in the security price for the next week. The

temporal structures are next ordered by how well each predicts the stock price movements. A ranking function is defined as the average value within a temporal structure, and it is used to order the structures for optimization. The optimization is a search to find the best temporal structures and is done with a simple genetic algorithm (sga) that finds fitness value parameters that maximize the ranking function f ( P ). The sga uses a combination of Monte Carlo search for population initialization with roulette selection and locus crossover to find P*, and a criteria of fitness values halt the genetic algorithm. See reference (Povinelli, 2) for more details on the algorithm. APPLICATION TO FINACIAL TIME SERIES The stock market is a platform for millions of investors to interact through the buying and selling of securities on various equity markets, such as the NASDAQ, AMEX, and NYSE. The goal is to use the TSDM method to achieve small and unexpected returns that are greater than transaction costs associated with trading. The data is in the form of weekly stock price data comprised of the Dow Jones 3 and NASDAQ component stocks. The method is applied to the stocks of a given market index. Weekly buy or do nothing signals are generated by the TSDM method for each stock in the index. The TSDM returns are compared the index as a benchmark. Transaction costs are also considered to show the adverse effects of actually making these weekly trades. Transaction costs are calculated based on the number of stocks in the weekly portfolio selected by the TSDM model. A transaction cost of $2 is used for each buy and sell transaction. METHOD RESULTS Four experiments with various time ranges were run on each data set. Training the data was done using the TSDM method to find predictive structures. Testing for each experiment used a weekly trading strategy for buying and selling a set of stocks that are output from our model. Each week a new set is traded based on the model predictions. The time ranges for each data set were current year (//23-5//23), previous year (//22-//23), previous 5 years (//998-//23), and previous years (//993-//23). The training period for the four experiments was 25 weeks because previous test experiments with this training period gave the best results. The genetic algorithm parameters were the same for each experiment, consisting of population size 3, and fitness convergence value of.9, which is used as a stopping criterion. The total portfolio values are set to $, and $, to calculate transaction costs and returns for the model. The weekly geometric average rate of return is calculated for the model and both indexes for each experiment, shown below in Table. The average rate of return for the model is based on the returns calculated from each stock in the portfolio, which are bought and sold equally on a weekly basis. The table also shows the adjusted return with transaction costs and the average transaction cost per week. Figures 2 through 5 plot the previous year and previous five years of TSDM model weekly returns and adjusted model returns based on a $, portfolio value. The figures plot model and adjusted returns for both the Dow Jones 3 and NASDAQ data sets along with a comparison against the index benchmarks.

Table s Comparison Rate of Return With Transaction Costs ($,) With Transaction Costs ($,) Index Dow Jones 3 ytd Dow Jones 3 Year Dow Jones 3 5 Years Dow Jones 3 Years NASDAQ ytd NASDAQ Year NASDAQ 5 Years NASDAQ Years -.9 % -.26 % -.2 % -.768 % -.98 % -.7 % -. % -.27 %.73 %.72 %.729 %.66 %.44 %.429 %.439 %.324 % -.72 % -.93 % -.74 %.586 % -.7 % -.42 % -.9 % -.887 %.8 %.989 %.5 % -. %.873 %.845 %.87 %.2 %.5.5 Index.5 w/transaction Costs -.5 -. -.5 -.5 Time Range (//22 - //23) -.2 Time Range (//22 - //23) Figure 2 - Dow Jones 3 Experiment 2 2 w/transaction Costs.5 Index. 5 5.5 -.5 -. -.5 Time Range (//998 - //23) Time Range (//998 - //23) Figure - 3 Dow Jones 3 Experiment 3

- -2-3 -4-5 3 25 2 5 5 w/transaction Costs.5 Index -.5 -. -.5 -.2 -.25 -.3 -.35 Time Range (//22 - //23) Time Range (//22 - //23) Figure - 4 NASDAQ Experiment 2.6 Index w/transaction Costs.4.2.8.6.4.2 Time Range (//998 - //23) Time Range (//998 - //23) Figure - 5 NASDAQ Experiment 3 CONCLUSIONS Our data mining approach combined with a weekly trading strategy is used to overcome trading cost and compared against market index used as benchmarks. The benchmarks used in comparing results were two major stock market indexes, the Dow Jones 3 and NASDAQ. The model produced positive returns in the five and ten year experiments when transaction costs were both taken into account and ignored. When transaction costs were calculated, the results from the NASDAQ experiments were more affected due to larger portfolio sizes than the Dow Jones experiments. The different time ranges enabled us to see how are model reacted to the changes in the market setting. The first two experiments were set directly in the recent bear market, which has taken both major indexes down significantly over the past two years. Our model was unable to do better than the market due to a lack of diversity in the weekly portfolios. In the five and ten year time ranges our model was able to overcome transaction costs and outperform the market, showing a strong predictive stock selection process. In comparison to the Dow Jones experiments, the NASDAQ produced better results due to the larger selection of stocks to choose from to create better weekly portfolios With this trading strategy, a larger portfolio value with the ability to purchase more shares reduces the adverse impact of trading costs on the returns. As shown in the Table the difference between the model return and the adjusted return decreases with a higher portfolio value. This work leads itself into an optimization problem for future work. The optimization is to be done in the form of portfolio management that will optimize the weekly portfolio predictions made using the TSDM method. The future directions of this

work will include the use of Markowitz Portfolio Theory and the Capitol Asset Pricing Model (CAPM) (Reilly and Brown, 997) to find optimal portfolios while meeting specific goals such as maximizing return and minimizing risk. This addition focuses on increasing the returns of the TSDM method over time by altering the weights of the weekly portfolios. In addition to portfolio management techniques the transaction cost model can be modified to include the bid-ask spread. ACKNOWLEDGEMENTS This material is based on work supported by the Department of Education GAANN Fellowship. REFERENCES Li, J., and Tsang, E. P. K., 22, "Eddie for Financial Forecasting," Genetic Algorithms and Genetic Programming in Computational Finance,, S.-H. Chen, ed., Kluwer Academic Publishers, Norwell, Massachusetts, 6-74. Povinelli, R. J., 2, "Identifying Temporal Patterns for Characterization and Prediction of Financial Time Series Events," Temporal, Spatial and Spatio-Temporal Data Mining: First International Workshop; TSDM2, Lyon, France, 46-6. Povinelli, R. J., and Feng, X., 998, "Temporal Pattern Identification of Time Series Data Using Pattern Wavelets and Genetic Algorithms," Artificial Neural Networks in Engineering, St. Louis, Missouri, 69-696. Reilly, F. K., and Brown, K. C., 997, Investment Analysis and Portfolio Management, Dryden Press, Fort Worth, Texas. Sauer, T., 994, "Time Series Prediction Using Delay Coordinate Embedding," Time Series Prediction: Forecasting the Future and Understanding the Past, A. S. Weigend and N. A. Gershenfeld, eds., Addison-Wesley, 75-94. Sauer, T., Yorke, J. A., and Casdagli, M., 99, "Embedology," Journal of Statistical Physics, Vol. 65, 579-66.