SlideShare a Scribd company logo
1 of 24
Agent-based models Nick Wade Northfield Information Services Asia Ltd. nick@northinfo.com +81 (0)3 5403 4655
Overview Define Agent-based model Literature review – the history Building an agent-based model Observed Behavior References
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
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)
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
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)
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
Building an agent-based model Agent decision rules Trading mechanism Securities Evolution or learning Benchmarks / Calibration
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?
Intelligent Agents Agents can use AI to formulate decisions Adaptation mechanisms: Imitation Reaction Reactive learning Generative learning Evolution
Notes on Learning DeLongSchleifer 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!
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
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.
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)
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
Evolution Friedman (1953) Blume & Easley (1990) utility maximization is not synonymous with wealth maximization
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.
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)
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
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
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
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.
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).
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.

More Related Content

What's hot

Statistical Arbitrage Pairs Trading, Long-Short Strategy
Statistical Arbitrage Pairs Trading, Long-Short StrategyStatistical Arbitrage Pairs Trading, Long-Short Strategy
Statistical Arbitrage Pairs Trading, Long-Short Strategyz-score
 
Investigation of Frequent Batch Auctions using Agent Based Model
Investigation of Frequent Batch Auctions using Agent Based ModelInvestigation of Frequent Batch Auctions using Agent Based Model
Investigation of Frequent Batch Auctions using Agent Based ModelTakanobu Mizuta
 
Dlss Absolute Return Strategy
Dlss Absolute Return StrategyDlss Absolute Return Strategy
Dlss Absolute Return StrategyAlexei_Kazakov
 
Top Down Investing
Top Down InvestingTop Down Investing
Top Down InvestingKen Long
 
Efficient Market Hypothesis
Efficient Market HypothesisEfficient Market Hypothesis
Efficient Market HypothesisAshish Anand
 
Wang market confidence and momentum
Wang   market confidence and momentumWang   market confidence and momentum
Wang market confidence and momentum23tino
 
Master trend-following
Master trend-followingMaster trend-following
Master trend-followingVarlei Rezer
 
Modern Portfolio Theory in the Age of Unicorns
Modern Portfolio Theory in the Age of UnicornsModern Portfolio Theory in the Age of Unicorns
Modern Portfolio Theory in the Age of UnicornsNed McDonnell III, CFA PMP
 
Making the best out of Value at Risk in a Basel III context
Making the best out of Value at Risk in a Basel III contextMaking the best out of Value at Risk in a Basel III context
Making the best out of Value at Risk in a Basel III contextJean-Paul Laurent
 
Critical crashes in the Portuguese Stock Market
Critical crashes in the Portuguese Stock MarketCritical crashes in the Portuguese Stock Market
Critical crashes in the Portuguese Stock MarketJorge Quiñones Borda
 
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ..."Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...Quantopian
 
Trading System Seminar Handout
Trading System Seminar HandoutTrading System Seminar Handout
Trading System Seminar HandoutDean Hoffman
 
Portfolio management sessions 4&5 (1)
Portfolio management sessions 4&5 (1)Portfolio management sessions 4&5 (1)
Portfolio management sessions 4&5 (1)Aakash Kulkarni
 
INDIAN INSTITUTE OF CAPITAL MARKETS_CONFERENCE_18DEC2014
INDIAN INSTITUTE OF CAPITAL MARKETS_CONFERENCE_18DEC2014INDIAN INSTITUTE OF CAPITAL MARKETS_CONFERENCE_18DEC2014
INDIAN INSTITUTE OF CAPITAL MARKETS_CONFERENCE_18DEC2014Tanmoy Ganguli
 

What's hot (20)

Cerra
CerraCerra
Cerra
 
Statistical Arbitrage Pairs Trading, Long-Short Strategy
Statistical Arbitrage Pairs Trading, Long-Short StrategyStatistical Arbitrage Pairs Trading, Long-Short Strategy
Statistical Arbitrage Pairs Trading, Long-Short Strategy
 
Investigation of Frequent Batch Auctions using Agent Based Model
Investigation of Frequent Batch Auctions using Agent Based ModelInvestigation of Frequent Batch Auctions using Agent Based Model
Investigation of Frequent Batch Auctions using Agent Based Model
 
Dlss Absolute Return Strategy
Dlss Absolute Return StrategyDlss Absolute Return Strategy
Dlss Absolute Return Strategy
 
Top Down Investing
Top Down InvestingTop Down Investing
Top Down Investing
 
Efficient Market Hypothesis
Efficient Market HypothesisEfficient Market Hypothesis
Efficient Market Hypothesis
 
Ssrn id2587282
Ssrn id2587282Ssrn id2587282
Ssrn id2587282
 
Wang market confidence and momentum
Wang   market confidence and momentumWang   market confidence and momentum
Wang market confidence and momentum
 
Master trend-following
Master trend-followingMaster trend-following
Master trend-following
 
Modern Portfolio Theory in the Age of Unicorns
Modern Portfolio Theory in the Age of UnicornsModern Portfolio Theory in the Age of Unicorns
Modern Portfolio Theory in the Age of Unicorns
 
Cmt level1-reading
Cmt level1-readingCmt level1-reading
Cmt level1-reading
 
Making the best out of Value at Risk in a Basel III context
Making the best out of Value at Risk in a Basel III contextMaking the best out of Value at Risk in a Basel III context
Making the best out of Value at Risk in a Basel III context
 
Maastricht mba cge
Maastricht mba cgeMaastricht mba cge
Maastricht mba cge
 
Summer Project
Summer ProjectSummer Project
Summer Project
 
The composite man
The composite manThe composite man
The composite man
 
Critical crashes in the Portuguese Stock Market
Critical crashes in the Portuguese Stock MarketCritical crashes in the Portuguese Stock Market
Critical crashes in the Portuguese Stock Market
 
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ..."Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
 
Trading System Seminar Handout
Trading System Seminar HandoutTrading System Seminar Handout
Trading System Seminar Handout
 
Portfolio management sessions 4&5 (1)
Portfolio management sessions 4&5 (1)Portfolio management sessions 4&5 (1)
Portfolio management sessions 4&5 (1)
 
INDIAN INSTITUTE OF CAPITAL MARKETS_CONFERENCE_18DEC2014
INDIAN INSTITUTE OF CAPITAL MARKETS_CONFERENCE_18DEC2014INDIAN INSTITUTE OF CAPITAL MARKETS_CONFERENCE_18DEC2014
INDIAN INSTITUTE OF CAPITAL MARKETS_CONFERENCE_18DEC2014
 

Viewers also liked

GIS and Agent-based modeling: Part 1
GIS and Agent-based modeling: Part 1GIS and Agent-based modeling: Part 1
GIS and Agent-based modeling: Part 1crooksAndrew
 
System Dynamics (Sd) & Agent Based Modelling
System Dynamics (Sd) & Agent Based ModellingSystem Dynamics (Sd) & Agent Based Modelling
System Dynamics (Sd) & Agent Based ModellingdseConsulting
 
An Agent-Based Approach to Evaluating the Effect of Dynamic Age Changes on Co...
An Agent-Based Approach to Evaluating the Effect of Dynamic Age Changes on Co...An Agent-Based Approach to Evaluating the Effect of Dynamic Age Changes on Co...
An Agent-Based Approach to Evaluating the Effect of Dynamic Age Changes on Co...Mark Boateng
 
Top 20 Reasons Why Agent-based Modeling is Disrupting Marketing Mix
Top 20 Reasons Why Agent-based Modeling is Disrupting Marketing MixTop 20 Reasons Why Agent-based Modeling is Disrupting Marketing Mix
Top 20 Reasons Why Agent-based Modeling is Disrupting Marketing MixThinkVine
 
Active Shooter: An Agent-Based Model (ABM) of Unarmed Resistance
Active Shooter: An Agent-Based Model (ABM) of Unarmed ResistanceActive Shooter: An Agent-Based Model (ABM) of Unarmed Resistance
Active Shooter: An Agent-Based Model (ABM) of Unarmed ResistanceTom Briggs
 
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe VizzariAgent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe VizzariGiuseppe Vizzari
 
Agent-Based Modeling & Python @ PyData DC 2016
Agent-Based Modeling & Python @ PyData DC 2016Agent-Based Modeling & Python @ PyData DC 2016
Agent-Based Modeling & Python @ PyData DC 2016Jacqueline Kazil
 

Viewers also liked (10)

GIS and Agent-based modeling: Part 1
GIS and Agent-based modeling: Part 1GIS and Agent-based modeling: Part 1
GIS and Agent-based modeling: Part 1
 
System Dynamics (Sd) & Agent Based Modelling
System Dynamics (Sd) & Agent Based ModellingSystem Dynamics (Sd) & Agent Based Modelling
System Dynamics (Sd) & Agent Based Modelling
 
Agent based modelling
Agent based modellingAgent based modelling
Agent based modelling
 
An Agent-Based Approach to Evaluating the Effect of Dynamic Age Changes on Co...
An Agent-Based Approach to Evaluating the Effect of Dynamic Age Changes on Co...An Agent-Based Approach to Evaluating the Effect of Dynamic Age Changes on Co...
An Agent-Based Approach to Evaluating the Effect of Dynamic Age Changes on Co...
 
Electricidad
ElectricidadElectricidad
Electricidad
 
Top 20 Reasons Why Agent-based Modeling is Disrupting Marketing Mix
Top 20 Reasons Why Agent-based Modeling is Disrupting Marketing MixTop 20 Reasons Why Agent-based Modeling is Disrupting Marketing Mix
Top 20 Reasons Why Agent-based Modeling is Disrupting Marketing Mix
 
Active Shooter: An Agent-Based Model (ABM) of Unarmed Resistance
Active Shooter: An Agent-Based Model (ABM) of Unarmed ResistanceActive Shooter: An Agent-Based Model (ABM) of Unarmed Resistance
Active Shooter: An Agent-Based Model (ABM) of Unarmed Resistance
 
Agent Based Models
Agent Based ModelsAgent Based Models
Agent Based Models
 
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe VizzariAgent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
 
Agent-Based Modeling & Python @ PyData DC 2016
Agent-Based Modeling & Python @ PyData DC 2016Agent-Based Modeling & Python @ PyData DC 2016
Agent-Based Modeling & Python @ PyData DC 2016
 

Similar to Agent Based Models 2010

CAPITAL MARKETS AND EFFICIENCY GROUP ASSIGNMENT.pptx
CAPITAL MARKETS AND EFFICIENCY GROUP ASSIGNMENT.pptxCAPITAL MARKETS AND EFFICIENCY GROUP ASSIGNMENT.pptx
CAPITAL MARKETS AND EFFICIENCY GROUP ASSIGNMENT.pptxMrDampha
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec domsBabasab Patil
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec domsBabasab Patil
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec domsBabasab Patil
 
Technical analysi
Technical analysiTechnical analysi
Technical analysisanta1310
 
6. business performance and indian school of business 60-68
6. business performance and indian school of business 60-686. business performance and indian school of business 60-68
6. business performance and indian school of business 60-68Alexander Decker
 
Artificial Financial Markets: Historical and Interdisciplinary Perspective
Artificial Financial Markets: Historical and Interdisciplinary PerspectiveArtificial Financial Markets: Historical and Interdisciplinary Perspective
Artificial Financial Markets: Historical and Interdisciplinary Perspectiveiosrjce
 
The X Factor
The X FactorThe X Factor
The X Factoryamanote
 
Efficient Market Hypothesis (EMH) and Insider Trading
Efficient Market Hypothesis (EMH) and Insider TradingEfficient Market Hypothesis (EMH) and Insider Trading
Efficient Market Hypothesis (EMH) and Insider TradingPrashant Shrestha
 
MSc Finance Dissertation
MSc Finance DissertationMSc Finance Dissertation
MSc Finance Dissertationfarooqams
 
using technical indicator to analyse NIFTY scrip withspecial reference of kar...
using technical indicator to analyse NIFTY scrip withspecial reference of kar...using technical indicator to analyse NIFTY scrip withspecial reference of kar...
using technical indicator to analyse NIFTY scrip withspecial reference of kar...Anbudan Mba
 
11.how can behavioural finance help us in better understanding the recent glo...
11.how can behavioural finance help us in better understanding the recent glo...11.how can behavioural finance help us in better understanding the recent glo...
11.how can behavioural finance help us in better understanding the recent glo...Alexander Decker
 
The Present and Future of High Frequency Trading
The Present and Future of High Frequency TradingThe Present and Future of High Frequency Trading
The Present and Future of High Frequency TradingMcGraw-Hill Professional
 
John Sheely A Carrer Of Combining Experience And Research
John Sheely A Carrer Of Combining Experience And ResearchJohn Sheely A Carrer Of Combining Experience And Research
John Sheely A Carrer Of Combining Experience And Researchjohnsheely
 
Tangible market information and stock returns the nepalese evidence synopsis
Tangible market information and stock returns the nepalese evidence synopsisTangible market information and stock returns the nepalese evidence synopsis
Tangible market information and stock returns the nepalese evidence synopsisSudarshan Kadariya
 
Re-engineering the Dutch Flower Auctions
Re-engineering the Dutch Flower AuctionsRe-engineering the Dutch Flower Auctions
Re-engineering the Dutch Flower AuctionsEric van Heck
 

Similar to Agent Based Models 2010 (20)

CAPITAL MARKETS AND EFFICIENCY GROUP ASSIGNMENT.pptx
CAPITAL MARKETS AND EFFICIENCY GROUP ASSIGNMENT.pptxCAPITAL MARKETS AND EFFICIENCY GROUP ASSIGNMENT.pptx
CAPITAL MARKETS AND EFFICIENCY GROUP ASSIGNMENT.pptx
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec doms
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec doms
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec doms
 
Technical analysi
Technical analysiTechnical analysi
Technical analysi
 
6. business performance and indian school of business 60-68
6. business performance and indian school of business 60-686. business performance and indian school of business 60-68
6. business performance and indian school of business 60-68
 
Artificial Financial Markets: Historical and Interdisciplinary Perspective
Artificial Financial Markets: Historical and Interdisciplinary PerspectiveArtificial Financial Markets: Historical and Interdisciplinary Perspective
Artificial Financial Markets: Historical and Interdisciplinary Perspective
 
The X Factor
The X FactorThe X Factor
The X Factor
 
Efficient Market Hypothesis (EMH) and Insider Trading
Efficient Market Hypothesis (EMH) and Insider TradingEfficient Market Hypothesis (EMH) and Insider Trading
Efficient Market Hypothesis (EMH) and Insider Trading
 
Finance Project
Finance ProjectFinance Project
Finance Project
 
Trading
TradingTrading
Trading
 
MSc Finance Dissertation
MSc Finance DissertationMSc Finance Dissertation
MSc Finance Dissertation
 
using technical indicator to analyse NIFTY scrip withspecial reference of kar...
using technical indicator to analyse NIFTY scrip withspecial reference of kar...using technical indicator to analyse NIFTY scrip withspecial reference of kar...
using technical indicator to analyse NIFTY scrip withspecial reference of kar...
 
11.how can behavioural finance help us in better understanding the recent glo...
11.how can behavioural finance help us in better understanding the recent glo...11.how can behavioural finance help us in better understanding the recent glo...
11.how can behavioural finance help us in better understanding the recent glo...
 
The Present and Future of High Frequency Trading
The Present and Future of High Frequency TradingThe Present and Future of High Frequency Trading
The Present and Future of High Frequency Trading
 
Sub1536
Sub1536Sub1536
Sub1536
 
John Sheely A Carrer Of Combining Experience And Research
John Sheely A Carrer Of Combining Experience And ResearchJohn Sheely A Carrer Of Combining Experience And Research
John Sheely A Carrer Of Combining Experience And Research
 
Mall and afsl
Mall and afslMall and afsl
Mall and afsl
 
Tangible market information and stock returns the nepalese evidence synopsis
Tangible market information and stock returns the nepalese evidence synopsisTangible market information and stock returns the nepalese evidence synopsis
Tangible market information and stock returns the nepalese evidence synopsis
 
Re-engineering the Dutch Flower Auctions
Re-engineering the Dutch Flower AuctionsRe-engineering the Dutch Flower Auctions
Re-engineering the Dutch Flower Auctions
 

More from yamanote

Using Cross Asset Information To Improve Portfolio Risk Estimation
Using Cross Asset Information To Improve Portfolio Risk EstimationUsing Cross Asset Information To Improve Portfolio Risk Estimation
Using Cross Asset Information To Improve Portfolio Risk Estimationyamanote
 
The Search for a Better Risk Model - MPT Forum Tokyo March 1st 2012
The Search for a Better Risk Model - MPT Forum Tokyo March 1st 2012The Search for a Better Risk Model - MPT Forum Tokyo March 1st 2012
The Search for a Better Risk Model - MPT Forum Tokyo March 1st 2012yamanote
 
Nick Wade Using A Structural Model For Enterprise Risk, Dst Conference 2011...
Nick Wade   Using A Structural Model For Enterprise Risk, Dst Conference 2011...Nick Wade   Using A Structural Model For Enterprise Risk, Dst Conference 2011...
Nick Wade Using A Structural Model For Enterprise Risk, Dst Conference 2011...yamanote
 
Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008yamanote
 
Intra Horizon Risk 2010
Intra Horizon Risk 2010Intra Horizon Risk 2010
Intra Horizon Risk 2010yamanote
 
Conditional Correlation 2009
Conditional Correlation 2009Conditional Correlation 2009
Conditional Correlation 2009yamanote
 
Risk Model Methodologies
Risk Model MethodologiesRisk Model Methodologies
Risk Model Methodologiesyamanote
 

More from yamanote (7)

Using Cross Asset Information To Improve Portfolio Risk Estimation
Using Cross Asset Information To Improve Portfolio Risk EstimationUsing Cross Asset Information To Improve Portfolio Risk Estimation
Using Cross Asset Information To Improve Portfolio Risk Estimation
 
The Search for a Better Risk Model - MPT Forum Tokyo March 1st 2012
The Search for a Better Risk Model - MPT Forum Tokyo March 1st 2012The Search for a Better Risk Model - MPT Forum Tokyo March 1st 2012
The Search for a Better Risk Model - MPT Forum Tokyo March 1st 2012
 
Nick Wade Using A Structural Model For Enterprise Risk, Dst Conference 2011...
Nick Wade   Using A Structural Model For Enterprise Risk, Dst Conference 2011...Nick Wade   Using A Structural Model For Enterprise Risk, Dst Conference 2011...
Nick Wade Using A Structural Model For Enterprise Risk, Dst Conference 2011...
 
Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008
 
Intra Horizon Risk 2010
Intra Horizon Risk 2010Intra Horizon Risk 2010
Intra Horizon Risk 2010
 
Conditional Correlation 2009
Conditional Correlation 2009Conditional Correlation 2009
Conditional Correlation 2009
 
Risk Model Methodologies
Risk Model MethodologiesRisk Model Methodologies
Risk Model Methodologies
 

Agent Based Models 2010

  • 1. Agent-based models Nick Wade Northfield Information Services Asia Ltd. nick@northinfo.com +81 (0)3 5403 4655
  • 2. Overview Define Agent-based model Literature review – the history Building an agent-based model Observed Behavior References
  • 3. 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
  • 4. 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)
  • 5. 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
  • 6. 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)
  • 7. 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
  • 8. Building an agent-based model Agent decision rules Trading mechanism Securities Evolution or learning Benchmarks / Calibration
  • 9. 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?
  • 10. Intelligent Agents Agents can use AI to formulate decisions Adaptation mechanisms: Imitation Reaction Reactive learning Generative learning Evolution
  • 11. Notes on Learning DeLongSchleifer 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!
  • 12. 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
  • 13. 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.
  • 14. 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)
  • 15. 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
  • 16. Evolution Friedman (1953) Blume & Easley (1990) utility maximization is not synonymous with wealth maximization
  • 17. 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.
  • 18. 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)
  • 19. 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
  • 20. 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
  • 21. 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
  • 22. 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.
  • 23. 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).
  • 24. 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.