16 October 2015All Rights Reserved, Edward Tsang Computing Intelligence Meets Forecasting Forecasting System Predictions, in the form of: prices opportunities.

Slides:



Advertisements
Similar presentations
Shino Takayama The University of Sydney Faculty of Business and Economics Ch 12. Market Efficiency and Behavioural Finance.
Advertisements

Copyright © 2008 Pearson Addison-Wesley. All rights reserved. Chapter 10 Information and Financial Market Efficiency.
Contrarian investing and why it works. Definition What is a contrarian? A Contrarian makes decisions for different reasons than most traders. The majority.
1 CHAPTER FOURTEEN FINANCIAL ANALYSIS OF COMMON STOCKS.
Corporate Financing Decisions Market Efficiency 1Finance - Pedro Barroso.
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc., All Rights Reserved. Efficient Markets Hypothesis 1.
HIA and Multi-Agent Models ●New paradigm of heterogeneous interacting agent models (Reviewed in Markose, Arifovic and Sunder (2007)) ●Zero intelligence.
McGraw-Hill/Irwin Copyright © 2008 The McGraw-Hill Companies, Inc., All Rights Reserved. The Efficient Market Hypothesis CHAPTER 8.
Efficient Capital Markets
Data Mining.
Chapter 10 Market Efficiency.
Return, Risk, and the Security Market Line
International Financial Management: INBU 4200 Fall Semester 2004 Lecture 5: Part 1 Forecasting Exchange Rates.
7. Stock Market Valuation & the EMH Role of Expectations Rational Expectations Efficient Markets Theory Role of Expectations Rational Expectations Efficient.
Economic Natural Selection David Easley Cornell University June 2007.
Arbitrage in Combinatorial Exchanges Andrew Gilpin and Tuomas Sandholm Carnegie Mellon University Computer Science Department.
The Stock Market Forecasting and Risk Management System using Genetic Programming Li Wang Ross School of Business Ann Arbor, MI
mankiw's macroeconomics modules
Chapter 7 The Stock Market, The Theory of Rational Expectations, and the Efficient Market Hypothesis.
Repository Method to suit different investment strategies Alma Lilia Garcia & Edward Tsang.
Advanced Valuation Analysis Tools and Simulation Brian Stonerock CGU EMP Independent Study December Update.
© 2008 Pearson Education Canada7.1 Chapter 7 The Stock Market, the Theory of Rational Expectations, and the Efficient Markets Hypothesis.
Economic Crisis: Technology is the answer Edward Tsang Centre For Computational Finance and Economics University of Essex IEEE Technical Committee on Finance.
Data Mining and Application Part 1: Data Mining Fundamentals Part 2: Tools for Knowledge Discovery Part 3: Advanced Data Mining Techniques Part 4: Intelligent.
Price patterns, charts and technical analysis: The momentum studies Aswath Damodaran.
Inductive learning Simplest form: learn a function from examples
Chapter 12 Jones, Investments: Analysis and Management
Efficient Market Hypothesis EMH Presented by Inderpal Singh.
Three methods developed for these objectives Based on machine learning and supervised learning Under the evolutionary paradigm –specifically Genetic Programming.
COMM W. Suo Slide 1. COMM W. Suo Slide 2  Random Walk - stock price change unpredictably  Actually stock prices follow a positive trend.
FIN 352 – Professor Dow.  Fama: Test the efficient market hypothesis using different information sets.  Three categories:  Weak  Semi-Strong  Strong.
Machine Learning Overview
19 October 2015All rights reserved, Edward Tsang & Serafin Martinez jaramillo CHASM Co-evolutionary Heterogeneous Artificial Stock Markets Serafín Martínez.
Explaining the statistical features of the Spanish Stock Market from the bottom-up. José A. Pascual, Javier Pajares, and Adolfo López. InSiSoc Group. Valladolid.
Capital Markets Theory Lecture 5 International Finance.
The Theory of Capital Markets Rational Expectations and Efficient Markets.
The stock market, rational expectations, efficient markets, and random walks The Economics of Money, Banking, and Financial Markets Mishkin, 7th ed. Chapter.
Copyright  2011 Pearson Canada Inc Chapter 7 The Stock Market, the Theory of Rational Expectations, and the Efficient Markets Hypothesis.
McGraw-Hill/Irwin Copyright © 2001 by The McGraw-Hill Companies, Inc. All rights reserved Market Efficiency Chapter 11.
1 MBF 2263 Portfolio Management & Security Analysis Lecture 7 Efficient Market Hypothesis.
1 1 Ch11&12 – MBA 566 Efficient Market Hypothesis vs. Behavioral Finance Market Efficiency Random walk versus market efficiency Versions of market efficiency.
Market Efficiency. What is an efficient market? A market is efficient when it uses all available information to price assets.  Information is quickly.
1 Appendix D: Application of Genetic Algorithm in Classification Duong Tuan Anh 5/2014.
Review of the Previous Lecture Business Fixed Investment –Stock Market and Tobin’s q –Financing Constraints Residential Investment.
As the number of assets in the portfolio increases, note how the number of covariance terms in the expansion increases as the square of the number of.
Lecture 15: Rational expectations and efficient market hypothesis
1 THE FUTURE: RISK AND RETURN. 2 RISK AND RETURN If the future is known with certainty, all investors will hold assets offering the highest rate of return.
Copyright © 2014 Pearson Canada Inc. Chapter 7 THE STOCK MARKET, THE THEORY OF RATIONAL EXPECTATIONS, AND THE EFFICIENT MARKET HYPOTHESIS Mishkin/Serletis.
Automated discovery in math Machine learning techniques (GP, ILP, etc.) have been successfully applied in science Machine learning techniques (GP, ILP,
Constraint-directed Search in Computational Finance and Economics Edward Tsang + Centre for Computational Finance and Economic Agents (CCFEA)CCFEA University.
Market Efficiency Chapter 5
Directional Changes A new way to summarize price movements Edward Tsang Centre for Computational Finance and Economic Agents University of Essex.
Alternating-offers Bargaining problems A Co-evolutionary Approach Nanlin Jin, Professor Edward Tsang, Professor Abhinay Muthoo, Tim Gosling, Dr Maria Fasli,
Chapter 10 Market Efficiency.
McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc., All Rights Reserved. A market is efficient if prices “fully ______________” available information.
26-0 Behavioural Finance and Market Efficiency 26.5 Can markets be efficient if many traders exhibit economically irrational (biased) behavior? The efficient.
1 MT 483 Investments Unit 5: Ch 8 and 9. Copyright © 2011 Pearson Prentice Hall. All rights reserved. 8-2 Steps in Valuing a Company Three steps are necessary.
Computation, The Missing Ingredient in Classical Economics Edward Tsang Centre for Computational Finance and Economic Agents (CCFEA) University of Essex.
Genetic Programming. What is Genetic Programming? GP for Symbolic Regression Other Representations for GP Example of GP for Knowledge Discovery Outline.
EDDIE for Investment Opportunities Forecasting Michael Kampouridis mkampo [at] essex [dot] ac [dot] uk.
University of Essex Alma Lilia García Almanza Edward P.K. Tsang Simplifying Decision Trees Learned by Genetic Programming.
Evolving Decision Rules (EDR)
An Investigation of Market Dynamics and Wealth Distributions
Behavioral Finance Unit II.
Li Wang Ross School of Business Ann Arbor, MI 48105
Experiments in Machine Learning
Lecture 6: Introduction to Machine Learning
Chapter 12 Power Analysis.
Evolutionary Computation in Computational Finance & Economics
Presentation transcript:

16 October 2015All Rights Reserved, Edward Tsang Computing Intelligence Meets Forecasting Forecasting System Predictions, in the form of: prices opportunities threats What if opportunities are scarce? Is the market predictable? Repository Method EDDIEEDDIE for Investment and arbitragearbitrage opportunities EDDIE: Constraint-directed search For trading precision with recalltrading precision with recall How to invest? Needs motivate new algorithms How to measure success?

Computational Intelligence Meets Financial Forecasting Edward Tsang et al Forecasting Research Team

16 October 2015All Rights Reserved, Edward Tsang Are Option and Future prices aligned? (i.e. are there arbitrary opportunities?) Will the price go up or down? By how much? What data do we have? Daily? Intraday (high frequency)? Volume? Indices? Economic Models?high frequency Forecasting What is the risk of crashing?

16 October 2015All Rights Reserved, Edward Tsang Efficient Market Hypothesis  Financial assets (e.g. shares) pricing: –All available information is fully reflected in current prices  If EMH holds, forecasting is futile –Random walk hypothesisRandom walk hypothesis  Assumptions: –Efficient markets (one can buy/sell quickly) –Perfect information flow –Rational traders

16 October 2015All Rights Reserved, Edward Tsang Random Walk Hypothesis  Prices only changes as a result of new information –E.g. new, significant personnel changes  New information comes up randomly  Therefore, the market is unpredictable –You may as well invest randomly  Is that true? –Debated for decades

16 October 2015All Rights Reserved, Edward Tsang Is the market really efficient?  Market may be efficient in the long term  “Fat Tail” observation: –big changes today often followed by big changes tomorrow (either up or down)  How fast can one respond to new information? –Faster machines certainly help –So should faster algorithms (CIDER)CIDER  Credit crunch: did investors price their risks properly?

16 October 2015All Rights Reserved, Edward Tsang Do fundamental values matter?  In boom, markets are liquid but often not driven by fundamentals only (bubbles)  In bust, markets may be driven by fundamentals only, but are not liquid  In neither boom nor bust are markets efficient –Willem Buiter (LSE)

16 October 2015All Rights Reserved, Edward Tsang Our Research agenda  What would a reasonable agenda be?  Predicting the price in 10 days would be good  But it may be sufficient if I could turn a game into a game in my favour  Question asked: “Will the price go up (or down) by at least r% within the next n days?”

How can computational intelligence help?

16 October 2015All Rights Reserved, Edward Tsang A taste of user input Given Daily closing ….. Expert adds: 50 days m.a ….. More input: Volat- ility ….. Define target:  4% in 21 days? …..

16 October 2015All Rights Reserved, Edward Tsang EDDIE adds value to user input  User inputs indicators –e.g. moving average, volatility, predictions  EDDIE makes selectors –e.g. “50 days moving average > 89.76”  EDDIE combines selectors into trees –by discovering interactions between selectors  Finding thresholds (e.g ) and interactions by human experts is laborious

16 October 2015All Rights Reserved, Edward Tsang Functions GP: Example Tree P/E ratio> If-then-else BuySell If-then-else Buy 6.4 < Terminals EDDIE: Find interactions Discover thresholds Human users: Define grammar Assess trees rationality 50 days MACurrent Price

16 October 2015All Rights Reserved, Edward Tsang Syntax of GDTs in EDDIE-2  Richer language  larger search space ::= “If-then-else” | Decision ::= "And" | "Or" | "Not" | Variable Threshold ::= ">" | "<" | "=" Terminals: Variable is an indicator / feature Decision is an integer, “Positive” or “Negative” implemented Threshold is a real number

Machine learning basics What could one learn? Hypothetical observations How to summarize success/failure? Performance measures

16 October 2015All Rights Reserved, Edward Tsang Machine Learning Basics  Given data observed  Attempt to find patterns (training)  Use patterns to predict future (testing)  Supervised learning –User tells machine what to find  Unsupervised learning –Let the machine find “interesting” patterns, e.g. find clusters

16 October 2015All Rights Reserved, Edward Tsang Hypothetical Situation  Suppose you’ve discovered a good indicator R –How can you make use of it?  Suppose it is a fact that whenever –R has a value less than 1.4 or greater than 2.7, –the volatility of the share prices is above 2.5, and –yield is above 5.7% prices will rise by  6% within the next 21 days  How can you find this rule

16 October 2015All Rights Reserved, Edward Tsang Hypothetical observations InstanceRVolatilityYieldTarget False True True False False False True False False False Classified False True False True False TN TP FP TN TP FN TN

16 October 2015All Rights Reserved, Edward Tsang Confusion Matrix RealityPrediction –– ++ +– –– –– –– ++ –+ –+ –– –+ – Prediction Reality

16 October 2015All Rights Reserved, Edward Tsang Performance Measures  +  Ideal Predictions Reality  +  RC = (5+2) ÷10 = 70% Precision = 2 ÷ 4 = 50% Recall = 2 ÷ 3 = 67% Actual Predictions, Example

Genetic programming in forecasting EDDIE

16 October 2015All Rights Reserved, Edward Tsang EDDIE Technical Overview Tournament Selection Crossover, Mutation Update population Fitness eval Fitness eval (RC, RF, RMC) Using historic datadata … Each tree is a Boolean functiontree E.g. Will the price go up by 4% within the next 21 days? Constraint-directedConstraint-directed fitness To improve precisionimprove precision At cost of missing chancesmissing chances Tree Representation GrammarGrammar defined by user Our experience

16 October 2015All Rights Reserved, Edward Tsang Our EDDIE/FGP Experience  Patterns exist –Would they repeat themselves in the future? (EMH debated for decades)  EDDIE has found patterns –Not in every series (we don’t need to invest in every index / share)  EDDIE extending user’s capability –and give its user an edge over investors of the same caliber

16 October 2015All Rights Reserved, Edward Tsang Operators in Genetic Programming a d cb gfe i h a d cb gfe i h   Crossover Mutation: change a branch

16 October 2015All Rights Reserved, Edward Tsang Incentive to Improve Precision Reality  +  RC = (70+15) ÷ 100 = 85% Precision = 15 ÷ 25 = 60% Recall = 15 ÷ 20 = 75% Actual Predictions, Example RC = (75+11) ÷ 100 = 86% Precision = 11 ÷ 16 = 69% Recall = 11 ÷ 20 = 55%  False positive costs real money  We cannot change reality  But we have control over predictions  Hope: reduced more false positives than true positive

16 October 2015All Rights Reserved, Edward Tsang FGP: Constrained Fitness  Constraints can help guiding the search  Fitness = w rc  RC’  w rmc  RMC  w rf  RF  RC’ =RC if P+  [Min, Max] 0 otherwise  One can adjust Min and Max to reflect market expectation (possibly from training), or risk preference Jin Li FGP Cautious  Low Max Negative True Negative False Positive Positive False Negative True Positive

16 October 2015All Rights Reserved, Edward Tsang Effect of constraints in FGP-2  Observation: RMC can be traded for RF without significantly affecting RC DJIA Training: 1,900 days 07/04/1969 to 11/10/1976 Testing: 1,135 days 12/10/1976 to 09/04/1981 Target: “rise of 4% within 63 days”

EDDIE for arbitrage prediction E

16 October 2015All Rights Reserved, Edward Tsang Arbitrage Opportunities  Futures are obligations to buy or sell at certain prices  Options are rights to buy at a certain price  If they are not aligned, one can make risk-free profits –Such opportunities should not exist –But they do in London Option right to buy: £10 Future selling price: £11 Option price: £0.5 { A simplified scenario: Full picture

16 October 2015All Rights Reserved, Edward Tsang Experience in EDDIE on Arbitrage  Arbitrage opportunities exist in London  Naïve approach: –Monitor arbitrage opportunities, act when they arise; problem: speed  Misalignments don’t happen instantaneously –Do patterns exist? If so, can we recognize them?  EDDIE-ARB can find some opportunities –With high confidence (precision >75%)  Commercialisation of EDDIE-ARB –Need to harvest more opportunities; Need capital  Research only made possible by close collaboration between computer scientists and economists Hakan Er

Facing scarce opportunities Chance Discovery

16 October 2015All Rights Reserved, Edward Tsang Problem with scarce opportunities  +  9, % % 99%1%  +  9,900099% % 99%1% Predictions Reality Ideal prediction Accuracy = Precision = Recall = 100%  +  9,900099% % 100%0% Easy score on accuracy Accuracy = 99%, Precision = ? Recall = 0% Predictions Random move from  to + Accuracy = 98.02% Precision = Recall = 1%  +  9, % % 99%1% Moves from  to + Accuracy = 98.2% Precision = Recall = 10% (Accuracy dropped from 99%)

16 October 2015All Rights Reserved, Edward Tsang Repository Method In order to mine the knowledge acquired by the evolutionary process, Repository Method performs the following steps: Evolve a GP to create a population of decision trees R1R2…RnR1R2…Rn The rule R k is selected by precision; R k is simplified to R’ k 1- Rule extraction 2- Rule simplification R’ k is compared to the rules in the repository by similarity (genotype) R α … Rµ 3- New rule detection 4- Add rule R’ k to the repository if it captures instances not covered by the existing rules R’ k

16 October 2015All Rights Reserved, Edward Tsang Where does it go from here?  Computational finance > CI + Finance –Research agenda beyond CI and finance experts  Finance drives computational intelligence –We need more techniques for chance discovery  Being able to forecast alone is not sufficient –If opportunity is predicted, do we invest 100%?  Financial forecasting is growing rapidly –Conferences, IEEE Technical Committee, etc FAQ

16 October 2015All Rights Reserved, Edward Tsang FAQ in forecasting  Is the market predictable? –It doesn’t have to be –But if you believe it is, you should code your own expertise –Market is not efficient anyway, herding has patterns  How can you predict exceptional events? –No, we can’t –Neither can human traders  How can you be sure that your program works? –No, we can’t –Neither were we sure about Nick Leeson at Barrings –Codes are more auditable than humans –If you can improve your odds from to in your favour, you should be happy

16 October 2015All Rights Reserved, Edward Tsang Reference  Forecasting-Fcsc2009.pdf  Tsang, E.P.K., Forecasting – where computational intelligence meets the stock market, Frontiers of Computer Science in China, Springer, 2009, to appear (also filed as Working Paper WP026-08, Centre for Computational Finance and Economic Agents (CCFEA), University of Essex, revised December 2008)Frontiers of Computer Science in ChinaWorking PaperWP026-08Centre for Computational Finance and Economic Agents (CCFEA)

All Rights Reserved, Edward Tsang The Forecasting Research Team James Butler EDDIE Jin Li FGP Sheri Markose Red Queen Serafin Martinez EDDIE Red Q Alma Garcia Chance Discovery Edward Tsang EDDIE / GP Michael Kampouridis EDDIE 8 Ionic Share- scope Olsen & Associates Acknowledgements Wang Pu EDDIE101 Hakan Er Arbitrage