Home /Modules/stanford-math/EQUATIONS-FINANCE.md

EQUATIONS-FINANCE.md

stanford-math/EQUATIONS-FINANCE.md · 219 line(s) · markdown

Finance & Economics Canon

50 equations, sourced from SMFinanceCanon.sleela -- the single source of truth. This document is a human-readable mirror of that record; if the two ever disagree, the .sleela canon wins and this file is stale.

The foundational equations behind money, capitalism, and credit -- the equation of exchange and the quantity theory of money, the time value of money (compounding, discounting, annuities), asset pricing (CAPM, beta, Sharpe, Markowitz), corporate finance (Modigliani-Miller, WACC, Gordon growth), fixed income (bond pricing, duration), macroeconomics (Phillips curve, Taylor rule, Solow growth), and operations economics (Little's Law). Each row credits the economist and year as the record gives them, with a one-line note on why it matters.

The one hard rule governs every row: values are faithful to the subject's real origin where publicly known; diffuse or unknown attributions are marked honestly (unknown, classical, attrib.), never invented to look legitimate. Symbolic forms use plain-ASCII notation (^ power, * product, sqrt, sum, Greek names spelled out) so they stay greppable and diff-friendly. The Why it matters column states each result's significance in one faithful line.

The 50 equations

#EquationFormFieldDiscoverer(s)YearWhy it matters
1Equation of exchange (quantity theory of money)M V = P Tmonetary economicsIrving Fisher1911Ties money and velocity to prices and output; the core identity of monetary economics and inflation.
2Compound interestA = P (1 + r/n)^(n t)financeclassical; mercantile practiceunknownInterest earning interest -- the exponential engine of saving, debt, and the whole credit system.
3Continuous compoundingA = P e^(r t)financeclassical (Euler's e)unknownThe limit of ever-more-frequent compounding; the natural-exponential form used throughout finance.
4Present value (discounting)PV = sum_{t} CF_t / (1 + r)^tfinanceclassical; Fisher (formalized)1930A future dollar is worth less today; the single most important idea in valuation.
5Future value of an annuityFV = C ((1 + r)^n - 1) / rfinanceclassical actuarial practiceunknownValues a stream of equal payments; the basis of loans, mortgages, and pensions.
6Perpetuity valuePV = C / rfinanceclassicalunknownPrices a cash flow that never ends; the simplest valuation formula and a building block for others.
7Gordon growth (dividend discount)P = D1 / (r - g)corporate financeMyron J. Gordon1959Prices a stock from its growing dividends; a cornerstone of equity valuation.
8Fisher equation (nominal vs real rate)1 + i = (1 + r)(1 + pi) ~ i = r + pimonetary economicsIrving Fisher1930Separates real return from inflation; how interest rates and inflation relate.
9Money multiplierm = 1 / rr (reserve ratio rr)monetary economicsclassical; Phillips (formalized)1920How reserves expand into the broader money supply; the mechanics of bank-created credit.
10Capital Asset Pricing Model (CAPM)E[R_i] = R_f + beta_i (E[R_m] - R_f)asset pricingWilliam Sharpe; Lintner; Mossin1964Prices risk: expected return rises with market risk (beta); the foundation of modern asset pricing (Sharpe's Nobel).
11Beta (systematic risk)beta_i = Cov(R_i, R_m) / Var(R_m)asset pricingWilliam Sharpe1964Measures how much an asset moves with the market; the risk that cannot be diversified away.
12Modigliani-Miller (irrelevance, no tax)V_levered = V_unleveredcorporate financeModigliani & Miller1958In a frictionless market, capital structure does not change firm value; the starting point of corporate finance (two Nobels).
13Weighted average cost of capitalWACC = (E/V) r_E + (D/V) r_D (1 - Tc)corporate financestandard corporate financeunknownThe blended cost of a firm's debt and equity; the discount rate for corporate investment decisions.
14Bond price (discounted cash flows)P = sum_{t} C / (1 + y)^t + F / (1 + y)^nfixed incomeclassical valuationunknownA bond is the present value of its coupons and face value; the basis of all fixed-income pricing.
15Macaulay durationD = (1/P) sum_{t} t * CF_t / (1 + y)^tfixed incomeFrederick Macaulay1938The weighted-average time to a bond's cash flows; the standard measure of interest-rate sensitivity.
16Sharpe ratioS = (R_p - R_f) / sigma_pportfolio theoryWilliam Sharpe1966Return earned per unit of risk; the most widely used measure of investment performance.
17Markowitz portfolio variancesigma_p^2 = sum_i sum_j w_i w_j Cov(R_i, R_j)portfolio theoryHarry Markowitz1952Diversification quantified: portfolio risk depends on covariances, not just individual risks (Markowitz's Nobel).
18Put-call parityC - P = S - K e^(-r T)mathematical financeclassical; Stoll (formalized)1969A no-arbitrage link between calls, puts, and the underlying; a bedrock relation in options markets.
19Okun's lawdU ~ -c (g_Y - g_bar)macroeconomicsArthur Okun1962Links the output gap to unemployment; an empirical rule of thumb in macroeconomics.
20Phillips curvepi = pi_e - a (u - u_n)macroeconomicsA. W. Phillips1958The short-run trade-off between inflation and unemployment; central to monetary-policy debate.
21Taylor rulei = r* + pi + a_pi (pi - pi*) + a_y (y - y*)monetary policyJohn B. Taylor1993A formula for setting interest rates from inflation and output gaps; a benchmark for central banks.
22Cobb-Douglas production functionY = A K^alpha L^(1 - alpha)economic growthCobb & Douglas1928Output from capital and labor with constant returns; the workhorse production function in economics.
23Solow growth (steady state)s f(k) = (n + delta) keconomic growthRobert Solow1956Explains long-run growth and convergence from saving and capital; the founding model of growth theory (Solow's Nobel).
24Marginal cost = marginal revenueMC = MR (profit-maximizing output)microeconomicsclassical marginalism (Cournot)1838The profit-maximizing rule for any firm; the heart of microeconomic decision-making.
25Little's Law (throughput-inventory)L = lambda W (avg inventory = throughput * avg flow-time)operations economicsJohn D. C. Little1961Inventory equals throughput times flow-time; the exact, proven sense in which the pace of a system is set by how much is in it -- the real backbone of the 'speed of the economy' idea.
26Black-Scholes deltadelta_call = N(d1)option GreeksBlack; Scholes; Merton1973The option price's sensitivity to the underlying; the primary hedge ratio.
27Black-Scholes gammagamma = N'(d1) / (S sigma sqrt(T))option GreeksBlack; Scholes; Merton1973The rate of change of delta; measures hedging instability near the strike.
28Black-Scholes vegavega = S N'(d1) sqrt(T)option GreeksBlack; Scholes; Merton1973Sensitivity of option value to volatility; the key risk in volatility trading.
29Black-Scholes thetatheta = -(S N'(d1) sigma)/(2 sqrt(T)) - r K e^(-r T) N(d2)option GreeksBlack; Scholes; Merton1973The option's time decay; how value erodes as expiry approaches.
30Binomial option pricing (CRR)C = e^(-r dt)[p Cu + (1-p) Cd]derivatives pricingCox; Ross; Rubinstein1979Prices options on a discrete price tree; an intuitive route to Black-Scholes.
31Black-76 (futures option)C = e^(-r T)[F N(d1) - K N(d2)]derivatives pricingFischer Black1976Adapts Black-Scholes to options on futures and forwards; standard in commodities and rates.
32Forward price (cost of carry)F = S e^((r - q) T)derivatives pricingclassical (no-arbitrage)unknownSets the no-arbitrage forward price from spot and carry costs; a basic pricing identity.
33Covered interest rate parityF/S = (1 + r_d)/(1 + r_f)international financeJohn Maynard Keynes1923Links forward and spot FX rates to interest differentials; a core no-arbitrage condition.
34Vasicek short-rate modeldr = a(b - r) dt + sigma dWfixed incomeOldrich Vasicek1977A mean-reverting model of interest rates; an early tractable term-structure model.
35Cox-Ingersoll-Ross modeldr = a(b - r) dt + sigma sqrt(r) dWfixed incomeCox; Ingersoll; Ross1985A short-rate model keeping rates non-negative; widely used in fixed income.
36Merton structural credit modelequity = call option on firm assetscredit riskRobert C. Merton1974Treats equity as a call on firm assets; the foundation of structural credit risk.
37Modified durationModDur = MacaulayDur / (1 + y/k)fixed incomeFrederick Macaulay (basis)1938A bond's price sensitivity to yield; the primary interest-rate risk measure.
38Bond convexityC = (1/P) d2P/dy2fixed incomeclassicalunknownThe curvature of the price-yield relation; refines duration for large yield moves.
39Yield to maturity (IRR of bond)P = sum CF_t / (1 + y)^tfixed incomeclassicalunknownThe single discount rate equating price to cash flows; a bond's internal rate of return.
40Fama-French three-factor modelR - Rf = a + b(Rm-Rf) + s SMB + h HMLasset pricingFama; French1993Explains returns by market, size, and value factors; a benchmark of empirical asset pricing.
41Arbitrage pricing theory (APT)E[R] = Rf + sum beta_k lambda_kasset pricingStephen Ross1976Prices assets by exposure to multiple risk factors; a flexible alternative to CAPM.
42Jensen's alphaalpha = R_p - [Rf + beta(Rm - Rf)]performance measurementMichael Jensen1968Return beyond what beta predicts; the classic measure of manager skill.
43Treynor ratioT = (R_p - Rf) / beta_pperformance measurementJack Treynor1965Excess return per unit of systematic risk; a risk-adjusted performance measure.
44Sortino ratioS = (R_p - R_target) / downside deviationperformance measurementFrank Sortino1980Excess return per unit of downside risk; penalizes only harmful volatility.
45Value at Risk (parametric)VaR = mu - z_alpha sigmarisk managementJ.P. Morgan (RiskMetrics)1994A loss threshold at a confidence level; a standard regulatory risk metric.
46GARCH(1,1) variancesigma_t^2 = omega + alpha e_{t-1}^2 + beta sigma_{t-1}^2financial econometricsTim Bollerslev1986Models time-varying, clustering volatility; the workhorse of financial econometrics.
47Rule of 72 (doubling time)t_double = 72 / r%personal financeLuca Pacioli (attrib.)1494Estimates doubling time by dividing 72 by the rate; a quick compounding heuristic.
48Dividend payout / retentiong = ROE * retention ratiocorporate financeclassicalunknownSustainable growth equals return on equity times retention; a corporate-finance identity.
49Economic order quantity (EOQ)Q* = sqrt(2 D S / H)operations economicsFord W. Harris1913The order size minimizing inventory cost; the founding formula of inventory theory.
50Herfindahl-Hirschman indexHHI = sum s_i^2industrial organizationHerfindahl; Hirschman1945Market concentration from summed squared shares; a standard antitrust measure.

Validate

These equations are compiled, not just documented. Build the source compiler, then check and run the sibling demo (which prints every entry and the running total across all canons):

SLEELA_LIB="$PWD/stanford-math" impl/build/sleela check stanford-math/SMArchive.sleela
SLEELA_LIB="$PWD/stanford-math" impl/build/sleela run   stanford-math/SMArchive.sleela

Sources & attribution

Names, forms, discoverers, and years follow the standard history-of-science / history- of-economics record; the Why it matters notes summarize each result's established significance. See SMProvenance.sleela for the tiered source registry and the repo README.md for per-class integrity goals. This archive records and attributes published results; it does not originate, own, or certify them.

Definitions & relevance (second-layer additions)

The entries below are the second-layer additions to this canon, organized by type. Each gives a short definition (what the quantity is and what its symbols mean) and its relevance (why it is foundational to quantitative finance and economics).

Option Greeks (Black-Scholes sensitivities)

Black-Scholes delta — delta_call = N(d1). The sensitivity of an option's price to a small move in the underlying asset; it equals the number of shares needed to hedge one option. It is the primary hedge ratio and the first Greek any options desk monitors.

Black-Scholes gamma — gamma = N'(d1) / (S sigma sqrt(T)). The rate of change of delta as the underlying moves, largest near the strike and near expiry. It measures how unstable a hedge is and therefore how often a position must be rebalanced.

Black-Scholes vega — vega = S N'(d1) sqrt(T). The sensitivity of option value to a change in volatility. It is the key risk for volatility trading and the link between option prices and the market's view of future uncertainty.

Black-Scholes theta — theta = -(S N'(d1) sigma)/(2 sqrt(T)) - r K e^(-r T) N(d2). The option's time decay — how value erodes as expiry approaches with all else fixed. It is central to the economics of holding options, the cost paid for optionality over time.

Derivatives pricing

Binomial option pricing (CRR) — C = e^(-r dt)[p Cu + (1-p) Cd]. Prices an option by stepping back through a discrete tree of up/down moves using risk-neutral probabilities. It is an intuitive, flexible route to Black-Scholes that also handles early exercise, making it a teaching and pricing staple.

Black-76 (futures option) — C = e^(-r T)[F N(d1) - K N(d2)]. Adapts Black-Scholes to options written on a forward or futures price. It is the market standard for interest-rate caps/floors, swaptions, and commodity options.

Forward price (cost of carry) — F = S e^((r - q) T). The no-arbitrage forward price equals the spot grown at the financing rate net of any yield q. It is a foundational replication identity: it must hold or a riskless arbitrage exists.

Fixed income

Covered interest rate parity — F/S = (1 + r_d)/(1 + r_f). The forward exchange rate is pinned by the interest-rate differential between two currencies. It is one of the most reliable no-arbitrage conditions in international finance.

Vasicek short-rate model — dr = a(b - r) dt + sigma dW. Models the short interest rate as mean-reverting with constant volatility. It was an early tractable term-structure model and remains a reference point for interest-rate modeling.

Cox-Ingersoll-Ross model — dr = a(b - r) dt + sigma sqrt(r) dW. A mean-reverting short-rate model whose square-root diffusion keeps rates non-negative. It is widely used in fixed income and (in the same form) in stochastic-volatility models.

Modified duration — ModDur = MacaulayDur / (1 + y/k). The percentage change in a bond's price for a small change in yield. It is the primary first-order measure of interest-rate risk.

Bond convexity — C = (1/P) d2P/dy2. The curvature of the price–yield relationship, correcting duration for larger yield moves. It matters because it captures the asymmetry that benefits bondholders when rates swing.

Yield to maturity (IRR of bond) — P = sum CF_t / (1 + y)^t. The single discount rate that equates a bond's price to the present value of its cash flows. It is the standard summary of a bond's return if held to maturity.

Credit & asset pricing

Merton structural credit model — equity is a call option on the firm's assets struck at its debt. Default occurs when assets fall below liabilities at maturity. It is the foundation of structural credit risk and of distance-to-default measures.

Fama-French three-factor model — R - Rf = a + b(Rm-Rf) + s SMB + h HML. Explains asset returns by exposures to the market, a size factor (SMB), and a value factor (HML). It is the empirical benchmark that reshaped asset pricing after CAPM.

Arbitrage pricing theory (APT) — E[R] = Rf + sum beta_k lambda_k. Prices assets by their exposures to several systematic risk factors, derived from no-arbitrage rather than from a single market portfolio. It is the flexible, multi-factor alternative to CAPM.

Performance measurement

Jensen's alpha — alpha = R_p - [Rf + beta(Rm - Rf)]. The return earned beyond what CAPM predicts for a portfolio's risk. It is the classic measure of manager skill (or luck).

Treynor ratio — T = (R_p - Rf) / beta_p. Excess return per unit of systematic risk (beta). It is relevant for ranking well-diversified portfolios whose only remaining risk is market risk.

Sortino ratio — S = (R_p - R_target) / downside deviation. Like the Sharpe ratio but penalizing only downside volatility relative to a target. It matters when investors care about losses, not symmetric variation.

Risk, econometrics & operations

Value at Risk (parametric) — VaR = mu - z_alpha sigma. The loss threshold that will not be exceeded at a stated confidence level over a horizon. It became the dominant regulatory and reporting risk metric, for all its known limitations.

GARCH(1,1) variance — sigma_t^2 = omega + alpha e_{t-1}^2 + beta sigma_{t-1}^2. Models volatility that clusters and mean-reverts, with today's variance built from yesterday's shock and variance. It is the workhorse of financial econometrics and volatility forecasting.

Rule of 72 (doubling time) — t_double = 72 / r%. A mental-math estimate of how long money takes to double at a given compound rate. Its relevance is pedagogical and practical: it makes the power of compounding tangible.

Dividend payout / retention — g = ROE * retention ratio. A firm's sustainable growth rate equals its return on equity times the fraction of earnings retained. It is a core identity linking payout policy to growth.

Economic order quantity (EOQ) — Q* = sqrt(2 D S / H). The order size that minimizes the sum of ordering and holding costs. It is the founding result of inventory theory and a staple of operations economics.

Herfindahl-Hirschman index — HHI = sum s_i^2. Market concentration measured as the sum of squared market shares. It is a standard antitrust screen for market power and merger review.