Payment System Simulations @ Central Bank of Bolivia

23
Payment System Simulations Simulation analysis and stress testing of payment networks – Session 2 Kimmo Soramäki [email protected], www.fna.fi Presentation at Payments System Oversight Course Central Bank of Bolivia, La Paz 25 November 2011

description

Presentation at Payments System Oversight Course at Central Bank of Bolivia, La Paz, 25 November 2011

Transcript of Payment System Simulations @ Central Bank of Bolivia

Page 1: Payment System Simulations @ Central Bank of Bolivia

Payment System Simulations

Simulation analysis and stress testing of payment networks – Session 2

Kimmo Soramä[email protected], www.fna.fi

Presentation at Payments System Oversight CourseCentral Bank of Bolivia, La Paz25 November 2011

Page 2: Payment System Simulations @ Central Bank of Bolivia

• Payment simulations in policy and oversight

• Payment simulation research

• How to start simulation analyses?

Agenda

Page 3: Payment System Simulations @ Central Bank of Bolivia

What are simulations?

• Methodology to understand complex systems – systems that are large with many interacting elements and or non-linearities

• In contrast to traditional statistical models, which attempts to find analytical solutions 

• Usually a special purpose computer program that takes inputs, applies the simulation rules and generates outputs

• Stochastic or deterministic inputs

• Static, evolving or co-learning behavior

Page 4: Payment System Simulations @ Central Bank of Bolivia

Short history of simulations in Payment System Oversight/Policy • 1997 : Bank of Finland

– Uncover liquidity needs of banks when Finland’s RTGS system was joined with TARGET– See Koponen-Soramaki (1998)

• 2000 : Bank of Japan – Test features for BoJ-Net upgrade

• 2001 : CLS approval process and ongoing oversight– Test risk management– Evaluate settlement’ members capacity for pay-ins– Understand how the system works

• Since: Bank of Canada, Banque de France, Nederlandsche Bank, Norges Bank, Federal Reserve, and many others

• 2010 - : Bank of England new CHAPS– Evaluate alternative liquidity saving mechanisms– Use as platform for discussions with banks– Denby-McLafferty (2011 forthcoming)

Page 5: Payment System Simulations @ Central Bank of Bolivia

Framework

Source: Koponen-Soramäki (1997). Intraday liquidity needs in a modern interbank payment system - a Simulation Approach , Bank of Finland Studies in Economics and Finance 14.

Page 6: Payment System Simulations @ Central Bank of Bolivia

Enhance understanding of system mechanics

Evaluate alternative design features

Stress testing and liquidity needs

analysis

Platform for communication

among stakeholders

Why Simulate?

Topics

Page 7: Payment System Simulations @ Central Bank of Bolivia

Research

• Soramäki, Kimmo, M.L. Bech, J. Arnold, R.J. Glass and W.E. Beyeler (2007). "The Topology of Interbank Payment Flows". Physica A 379, pp. 317-333.

Models payment flows as graphs (“Network topology”)

• Beyeler, Walter, M.L Bech, R.J. Glass, and K. Soramäki (2007). "Congestion and Cascades in Payment Systems". Physica A 384(2), pp. 693-718.

Models payment flow mechanics (“System mechanics”)

• Galbiati, Marco and Kimmo Soramäki (2011). “Agent-based model of payment systems”. Journal of Economic Dynamics and Control 35(6), pp. 859-875.

Models bank’s decision-making (“Economic behavior”)

Page 8: Payment System Simulations @ Central Bank of Bolivia

Topology of interactions

Total of ~8000 banks66 banks comprise 75% of value25 banks completely connected

Degree distribution

Soramäki, Bech, Beyeler, Glass and Arnold (2006), Physica A, Vol. 379, pp 317-333.

Page 9: Payment System Simulations @ Central Bank of Bolivia

System mechanics

Bank i Bank j

Payment system

1 Agent instructs bank to send a payment

2 Depositor account is debited

Di Dj

5 Payment account is credited

4 Payment account is debited

Productive Agent Productive Agent

6 Depositor account is credited

Qi

3 Payment is settled or queued

Bi > 0 Qj

7 Queued payment, if any, is released

Qj > 0

Bi Bj

Central bank

Beyeler, Glass, Bech and Soramäki (2007), Physica A, 384-2, pp 693-718.

LiquidityMarket

Page 10: Payment System Simulations @ Central Bank of Bolivia

5 5 0 0

5 6 0 0

5 7 0 0

5 8 0 0

5 9 0 0

6 0 0 0

6 1 0 0

5 5 0 0 5 7 0 0 5 9 0 0 6 1 0 0

Instructions

Pay

men

ts

0

2 0 0 0

4 0 0 0

6 0 0 0

8 0 0 0

1 0 0 0 0

1 2 0 0 0

1 4 0 0 0

1 6 0 0 0

1 8 0 0 0

2 0 0 0 0

0 2 0 0 4 0 0 6 0 0 8 0 0 1 0 0 0 1 2 0 0 1 4 0 0 1 6 0 0 1 8 0 0 2 0 0 0

Time

0

2 0 0 0

4 0 0 0

6 0 0 0

8 0 0 0

1 0 0 0 0

1 2 0 0 0

1 4 0 0 0

1 6 0 0 0

1 8 0 0 0

2 0 0 0 0

0 2 0 0 4 0 0 6 0 0 8 0 0 1 0 0 0 1 2 0 0 1 4 0 0 1 6 0 0 1 8 0 0 2 0 0 0

Time

PaymentSystem

When liquidity is high payments are submitted promptly and banks process payments independently of each other

Instructions Payments

Summed over the network, instructions arrive at a steady rate

Liquidity

Beyeler, Glass, Bech and Soramäki (2007), Physica A, 384-2, pp 693-718.

Page 11: Payment System Simulations @ Central Bank of Bolivia

0

2 0 0 0

4 0 0 0

6 0 0 0

8 0 0 0

1 0 0 0 0

1 2 0 0 0

1 4 0 0 0

5 5 0 0 5 7 0 0 5 9 0 0 6 1 0 0

Instructions

Pay

men

ts

0

2 0 0 0

4 0 0 0

6 0 0 0

8 0 0 0

1 0 0 0 0

1 2 0 0 0

1 4 0 0 0

1 6 0 0 0

1 8 0 0 0

2 0 0 0 0

0 2 0 0 4 0 0 6 0 0 8 0 0 1 0 0 0 1 2 0 0 1 4 0 0 1 6 0 0 1 8 0 0 2 0 0 0

Time

Reducing liquidity leads to episodes of congestion when queues build, and cascades of settlement activity when incoming payments allow banks to work off queues. Payment processing becomes coupled across the network

PaymentSystem

Instructions Payments0

2 0 0 0

4 0 0 0

6 0 0 0

8 0 0 0

1 0 0 0 0

1 2 0 0 0

1 4 0 0 0

1 6 0 0 0

1 8 0 0 0

2 0 0 0 0

0 2 0 0 4 0 0 6 0 0 8 0 0 1 0 0 0 1 2 0 0 1 4 0 0 1 6 0 0 1 8 0 0 2 0 0 0

Time

1 E -0 4

0 .0 0 1

0 .0 1

0 .1

1

1 1 0 1 0 0 1 0 0 0 1 0 0 0 0

Cascade Length

Fre

qu

ency

Liquidity

Beyeler, Glass, Bech and Soramäki (2007), Physica A, 384-2, pp 693-718.

Page 12: Payment System Simulations @ Central Bank of Bolivia

System mechanics

Bank i Bank j

Payment system

1 Agent instructs bank to send a payment

2 Depositor account is debited

Di Dj

5 Payment account is credited

4 Payment account is debited

Productive Agent Productive Agent

6 Depositor account is credited

Qi

3 Payment is settled or queued

Bi > 0 Qj

7 Queued payment, if any, is released

Qj > 0

Bi Bj

Central bank

Beyeler, Glass, Bech and Soramäki (2007), Physica A, 384-2, pp 693-718.

LiquidityMarket

Page 13: Payment System Simulations @ Central Bank of Bolivia

• Simulations (e.g. e.g. Koponen-Soramaki 1998, Leinonen, ed. 2005, work at FRB, ECB, BoC, BoJ, BoE) have so far not endogenized bank behaviour

– behaviour has been assumed to remain unchanged in spite of other changes in the system

– or to change in a predetermined manner– due to the use of actual data, difficult to generalize

• Game theoretic models (e.g. Angelini 1998, Kobayakawa 1997, Bech-Garratt 2003) need to make many simplifying assumptions

– on settlement process / payoffs– topology of interactions– do not give quantitative answers

Simulations vs analytical models

Page 14: Payment System Simulations @ Central Bank of Bolivia

• Example: How much liquidity to post?

• Cost for a bank in a payment system depends on – Choice of liquidity and – Delays of settlement

• Banks liquidity choice depends on other banks’ liquidity choice

• We develop ABM – payoffs determined by a realistic settlement process – reinforcement learning– look at equilibrium

Economic behavior

Page 15: Payment System Simulations @ Central Bank of Bolivia

• Dynamic model of an RTGS interbank payment system with endogenous choices for funding by banks– Banks choose an opening balance at the beginning of each day.

Intraday payments are released whenever sufficient liquidity is available.

• Banks have knowledge of settlement costs given their own liquidity and liquidity of other banks– Delays are evaluated by means of a large number of simulations of

the “payment physics model” with different amounts of liquidity.

• Bank learn about the behavior of other banks, and choose their own liquidity to minimize costs– On each round, banks choose a “best reply” given beliefs about what

other banks choose. The beliefs are updated on subsequent rounds

• We look at both normal operating conditions and an operational failure by one bank

Funding behavior model

Page 16: Payment System Simulations @ Central Bank of Bolivia

• In the model– Banks face uncertainty about the actions of other banks– Banks adapt their actions over time, depending on observed

actions by others– This is modeled as fictitious play with given payoff functions – The game is played until convergence of beliefs takes place

• Properties of Fictitious play– If beliefs converge to 1 for some action, that action is a pure

Nash-equilibrium– If beliefs converge to a distribution, then that distribution is the

mixed Nash equilibrium of the game

• Our results– Beliefs converge mostly to a distribution, sometimes to a pure

equilibrium– Results report weighted average in case of mixed equilibria

Learning in the model

Page 17: Payment System Simulations @ Central Bank of Bolivia

Delays

Galbiati and Soramäki (2011), JEDC, Vol. 35, Iss. 6, pp 859-875

Page 18: Payment System Simulations @ Central Bank of Bolivia

Payoffs

• Recall, costs depend on own liquidity and others liquidity -> which jointly determine delays

• Red = high price for liquidity, Blue = low price for liquidity

Page 19: Payment System Simulations @ Central Bank of Bolivia

Liquidity demand curve

Page 20: Payment System Simulations @ Central Bank of Bolivia

How to start?

HR DATA TOOLS

Page 21: Payment System Simulations @ Central Bank of Bolivia

Data

• Historical transaction data– From interbank payment systems– At minimum: date, time, sender, receiver, value– More data on type of payment, economic purpose, second tier

(if any), type of institution, etc. useful

• Artificial transaction data– Based on aggregates (possible with Entropy maximization

methods)– Based on a network model (defining bilateral flows)– Assumptions

• Timing of payments• Value distribution• Correlations

– System stability (net flows 0 over longer times)

Page 22: Payment System Simulations @ Central Bank of Bolivia

Tools

• Bof-PSS2 – Bank of Finland, 1997- (BoF-PSS1) – RTGS, RRGS, Net, many optimization methods– www.bof.fi/sc/bof-pss– Free, Support & training available, Annual workshop

• FNA Flow– Soramaki Networks, 2009-– RTGS, RRGS, many optimization methods– www.fna.fi– Free online, License, Support & training available

• Proprietary tools or general purpose programs– Matlab, SAS, Excel, …

Page 23: Payment System Simulations @ Central Bank of Bolivia

Thank you

Kimmo Soramäki

[email protected]