|
|
||
|
This simulation visualizes Ray Dalio's "Economic Machine"—a control theory model demonstrating how debt cycles drive economic booms and busts. The economy is visualized as a mechanical system: money flows through pipes to spin a gear (GDP), debt accumulates in a tank, and the system can crash when debt overflows. The simulation uses a Control Theory Model with continuous feedback loops. The economy is visualized as a mechanical system where:
Mathematical FoundationThe Economic Machine model is a discrete-time solver for a system of coupled Ordinary Differential Equations (ODEs) using Euler's Method for numerical integration. While the code looks like simple variable updates (`+=`), it is mathematically implementing differential equations that govern the economy. The simulation models three coupled ODEs: 1. The GDP Equation (Exponential Relaxation / First-Order Linear ODE): dv/dt = (F - v) / τ Where v is GDP Velocity, F is the Input Force (Money Supply / 10 + Base Productivity - Interest Rate / 5), and τ is the Time Constant (0.05 in discrete form).
In code: Physics Meaning: This creates "Inertia." The economy cannot instantly jump to a new speed; it must accelerate towards it. This lag is what causes policy errors (over-correction). 2. The Debt Equation (Accumulation / Integral ODE): dD/dt = v × f(r) × α - β Where D is Total Debt, v is GDP velocity, f(r) is the Interest Rate factor ((20 - r) / 20), α is the Accumulation Rate (0.02), and β is the Repayment Rate (0.05).
In code: Physics Meaning: This is an integral. The level of fluid (Debt) is the integral of the flow rate over time. Debt accumulates when GDP is high and interest rates are low, and drains naturally at a constant rate. Why Interest Rates Have an Inverse Relationship with Debt AccumulationThis model uses Ray Dalio's "Short Term Debt Cycle" approach, which models the incentive to borrow (new credit creation), not the compound interest cost on existing debt. There are two different ways to view interest rates: 1. The "Credit Card" View (Intuitive): High interest rates mean existing debt grows faster because interest payments are high. This is what happens to your personal credit card balance. 2. The "Macroeconomic" View (This Model): Low interest rates act as "Cheap Fuel," incentivizing businesses and people to take out NEW loans. This models the behavior of the entire economy, not individual debtors. The Logic of This Model: "The Incentive to Borrow" In this simulation, the Interest Rate controls the Valve for new borrowing, not the interest accumulating on the existing debt pile. The equation term f(r) = (20 - r) / 20 creates an Inverse Relationship: Scenario A: Free Money (0% Interest): f(0) = (20 - 0) / 20 = 1.0 (100% Open Valve) Result: Because money is "free," everyone borrows to buy houses, stocks, and factories. The "Debt Tank" fills up rapidly because of New Borrowing. This simulates the 2000s housing bubble or the 1920s stock market boom. Scenario B: Tight Money (20% Interest): f(20) = (20 - 20) / 20 = 0.0 (Valve Closed) Result: Money is too expensive. Nobody takes out a new loan. The "Debt Tank" stops filling because new borrowing ceases. This simulates the 1980s Volcker era or the European debt crisis. Why GDP Velocity (v) is in the Debt EquationThe term v × f(r) × α implies that Debt grows fastest during a Boom. The Speculative Bubble Effect:
Summary for Mental Model:
3. The Inflation Equation (Newton's Law of Cooling / Lumped Capacitance Model): dT/dt = Q - k × T Where T is Inflation Heat, Q is the heat generation rate (from monetization and high GDP), and k is the cooling constant (0.2).
In code: Physics Meaning: Heat naturally dissipates if you stop adding energy. This creates the "cooling off" period required between bursts of money printing. When monetization stops, inflation cools down over time. Heat Generation Threshold: Heat starts generating passively when GDP velocity exceeds 8 (lowered from 10 for sensitivity). This represents the Phillips Curve effect: pushing for maximum growth inevitably generates inflation. With Money Supply at 100%, GDP velocity reaches ~10.5, generating passive heat of (10.5 - 8) × 0.2 = 0.5 per frame. Combined with reduced cooling (0.2 instead of 0.3), heat now accumulates during normal booms, not just when monetizing.
The Cycles: The simulation models two types of debt cycles:
The Debt Cycle MechanismDalio's Economic Machine models how debt cycles drive economic booms and busts. The simulation demonstrates three key phases: 1. The Short-term Debt Cycle (Boom → Bust → Recovery):
Critical Understanding: Debt is Destroyed, Not Repaid During a crash, debt decreases via Default, not Repayment. This is a fundamental difference:
In the simulation, when the debt tank "drains" during a crash, it represents bankruptcies and defaults, not people working hard to pay off loans. The fast-draining liquid represents assets being destroyed. This is why the GDP gear stops spinning—the economy suffers from the defaults. The Sediment Problem: Even though debt crashes down rapidly during defaults, it stops when it hits the Sediment layer. This represents debt that cannot be defaulted on:
This is why the "Long Term Debt Cycle" is harder to manage—even after massive crashes, the debt floor (sediment) remains high and continues to grow. 2. The Long-term Debt Cycle (Sediment Accumulation): After each crash, not all debt drains. Some debt "hardens" into "sediment" at the bottom of the tank. This sediment represents long-term structural debt that persists across cycles. Each cycle adds more sediment, reducing the available capacity for future growth. Eventually, the tank becomes mostly sediment, making the economy extremely fragile. 3. Beautiful Deleveraging (Monetization): The only way to reduce sediment (long-term debt) without crashing the economy is through "monetization"—the central bank essentially "prints money" to reduce debt levels. However, this generates inflation heat. If the heat exceeds 100%, the currency collapses (hyperinflation game over). The challenge is to balance debt reduction with inflation control. The Control Theory ModelThis simulation uses a control theory approach—continuous feedback loops with lag effects:
Why Control Theory? The economy is a complex feedback system. Control theory models capture the dynamic interactions between money supply, interest rates, GDP, debt, and inflation. Unlike equilibrium models, control theory shows how the system behaves over time, including the inevitable cycles. Real-World Examples
The LessonThe Economic Machine demonstrates that short-term fixes create long-term problems. Increasing money supply boosts GDP immediately, but fills the debt tank. Low interest rates make borrowing attractive, accelerating debt accumulation. Eventually, the system becomes so fragile that even small shocks trigger crashes. The only escape is "Beautiful Deleveraging"—careful monetization that reduces debt without destroying the currency.
50
5.0%
GDP Velocity:
0.0
Total Debt:
0/100
Sediment (Long-term):
0
Inflation Heat:
0%
Cycle Count:
0
Status:
Normal
SYSTEM DERIVATIVES
dv/dt (Growth):
+0.000
dD/dt (Debt Flow):
+0.000
dT/dt (Heat):
+0.000
GDP vs Debt vs Inflation Over Time
Usage ExampleFollow these steps to explore Ray Dalio's Economic Machine and understand debt cycles:
ParametersFollowings are short descriptions on each parameter
Buttons and ControlsFollowings are short descriptions on each control
Interaction and Visualization
|
||