MathFin
Map / Valuation · Trees / MathFin.Models.Binomial.BarrierReflection

Barrier-option counting via the reflection principle

MathFin.Models.Binomial.BarrierReflectionMSC 91G20MSC 60G50JEL G13 source

Models/Binomial/PathReflection.lean builds André's reflection bijection reflectionPrincipleEquivBelow : {ω // hit a ∧ end = b} ≃ {ω // end = 2a − b} (for 0 < a, b ≤ a) and notes that "the Fintype.card identity is their immediate corollary and is not separately stated here." This file states it — the counting backbone of binomial barrier-option pricing — and derives the maximal-distribution identity, the running-maximum law that prices the knock-in.

Main definitions

  • reflectHitLtGt: the equivalence between paths that hit a and end below a, and paths that hit a and end above a.
  • hitAboveEquiv: for 0 < a, paths that hit a and end above a are in bijection with paths ending above a.
  • hitAtEquiv: for 0 < a, paths that hit a and end at a are in bijection with paths ending at a.

Main results

  • reflection_principle_card — for 0 < a, b ≤ a, #{hit a, end b} = #{end 2a−b} (the counting form of the bijection), and its finance reading barrierDigital_knockIn_reflection: under the symmetric tree, a cash-or-nothing up-and-in digital at terminal b ≤ a equals the vanilla digital at the reflected level.
  • binomial_upAndIn_reflection, binomial_upAndOut_reflection, binomial_upAndOut_eq: under coinFlipMeasure (1/2), the up-and-in price of a payoff g of the terminal position is E[g(Sₙ); Sₙ ≥ a] + E[g(2a − Sₙ); Sₙ > a]; the up-and-out price is the vanilla price less it.
  • binomial_maximal_distribution: P(max ≥ a) = 2P(Sₙ > a) + P(Sₙ = a) as a measure.
  • binomial_maximal_distribution_card — the running-maximum distribution #{ω : max ≥ a} = 2·#{end > a} + #{end = a} (a > 0), the discrete P(max ≥ a) = 2P(S_n > a) + P(S_n = a) — obtained by trichotomising the hit-set and reflecting the below-barrier endpoints onto the above-barrier ones.

References

Tags

barrier option, reflection principle, running maximum, knock-in, André reflection, lattice paths, MSC 91G20, MSC 60G50, JEL G13

Import neighbourhood

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

Corpus entries

mf-barrier-reflection-count · binomial.json · full statement
Reflection-Principle Counting Identity

Number of paths touching a and ending at b equals number ending at 2a-b, for 0<a, b<=a.

mf-barrier-maximal-distribution · binomial.json · full statement
Binomial Maximal-Distribution (Running-Max Law)

Number of paths with running max >= a equals 2*#{end>a} + #{end=a}.

mf-binomial-upandin-reflection · binomial.json · full statement
Binomial up-and-in price by reflection

On the symmetric binomial walk (every n-step path of weight 2^-n, the law coinFlipMeasure (1/2) of the flips), for a barrier a > 0 and any payoff g of the terminal position S_n: E[g(S_n); max >= a] = E[g(S_n); S_n >= a] + E[g(2a - S_n); S_n > a], by the discrete intermediate value theorem and reflection at the first hit. The prices are expectations of a payoff of the walk position under the symmetric flip law; the entry does not state them as Market.price of a spot-valued contract.

Declarations 13

theoremMathFin.reflection_principle_cardsource
∀ {n : ℕ} (a b : ℤ), 0 < a → b ≤ a → Nat.card { ω // HitsLevel a ω ∧ walkPos ω n = b } = Nat.card { ω // walkPos ω n = 2 * a - b }

Counting form of André's reflection principle. For a barrier 0 < a and terminal b ≤ a, the number of n-step ±1 paths that touch a and finish at b equals the number that finish at 2a − b. Immediate from reflectionPrincipleEquivBelow.

theoremMathFin.barrierDigital_knockIn_reflectionsource
∀ {n : ℕ} (a b : ℤ), 0 < a → b ≤ a → ↑(Nat.card { ω // HitsLevel a ω ∧ walkPos ω n = b }) / 2 ^ n = ↑(Nat.card { ω // walkPos ω n = 2 * a - b }) / 2 ^ n

Barrier cash-or-nothing knock-in = vanilla digital at the reflected level (symmetric tree). Under the symmetric q = 1/2 binomial measure (each path weight 2⁻ⁿ), the up-and-in digital paying 1 on {touch a, finish b} (with b ≤ a) has the same price as the vanilla digital paying 1 on {finish 2a − b}.

defMathFin.reflectHitLtGtsource
{n : ℕ} → (a : ℤ) → { ω // HitsLevel a ω ∧ walkPos ω n < a } ≃ { ω // HitsLevel a ω ∧ a < walkPos ω n }

Reflection swaps below-barrier and above-barrier endpoints on the hit-set: {hit a, end < a} ≃ {hit a, end > a} via reflection at the first hit.

defMathFin.hitAboveEquivsource
{n : ℕ} → (a : ℤ) → 0 < a → { ω // HitsLevel a ω ∧ a < walkPos ω n } ≃ { ω // a < walkPos ω n }

Above a positive barrier the hit condition is automatic (discrete IVT): {hit a, end > a} ≃ {end > a}.

defMathFin.hitAtEquivsource
{n : ℕ} → (a : ℤ) → 0 < a → { ω // HitsLevel a ω ∧ walkPos ω n = a } ≃ { ω // walkPos ω n = a }

At a positive barrier the hit condition is automatic: {hit a, end = a} ≃ {end = a}.

theoremMathFin.binomial_maximal_distribution_cardsource
∀ {n : ℕ} (a : ℤ), 0 < a → Nat.card { ω // HitsLevel a ω } = 2 * Nat.card { ω // a < walkPos ω n } + Nat.card { ω // walkPos ω n = a }

The binomial maximal-distribution identity (running-maximum law). For a barrier 0 < a, the number of n-step ±1 paths whose running maximum reaches a (i.e. that hit a) is 2·#{end > a} + #{end = a} — the discrete P(max ≥ a) = 2·P(S_n > a) + P(S_n = a).

Proof: trichotomise the hit-set by the terminal position. Paths ending > a or = a hit a automatically (hitAboveEquiv, hitAtEquiv, discrete IVT), and reflection at the first hit (reflectHitLtGt) bijects the below-barrier endpoints onto the above-barrier ones, so #{hit a, end < a} = #{end > a}.

theoremMathFin.integral_flips_symmsource
∀ {n : ℕ} (hq : 1 / 2 ≤ 1) (F : (Fin n → Bool) → ℝ), ∫ (ω : ℕ → Bool), F (flips n ω) ∂coinFlipMeasure (1 / 2) hq = (∑ x, F x) / 2 ^ n

Under the symmetric flip law the expectation of a function of the first n flips is the average over the 2ⁿ paths.

theoremMathFin.measureReal_flips_symmsource
∀ {n : ℕ} (hq : 1 / 2 ≤ 1) (A : Set (Fin n → Bool)) [DecidablePred fun x => x ∈ A], (coinFlipMeasure (1 / 2) hq).real {ω | flips n ω ∈ A} = ↑{x | x ∈ A}.card / 2 ^ n

The measure-theoretic form of the average: the symmetric probability of an event of the first n flips is the proportion of paths in it.

theoremMathFin.sum_hits_eqsource
∀ {n : ℕ} (a : ℤ), 0 < a → ∀ (G : ℤ → ℝ), (∑ x, if HitsLevel a x then G (walkPos x n) else 0) = (∑ x, if a ≤ walkPos x n then G (walkPos x n) else 0) + ∑ x, if a < walkPos x n then G (2 * a - walkPos x n) else 0

The reflected sum. For 0 < a, summing G of the terminal position over the paths that touch a gives the sum over paths ending at or above a plus the sum of G (2a − ·) over paths ending above a: the below-barrier endpoints are reflected at the first hit.

theoremMathFin.binomial_upAndIn_reflectionsource
∀ {n : ℕ} (hq : 1 / 2 ≤ 1) (a : ℤ), 0 < a → ∀ (g : ℤ → ℝ), ∫ (ω : ℕ → Bool), if HitsLevel a (flips n ω) then g (walkPos (flips n ω) n) else 0 ∂coinFlipMeasure (1 / 2) hq = ∫ (ω : ℕ → Bool), if a ≤ walkPos (flips n ω) n then g (walkPos (flips n ω) n) else 0 ∂coinFlipMeasure (1 / 2) hq + ∫ (ω : ℕ → Bool), if a < walkPos (flips n ω) n then g (2 * a - walkPos (flips n ω) n) else 0 ∂coinFlipMeasure (1 / 2) hq

Binomial up-and-in price by reflection (symmetric tree). For a barrier 0 < a and any payoff g of the terminal position, the up-and-in price (g of the terminal position Sₙ on the paths that touch a) is the vanilla price on {Sₙ ≥ a} plus the vanilla price of the reflected payoff g (2a − ·) on {Sₙ > a}: E[g(Sₙ); max ≥ a] = E[g(Sₙ); Sₙ ≥ a] + E[g(2a − Sₙ); Sₙ > a].

theoremMathFin.binomial_upAndOut_reflectionsource
∀ {n : ℕ} (hq : 1 / 2 ≤ 1) (a : ℤ) (g : ℤ → ℝ), ∫ (ω : ℕ → Bool), if HitsLevel a (flips n ω) then 0 else g (walkPos (flips n ω) n) ∂coinFlipMeasure (1 / 2) hq = ∫ (ω : ℕ → Bool), g (walkPos (flips n ω) n) ∂coinFlipMeasure (1 / 2) hq - ∫ (ω : ℕ → Bool), if HitsLevel a (flips n ω) then g (walkPos (flips n ω) n) else 0 ∂coinFlipMeasure (1 / 2) hq

Binomial up-and-out price by reflection: the vanilla price less the up-and-in price, E[g(Sₙ); max < a] = E[g(Sₙ); Sₙ < a] − E[g(2a − Sₙ); Sₙ > a].

theoremMathFin.binomial_upAndOut_eqsource
∀ {n : ℕ} (hq : 1 / 2 ≤ 1) (a : ℤ), 0 < a → ∀ (g : ℤ → ℝ), ∫ (ω : ℕ → Bool), if HitsLevel a (flips n ω) then 0 else g (walkPos (flips n ω) n) ∂coinFlipMeasure (1 / 2) hq = ∫ (ω : ℕ → Bool), if walkPos (flips n ω) n < a then g (walkPos (flips n ω) n) else 0 ∂coinFlipMeasure (1 / 2) hq - ∫ (ω : ℕ → Bool), if a < walkPos (flips n ω) n then g (2 * a - walkPos (flips n ω) n) else 0 ∂coinFlipMeasure (1 / 2) hq

The up-and-out price in closed form: E[g(Sₙ); max < a] = E[g(Sₙ); Sₙ < a] − E[g(2a − Sₙ); Sₙ > a].

theoremMathFin.binomial_maximal_distributionsource
∀ {n : ℕ} (hq : 1 / 2 ≤ 1) (a : ℤ), 0 < a → (coinFlipMeasure (1 / 2) hq).real {ω | HitsLevel a (flips n ω)} = 2 * (coinFlipMeasure (1 / 2) hq).real {ω | a < walkPos (flips n ω) n} + (coinFlipMeasure (1 / 2) hq).real {ω | walkPos (flips n ω) n = a}

The running-maximum law, in probability (symmetric tree, 0 < a): P(max ≥ a) = 2 P(Sₙ > a) + P(Sₙ = a).