MathFin
Map / Valuation · Black–Scholes and Bachelier / MathFin.Models.BlackScholes.BlackScholesSelfFinancing

The self-financing equation of the Black–Scholes delta hedge

MathFin.Models.BlackScholes.BlackScholesSelfFinancingMSC 91G20MSC 60H05JEL G13 source

BlackScholesHedge states the replication theorem in discounted terms: e^{−rt} C(t, S_t) = C(0, S₀) + ∫₀ᵗ Δ σ e^{−rs} S_s dB_s. This file turns it into the self-financing equation of the stock-and-bank portfolio, as an integral identity. With the undiscounted value V_t = C(t, S_t), the delta Δ_t = Φ(d₁(S_t, T − t)) and the bank position ψ_t = V_t − Δ_t S_t, almost surely, for all t ≤ T' at once (T' < T),

V_t = V₀ + (∫₀ᵗ Δ_s r S_s ds + ∫₀ᵗ Δ_s σ S_s dB_s) + ∫₀ᵗ r ψ_s ds,

with V₀ = (europeanCall K T).value (europeanCall_selfFinancing). The bracket is the gain ∫ Δ dS of holding Δ shares, dS = r S dt + σ S dB; the last term is the interest on the bank position. The stochastic integral is the library's predItoIntegral.

The proof undoes the discounting with Itô's formula for the finite-variation factor e^{rt}, applied to the discounted value, which is the Itô process localItoProcess of the delta-hedge integrand (capped in time so that its paths are continuous, timeCap): Itô's formula for f(t, x) = e^{rt} x (ito_formula_adapted_unbounded_process) gives V_t = V₀ + ∫₀ᵗ r V_s ds + ∫₀ᵗ e^{rs} H_s dB_s, where H is the discounted integrand Δ σ e^{−rs} S_s, and r V = Δ r S + r ψ splits the drift.

Not here: the self-financing property as a trading-strategy structure, the identity up to t = T, and the integral ∫ Δ dS as an integral against the semimartingale S: the gain is written as its drift integral plus the Brownian integral of Δ σ S.

Main definitions

  • hedgeDelta, hedgeValue, hedgeBank: the delta Φ(d₁), the value C(t, S_t) and the bank position C − Δ S along the Black–Scholes path.

Main results

  • BlackScholes.europeanCall_selfFinancing: the self-financing equation above.

References

  • F. Black and M. Scholes, The pricing of options and corporate liabilities [BlackScholes1973]
  • S. E. Shreve, Stochastic Calculus for Finance II: Continuous-Time Models [ShreveSCFII], §4.5
  • P. Bilokon, The Contract Is Not the Model [Bilokon2026]

Tags

self-financing strategy, delta hedging, replication, product rule, Itô formula, European call, MSC 91G20, MSC 60H05, JEL G13

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-bs-self-financing-hedge · contracts.json · full statement
The Self-Financing Equation of the Black-Scholes Delta Hedge of the Call (Integral Identity on [0, T'])

Let B be a Brownian motion with continuous paths, T > 0, T' < T, K, sigma, S_0 > 0, and S the Black-Scholes path S_u = S_0 exp((r - sigma^2/2) u + sigma B_u) (BlackScholes.pathAssets). With the call value V_t = bsV K r sigma S_t (T - t) (hedgeValue), the delta Delta_t = Phi(d_1(S_t, T - t)) (hedgeDelta) and the bank position psi_t = V_t - Delta_t S_t (hedgeBank), almost surely and for all t in [0, T'] at once, V_t = V_0 + (int_0^t Delta_s r S_s ds + I_t) + int_0^t r psi_s ds, where V_0 is the value of the reified contract europeanCall K T (discount e^{-ru}) and I is the predictable Ito integral predItoIntegral on [0, T'] of the integrand Delta sigma S. The bracket is the gain of holding Delta shares of the stock, written as its drift integral plus the Brownian integral of Delta sigma S, and the last term is the interest on the bank position: the self-financing equation of the stock-and-bank portfolio, as an integral identity. Stated on [0, T'] with T' < T. Not proved: that this is a trading-strategy structure (no admissibility or self-financing predicate is defined), that the bracket is an integral against the semimartingale S, or the identity up to t = T.

Declarations 5

defMathFin.Contracts.BlackScholes.hedgeDeltasource
{Ω : Type u_1} → ℝ → ℝ → ℝ → ℝ → ℝ → (NNReal → Ω → ℝ) → NNReal → Ω → ℝ

The delta Φ(d₁(S_s, T − s)) of the call along the Black–Scholes path.

defMathFin.Contracts.BlackScholes.hedgeValuesource
{Ω : Type u_1} → ℝ → ℝ → ℝ → ℝ → ℝ → (NNReal → Ω → ℝ) → NNReal → Ω → ℝ

The call value C(s, S_s) = bsV K r σ S_s (T − s) along the Black–Scholes path.

defMathFin.Contracts.BlackScholes.hedgeBanksource
{Ω : Type u_1} → ℝ → ℝ → ℝ → ℝ → ℝ → (NNReal → Ω → ℝ) → NNReal → Ω → ℝ

The bank position ψ_s = C(s, S_s) − Δ_s S_s of the delta hedge.

theoremMathFin.Contracts.BlackScholes.hedgeGain_isStronglyPredictablesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {B : NNReal → Ω → ℝ} (hBmeas : ∀ (t : NNReal), Measurable (B t)), (∀ (ω : Ω), Continuous fun t => B t ω) → ∀ (K r σ S_0 T : ℝ), IsStronglyPredictable (natFiltration hBmeas) fun s ω => hedgeDelta K r σ S_0 T B s ω * (σ * pathAssets S_0 r σ B () s ω)

The undiscounted hedge gain integrand Δ σ S is predictable.

theoremMathFin.Contracts.BlackScholes.europeanCall_selfFinancingsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ}, IsPreBrownianReal B μ → ∀ (hBmeas : ∀ (t : NNReal), Measurable (B t)) (hBcont : ∀ (ω : Ω), Continuous fun t => B t ω) {T : NNReal}, 0 < ↑T → ∀ {S_0 K r σ : ℝ}, 0 < S_0 → 0 < K → 0 < σ → ∀ T' < T, ∀ᵐ (ω : Ω) ∂μ, ∀ t ∈ Set.Icc 0 T', hedgeValue K r σ S_0 (↑T) B t ω = Contract.value μ (fun u x => Real.exp (-r * ↑u)) (pathAssets S_0 r σ B) (europeanCall K T) + (∫ (s : NNReal) in Set.Ioc 0 t, hedgeDelta K r σ S_0 (↑T) B s ω * (r * pathAssets S_0 r σ B () s ω) ∂timeMeasure + predItoIntegral T' hBmeas ⋯ t ω) + ∫ (s : NNReal) in Set.Ioc 0 t, r * hedgeBank K r σ S_0 (↑T) B s ω ∂timeMeasure

The self-financing equation of the Black–Scholes delta hedge. Let B be a Brownian motion with continuous paths, T' < T, and K, σ, S₀ > 0. With the call value V_t = C(t, S_t) (hedgeValue), the delta Δ_t = Φ(d₁) (hedgeDelta) and the bank position ψ_t = V_t − Δ_t S_t (hedgeBank), almost surely, for all t ≤ T' at once,

V_t = V₀ + (∫₀ᵗ Δ_s · r S_s ds + ∫₀ᵗ Δ_s · σ S_s dB_s) + ∫₀ᵗ r ψ_s ds,

where V₀ is the value of europeanCall K T, and the Brownian integral is predItoIntegral of the predictable integrand Δ σ S. The bracket is the gain ∫ Δ dS of dS = r S dt + σ S dB. Stated on [0, T'] for T' < T.