Agent-based models of financial markets Financial Markets ...

13
Agent-based models of financial markets Financial Markets and ABM September 26, 2016 Seminar Overview September 19: Introduction and basic concepts September 26: Financial markets and ABM October 3: Examples of different models October 10: Introduction to the development framework October 17: Scenario analysis and simulation October 24: The agents’ behavior (Guest speaker Faten Ben Bouheni) October 31: Implementation of agents’ behavior November 7: Evolution and Learning November 14: Optimization and overfitting November 21: Commercialization of models / How to pitch (Guest speaker Roger Hilty) November 28: Pitch of the Models December 5: Pitch of the Models December 12: Pitch of the Models December 19: General Feedback to the Pitch Sessions and some conclusions www.avaco.ch

Transcript of Agent-based models of financial markets Financial Markets ...

Page 1: Agent-based models of financial markets Financial Markets ...

Agent-based models of financial markets

Financial Markets and ABM

September 26, 2016

Seminar Overview

• September 19: Introduction and basic concepts

• September 26: Financial markets and ABM

• October 3: Examples of different models

• October 10: Introduction to the development framework

• October 17: Scenario analysis and simulation

• October 24: The agents’ behavior (Guest speaker Faten Ben Bouheni)

• October 31: Implementation of agents’ behavior

• November 7: Evolution and Learning

• November 14: Optimization and overfitting

• November 21: Commercialization of models / How to pitch (Guest speaker Roger Hilty)

• November 28: Pitch of the Models

• December 5: Pitch of the Models

• December 12: Pitch of the Models

• December 19: General Feedback to the Pitch Sessions and some conclusions

www.avaco.ch

Page 2: Agent-based models of financial markets Financial Markets ...

Slides

The slides will be available online on Friday before the seminar on:

http://www.business.uzh.ch/professorships/qba/teaching/operationsResearch/lectures/ABMFM.html

www.avaco.ch

Puppies! Now that I've got your attention, complexity theory

www.avaco.ch

https://www.ted.com/talks/nicolas_perony_puppies_now_that_i_ve_got_your_attention_complexity_theory#

Page 3: Agent-based models of financial markets Financial Markets ...

Content

• Discussion of the reading

• What is a market?

• Market prediction

• Elements of Agent-Based Models

www.avaco.ch

What is a market?

• Place

• Participants

www.avaco.ch

Page 4: Agent-based models of financial markets Financial Markets ...

Markets

• A market is the place where supply (sellers) meets demand (buyers). They determine the price of a good.

• Rational behavior, competition and transparency are three axioms for perfect markets.

• Financial markets: Abstraction of the real world to tradable instruments. It makes the allocation of capital more efficient.

• Market participants make decisions based on heterogeneous investment objectives. They have different time horizons, risk profiles and knowledge/information. Each individual’s analyses lead to different valuations of the investment and hence different decisions.

www.avaco.ch

Economics and Markets

• Economics is a social science dealing with the interactions of human beings.

• Need to abstract from reality reduce complexity.

• Macroeconomics and microeconomics are the two main parts of economics. Macroeconomics studies the economy as a whole. Microeconomics analyses individual behavior (agents).

• Economic processes are complex: It is difficult to decompose them into separate parts that can be studied separately and then be aggregated to yield a complete picture.

• Markets at the core of the economy the exchange of goods and services.

www.avaco.ch

Page 5: Agent-based models of financial markets Financial Markets ...

Market Environment

• Assets

• Market structure• Order processing

• Price calculation

• Clearing and settlement

• Evolution and social learning

www.avaco.ch

Assets

www.avaco.ch

0.00

50.00

100.00

150.00

200.00

250.00

300.00

350.00

0.0000

0.5000

1.0000

1.5000

2.0000

2.5000

3.0000

30.0

1.19

68

30.0

1.19

69

30.0

1.19

70

30.0

1.19

71

30.0

1.19

72

30.0

1.19

73

30.0

1.19

74

30.0

1.19

75

30.0

1.19

76

30.0

1.19

77

30.0

1.19

78

30.0

1.19

79

30.0

1.19

80

30.0

1.19

81

30.0

1.19

82

30.0

1.19

83

30.0

1.19

84

30.0

1.19

85

30.0

1.19

86

30.0

1.19

87

30.0

1.19

88

30.0

1.19

89

30.0

1.19

90

30.0

1.19

91

30.0

1.19

92

30.0

1.19

93

30.0

1.19

94

30.0

1.19

95

30.0

1.19

96

30.0

1.19

97

30.0

1.19

98

30.0

1.19

99

30.0

1.20

00

30.0

1.20

01

30.0

1.20

02

30.0

1.20

03

30.0

1.20

04

30.0

1.20

05

30.0

1.20

06

30.0

1.20

07

30.0

1.20

08

30.0

1.20

09

30.0

1.20

10

Page 6: Agent-based models of financial markets Financial Markets ...

Market Structure

• Auction

• Order book

• Market maker

www.avaco.ch

www.six-swiss-exchange.com/orderbook_en.html?SecurityId=CH0024899483CHF1

Agents

• Methods, Behavior (Processing)• Decision and trading rules• Individual learning or adaptation

• Attributes (Memory)• Portfolio, wealth• Genes (parameters)

• Two types of strategies exist, labeled technical and fundamental. The relative number or wealth of the two types depends on the market details.

• Make realistic assumptions about the behavior of the agents (bounded rationality (Simon, 1982), behavioral finance)

www.avaco.ch

Page 7: Agent-based models of financial markets Financial Markets ...

Market Prediction

• The efficient market theory is invalid because its assumptions do not hold:• Rational behavior of market participants.

• Availability of information

• Perfect knowledge

• Unlimited computing power for real time decisions

• Different market participants

• The cause of unpredictability or randomness is often ignorance. The source of randomness disappears for the smartest market participant.

• There exist qualitative and quantitative models. We generally distinguish between fundamental and technical analysis.

www.avaco.ch

How the Economy works

http://www.youtube.com/watch?v=PHe0bXAIuk0

www.avaco.ch

Page 8: Agent-based models of financial markets Financial Markets ...

Technical analysis

• The analysis of the development of the price and not the value.

• Reflects the psychology of the markets.

• Most univariate.

• For all markets possible.

• Used in Japan since 17th century.

• Examples: Trend follower, contrarians, put/call indicators, point and figure charts, Elliott Waves theory, …

www.avaco.ch

Chart analysis

www.avaco.ch

Page 9: Agent-based models of financial markets Financial Markets ...

Some thoughts about forecasting

• Experts do little better than random chance at forecasting such political events as revolutions and regime changes. (Tetlock, 2005)

• Simple predictive models outperform human experts’ ability to make predictions by avoid common cognitive traps. (Guszcza, 2016)

• What does it need to predict (Hyndman, 2015)• We understand and can measure the causal factors.• There are a lot of historical data available.• The forecasts do not affect the things we are trying to forecast.• The future will somewhat resemble the past in a relevant way.

• Reasons that make it hard to predict (www.santafe.edu)• The dynamics may be in some sense inherently unpredictable.• The financial or energetic cost of measuring the system may be prohibitive.• The computational problem of prediction may be difficult.• The state space itself may be unknown.

www.avaco.ch

Financial Markets as Complex Systems

• Deterministic system

• Stochastic shocks

• Drift component

𝑿(𝒕 + 𝟏) = 𝒇(𝑿 𝒕 ,𝒘 𝒕 )

• X(t) is a vector with a number of components xi. The external variables are subsumed in w(t). The decision is arbitrary to put the different variables in X(t) or w(t).

www.avaco.ch

Page 10: Agent-based models of financial markets Financial Markets ...

Deterministic System

• Non linear

• Multivariate• Interconnected markets

• Arbitrage

• Bounded rational agents

• Applications• Fundamental and technical analysis

• Economics

www.avaco.ch

Stochastic System

• Random walk: The actual price is the best prediction. The markets are efficient.

• External shocks

• Distribution

• Applications• Risk Management

• Value at Risk

• Black & Scholes

www.avaco.ch

Page 11: Agent-based models of financial markets Financial Markets ...

Drift Component

• Change of the deterministic system

• Learning• Change of capital allocation• Individual Learning• Social learning

• Innovation

• Change of regulations/ market structures

• Responsible for non stationary

• Reduce market efficiency

• Difference to physical dynamic systems• Responsible for the decreasing quality of traditional forecasting models over

time

www.avaco.ch

Economic versus Financial Market Models• What are the advantages of financial market models over economic

models?

• What are the disadvantages of financial market models over economic models?

Please take 5 minutes to think about this question.

Briefly prepare for a discussion in class - discuss it with your neighbors.

www.avaco.ch

Page 12: Agent-based models of financial markets Financial Markets ...

Why Agent-Based Models

• Given financial markets are multivariate, non linear, deterministic systems with stochastic shocks and a drift component ABMs are a promising modeling solution.

• The complex behavior of financial markets emerges as the result of the collective actions of many “simple” agents in mutual action.

• Financial markets are social systems, built on buying and selling decisions of human beings.

• In an ABM the agents don’t need to be profitable or rational The real world market’s results stem from the interaction of real world market participants!

• Understanding the behavior of market participants enables us to correctly forecast market behavior.

• ABMs are a very powerful framework but with many degrees of freedom.

www.avaco.ch

Elements of Agent-Based Models

Agents

• Market participants• Behavioral disposition

• Microeconomics

• Explicit knowledge in the form of agents’ behavioral structures

• Individual basic decision structures with bounded rationality

• Decentralized, heterogeneous and local

• Adaptive, individual learning• Analytical

Environment

• Market• Market structure

• Macroeconomics

• Implicit knowledge in the form of time series analysis

• Complex, non-linear, path-dependent

• Collective behavior leads to a self-organizing system

• Social learning and changing market structures (regulation,…)

• Computational

www.avaco.ch

Page 13: Agent-based models of financial markets Financial Markets ...

Readings

Kostadinov, F., Ankenbrand, T. (2013): Agent-based modelling and the Swiss real estate market. Working paper (available www.avaco.ch).

Tetlock, P.E., Expert Political Judgement: How Good Is It? How Can We Know. Princeton, 2005.

Guszcza, J., Maddirala, N., Minds and Machines. Deloitte Review, 2016.

Hyndman, R., Exploring the boundaries of predictability: What can we forecast, and when should we give up? http://robjhyndman.com/seminars/yahoo2015/

www.avaco.ch