30 December 2025 · 4 min read
Modeling of Monetary Financial Flows in System Dynamics
A monetary financial model of a small open economy, built with stock-flow consistent and system dynamics methods. It tracks how public and private debts interact, and how public debt relates to the profits of firms.
Published in
Bykov, P. (2025). Modeling of monetary financial flows in system dynamics. ACTA VŠFS, 19(2), 177–203. doi.org/10.37355/acta-2025/2-05The model describes a small open economy with six sectors. They are the central bank, the government, banks, households, firms and the rest of the world. Stocks are the items of the consolidated sector balance sheets. Flows are the accounting operations that change those stocks. One time unit equals one quarter.
The model follows the stock-flow consistent framework of Godley and Lavoie (2007) and is written as a system dynamics model in continuous time. Behavioural equations govern spending, credit, borrowing and taxation. The interest rate closes the main balancing loop of the model. It reacts to the inflation gap, the output gap and the balance of credit demand and supply.
Every financial asset is someone else’s liability, so each instrument summed across all sectors gives zero. For a sector balance sheet with assets \(A\), liabilities \(L\) and equity \(E\) the same rule holds.
Here \(B_{j,s}\) is the holding of instrument \(j\) by sector \(s\). An asset enters with a plus sign and a liability with a minus sign.
Balance sheet and transactions
Table 1 shows the balance sheet matrix and Table 2 the transaction flow matrix. Point at a row to see that it sums to zero.
| Instrument | HH | F | B | CB | G | RoW | Σ |
|---|---|---|---|---|---|---|---|
| Household deposits, HH | +HH | −HH | 0 | ||||
| Firm deposits HF | +HF | −HF | 0 | ||||
| Gov. deposits at CB HG | −HG | +HG | 0 | ||||
| Bank reserves R | +R | −R | 0 | ||||
| Loans to firms LF | −LF | +LF | 0 | ||||
| Loans to households LHH | −LHH | +LHH | 0 | ||||
| Government bonds B | +B | −B | 0 | ||||
| Nostro accounts HBROW | +HBROW | −HBROW | 0 | ||||
| CB FX reserves FXCB | +FXCB | −FXCB | 0 | ||||
| Σ | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Source: Author.
| Flow | HH | F | B | CB | G | RoW | Σ |
|---|---|---|---|---|---|---|---|
| Wages, W | +W | −W | 0 | ||||
| Consumption, C | −C | +C | 0 | ||||
| Gov. spending, G | +G | −G | 0 | ||||
| Bank spending, CB | +CB | −CB | 0 | ||||
| Exports, MF | +MF | −MF | 0 | ||||
| Firm imports, MimpF | −MimpF | +MimpF | 0 | ||||
| HH imports, MHH | −MHH | +MHH | 0 | ||||
| HH taxes, TH | −TH | +TH | 0 | ||||
| Firm taxes, TF | −TF | +TF | 0 | ||||
| Interest on HH loans, ΦLHH | −ΦLHH | +ΦLHH | 0 | ||||
| Interest on firm loans, ΦLF | −ΦLF | +ΦLF | 0 | ||||
| Interest on bonds, ΦB | +ΦB | −ΦB | 0 | ||||
| Firm dividends, DF | −DF | +DF | 0 | ||||
| Bank dividends, DB | −DB | +DB | 0 | ||||
| Saving, S | SHH | SF | SB | 0 | SG | SROW | 0 |
| HH deposits, ΔHH | −ΔHH | +ΔHH | 0 | ||||
| Firm deposits, ΔHF | −ΔHF | +ΔHF | 0 | ||||
| TGA, ΔHG | +ΔHG | −ΔHG | 0 | ||||
| Reserves, ΔR | −ΔR | +ΔR | 0 | ||||
| Firm loans, ΔLF | +ΔLF | −ΔLF | 0 | ||||
| HH loans, ΔLHH | +ΔLHH | −ΔLHH | 0 | ||||
| Gov. bonds, ΔB | −ΔB | +ΔB | 0 | ||||
| Nostro, ΔHBROW | −ΔHBROW | +ΔHBROW | 0 | ||||
| Σ | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Source: Author.
Stocks
Each stock changes only through its inflows and outflows. Figure 1 shows the stocks and flows of the model. The stock equations below follow the Godley tables, sector by sector.
Click a stock to see what fills and drains it. Click a flow to see where it leaves one stock and enters another.
Central bank and government
Bank reserves \(R\) rise when the government spends or pays interest on its bonds. They fall when the government collects taxes or sells bonds. Government deposits \(H_G\) move the opposite way. The government finances its deficit by selling bonds \(B\).
Households
Household deposits \(H_H\) grow with wages \(W\) and new loans \(\Delta L_{\mathrm{HH}}\). They fall with consumption \(C\), taxes, interest \(I_{\mathrm{HH}}\), imports \(M_{\mathrm{HH}}\) and loan repayments \(R_{\mathrm{HH}}\).
Firms
Firm deposits \(H_F\) grow with new loans \(\Delta L_F\), consumption, government spending, bank spending \(C_B\) and exports \(M_F\). They fall with wages, interest \(I_F\), dividends \(D_F\), imports and loan repayments \(R_F\).
Banks
Nostro accounts \(H_{\mathrm{BROW}}\) are the claims of domestic banks on the foreign banking system. They grow with exports and fall with imports and with dividends paid abroad. Net financial assets of banks \(B_E\) grow with interest on loans and fall with bank spending and dividends.
Rest of the world
Output, credit and the interest rate
GDP is the turnover of the firms’ deposits. Wages, government spending and taxes are fixed shares of GDP.
Firms borrow the smaller of their loan demand \(\mathit{DL}_F\) and the loan supply of banks \(\mathit{SL}_B\). Banks lend up to a leverage multiple of their net financial assets. Households borrow a fixed share of GDP. Both sectors repay a fixed share of their debt in each period.
Interest is paid on government bonds and on new loans.
Growth comes from net new credit. The output gap is the deviation of growth from its steady state. Inflation follows a simple Phillips curve.
The effective interest rate is the central bank rate plus a market component. The market component accumulates two terms. The Taylor gap weighs the inflation gap and the output gap. The credit gap \(\Delta r\) compares the loan demand of firms and new government bonds with the loan supply of banks.
The interest rate closes the balancing loops B1 and B4. Figure 2 shows all feedback loops of the model. Switch them on and off, or follow one through the diagram.
Spending, trade and profits
Households spend a share of their deposits that moves with the inflation gap. Banks spend a fixed share of their net financial assets.
Exports and imports are shares of GDP.
Profits of firms \(F_p\) and of banks \(B_p\) set the dividends paid to foreign owners.
Parameters and initial values
All stocks are in millions of Czech crowns. Flows and ratios are unitless proportions. Table 3 lists the values of the baseline scenario on the scale of the paper. The Ravel file holds the same values multiplied by 1,000.
| Symbol | Meaning | Type | Value |
|---|---|---|---|
| \(H_H\) | Household deposits | Stock | 5000 |
| \(H_F\) | Firm deposits | Stock | 1500 |
| \(H_G\) | Government deposits at the central bank | Stock | 300 |
| \(R\) | Bank reserves | Stock | 1000 |
| \(H_{\mathrm{BROW}}\) | Nostro accounts | Stock | 800 |
| \(\mathit{FX}_{\mathrm{CB}}\) | Central bank FX reserves | Stock | 3000 |
| \(L_F\) | Loans to firms | Stock | 3500 |
| \(L_{\mathrm{HH}}\) | Loans to households | Stock | 2000 |
| \(B\) | Government bonds | Stock | 3300 |
| \(H_{\mathrm{ROW}}\) | Assets of the rest of the world | Stock | 8000 |
| \(L_{\mathrm{ROW}}\) | Liabilities of the rest of the world | Stock | 3000 |
| \(E_{\mathrm{ROW}}\) | Net financial assets of the rest of the world | Stock | 5000 |
| \(B_E\) | Net financial assets of banks | Stock | 4100 |
| \(F_E\) | Net financial assets of firms | Stock | −2000 |
| \(\mathit{HH}_E\) | Net financial assets of households | Stock | 3000 |
| \(G_E\) | Net financial assets of the government | Stock | −3000 |
| \(\mathit{CB}_E\) | Net financial assets of the central bank | Stock | 1000 |
| \(\mathit{BD}_{\mathrm{rat}}\) | Dividend ratio of banks | Parameter | 0.05 |
| \(\beta_{\mathrm{HH}}\) | Borrowing ratio of households | Parameter | 0.003 |
| \(\beta^{\max}\) | Maximum borrowing ratio of firms | Parameter | 0.06 |
| \(\beta_S\) | Sensitivity of firm borrowing to the interest rate | Parameter | 0.015 |
| \(\rho_F\) | Repayment rate of firms | Parameter | 0.04 |
| \(\rho_{\mathrm{HH}}\) | Repayment rate of households | Parameter | 0.02 |
| \(E_{\mathrm{rat}}\) | Exports to GDP | Parameter | 0.6 |
| \(\mathit{FD}_{\mathrm{rat}}\) | Dividend ratio of firms | Parameter | 0.6 |
| \(\mathit{GR}_{ss}\) | Steady-state growth rate | Parameter | 0.06 |
| \(I_{\mathrm{rat}}^{F}\) | Imports of firms to GDP | Parameter | 0.07 |
| \(I_{\mathrm{rat}}^{\mathrm{HH}}\) | Imports of households to GDP | Parameter | 0.05 |
| \(\pi_{ss}\) | Inflation target | Parameter | 0.004 |
| \(r_{\mathrm{market}}\) | Market component of the interest rate, initial value | Parameter | 0.01 |
| \(r^{\mathrm{CB}}\) | Central bank policy rate | Parameter | 0.01 |
| \(\kappa_r\) | Sensitivity of the market rate to the credit gap | Parameter | 0 |
| \(\mathit{Lev}_r\) | Leverage ratio of banks | Parameter | 8 |
| \(\Phi_p\) | Price sensitivity to the output gap | Parameter | 0.03 |
| \(S_B\) | Spending rate of banks | Parameter | 0.005 |
| \(g_s\) | Government spending to GDP | Parameter | 0.18 |
| \(S_{\mathrm{HH}}\) | Spending rate of households | Parameter | 0.035 |
| \(\tau\) | Tax rate | Parameter | 0.15 |
| \(V_F\) | Turnover ratio of firm deposits | Parameter | 0.3 |
| \(W_s\) | Wage share of GDP | Parameter | 0.6 |
| \(a_p\) | Central bank response to the inflation gap | Parameter | 0.03 |
| \(a_y\) | Central bank response to the output gap | Parameter | 0.01 |
| \(\lambda_{\mathrm{inf}}\) | Sensitivity of consumption to the inflation gap | Parameter | 0.15 |
Source: Author.
Scenarios and simulation
One time unit equals one quarter and the baseline runs for 30 quarters. The relative error is 0.01 and the absolute error 0.001. The solver is a fourth-order Runge–Kutta method with no implicit solver.
The boom scenario raises the export-to-GDP ratio from 0.6 to 0.8 and the borrowing capacity of firms from 0.06 to 0.14. It also lowers the repayment rate of firms slightly.
The negative shock scenario cuts the export ratio to 0.43 and the turnover of firms to 0.3. The wage share rises to 0.6. Credit is tightened through a lower maximum borrowing fraction of 0.08, and the tax rate is 0.21.
Results
The three scenarios suggest that public debt may positively influence the financial position of the private sector in a small open economy. In the baseline, rising government debt goes together with rising net financial assets of firms and a gradual fall in their borrowing. The boom scenario strengthens these patterns. In the negative shock scenario, lower government debt and weaker external demand reduce the net financial assets of firms and their borrowing.
The results are highly sensitive to the foreign sector. Even a modest external shock reshapes the sector balance sheets of a small open economy.
Model code and data
References
- Bykov, P. (2025). Modeling of monetary financial flows in system dynamics. ACTA VŠFS, 19(2), 177–203. https://doi.org/10.37355/acta-2025/2-05
- Godley, W., & Lavoie, M. (2007). Monetary economics: An integrated approach to credit, money, income, production and wealth. Palgrave Macmillan.