Error: Javascript scripting is disabled
K+S Interbank


Name of the model: K+S model with Interbank System.

Reference paper: Gianluca Pallante, Mattia Guerini, Mauro Napoletano and Andrea Roventini. "Mitigating Systemic Risk and Financial Contagion: An Agent-Based Model Exploration", LEM Working Papers Series, Forthcoming.

Scope/Motivation: The KS model with interbank market features a parsimonious mechanism (see Functioning section) that leads to the emergence and the evoution of an interbank network within an economy characterized by endogenous technical change, Minskyan credit dynamics and a financing through money creation model. The model assesses how microprudential and macroprudential policies may tame the effects of increasing systemic risk.


The model, building on the K+S ABM, introduces an explicit payment system between the economic agents, managed by banks, eventually leading to an endogenous formation of an interbank network. Particularly, in the model, if firms carry out their payments (consumption-good firms buying machineries from capital-good firms), the interbank exchanges of cash reserves are opened and closed within a single simulation period. The bank advances such resources at the beginning of the period and recovers them at the end of the same period. However, every time a consumption good firm becomes insolvent, the advances of cash reserves made by the buyer's bank to seller's one will result in an interbank position that cannot be immediately closed and persists over time.


This reduced-form mechanism allows for the endogenous formation of an interbank network without imposing restrictive behavioural assumptions. Notwithstanding its simplicity, the model is able to generate a sizable volume of interbank assets/liabilities that are dynamically consistent with recent empirical evidence. If banks use the same Network Valuation (NEVA) to assess their own exposure, losses due to contagion and bank defaults are systematically lower. In turn, the lower financial instability due to the application of the NEVA leads to higher economic growth and a more stable macroeconomic performance

Policy Questions & Implications

Macroprudential policy: What is the role of more/less stringent capital requirements on the stability of the banking system? Do they make the latter more/less exposed to external shocks? What is the systemic risk counterpart of this policy?

Microprudential policy: Is it possible for banks to appropriately weight their exposure on interbank markets, so to be less exposed to contagion effects? Does an individual and limited-information evaluation of interbank claims (NEVA) contain the systemic risk’s effects?

Interaction micro- and macro-prudential: The Network Valuation mechanisms (NEVA) is a micro-prudential tool that also achieves global stability. What are the outcomes in terms of macroeconomic and financial stability?

Policy implication: A common method to evaluate interbank exposure that does not need full and global information about the network structure, would lead to considerable improvements in terms of financial stability and macroeconomic performance.


1) A baseline simulation takes approximatively 40 seconds to run (the progress bar is currently not available).

1) The model is simulated along 300 time steps. The parameter _timeSteps_ is set equal to 300 by default.



Parameter Description Type Range Value
flag_NEVA Interbank Network Valuation is used for: a) both warning (behavioral) device and leverage decisions (= 3); b) only leverage decisions (= 2) real 2-3
flag_adjusted_leverage Banks credit supply: a) does not weight risky interbank assets (=0); b) does weight risky interbank assets (=1) real 0-1
bankmarkdown Affects the margin that banks have on collected deposits real 0.3-0.4
centralbankmarkdown Affects the margin that the central bank has on her deposits real 0.2-0.3
ib_markdown Affects the margin that banks have on interbank transactions real 0.1-0.16
bankmarkup Mark-up on baseline interest rate charged to borrowing firms real 0.09-0.13
credit_multiplier Binding capital requirement for banks real 0.05-0.125
wu Unemployment subsidy rare (share of income) real 0.8-1
aliq Tax rate of profits real 0.1-0.3

Simulation settings

Parameter Description Type Range Value
_timeSteps_ Number of time steps to perform the simulation integer 1-100000
_numRuns_ Number of times to repeat the simulation (Monte Carlo experiment) integer 1-100000
_rndSeed_ First seed to be used to initialize the pseudorandom number generator integer 1-100000



Simulation not started

Elapsed time



Available time series

Variable Description Selected
gdp Gross Domestic Output (in real terms)
inv_real Total Investments (in real terms)
unemp Unemployment rate
Gbailout_all Bailout costs (share of GDP)
BadDebt_all Total value of banks' non-performing loans
IB_exp_tot Total Interbank Exposure
loss_all Interbank Losses due to contagion effects
countbf_all2 Number of bank defaults
BankEquity_all Total value of banks' equity
BankProfits_all Total value of banks' profits.

Time step range

MC plot bands

Scale options


Results status

Simulation not run

Date & time





Press the button below to reset your session. Please note that all unsaved configuration or execution results will be irreversibly lost.


Configuration section

The Configuration section allows the user to control many of its parameters, initial conditions and general simulation settings. From now on, each set of values to all the required parameters, initial conditions and simulation settings is defined as one model configuration. Every time the user initiates a new LSD web interface (LWI) session, the default model configuration is automatically loaded. From the Configuration section, the user can change any value, load a saved configuration or save the current configuration to her computer.

Configuration values can be of three types: real (floating point) numbers, integer numbers and discrete options (like yes/no). All values have predefined ranges (maximum and minimums or a set of options) and the user is not allowed to input values outside such ranges (an error message is produced).

Please note that not all combinations of configuration values may be adequate for the proper model operation. If unexpected results are obtained after changing several values at once, please try to restore some of them to the default configuration (by pressing the Default button besides any changed value) and execute the simulation again.

Model parameters

Model parameters are predefined and fixed values that are used to compute the model equations. For instance, the user can change parameters to modify simulated agent’s behavioural rules or the applicable institutional rules.

Initial conditions

Model initial conditions are the values assumed for variables which lagged values are required by the computation of model equations when the simulation starts.

Simulation settings

Simulation settings are values defining the operation of the simulation. timeSteps control the simulation time span. numRuns define how many times the simulation is run (repeated), which allows the analysis of the results as a Monte Carlo experiment. rndSeed controls the initialization of the pseudo-random number generator (PRNG). When multiple simulation runs are set, the PRNG seed is increased by one each time.

Saving the current configuration

At any moment while in the Configuration section, the user has the option to save the current configuration. The configuration is always saved to the user’s computer disk/storage as it is not possible to save it in the LWI server. It is important to regularly save any changes made to the default configuration, as any unsaved information is irreversibly lost whenever the user session expires or is reset (by clicking on Reset Session in Reset section).

To save the current configuration, simply click on Download in Configuration section. A dialog window will open, asking for the name and the destination folder of the configuration file. Configuration files have CSV (comma-separated values) format and “.csv” extension.

Loading an existing configuration

An existing configuration file, previously saved using the Download option, can be loaded at any time, by clicking on Upload in Configuration section. A dialog window will ask for the file containing the saved configuration, assuming the default “.csv” extension.

Resetting all configuration values to the defaults

Clicking Reset All replaces the current configuration values with the default ones. Be careful to use it if you have configuration changes to be saved, as the existing values are lost. If required, click on Download before using this option.

Execution section

The Execution section controls the execution of the simulation model in the LWI server. Model execution can take from a few seconds to several minutes, according to the selected configuration, in particular the chosen numbers of simulation time steps and runs.

Starting a simulation run

As soon as the user finishes the configuration of the model in the Configuration section, it is possible to start the execution by clicking on Start in the Execution section.

Stopping an unfinished simulation run

At any time the user may interrupt the simulation by clicking in Abort in the Execution section. Stopping the execution before the Status box shows “Simulation completed” aborts the simulation and no data is saved for analysis.

Checking the status of a running simulation

While the execution is going on, “Simulation running” is show in the Status box in the Execution section, together with the elapsed time. User can execute only one simulation instance at a time.

Viewing the simulation log

If there is any error preventing the simulation execution to complete, the Status box will show “Simulation failed” and the execution will be aborted and no data is saved for analysis. User can click on Log in Execution section to check the causes of the failure.

Analysis section

After the execution of the simulation model, when status box in the Execution section shows “Simulation completed”, the produced simulation time series will be available in the Analysis section.

The time series list

The user can select one or more series in time series list to be used when using the command buttons. Clicking once selects the time series and an additional click deselects it.

The time steps range selector

By default the commands in the Analysis section operate over all simulation time steps, from t = 1 to the number of time steps defined in the Configuration section. The user has the option to restrict the range of time steps to use in the analysis, by changing the default values in the Selected Time Steps box.

The scale options

The Scale box provide configuration to the scaling of the vertical axis of time series plots. The Auto option uses auto scaling to show the entire data range present in the series. The Manual option allows the user to select the minimum and maximum values for the vertical axis. The Log option uses a logarithmic scale (natural base) for the vertical plot axis, descriptive statistics and data table, instead of a linear one (Linear option).

The Monte Carlo (MC) plot bands

The MC-band options provide extra information for multi-run simulation plots. MC-bands are only available when numRuns, in Configuration section, is set to more than one run (at least 10 runs are recommended for sensible results). The Confidence option add a standard 95% confidence interval band to each series selected to plot. The Max-min option a band from the minimum to the maximum values obtained in the set of simulation runs.

Showing descriptive statistics

Clicking on Statistics in Analysis section creates a new browser window showing some descriptive statistics for the selected time series, including the mean, the standard deviation, the minimum and maximum values, the number of observations, and the Monte Carlo standard error (when the number of simulation runs is larger than one). If Log is selected, log values (natural base) are used in computations.

Creating data tables

Clicking on Data in Analysis section creates a new browser window containing a table with the selected time series in the columns and the time step values in the rows. If Log is selected, log values (natural base) are presented. At least one and up to 15 series can be selected at a time. However, multiple data windows may be open at any time.

Plotting time series

Clicking on Plot in Analysis section creates a new browser window with the selected time series plots. The horizontal axis represents the simulation time steps and the vertical axis, the selected series values. At least one and up to 15 series can be selected at a time. However, multiple data windows may be open at any time.

Export section

After an LWI simulation is successfully executed, the user can download the entire results data as (compressed) text file(s) in CSV (comma-separated values) format. CSV-formatted files can be easily imported in any numerical analysis software, like spreadsheets or statistical packages. File is compressed (zip format) only when there are results from more than one simulation run.

Saving the current configuration

As soon as simulation execution is finished, the results data file can be downloaded to the user’s computer. It is not possible to permanently save simulation results in the LWI server, so it is important to save relevant results before they are irreversibly lost whenever the user session expires or is reset (by clicking on Reset Session in Reset section).

To download any available results data, simply click on Download in Export section. A dialog window will open, asking for the name and the destination folder of the data file(s). Results files have the “.csv” extension by default and may be grouped inside a single compressed file with “.zip” extension.

The LWI data export format

LWI results data files may be zip compressed to allow downloading multiple files. Zip files can be easily decompressed in any platform.

Uncompressed CSV files are comma-separated text files. Columns contain single variables while lines represent variables values at each time step. However, the first line has a special meaning, being the first time step values located in the second line and so on. The first line contains the columns headers with the names of the variables in each column.

Reset section

The Reset Session button discards any changes made by the user, including configurations, running simulations or results data, and initiates a new LWI session. All configuration values entered by the user is lost. Any executing simulation is aborted and the results, lost.


Do you want to ask a question or inform a problem? Please send us a message.

Copyright © 2021 LSD Team

Powered by Chart.js, w3.css, LSD

Disclaimer: The information and views set out in this software are those of the author(s) and do not necessarily reflect the official opinion of the LSD Team. The LSD Team does not guarantee the accuracy of the data provided. Neither LSD Team nor any person acting on the Team’s behalf may be held responsible for the use which may be made of the information contained therein.

Copyright Notice: This Model is property of the respective authors. The Model is protected by copyright laws, trademark and design rights. Any unauthorized use of the Model will be considered a violation of the authors’ intellectual property rights. The Model may not be copied, distributed, published or used in any way, in whole or in part, without prior written agreement from the authors, except as otherwise allowed by the agreed Conditions of Use.

No Warranties: this site, the associated model and its results are provided “as is” without any express or implied warranty of any kind including warranties of non-infringement of intellectual property or fitness for any particular purpose. In no event shall the authors or its suppliers and partners be liable for any damages whatsoever (including, without limitation, damages for loss of profits or loss of information) arising out of the use of or inability to use the information provided on this site, even if the authors or its suppliers and partners have been advised of the possibility of such damages. Because some jurisdictions prohibit the exclusion or limitation of liability for incidental or consequential damages, some of the above limitations may not apply to you.