agent based models 2010

24
AGENT-BASED MODELS Nick Wade Northfield Information Services Asia Ltd. [email protected] +81 (0)3 5403 4655

Upload: yamanote

Post on 05-Dec-2014

1.568 views

Category:

Documents


2 download

DESCRIPTION

A brief literature review and roadmap through agent-based models of financial markets. Laying out the key decisions agent based model builders need to make and some of the empirical results from recent models investigating the effect of short-selling bans, leverage etc.

TRANSCRIPT

Page 1: Agent Based Models 2010

AGENT-BASED MODELS

Nick WadeNorthfield Information Services Asia [email protected]+81 (0)3 5403 4655

Page 2: Agent Based Models 2010

OVERVIEW

Define Agent-based model Literature review – the history Building an agent-based model Observed Behavior References

Page 3: Agent Based Models 2010

MOTIVATION

At a macro level we observe complex behavior in financial markets: Return jumps Volatility clustering Fat tails Bubbles Performance persistence of fundamental and technical signals

To model markets we can either: Propose more flexible models (e.g. finite-moment log stable model) Create a “behavioral” model of the interactions of participants (agents)

at a micro level, and observe resulting macro behavior

Most interestingly, very simple rules and constraints at the agent level can result in fascinating complex behaviors at the macro level

Page 4: Agent Based Models 2010

DEFINITION – AGENT BASED MODEL

An “Agent” is defined by Russell and Norvig (1995) as: “anything that perceives its environment through sensors and acts

through effectors” [e.g. a cat; the automatic toilet flush; mousetrap]

An agent-based model is a form of artificial market where securities are bought and sold by “agents” following decision rules

Example: often, agent-based models consist of a single investor allocating wealth to a set of funds (agents) based on a performance rule. Each period the agents typically have a choice between two securities (cash and a risky asset)

Page 5: Agent Based Models 2010

LITERATURE I Early History:

Mandelbrot (1963) references a 1915 paper on the non-normality of price time-series

The Effect of Market Design: Stigler (1964), Garman (1976) From the latter: “does the auction market imply leptokurtosis”?

Early Models: Cohen, Maier, Schwartz & Whitcomb (1983) Kim and Markowitz (1989) Frankel and Froot (1988) De Grauwe, Dewachter, Embrechts (1993) Lux (1997) Kirman (1991) Chiarella (1992) Levy, Levy, Salomon (1994) Review LeBaron (2006) Problem: complex models, unrealistic

behavior

Page 6: Agent Based Models 2010

LITERATURE II

Developments in Term of Agent Decision Rules Cont and Bouchard (2000) noise traders subject to herding Lux and Marchiesi (2000) traders are fundamentalist, chartist, or

noise traders Problem: everything clears; there is no persistent order book Recent Developments

Mike & Farmer (2008) most complete order-book model to date Calibrated on market data Fat tails, spread distribution well reproduced, volatility increases as a

result of autocorrelation [liquidity effect] Latest advances:

Herding ,Cont and Bouchard (2000) Dynamic price placement, Preis et al (2007) Threshold behavior Cont (2007)

Page 7: Agent Based Models 2010

EXAMPLES OF APPLICATIONS

Cargo routing (Southwest Airlines) Supply chain (Proctor & Gamble) Traffic flow Climate change Modeling the effect of regulatory changes

Changing from fractions to decimals (NASDAQ) Removing leverage Short-sale restrictions

Page 8: Agent Based Models 2010

BUILDING AN AGENT-BASED MODEL

Agent decision rules Trading mechanism Securities Evolution or learning Benchmarks / Calibration

Page 9: Agent Based Models 2010

AGENT DECISION PROCESS

Commonly: Fundamentalist, Chartist, Noise-traders Simple rules – formulate a “value” based on a simple rule or

algorithm, buy if price is below that value, sell if above More complex process

allow different signals, for example using commonly available/used financial statement data

allow agents to choose weights for signals, neural networks attach a cost to signals, attach a cost to additional nodes generate new signals by mixing evolution: mutation or innovation

Issues Similar or different agents? How much memory to allow, should it be the same across agents? Synchronicity, or asynchronous innovation?

Page 10: Agent Based Models 2010

INTELLIGENT AGENTS

Agents can use AI to formulate decisions

Adaptation mechanisms: Imitation Reaction Reactive learning Generative learning Evolution

Page 11: Agent Based Models 2010

NOTES ON LEARNING

DeLong Schleifer Summers (1991) introduce noise trader

Lettau (1997) interesting result that agents learn but are overly optimistic as a result of lucky as well as skillful groups winning…

Gode & Sunder (1993) zero intelligence agents in the presence of budget constraints produce behavior that looks “smart” => need to be cautious in separating which results are due to learning and adaptation, and which are due to the structure imposed!

Page 12: Agent Based Models 2010

NOTES ON LEARNING II

Arifovic (1996) GA learning Routledge (1994) GA, costly information Beltratti, Margarita, and Terna (1996)

Neural network forecasting tools for agents Vary “intelligence” of trades by adding

nodes (at a cost) Find an equilibrium cost level where both

can exist Reick (1994) actual trading rules

Page 13: Agent Based Models 2010

NOTES ON LEARNING III

Fogel (1995) broad perspective on GA methods Vriend (2000) social versus independent learning Lee et al (2002) “the important factor in market fluctuations is not

the events themselves but the human reactions to those events” Kurz et al (2003) – agents form beliefs based on the available data

and their behavior reduces to rational expectations only as a special case (!)

Yang and Satchell (2003) “the market in the absence of technical traders would reach fundamental equilibrium with fluctuations only due to exogenous shocks”

Mackey-Glass – chaotic process Kyrtsou (2006): captures feedback behavior in a market when

heterogeneous investors interact When rules are non-linear, arrival of information can cause high

volatility and instability. Not so when rules are linear.

Page 14: Agent Based Models 2010

TRADING MECHANISM

There are various options in terms of the actual trading of securities Assume a simple price response to demand

E.g. P(t+1)-P(t) = alpha*(Dt – St), set alpha carefully or introduce a market maker to fill in, which in turn opens up questions about inventory control models…

Build market such that an equilibrium price can be found easily

Which involves market structure assumptions and is often therefore no good for exploring high frequency trading

Explicitly model trading dynamics (e.g. order book model) such that market looks like reality

E.g. limit and market orders, crossing etc Chakrabarti (1999), Yang (2000)

Page 15: Agent Based Models 2010

SECURITIES

Usually simplistic – often just cash and a risky security

Often dividend is revealed each period – a luxury real investors do not have

Obvious extensions Multiple securities, cross-market impact Multiple markets, information flow across

markets Multiple asset classes, information flow across

AC

Page 16: Agent Based Models 2010

EVOLUTION

Friedman (1953) Blume & Easley (1990) utility

maximization is not synonymous with wealth maximization

Page 17: Agent Based Models 2010

BENCHMARKS/CALIBRATION

Validation – is it a good model? Which parameters lead to equilibrium? Understand parameter boundaries

between simple and complex behaviors In order to see observed market

phenomena we need to allow a broad range of memories from 6 months to 30 years.

Page 18: Agent Based Models 2010

TIME

Time can be measured in various ways Calendar time Event time Trading/Transaction time

Consider how much history should be available to agents, and differ (or not) across agents

Rate of change – has a huge impact on convergence Slow learning: market converges rapidly to an equilibrium state Fast learning: fat tails, volatility persistence (i.e. clustering),

technical and fundamental trading leads to predictable returns (i.e. a lot of the stylized facts we observe in real markets)

See LeBaron, Arthur, Palmer (1998)

Page 19: Agent Based Models 2010

THE EFFECT OF SHORT-SELLING

Mizuta et al (2010) Construct an agent-based model following Lux and

Marchiesi (2000) having fundamentalist, chartist, and noise-trading agents

Compare regulated and unregulated market Dynamics of unregulated market look like “real world” i.e. TOPIX Volatility increases with regulation Less efficiency in regulated market Bubbles in regulated market

Conclude that short-sale restrictions are of benefit only for very short periods of time during crisis, and at other times short-selling improves efficiency and reduces volatility

Page 20: Agent Based Models 2010

THE EFFECT OF LEVERAGE

Thurner, Farmer, Geanakoplos (2009) No/some leverage: as a stock declines, buy more Lots of leverage: as a stock declines, sell some

(margin call) In a no/moderate leverage environment, volatility

is damped by funds buying as prices fall In a high leverage environment, volatility is

increased by funds selling as prices fall This leads to fat tails, and autocorrelation

increases with leverage leading to volatility clustering

Page 21: Agent Based Models 2010

APPLICATION

Clearly of use evaluating the effect of changes in market participants a change in the data available, frequency of

innovation or additional trading strategies changes in the environment due to regulatory

changes e.g. a ban on short selling, reductions in leverage, predilection for particularly levels of liquidity etc etc

Unclear how useful agent-based models may be as forecasting tools beyond these “scenario” models

Page 22: Agent Based Models 2010

REFERENCES

Arifovic, J., 1996. The behavior of the exchange rate in the genetic algorithm and experimental economies. Journal of Political Economy 104, 510-541.

Beltratti, Margarita and Terna Blume, L., Easley, D., 2001. If you’re so smart, why aren’t you rich? Belief selection in

complete and incomplete markets, Tehnical report, Cornell University, Ithaca, NY. Chakrabarti, R., 1999. Just another day in the inter-bank foreign exchange market.

Journal of Financial Economics 56(1), 29-64. Cont, R.,2007. Volatility Clustering in financial markets: empirical facts and agent-

based models, in: Long Memory in Economics, 289-309. Cont, R., Bouchard, J.P., 2000. Herd behavior and aggregate fluctuations in financial

markets. Macroeconomic Dynamics 4, 170-196. DeLong, J.B., Schleifer, A., Summers, L.H., Waldmann, R., 1991. The survival of noise

traders in financial markets, Journal of Business 64, 1-19. Fogel, D.B., 1995. Evolutionary Computation: Toward a New Philosophy of Machine

Intelligence, IEEE Press, Piscataway, NJ. Friedman, M., 1953. The case for flexible exchange rates, in Essays in positive

economics, University of Chicago Press, Chicago, IL. Garman, M.B., 1976. Market microstructure. Journal of Financial Economics 3, 257-

275. Gode, D.K., Sunder, S., 1993. Allocative efficiency of markets with zero-intelligence

traders. Journal of Political Economy 101, 119-37.

Page 23: Agent Based Models 2010

REFERENCES II

Kurz, M., Jin, H., Motolese, M., 2003. The Role of Expectations in Economic Fluctuations and the Efficacy of Monetary Policy, working paper. Department of Economics, Stanford University.

Kyrtsou, C., 2006. Heterogeneous Non-Linear Trading Rules and Routes to Chaotic Dynamics, forthcoming Working Paper, LAMETA, University of Montpellier I.

LeBaron, B., 2006. Agent-based computational finance, handbook of computational economics 2, 1187-1233.

LeBaron, B., Arthur, W.B., Palmer, R., 1999. Time series properties of an artificial stock market, Journal of Economic Dynamics and Control 23, 1487-1516.

Lee, W., Jiang, C., Indro, D., 2002. Stock Market volatility, excess returns, and the role of investor sentiment. Journal of Banking & Finance 26, 2277-2299.

Lettau, M., 1997. Explaining the facts with adaptive agents: the case of mutual fund flows. Journal of Economic Dynamics and Control 21, 1117-1148.

Lux, T., Marchiesi, M., 1999. Scaling and criticality in a stochastic multi-agent model of a financial agent. Nature, 397, 498-500

Mandelbrot, B.B., 1963. The Variation of Certain Speculative Prices. The Journal of Business, 36, 394-419.

Mike, S., Farmer, J.D., 2008. An empirical behavioral model of liquidity and volatility, Journal of Economic Dynamics and Control 32, 200-234.

Preis, T., Golke, S., Paul, W., Schneider, J.J., 2007. Statistical analysis of financial returns for a multiagent order book model of asset trading. Physical Review E 76 (1).

Page 24: Agent Based Models 2010

REFERENCES III

Rieck, C., 1994. Evolutionary simulation of asset trading strategies. In: Hillebrand, E., Stender, J. (Eds.), Many-agent simulation and artificial life. IOS Press.

Routledge, B.R., 1994. Artificial selection: genetic algorithms and learning in a rational expectations model. Technical Report, GSIA, Carnegie Mellon, Pittsburgh, PA.

Russell, S., Norvig, P., 1995. Artificial Intelligence. Prentice Hall, NJ. Stigler, G., 1964. Public regulation of the securities markets. Journal of business, 117-

142. Thurner, Stefan, Farmer, J. Doyne and Geanakoplos, John, Leverage Causes Fat Tails

and Clustered Volatility (January 11, 2010). Cowles Foundation Discussion Paper No. 1745. Vriend, N., 2000. An illustration of the essential difference between individual and social learning, and its consequences for computational analysis, Journal of Economic Dynamics and Control 24, 1-19.

Yagi, I., Mizuta, T., Izumi, K., working paper. A study on the effectiveness of short-selling regulation using artificial markets.

Yang, J., 2000. Price Efficiency and inventory control in two inter-dealer markets, Technical report, Bank of Canada, Ottawa, Canada.

Yang, J.-H., Satchell, S., 2003. The Impact of Technical Analysis on Asset Price Dynamics, Working Paper, Faculty of Economics and Politics, Trinity College, University of Cambridge.

Yousefmir, M., Huberman, B.A., 1997. Clustered volatility in multiagent dynamics. Journal of Economic Behavior and Organization 32, 101-118.