import React from 'react'; import { BookOpen, X, Landmark, Percent, Activity, Coins, Home, ShieldAlert } from 'lucide-react'; import 'katex/dist/katex.min.css'; import { BlockMath, InlineMath } from 'react-katex'; interface MacroMathModalProps { isOpen: boolean; onClose: () => void; } export default function MacroMathModal({ isOpen, onClose }: MacroMathModalProps) { React.useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { if (e.key === 'Escape') { onClose(); } }; if (isOpen) { window.addEventListener('keydown', handleKeyDown); } return () => { window.removeEventListener('keydown', handleKeyDown); }; }, [isOpen, onClose]); if (!isOpen) return null; return (
{/* Modal Header */}

English Quantitative Macroeconomic & Credit Handbook

Institutional Strategy & Asset Allocation Manual

{/* Modal Body */}
{/* Executive Summary */}

Executive Overview

This handbook serves as the mathematical and logical blueprint for the Macroeconomic & Credit Data Silo. It provides quantitative definitions and asset allocation rationale for the 21 indicators compiled in our hybrid engine. By tracking central bank balance sheets, sovereign yields, corporate credit spreads, consumer delinquency vectors, and housing credit velocity, the system constructs a multi-layered diagnostic scanner to forecast macroeconomic regime transitions and evaluate systemic market risk.

{/* Section 1: The Buffett Indicator */}

1. Equity Valuation & Macro Capacity (The Buffett Indicator)

The Buffett Indicator measures the aggregate valuation of the corporate sector relative to the total economic output of the nation. It represents a top-down capacity gauge, evaluating whether financial markets have expanded beyond their structural macroeconomic foundation:

Buffett Ratio Equation:

Where:
- (originally FRED Series ID: 'WILL5000PR') represents the price performance of all active US equities. Due to the discontinuation of Wilshire series on FRED in June 2024, the S&P 500 index ('SP500') scaled by 1000 serves as the active proxy.
- is nominal US GDP (FRED Series ID: 'GDPA').

Strategic Rationale: A Buffett Ratio exceeding 150% indicates extreme historical overvaluation, signaling that corporate equity valuations are unsustainable compared to the real economic cash flows generated by the underlying economy. Under such conditions, long-term expected equity returns tend to compress towards zero or negative territory, prompting the system to lower equity beta weightings.

{/* Section 2: Federal Reserve Net Liquidity Proxy */}

2. Monetary Liquidity & Central Bank Reserves

While the headline balance sheet represents raw central bank asset size, financial markets react Endogenously to the net volume of reserves circulating within the commercial banking system. We model this using the Net Fed Liquidity Proxy:

Net Liquidity Equation:

Where:
- represents Total Federal Reserve Assets (the asset side of the Fed Balance Sheet).
- represents the Treasury General Account balance (the US Government's cash account held at the Federal Reserve).
- represents the Reverse Repurchase Agreement facility usage volume (liquidity parked overnight by money market funds at the Fed).

Liquidity Dynamics: An increase in (Quantitative Easing) injects reserves into the banking system. Conversely, when the Treasury increases the balance or when money market funds park cash in the , liquidity is drained from active circulation. A shrinking Net Liquidity Proxy acts as a powerful brake on risk assets (Equities & Cryptocurrencies), whereas expanding liquidity acts as a tailwind.

{/* Section 3: Sovereign Yield Spreads */}

3. Sovereign Yield Curves & Term Structures

The sovereign yield curve reflects market expectations of economic growth, monetary policy, and risk premiums. The primary spread used to measure structural inversion is the 2S10S spread:

2S10S Spread Equation:

Where:
- is the nominal yield of the 10-Year United States Treasury Bond.
- is the nominal yield of the 2-Year United States Treasury Note.

Inversion & Un-Inversion: A negative spread () represents an inverted yield curve, which has historically preceded US economic recessions. The "un-inversion" process, where the spread returns to positive territory, typically occurs during late-cycle phases or central bank pivot periods, signaling imminent macroeconomic contraction as short-term yields fall rapidly in anticipation of rate cuts.

{/* Section 4: Burry's Consumer Distress Mechanics */}

4. Consumer Credit Distress (Burry's Distress Mechanics)

Popularized by macroeconomic analysts such as Michael Burry, the retail consumer distress engine evaluates the health of consumer balance sheets by measuring the rate of credit defaults relative to the liquid cushion of household savings:

Consumer Credit Distress Index (CDI):

Where:
- measures the delinquency rate on credit card loans at top 100 commercial banks (FRED Series ID: 'DRCCLACBS').
- represents personal savings as a percentage of disposable personal income (FRED Series ID: 'PSAVERT').

Macroeconomic Implications: Personal savings act as the primary shock absorber for the consumer. When the Savings Rate collapses (depleting liquid assets) while Credit Card Delinquencies simultaneously spike, it indicates that households are using high-interest credit card debt to sustain normal consumption. This divergence leads to structural consumer exhaustion and credit defaults, forming a leading indicator of an economic downturn.

{/* Section 5: Real Estate & Housing Credit Layer */}

5. Real Estate & Housing Credit Velocity

The real estate sector represents the most interest-rate-sensitive component of the economy. Credit cycles within this layer are monitored via three interconnected indicators:

I. Housing Starts (Baubeginne) [FRED: HOUST]: Measures the annualized number of new residential construction projects. Because home building requires significant upfront debt capital and permits, a decline in Housing Starts serves as a leading indicator of tightening bank credit and weakening capital investment.
II. Mortgage Applications Index Proxy [FRED: MORTGAGE30US]: Tracks the weekly demand for residential purchase mortgages. Because direct MBA applications index data is proprietary, the system computes a mortgage application index proxy derived from the 30-Year Fixed Rate Mortgage Average: .
III. Case-Shiller Home Price Index [FRED: CSUSHPISA]: Measures US residential asset price appreciation. Housing represents the largest asset class on household balance sheets. A decline in the Case-Shiller index causes a negative wealth effect, lowering consumer confidence and eroding mortgage collateral backing bank assets.
); }