Santa Fe Artificial Stock Market Model



Similar documents
IS MORE INFORMATION BETTER? THE EFFECT OF TRADERS IRRATIONAL BEHAVIOR ON AN ARTIFICIAL STOCK MARKET

Internal Evolution for Agent Cognition Agent-Based Modelling of an Artificial Stock Market

On the Efficiency of Competitive Stock Markets Where Traders Have Diverse Information

Comparing Neural Networks and ARMA Models in Artificial Stock Market

Financial Markets. Itay Goldstein. Wharton School, University of Pennsylvania

AN ANALYSIS OF EXISTING ARTIFICIAL STOCK MARKET MODELS FOR REPRESENTING BOMBAY STOCK EXCHANGE (BSE)

The Effect on Volatility of Stock Market After Launching Stock Index Options based on Information Structure of Stock Index Options

Intraday Trading Patterns in an Intelligent Autonomous Agent-Based Stock Market

ECON4510 Finance Theory Lecture 7

Practical aspects of implementing MiFID requirementsin GIPS compositereports

Review for Exam 2. Instructions: Please read carefully

Practical Applications of Evolutionary Computation to Financial Engineering

Exam Introduction Mathematical Finance and Insurance

This paper is not to be removed from the Examination Halls

CHAPTER 10 RISK AND RETURN: THE CAPITAL ASSET PRICING MODEL (CAPM)

Why Do Firms Announce Open-Market Repurchase Programs?

Financial Market Microstructure Theory

Agenda. The IS LM Model, Part 2. The Demand for Money. The Demand for Money. The Demand for Money. Asset Market Equilibrium.

Proposal and Analysis of Stock Trading System Using Genetic Algorithm and Stock Back Test System

Solution: The optimal position for an investor with a coefficient of risk aversion A = 5 in the risky asset is y*:

AGENT-BASED FINANCIAL MODELLING AS AN ALTERNATIVE TO THE STANDARD REPRESENTATIVE-AGENT PARADIGM

Key Concepts and Skills

Lab 4: 26 th March Exercise 1: Evolutionary algorithms

Chapter 13 Composition of the Market Portfolio 1. Capital markets in Flatland exhibit trade in four securities, the stocks X, Y and Z,

Chapter 9. The Valuation of Common Stock. 1.The Expected Return (Copied from Unit02, slide 39)

The CAPM (Capital Asset Pricing Model) NPV Dependent on Discount Rate Schedule

Instructor s Manual Chapter 12 Page 144

Capital Allocation Between The Risky And The Risk- Free Asset. Chapter 7

Forward Contracts and Forward Rates

CHAPTER 6 RISK AND RISK AVERSION

Financial market integration and economic growth: Quantifying the effects, Brussels 19/02/2003

AFM 472. Midterm Examination. Monday Oct. 24, A. Huang

The Effect of Housing on Portfolio Choice. July 2009

A Log-Robust Optimization Approach to Portfolio Management

FINANCIAL ECONOMICS OPTION PRICING

Black Scholes Merton Approach To Modelling Financial Derivatives Prices Tomas Sinkariovas Words: 3441

Asset Management Contracts and Equilibrium Prices

The relationship between exchange rates, interest rates. In this lecture we will learn how exchange rates accommodate equilibrium in

Concentrated Stock Diversification Analysis

Behavior of Interest Rates

ANALYSIS AND MANAGEMENT

Optimal Consumption with Stochastic Income: Deviations from Certainty Equivalence

1. Present Value. 2. Bonds. 3. Stocks

The Equity Premium in India

An introduction to Value-at-Risk Learning Curve September 2003

Finance 400 A. Penati - G. Pennacchi Market Micro-Structure: Notes on the Kyle Model

CHAPTER 8 STOCK VALUATION

Chapter 2 Portfolio Management and the Capital Asset Pricing Model

Chapter 6 The Tradeoff Between Risk and Return

Review of Basic Options Concepts and Terminology

I.e., the return per dollar from investing in the shares from time 0 to time 1,

Chapter 1 The Investment Setting

3 Introduction to Assessing Risk

The Valuation of Currency Options

Chapter 5. Risk and Return. Copyright 2009 Pearson Prentice Hall. All rights reserved.

Chapter 2: Binomial Methods and the Black-Scholes Formula

Final Exam Practice Set and Solutions

A Review of Cross Sectional Regression for Financial Data You should already know this material from previous study

Fixed and Variable Payout Annuities: How Optimal are Optimal Strategies?

Betting Strategies, Market Selection, and the Wisdom of Crowds

The Stability of Moving Average Technical Trading Rules on the. Dow Jones Index

Portfolio Characteristic Definitions

EQUITY STRATEGY RESEARCH.

LOGNORMAL MODEL FOR STOCK PRICES

Computer Handholders Investment Software Research Paper Series TAILORING ASSET ALLOCATION TO THE INDIVIDUAL INVESTOR

Practice Set #4 and Solutions.

Active Versus Passive Low-Volatility Investing

Reducing Active Return Variance by Increasing Betting Frequency

Additional Practice Questions for Midterm I

Chapter 9. The Valuation of Common Stock. 1.The Expected Return (Copied from Unit02, slide 36)

An Incomplete Market Approach to Employee Stock Option Valuation

Chapter 11. Topics Covered. Chapter 11 Objectives. Risk, Return, and Capital Budgeting

Chap 3 CAPM, Arbitrage, and Linear Factor Models

Concepts in Investments Risks and Returns (Relevant to PBE Paper II Management Accounting and Finance)

SAMPLE MID-TERM QUESTIONS

Transcription:

Agent-Based Computational Economics Overview of the Santa Fe Artificial Stock Market Model Leigh Tesfatsion Professor of Economics and Mathematics Department of Economics Iowa State University Ames, IA 50011-1070 1

Basic References (See Syllabus for Links) www.econ.iastate.edu/classes/econ308/tesfatsion/syl308.htm Ref.[1] ** L. Tesfatsion, "Stock Market Basics Ref.[2] ** L. Tesfatsion, "Rational Expectations, the Efficient Market Hypothesis, and the Santa Fe Artificial Stock Market Model Ref.[3] * L. Tesfatsion, "Detailed Notes on the Santa Fe Artificial Stock Market Model (NOTE: Ref.[3] contains a detailed glossary of terms. Also, the equation numbers below are the same as in Ref.[3].) Ref.[4] * R. Axtell, "ACE Financial Market Modeling, VII Trento Summer School, July 2006 Ref.[5] * B. LeBaron, Building the Santa Fe Artificial Stock Market, Working Paper, Brandeis University, June 2002. www.econ.iastate.edu/tesfatsi/buildingthesfasm.blebaron.pdf 2

Introduction: The Santa Fe Artificial Stock Market (SF-ASM) Model Originated in work at the Santa Fe Institute in late 1980s and early 1990s. Authors: Blake LeBaron (economics); W. Brian Arthur (economics); John Holland (psychology/ee/cs, and father of GAs); Richard Palmer (physics); Paul Taylor (computer science). 3

The SM-ASM Model Continued Seminal Research: One of the earliest attempts to construct a financial market model with heterogeneously learning traders. Relatively simple model that attempts to address several important and controversial questions in financial economics. Many modeling issues not satisfactorily resolved by the SF-ASM model have been taken up in later research (see Ref.[4]). 4

Basic Objectives of Authors Provide a test-bed for exploring the rational expectations hypothesis (REH, Ref.[2]) Consider a traditional stock market model with traders assumed to satisfy the REH Replace traditional REH traders with traders who learn to forecast stock prices over time Study dynamics around a well-studied REH equilibrium (fundamental pricing, Ref.[1]) 5

Basic Objectives Continued Examine whether the introduction of trader learning helps to explain empirical observations. In particular, does it help to explain well documented anomalies = deviations from fundamental stock pricing? Compare statistical characteristics of price and trading volume outcomes (model outcomes vs. actual empirical outcomes). 6

Basic Model Features (cf. Ref.[3]) Discrete-time model: t = 0,1,2, Market participants consist of N stock market traders plus an auctioneer KEY: Traders are identical except each trader individually forms expectations over time through inductive learning. Each trader has same initial wealth W 0 in the initial time period. 7

Basic Model Features Continued Financial assets available for purchase at beginning of each period t = [t,t+1): Risk-free asset F ( supply) paying a constant known 1-period net return rate r N shares of a risky stock A. EachE share pays an uncertain dividend d t+1 at the end of each period t (beginning of each period t+1); has an uncertain one-period net return rate R t over each holding period t. 8

Basic Model Features Continued Let p t denote the price of a share of the risky stock A at time t The expected net return rate R t on this share over period t (i.e. from time t to time t+1) is defined as R t = [p e t+1 -p t + d e t+1 ]/p t This definition implies that p t = [d e t+1 + pe t+1 ]/[1 + R t ] 9

Basic Model Features Continued The expected net return rate R t on a share of the risky stock A over period t satisfies: p t = [p e t+1 + de t+1 ]/[1 + R t ] Basic rule of thumb for an investor in period t: Given r = net return rate on the risk-free asset, SELL shares of A in period t if R t < r because this implies p t is GREATER THAN the current fundamental value of these shares: p f t = [p e t+1 + de t+1 ]/[1 + r] 10

Basic Model Features Continued Stock Dividend d t paid at beginning of each period t = [t,t+1) is generated by a random process unknown to the traders (see equ.(1) in Ref.[3]) Wealth-seeking traders have identical utility of wealth function U(W) exhibiting constant absolute risk aversion. 11

Basic Model Features Continued In beginning of each period t, each trader chooses a portfolio (X,Y), where X = holdings of risky stock A and Y=holdings of risk-free asset F. Each trader s objective in period t is to maximize his expected utility of wealth E U(W t+1 ) subject to the constraint (2) W t+1 = value in period t+1 of the asset portfolio (X,Y) purchased in period t 12

Basic Model Features Continued In beginning of each period t, each trader has a set of K if-then forecasting rules. Each forecasting rule forecasts the expected sum [p t+1 + d t+1 ] and generates an update of the rule s forecast variance. Forecast variance = a weighted average of a rule s past squared forecast errors (deviations between actual and forecasted price-plus-dividend sums). 13

Basic Model Features Continued Form of an if-then forecasting rule: Let VAR = Updated forecast variance; E[p t+1 + d t+1 ] = a[p t + d t ] + b. IF THEN Market state is in condition C Set values VAR,a,b 14

Basic Model Features Continued The specificity of a forecasting rule = number of specific conditions incorporated into its if condition statement C. A forecasting rule is activated if its if condition statement C matches the trader s current market state information. The fitness of a forecasting rule depends inversely on the rule s forecast variance (error rate) and inversely on its specificity (thus encouraging parsimonious info use). 15

Time Line of Activities in Period t Period-t dividend d t* is publicly posted. Each trader i=1,,n determines a forecast E[p t+1 + d t+1 ] = a [p t + d t ] + b as a function of the yet-to-be determined period-t market price p t. He then generates a demand function giving his expected-utility-maximizing share holdings X i as a function of p t : (5) X i = X i (p t ) 16

Time Line in Period t Continued Each trader i =1,,N submits his demand function to the Auctioneer, who determines the period-t market clearing price p t *: p t Fixed Aggregate Supply p t * Aggregate Demand Curve Σ X i = Σ X i (p t ) N X (shares of A) 17

Time Line in Period t Continued The Auctioneer publicly posts p t*. Each trader i purchases X i (p t* ). Each trader i uses (p t *,d t* ) to update the fitness of the forecasting rule he used in period t-1 to generate a forecast E[p t + d t ]. Each trader i with probability p then u updates his entire forecasting rule set via a genetic algorithm involving recombination, elitism, and mutation operations. 18

GA Classifier Learning Each trader i = 1,,N updates his set of forecasting rules with probability p u in each period t using a genetic algorithm (GA). Thus, updating of forecasting rule sets happens in different time periods for different traders p u is an important parameter determining the speed of learning. 19

GA Classifier Learning Continued Current market state 12-bit array Each bit position Distinct possible feature of the current market state Bit in kth position takes on value 1 if kth feature is true Bit in kth position takes on value 0 if kth feature is false 20

GA Classifier Learning Continued 12-bit array used to describe market state First six bit positions Fundamental Features Is the current market price above or below the fundamental price level in the previous time period? (six different discrepancy values) 21

GA Classifier Learning Continued Next four bit positions Technical Features Is the current market price above an n-period moving average of past prices? (four different values of n) Last two bit positions Fixed Bit Values (no information) 22

12-Bit Array for GA Classifier Learning Note on Rules 7-10: 7 MA = Moving Average = Weighted average of past observed prices Note on Rules 1-6: 1 pr/d > 1 if and only if p > [p+d]/(1+r), i.e., iff the current price p for a share of the risky stock A exceeds the fundamental value of this share realized in the previous time period. (Refer back to slide 10.) 23

GA Classifier Learning Continued Why this market state description? Permits testing for the possible emergence of fundamental trading (heavy reliance on first six bit positions) versus technical trading (heavy reliance on next four bit positions) versus uninformed trading (heavy reliance on the last two bit positions). 24

GA Classifier Learning Continued Each forecast rule if[c]-then[forecast this] is conditioned on a 12-bit market state C. Each bit in C has one of 3 possible values: 1 (true), 0 (false), or # (I don t t care). Specificity of C =number of 1 and 0 bits C matches actual 12-bit market state if: (a) C has a 1 or # symbol in every position the actual market state has a 1; (b) C has a 0 or # symbol in every position the actual market state has a 0. 25

Experimental Design Key Treatment Factor: Probability p u Controls when each trader updates their forecasting rule set in any given time period Slow-Learning Regime: p u = 1/1000 (GA learning invoked every 1000 trading periods on average for each trader) Medium-Learning Regime: p u = 1/250 (GA learning invoked every 250 trading periods on average for each trader) 26

Experimental Findings Slow-Learning Regime: p u = 1/1000 Simulated data resemble data generated for a rational expectations equilibrium (REE) benchmark for which 100% market efficiency holds by assumption. Medium-Learning Regime: p u = 1/250 Complex outcomes - market does not settle down to a recognizable equilibrium. Simulated data in accordance with many empirical anomalies (deviations from REH) seen in actual stock markets. 27

Frequency of Use of Technical Trading Bits 7-107 in REE vs. Complex Regimes 28

Final Remark For a balanced detailed critique of the Santa Fe Artificial Stock Market (SF-ASM), see the working paper by Blake LeBaron at the pointer below. In this paper, LeBaron discusses the advantages and disadvantages of various design aspects of the SF- ASM, including the use of classifier systems for the representation and evolution of forecasting rules. Ref.[5] * B. LeBaron, Building the Santa Fe Artificial Stock Market, Working Paper, Brandeis University, June 2002. www.econ.iastate.edu/tesfatsi/buildingthesfasm.blebaron.pdf 29