Using Data Mining Technologies to find Currency Trading Rules

18
Using Data Mining Technologies to find Currency Trading Rules A. G. Malliaris M. E. Malliaris Loyola University Chicago Multinational Finance Society, Rome, Italy, June 26-29, 2011

description

Using Data Mining Technologies to find Currency Trading Rules. A. G. Malliaris M. E. Malliaris Loyola University Chicago. Multinational Finance Society, Rome, Italy, June 26-29, 2011. MOTIVATION. - PowerPoint PPT Presentation

Transcript of Using Data Mining Technologies to find Currency Trading Rules

Page 1: Using Data Mining Technologies  to find  Currency Trading Rules

Using Data Mining Technologies to find

Currency Trading Rules

A. G. MalliarisM. E. Malliaris

Loyola University Chicago

Multinational Finance Society, Rome, Italy, June 26-29, 2011

Page 2: Using Data Mining Technologies  to find  Currency Trading Rules

MOTIVATION

• If it is possible to isolate some assets that have consistent patterns of co-movement, then this knowledge can be used in two ways:

to make money if one has moved and the other has not moved yet, or,

to build a more diverse portfolio by including assets that move in opposite directions

Page 3: Using Data Mining Technologies  to find  Currency Trading Rules

FOCUS

• Are there certain currency markets that move up or down together sufficiently often for us to form a conclusion about their inter-relationships?

• Data from eight major currencies, over ten years, was studied to see if there are movement rules among these currencies that might be stable over time.

Page 4: Using Data Mining Technologies  to find  Currency Trading Rules

DATA MINING

• Data Mining is the search for meaningful patterns in large data sets

• Meaningful patterns are easily understood, valid on new or test data with some degree of certainty, and potentially useful

• Models are produced using a set of values of indicators at a particular time

• The goal is to produce a model that generalizes well on future observations

Page 5: Using Data Mining Technologies  to find  Currency Trading Rules

ASSOCIATION ANALYSIS

• Association analysis is a popular data mining method that originated with the study of market baskets to see which items people purchased at the same time.

• Association analysis generates a set of rules of the form IF A THEN B

Page 6: Using Data Mining Technologies  to find  Currency Trading Rules

ASSOCIATION ANALYSIS

• The set of rules that is generated also have values of support and confidence

• Support: percent of times that some combination of inputs (also called antecedents) occurs in the data set.

• Confidence: when the antecedent combination does occur, reflects the percent of time that the output, or consequent, is also true.

Page 7: Using Data Mining Technologies  to find  Currency Trading Rules

GRI

• Generalized Rule Induction is an association analysis methodology that was introduced in 1992 by Smyth and Goodman

• GRI is an effective, parsimonious method for detecting relationships in a large set of variables

Page 8: Using Data Mining Technologies  to find  Currency Trading Rules

• Decision trees divide up a large collection of records into successively smaller sets of records by applying a sequence of simple decision rules.

• A good decision tree model consists of a set of rules that results in homogeneous groups; that is, it separates records into groups where a single class predominates for each group

• The final result of these splits is often represented graphically in a tree structure.

DECISION TREES

Page 9: Using Data Mining Technologies  to find  Currency Trading Rules

All Data

Begin

Page 10: Using Data Mining Technologies  to find  Currency Trading Rules

• All Decision Trees begin with a root node.• They employ a strategy that grows the tree by

making a series of locally optimum decisions about which attribute to use for partitioning the data.

• The goal of the algorithm is to partition the records into successively purer subsets based on the values of the target field.

GROWING A TREE

Page 11: Using Data Mining Technologies  to find  Currency Trading Rules

CLASSIFICATION & REGRESSION TREES (C&RT)

• Unlike many methods from statistics, C&RT did not exist before machine learning methods were available.

• C&RT is a decision tree methodology that generates only binary splits at each stage

• All decisions are based on the value of a single target variable

Page 12: Using Data Mining Technologies  to find  Currency Trading Rules

DATA

• January 2000 through July 2009 • Downloaded from Bloomberg.• These prices were split into two disjoint sets for

training and validation. • Data from January 1 2000 to June 30 2008 was

used as the training set (2215 rows)• July 1 2008 to July 21 2009, used as the validation

set (276 rows). • To study the simultaneous market movements, all

data was transformed into “Up” or “Down”

Page 13: Using Data Mining Technologies  to find  Currency Trading Rules

THE EIGHT CURRENCIES

Original data was daily cash closing prices for the price of 1 US Dollar in the foreign currency that day

Australian Dollar, Japanese Yen British Pound, Euro, Swiss Franc Canadian Dollar, Mexican Peso, Brazilian Real

Page 14: Using Data Mining Technologies  to find  Currency Trading Rules

RELATIVE MOVEMENT

In order to view them all in a similar scale, the Mexican Peso has been multiplied by 10 and the Japanese Yen by 100 for the graph.

Page 15: Using Data Mining Technologies  to find  Currency Trading Rules

DATA MINING TOOL• Methodologies were run using the SPSS product

Clementine • There were two runs of each model for GRI

– First, the Australian dollar and Japanese Yen were inputs, with the Euro, the Swiss Franc and the British Pound as possible outputs.

– Second, the Australian dollar, Japanese Yen, the Euro, the Swiss Franc and the British Pound were inputs, with the Mexican Peso, the Brazilian Real and the Canadian dollar as outputs.

• One C&RT tree was created for each of the six GRI output targets

Page 16: Using Data Mining Technologies  to find  Currency Trading Rules

RESULTS

• Each model developed a large number of rules and paths.

• Here, we display one Up rule and one Down rule for each of the target markets.

• Rules selected were those that did well not only on the training set, but also on the validation set.

Page 17: Using Data Mining Technologies  to find  Currency Trading Rules

Training Set Validation Set

Target Rules With Best Results %Rows %Correct %Rows %CorrectEuro = Up Australia = Up and Japan = Up 28.94 78 17.39 85.42

Euro = Down Australia = Down and Japan = Down 32.42 81.45 21.84 85.71

Britain = Up Australia = Up and Japan = Up 28.94 72.07 17.39 77.08

Britain = Down Australia = Down and Japan = Down 32.42 76.71 21.84 76.19

Swiss = Up Australia = Up and Japan = Up 28.94 76.44 17.39 87.50

Swiss = Down Australia= Down and Japan = Down 32.42 80.22 21.84 80.70

Brazil = Up Australia = Up and Japan = Down 16.91 58.62 31.42 74.39

Brazil = DownAustralia = Down and Euro = Down and Swiss = Down and Britain = Down 27.8 61.45 23.75 80.64

Mexico = UpEuro = Up and Britain = Up and Swiss = Down 3.02 64.18 5.8 87.50

Mexico = DownAustralia = Down and Japan = Up and Britain = Down 11.53 63.03 18.77 83.67

Canada = Up Australia = Up 45.92 65.72 47.13 78.05

Canada = Down Australia = Down and Euro = Down 38.12 72.24 37.16 83.51

Page 18: Using Data Mining Technologies  to find  Currency Trading Rules

CONCLUSIONS

• Today, the daily volume of currency transactions in currency futures, forwards, swaps and options dominates all other types of trading volumes.

• Whether currencies move together or independently is a matter of importance for investors wishing to spread the impact of their portfolio decisions.

• The results of this study suggest that there is reason to believe that co-movement among some specific markets exists over relatively long periods of time.