26
Effect of Learning and Market Structure on Price Level and Volatility in a Simple Market Walt Beyeler 1 Kimmo Soramäki 2 Robert J. Glass 1 1 Sandia National Laboratories 2 Helsinki University of Technology www.soramaki.net Sixth International ISDG Workshop Sixth International ISDG Workshop Rabat, Morocco September 5-8 2007 Rabat, Morocco September 5-8 2007 The views expressed in this presentation are those of the authors and do not necessarily reflect those of their institutions

Effect of Learning and Market Structure

Embed Size (px)

DESCRIPTION

We want to understand how real markets operate, and how their behavior is influenced by the various factors adduced to explain non-ideal behavior, such as volatility with exogenous shocks and endogenous features.

Citation preview

Page 1: Effect of Learning and Market Structure

Effect of Learning and Market Structureon

Price Level and Volatilityin a

Simple MarketWalt Beyeler1

Kimmo Soramäki2

Robert J. Glass1

1Sandia National Laboratories

2Helsinki University of Technology

www.soramaki.net

Sixth International ISDG WorkshopSixth International ISDG WorkshopRabat, Morocco September 5-8 2007Rabat, Morocco September 5-8 2007

The views expressed in this presentation are those of the authors and do not necessarily reflect those of their institutions

Page 2: Effect of Learning and Market Structure

Motivation and Objectives

Infrastructures deliver basic commodities, such as electric power, petroleum products, food, telecommunications, and money

Markets are widely and increasingly used for allocation Markets communicate and reflect the stresses on the system Disruptions in the operation of markets, or the composition and

disposition of participants, can create extraordinary stresses

We want to understand how real markets operate, and how their behavior is influenced by the various factors adduced to explain non-ideal behavior, such as volatility:

Exogenous shocks – classical economic explanation Endogenous features

Market structure – e.g. Doyne Farmer Participant beliefs – e.g. herding

Page 3: Effect of Learning and Market Structure

• Traders transfer a unit of a commodity once, at most, in each of a series of trading periods

• In each period …– Traders are paired in a continuous double auction market.

One or several rounds of bidding take place in each period– In each round r a trader k posts an order to buy or to sell at a

discrete price level of their choosing. – Orders enter in a random sequence. The current best buy

and sell orders on the book determine the match price – Traders choose a role and a price to maximize their expected

utility.

Formulation - Overview

krx ,

Page 4: Effect of Learning and Market Structure

Formulation Overview

Utility ofTrading at each

Price

ExogenousValuation

Shock

Probabilityof Trading

at each Price

Buy or SellOffer withMaximumExpected

Utility

ContinuousDoubleAuction

Other Traders’Offers

Outcome ofOffer

ChangesProbabilities

Page 5: Effect of Learning and Market Structure

Market Structure

Pric

eBroker’s Book

Sel

l O

ffer

sB

uy

Off

ers

Trade Price

Traders’Orders

Gap

Page 6: Effect of Learning and Market Structure

is the utility for completing a trade at price x given valuation v:– If they decide to buy– If they decide to sellwith the actual trading price, trade cost

is the utility for failing to trade:– 0 for the final bidding round– for earlier rounds

Formulation - Utility

trtrr uxTPxuxTPxu ))((1()())(()( ))(( xTPr

)(xut

tu

Traders choose a role and a price to maximize their expected utility. The expected utility for an order at x in round r is

where is the estimated probability for trading at price x in round r. Separate probability estimates are made for buying and selling.

tt cvxxu ˆ)(tt cxvxu ˆ)(

))((max 1 xurx

tc

Page 7: Effect of Learning and Market Structure

• Traders track the performance of their orders at each price level to estimate the probabilities that orders at any price level will be matched.

• They model matching as a random process with an unknown probability. Counts of successes and trials let them estimate this probability.

• Orders and their outcomes at one price level give information about the outcomes of proposals that might have been made:– Matched orders would have been matched at better prices

too– Unmatched orders would also have failed at worse prices

Probability Estimates Define Trader’s Beliefs

Page 8: Effect of Learning and Market Structure

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2

Price

Est

imat

ed P

rob

abili

ty

Initial Estimate

Probability of Buying

Probability of Selling

Learning by Updating Probability Estimates

GenerousBids

Succeed

GreedyOffers

Fail

Page 9: Effect of Learning and Market Structure

Example Expected Utility Calculation

0

0.2

0.4

0.6

0.8

1

-2 -1 0 1 2Price

Est

imat

ed P

roba

bilit

y

Probability ofBuying

Probability ofSelling

-4

-3

-2

-1

0

1

2

3

4

-2 -1 0 1 2

Price

Util

ity o

f T

rad

ing

Utility of Buying

Utility of Selling

-1

-0.5

0

0.5

1

Price

Util

ity o

f S

ell

Offer

-1

-0.5

0

0.5

1

Price

Util

ity o

f Buy

Offe

r

X

Valuation v = 1.5

Page 10: Effect of Learning and Market Structure

Input Summary• Inputs varied to study the effect of the three factors of

interest:– Market efficiency: number of rounds and transaction cost– Imperfect and heterogeneous information: uninformed traders

(trader lifetime)– Exogenous valuation shocks: individual and common element

• Other key inputs– 100 traders– 21 price levels from -2 to 2– 2000 trading periods

Page 11: Effect of Learning and Market Structure

Input Details

Factor Influencing Price

Model Parameter Cases or Values Considered

Exogenous Shocks Range of Individual Shocks (-20,20), (-5,5),(-0.5,0.5)

Range of Common Shocks (-1,1),(-0.5,0.5),(0,0)

Market Efficiency Transaction Cost 0,0.1

Number of market rounds per trading period

1, 2, 5

Trader Information Use

Average trader lifetime 100, 500, infinite

Page 12: Effect of Learning and Market Structure

Key Outputs

• Indicators of market efficiency– standard dev. of average daily trade prices– average gap between buy and sell offers that are

matched– daily trade volume

Page 13: Effect of Learning and Market Structure

Results – No common shockTrading Volume, Standard Deviation of Price, Average Price Gap

Common Shock =0, Infinite Lifetime

Individual Shock Range

0.5 5 20

Number of Rounds 1 44.900

45.50.2090.57

45.80.7202.00

2 44.500

45.40.1550.36

45.70.5261.44

5 43.600

45.40.0530.02

46.20.1980.48

•Traders can learn to trade in one round, but efficiency improves with more rounds•Traders cope with large shocks by making more attractive orders

Page 14: Effect of Learning and Market Structure

Results – Trade Volume for One Round

0

10

20

30

40

50

60

0 500 1000 1500 2000

Trading Period

Ave

rag

e T

rad

e P

rice

Shock=0.5

Shock=5

Shock=20

Larger shockslead to fasterapproach tomarket clearing

Page 15: Effect of Learning and Market Structure

Trading Range is Much Narrower than Range of Individual Shocks

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2

Price

Est

imat

ed P

rob

abili

ty

Buying, Shock=20

Selling, Shock=20

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2

Price

Est

imat

ed P

rob

abili

ty

Buying, Shock=20

Selling, Shock=20

Buying, Shock=5

Selling, Shock=5

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2

Price

Est

imat

ed P

rob

abili

ty

Buying, Shock=20

Selling, Shock=20

Buying,Shock=0.5

Selling, Shock=0.5

Page 16: Effect of Learning and Market Structure

Market Rounds Shape Probability Estimates

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2

Price

Est

imat

ed P

rob

abili

tyProbability of Buying, Cycle 1

Probability of Selling, Cycle 1

Probability of Buying, Cycle 2

Probability of Selling, Cycle 2

Probability of Buying and Selling in the First 2 Rounds of a 5-round Trader

Almost All Trades Happen in the First Round

Page 17: Effect of Learning and Market Structure

Results – No common shockTrading Volume, Standard Deviation of average daily price, Average

Price Gap Common Shock =0, 500 Period Lifetime

(with comparison values for Common Shock=0, Infinite Lifetime)

Individual Shock Range

0.5 5 20

Numberof

Rounds

1 39.2 (44.9)

0.001 (0)

0.001 (0)

44.1 (45.5)

0.139 (0.209)

0.34 (0.57)

44.9 (45.8)

0.481 (0.720)

1.20 (2.00)

2 35.0 (44.5)

0.010 (0)

0.003 (0)

43.5 (45.4)

0.080 (0.155)

0.05 (0.36)

45.5 (45.7)

0.254 (0.526)

0.60 (1.44)

5 36.4 (43.6)

0.007 (0)

0.003 (0)

43.2 (45.4)

0.067 (0.053)

0.02 (0.02)

44.9 (46.2)

0.110 (0.198)

0.05 (0.48)

Finite lifetime can lead to less price variability

Page 18: Effect of Learning and Market Structure

Results – No common shockTrading Volume, Standard Deviation of Price, Average Price Gap

Common Shock =0, 100 Period Lifetime(with comparison values for Common Shock=0, Infinite Lifetime)

Individual Shock Range

0.5 5 20

NumberOf

Rounds

1 26.2 (44.9)

0 (0)

0 (0)

36.6 (45.5)

0.105 (0.209)

0.232 (0.57)

38.2 (45.8)

0.186 (0.720)

0.424 (2.00)

2 26.5 (44.5)

0.002 (0)

0 (0)

35.9 (45.4)

0.052 (0.155)

0.052 (0.36)

37.8 (45.7)

0.113 (0.526)

0.238 (1.44)

5 25.9 (43.6)

0.003 (0)

0.001 (0)

35.6 (45.4)

0.052 (0.053)

0.026 (0.02)

38.4 (46.2)

0.079 (0.198)

0.039 (0.48)

… and ultimately to fewer trades

Page 19: Effect of Learning and Market Structure

Trade Prices Increase Over Time

-1.5

-1

-0.5

0

0.5

1

1.5

0 500 1000 1500 2000

Trading Period

Av

era

ge

Tra

de

Pri

ce

Shock=20

Shock=5

Page 20: Effect of Learning and Market Structure

Dynamics of Spreading Trade Prices

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

-2 -1 0 1 2Price

Es

tim

ate

d P

rob

ab

ility Buying after 2000

Periods

Selling after 2000Periods

Buying after 200Periods

Selling after 200Periods

1. Trades initially happen at prices near 0

2. Bad timing gives some traders information about the risk of bidding in the middle

3. Large shocks make higher bids (lower offers) more attractive than the formerly successful bids

4. Higher bidding by them lowers the probability that others will succeed at that price

Page 21: Effect of Learning and Market Structure

Results – Trading CostsTrading Volume, Standard Deviation of Price, Average Price Gap

Common Shock =0, Infinite Lifetime, Trading cost = 0.1 (with comparison values for Common Shock=0, Infinite Lifetime)

Individual Shock Range

0.5 5 20

NumberOf

Rounds

1 36.3 (44.9)

0 (0)

0 (0)

44.9 (45.5)

0.194 (0.209)

0.519 (0.570)

45.5 (45.8)

0.728 (0.720)

2.00 (2.00)

2 36.1 (44.5)

0 (0)

0 (0)

44.4 (45.4)

0.106 (0.155)

0.156 (0.36)

45.2 (45.7)

0.542 (0.526)

1.42 (1.44)

5 35.7 (43.6)

0 (0)

0 (0)

45.4 (45.4)

0.066 (0.053)

0.03 (0.02)

45.8 (46.2)

0.167 (0.198)

0.38 (0.48)

•Trading costs deter a few trades, especially at low shock ranges

Page 22: Effect of Learning and Market Structure

Results – Common shockTrading Volume, Standard Deviation of Price, Average Price Gap

Common Shock =0.5, Infinite Lifetime(with comparison values for Common Shock=0, Infinite Lifetime)

Individual Shock Range

0.5 5 20

NumberOf

Rounds

1 21.4 (44.9)

0.236 (0)

0.104 (0)

45.1 (45.5)

0.25 (0.209)

0.65 (0.57)

45.8 (45.8)

0.73 (0.720)

1.98 (2.00)

2 23.3 (44.5)

0.256 (0)

0.122 (0)

44.8 (45.4)

0.176 (0.155)

0.40 (0.36)

45.7 (45.7)

0.58 (0.526)

1.50 (1.44)

5 24.0 (43.6)

0.260 (0)

0.145 (0)

44.3 (45.4)

0.065 (0.053)

0.02 (0.02)

46.1 (46.2)

0.17 (0.198)

0.44 (0.48)

•Common shock suppresses volume of trade and increases variance•Effect is larger when the common shock is large relative to the individual shocks

Page 23: Effect of Learning and Market Structure

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2

Price

Est

imat

ed P

rob

abili

ty

Buying, Common Shock=0

Selling, Common Shock=0

Buying, Common Shock=1

Selling, Common Shock=1

Results – Common Shock Produces More Aggressive Pricing

Page 24: Effect of Learning and Market Structure

Results – Common shockTrading Volume, Standard Deviation of Price, Average Price Gap

Common Shock =1, Infinite Lifetime(with comparison values for Common Shock=0, Infinite Lifetime)

Individual Shock Range

0.5 5 20

NumberOf

Rounds

1 0 (44.9) 0 (0)

0 (0)

43.4 (45.5)

0.384 (0.209)

0.57 (0.57)

45.7 (45.8)

0.745 (0.720)

2.02 (2.00)

2 0 (44.5)

0 (0)

0 (0)

43.2 (45.4)

0.332 (0.155)

0.36 (0.36)

45.5 (45.7)

0.565 (0.526)

1.51 (1.44)

5 0 (43.6)

0 (0)

0 (0)

43.8 (45.4)

0.076 (0.053)

0.02 (0.02)

46.0 (46.2)

0.223 (0.198)

0.55 (0.48)

•Trading is completely disrupted when it drives everyone to one or the other role

Page 25: Effect of Learning and Market Structure

Observations

• Traders “learn” to complete a large number of trades in almost all conditions

• Trade prices settle in a narrow range relative to independent shocks

• More rounds lead to more pairing opportunities and narrower price ranges, as expected

• Trading prices increase with time as traders explore boundaries and exploration changes outcome probabilities. Prices are narrower when traders forget

• Common shocks can disrupt trading when their magnitude matches individual shocks

• Probability Estimates -> Behavior -> New Estimates

Page 26: Effect of Learning and Market Structure

Complex endogenous dynamics

Utility ofTrading at each

Price

ExogenousValuation

Shock

Probabilityof Trading

at each Price

Buy or SellOffer withMaximumExpected

Utility

ContinuousDoubleAuction

Other Traders’Offers

Outcome ofOffer

ChangesProbabilities