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

Trinomial moment matching for an arbitrary node spacing

MathFin.Models.Binomial.TrinomialMomentMatchingMSC 91G60MSC 91G20JEL G13 source

One step of a recombining trinomial tree sends a node to three children x_k - dx, x_k, x_k + dx with weights p₁, p₂, p₃. Write v2 for the one-step conditional variance and e = m - x_k for the offset of the conditional mean m from the central child. Matching mass, mean and variance gives the linear system

p₁ + p₂ + p₃ = 1, dx (p₃ - p₁) = e, dx² (p₃ + p₁) = v2 + e²,

whose determinant is 2 dx³. For dx ≠ 0 it has the unique solution

p₁ = (v2 + e² - e dx) / (2 dx²), p₂ = 1 - (v2 + e²) / dx², p₃ = (v2 + e² + e dx) / (2 dx²).

These are the general-spacing branch weights transcribed from QuantLib's ql/methods/lattices/trinomialtree.cpp, which applies them whenever a grid-wide floor has widened the node spacing beyond its natural √3 v; at the natural spacing the same source computes the classical closed form (attributed there to Hull–White and Clewlow), which is the dx = √3 v, v2 = v² substitution of the same solution.

Main definitions

  • trinomialProbDown: the down weight (v2 + e² - e dx) / (2 dx²).
  • trinomialProbMid: the central weight 1 - (v2 + e²) / dx².
  • trinomialProbUp: the up weight (v2 + e² + e dx) / (2 dx²).

Main results

  • trinomialProb_sum, trinomialProb_mean, trinomialProb_secondMoment: the mass, mean and variance equations that define the weights.
  • trinomialProb_unique: for dx ≠ 0 the three-equation system has this solution only.
  • trinomialProb_classical: at the classical spacing dx = √3 v, v2 = v² the weights are the textbook (1/6, 2/3, 1/6) at e = 0.
  • trinomialProbDownUp_nonneg_iff, trinomialProbMid_nonneg_iff: the exact non-negativity conditions |e| (dx - |e|) ≤ v2 and v2 + e² ≤ dx².
  • trinomialProb_mem_Icc_of_window: on the window dx² ≤ 4 v2 ≤ 3 dx² every offset |e| ≤ dx / 2 keeps all three weights in [0, 1]; trinomialProb_mem_Icc_classical is the classical-spacing case dx² = 3 v2.
  • lattice_variance_lower_bound, not_exists_nonneg_lattice_scheme: every non-negative weighting of the lattice c + dx ℤ with mean c + e has variance at least e (dx - e), so no branching scheme on that lattice, with any number of branches, matches a variance below it.
  • trinomialProb_bsStep_mean, trinomialProb_bsStep_variance: with the variance and the mean offset tied to one step of the Black–Scholes log-price, the weights match the log-return's mean and variance (bsLogReturn_mean, bsLogReturn_variance).
  • trinomialLaw, trinomialNodes: the weights as a probability law on the three children and the asset values c e^{-dx}, c, c e^{dx} they carry.
  • isPricingMeasure_trinomialLaw, trinomial_exp_moment_of_isPricingMeasure: the law is a pricing measure of the one-date market of Pricing/OneDateMarket.lean (Market.oneDate) on those nodes exactly when the exponential moment c (1 + (v2 + e²)(cosh dx - 1)/dx² + e sinh dx/dx) equals s₀ e^{rτ} (the weights positive; the converse for τ > 0).

Scope

The statements are about one-step weights and finitely supported laws on a lattice, and one no-arbitrage socket: the one-date market. Nothing here is a multi-period tree object, the two-moment matching does not imply the exponential-moment (pricing) condition, which is a third equation a calibrated tree must also satisfy, and nothing is claimed about the prices a tree built from these weights produces or about their convergence. Non-negativity of the weights is guaranteed only on the window above; outside it the same formulas produce signed weights (the tradeoff the transcribed source documents and accepts).

References

  • The QuantLib contributors, QuantLib [QuantLib], ql/methods/lattices/trinomialtree.cpp (the general-spacing branch weights and the classical closed form, transcribed).
  • J. C. Hull, Options, Futures, and Other Derivatives [Hull], ch. 21 (the trinomial tree among the basic numerical procedures; the formulas are transcribed from the QuantLib source, whose classical branch it attributes to Hull–White and Clewlow).

Tags

trinomial tree, lattice, moment matching, recombining tree, branch probabilities, Black–Scholes log-return, MSC 91G60, MSC 91G20, JEL G13

Import neighbourhood

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

Corpus entries

mf-trinomial-moment-matching · binomial.json · full statement
Trinomial Lattice Branch Weights: Unique Moment Matching, a Validity Window, and a Lattice Variance Bound

One step of a recombining trinomial lattice sends a node x_k to three children x_k - dx, x_k, x_k + dx with weights (p1, p2, p3). Matching total mass, the conditional mean x_k + e and the conditional variance v2 gives a linear system of three equations in three unknowns with determinant 2 dx^3: for dx != 0 the solution is unique, with p1 = (v2 + e^2 - e dx) / (2 dx^2), p2 = 1 - (v2 + e^2) / dx^2, p3 = (v2 + e^2 + e dx) / (2 dx^2), transcribed from QuantLib's trinomialtree.cpp (the general-spacing branch weights the source applies when a grid-wide floor has widened dx beyond its natural sqrt(3) v). At the classical spacing dx = sqrt(3) v, v2 = v^2 the solution reduces to the classical closed form ((1 + e^2/v^2 - sqrt(3) e/v) / 6, (2 - e^2/v^2) / 3, (1 + e^2/v^2 + sqrt(3) e/v) / 6), the (1/6, 2/3, 1/6) triple at e = 0. Non-negativity is characterized exactly: the two outer weights are non-negative iff |e| (dx - |e|) <= v2, the central weight iff v2 + e^2 <= dx^2, and on the window dx^2 <= 4 v2 <= 3 dx^2 every nearest-node offset |e| <= dx/2 keeps all three weights in [0, 1]. A lattice variance lower bound holds for any branching, not only three: every non-negative weighting of finitely many points of the lattice c + dx Z with mean c + e has variance at least e (dx - e), so no non-negative scheme on that lattice, with any number of branches, matches a one-step variance below e (dx - e). Tying the weights to the discretized process at the classical spacing dx = sqrt(3) sigma sqrt(dt), v2 = sigma^2 dt: the lattice law matches the Black-Scholes risk-neutral log-return's mean (r - sigma^2/2) dt and variance sigma^2 dt exactly. The statements are about one-step weights and finitely supported lattice laws; no multi-period tree object, no lattice prices and no convergence are claimed. The weights are also a probability law on the three children (trinomialLaw), and for positive weights that law is a pricing measure of the one-date market (Market.oneDate) whose asset takes the values c e^{-dx}, c, c e^{dx} if and only if the lattice's exponential moment c (1 + (v2 + e^2)(cosh dx - 1)/dx^2 + e sinh dx / dx) equals s0 e^{r tau} (the converse for tau > 0). Matching two moments does not imply this: it is a third equation a calibrated tree must also satisfy.

Declarations 24

defMathFin.trinomialProbDownsource
ℝ → ℝ → ℝ → ℝ

Weight of the down child x_k - dx: (v2 + e² - e dx) / (2 dx²).

defMathFin.trinomialProbMidsource
ℝ → ℝ → ℝ → ℝ

Weight of the central child x_k: 1 - (v2 + e²) / dx².

defMathFin.trinomialProbUpsource
ℝ → ℝ → ℝ → ℝ

Weight of the up child x_k + dx: (v2 + e² + e dx) / (2 dx²).

theoremMathFin.trinomialProb_sumsource
∀ {v2 e dx : ℝ}, dx ≠ 0 → trinomialProbDown v2 e dx + trinomialProbMid v2 e dx + trinomialProbUp v2 e dx = 1

Mass equation: the three trinomial weights sum to one.

theoremMathFin.trinomialProb_meansource
∀ {v2 e dx : ℝ}, dx ≠ 0 → dx * (trinomialProbUp v2 e dx - trinomialProbDown v2 e dx) = e

First-moment equation about the central node: dx (p₃ - p₁) = e.

theoremMathFin.trinomialProb_secondMomentsource
∀ {v2 e dx : ℝ}, dx ≠ 0 → dx ^ 2 * (trinomialProbUp v2 e dx + trinomialProbDown v2 e dx) = v2 + e ^ 2

Second-moment equation about the central node: dx² (p₃ + p₁) = v2 + e², i.e. the variance about the mean x_k + e is v2.

theoremMathFin.trinomialProb_uniquesource
∀ {v2 e dx q₁ q₂ q₃ : ℝ}, dx ≠ 0 → q₁ + q₂ + q₃ = 1 → dx * (q₃ - q₁) = e → dx ^ 2 * (q₃ + q₁) = v2 + e ^ 2 → q₁ = trinomialProbDown v2 e dx ∧ q₂ = trinomialProbMid v2 e dx ∧ q₃ = trinomialProbUp v2 e dx

Uniqueness. For dx ≠ 0, any weights (q₁, q₂, q₃) solving the mass, mean and second-moment equations are the trinomial weights.

theoremMathFin.trinomialProb_classicalsource
∀ {v e : ℝ}, v ≠ 0 → trinomialProbDown (v ^ 2) e (√3 * v) = (1 + e ^ 2 / v ^ 2 - √3 * e / v) / 6 ∧ trinomialProbMid (v ^ 2) e (√3 * v) = (2 - e ^ 2 / v ^ 2) / 3 ∧ trinomialProbUp (v ^ 2) e (√3 * v) = (1 + e ^ 2 / v ^ 2 + √3 * e / v) / 6

Classical spacing. With dx = √3 v and v2 = v², the trinomial weights are the classical ((1 + e²/v² - √3 e/v)/6, (2 - e²/v²)/3, (1 + e²/v² + √3 e/v)/6).

theoremMathFin.trinomialProbDownUp_nonneg_iffsource
∀ {v2 e dx : ℝ}, 0 < dx → (0 ≤ trinomialProbDown v2 e dx ∧ 0 ≤ trinomialProbUp v2 e dx ↔ |e| * (dx - |e|) ≤ v2)

Non-negativity of the outer weights. For dx > 0, the down and up weights are both non-negative iff |e| (dx - |e|) ≤ v2.

theoremMathFin.trinomialProbMid_nonneg_iffsource
∀ {v2 e dx : ℝ}, dx ≠ 0 → (0 ≤ trinomialProbMid v2 e dx ↔ v2 + e ^ 2 ≤ dx ^ 2)

Non-negativity of the central weight. For dx ≠ 0, the central weight is non-negative iff v2 + e² ≤ dx².

theoremMathFin.trinomialProb_mem_Icc_of_windowsource
∀ {v2 e dx : ℝ}, 0 < dx → |e| ≤ dx / 2 → dx ^ 2 ≤ 4 * v2 → 4 * v2 ≤ 3 * dx ^ 2 → trinomialProbDown v2 e dx ∈ Set.Icc 0 1 ∧ trinomialProbMid v2 e dx ∈ Set.Icc 0 1 ∧ trinomialProbUp v2 e dx ∈ Set.Icc 0 1

Validity window. If dx > 0, |e| ≤ dx / 2 and dx² ≤ 4 v2 ≤ 3 dx² (that is, 2v/√3 ≤ dx ≤ 2v with v2 = v²), all three trinomial weights lie in [0, 1].

theoremMathFin.trinomialProb_mem_Icc_classicalsource
∀ {v2 e dx : ℝ}, 0 < dx → |e| ≤ dx / 2 → dx ^ 2 = 3 * v2 → trinomialProbDown v2 e dx ∈ Set.Icc 0 1 ∧ trinomialProbMid v2 e dx ∈ Set.Icc 0 1 ∧ trinomialProbUp v2 e dx ∈ Set.Icc 0 1

Classical spacing is valid. With dx² = 3 v2 and the nearest-node offset |e| ≤ dx / 2, all three weights lie in [0, 1]. This is the condition behind the transcribed source's check that the unfloored three-branch weights are non-negative.

theoremMathFin.lattice_variance_lower_boundsource
∀ {c dx e : ℝ} (s : Finset ℤ) (w : ℤ → ℝ), (∀ n ∈ s, 0 ≤ w n) → ∑ n ∈ s, w n = 1 → ∑ n ∈ s, w n * (c + dx * ↑n) = c + e → e * (dx - e) ≤ ∑ n ∈ s, w n * (c + dx * ↑n - (c + e)) ^ 2

Lattice variance bound. Let w ≥ 0 be weights summing to one on finitely many points c + dx n (n ∈ s ⊆ ℤ) of the lattice c + dx ℤ, with mean c + e. Then the variance is at least e (dx - e).

The bound is informative when 0 < e < dx, i.e. when c is the lattice point just below the mean. The proof uses only that n (n - 1) ≥ 0 for every integer n: no lattice point lies strictly between c and c + dx. The statement is about finitely supported laws on the lattice, not about tree prices.

theoremMathFin.not_exists_nonneg_lattice_schemesource
∀ {c dx e v2 : ℝ}, v2 < e * (dx - e) → ¬∃ s w, (∀ n ∈ s, 0 ≤ w n) ∧ ∑ n ∈ s, w n = 1 ∧ ∑ n ∈ s, w n * (c + dx * ↑n) = c + e ∧ ∑ n ∈ s, w n * (c + dx * ↑n - (c + e)) ^ 2 = v2

No non-negative lattice scheme matches a small variance. If v2 < e (dx - e), there are no non-negative weights, on any finite set of points of the lattice c + dx ℤ, with total mass one, mean c + e and variance v2. Combined with trinomialProbDownUp_nonneg_iff, this says that whenever the three-branch weights have a negative entry because v2 < |e| (dx - |e|), every other branching on the same lattice has one too (measure e from the lattice point just below the mean).

theoremMathFin.trinomialProb_bsStep_meansource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ dt : ℝ} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ dt Z → ∀ (c e : ℝ), c + e = (r - σ ^ 2 / 2) * dt → c + √3 * σ * √dt * (trinomialProbUp (σ ^ 2 * dt) e (√3 * σ * √dt) - trinomialProbDown (σ ^ 2 * dt) e (√3 * σ * √dt)) = ∫ (ω : Ω), bsLogReturn r σ dt (Z ω) ∂Q

The trinomial step matches the Black–Scholes log-return's mean. Under the Black–Scholes hypothesis over a step dt, with the classical spacing dx = √3 σ √dt and a lattice anchor-offset pair (c, e) for the risk-neutral log-drift (c + e = (r - σ²/2) dt), the lattice law's mean c + dx (p₃ - p₁) equals the log-return's mean E[bsLogReturn r σ dt Z].

theoremMathFin.trinomialProb_bsStep_variancesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ dt : ℝ} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ dt Z → ∀ (e : ℝ), (√3 * σ * √dt) ^ 2 * (trinomialProbUp (σ ^ 2 * dt) e (√3 * σ * √dt) + trinomialProbDown (σ ^ 2 * dt) e (√3 * σ * √dt)) - e ^ 2 = variance (fun ω => bsLogReturn r σ dt (Z ω)) Q

The trinomial step matches the Black–Scholes log-return's variance. Under the Black–Scholes hypothesis over a step dt, with the classical spacing dx = √3 σ √dt and variance parameter v2 = σ² dt, the lattice law's variance about its mean, dx² (p₃ + p₁) - e², equals the log-return's variance Var[bsLogReturn r σ dt Z] = σ² dt — the offset e cancels, so the identity holds for every offset e.

defMathFin.trinomialWeightssource
ℝ → ℝ → ℝ → Fin 3 → ℝ

The three branch weights as a vector over the children x_k - dx, x_k, x_k + dx.

defMathFin.trinomialLawsource
ℝ → ℝ → ℝ → Measure (Fin 3)

The trinomial law: the weights p₁, p₂, p₃ on the three children, as a measure on Fin 3 (0 the down child, 1 the central one, 2 the up child).

defMathFin.trinomialNodessource
ℝ → ℝ → Fin 3 → ℝ

The values of an asset at the three children when the central child is c: c e^{-dx}, c, c e^{dx}, the nodes of a tree for the log-price with spacing dx.

theoremMathFin.isProbabilityMeasure_trinomialLawsource
∀ {v2 e dx : ℝ}, dx ≠ 0 → (∀ (k : Fin 3), 0 ≤ trinomialWeights v2 e dx k) → IsProbabilityMeasure (trinomialLaw v2 e dx)

Positive weights give a probability law.

theoremMathFin.integral_trinomialLawsource
∀ {v2 e dx : ℝ}, dx ≠ 0 → (∀ (k : Fin 3), 0 ≤ trinomialWeights v2 e dx k) → ∫ (k : Fin 3), ![-dx, 0, dx] k ∂trinomialLaw v2 e dx = e ∧ ∫ (k : Fin 3), ![-dx, 0, dx] k ^ 2 ∂trinomialLaw v2 e dx = v2 + e ^ 2

Mean and variance of the trinomial law. The law's mean displacement is e and its second moment is v2 + e² (the equations of trinomialProb_mean, trinomialProb_secondMoment read as integrals against the law), with the displacement -dx, 0, dx.

theoremMathFin.integral_trinomialNodessource
∀ {v2 e dx : ℝ}, dx ≠ 0 → ∀ (c : ℝ), (∀ (k : Fin 3), 0 ≤ trinomialWeights v2 e dx k) → ∫ (k : Fin 3), trinomialNodes c dx k ∂trinomialLaw v2 e dx = c * (1 + (v2 + e ^ 2) * (Real.cosh dx - 1) / dx ^ 2 + e * Real.sinh dx / dx)

The exponential moment of the trinomial step. Writing cosh, sinh for the hyperbolic functions, the law's mean node value is c (1 + (v2 + e²)(cosh dx - 1)/dx² + e sinh dx / dx).

theoremMathFin.isPricingMeasure_trinomialLawsource
∀ {v2 e dx : ℝ}, dx ≠ 0 → (∀ (k : Fin 3), 0 < trinomialWeights v2 e dx k) → ∀ (c s₀ r : ℝ) (τ : NNReal), c * (1 + (v2 + e ^ 2) * (Real.cosh dx - 1) / dx ^ 2 + e * Real.sinh dx / dx) = s₀ * Real.exp (r * ↑τ) → (Market.oneDate (Measure.ofWeights Finset.univ fun x => 3⁻¹) ⋯ s₀ r τ).IsPricingMeasure τ (trinomialLaw v2 e dx)

The trinomial law prices the one-date market whose asset is trinomialNodes c dx at the date τ and s₀ e^{rt} before it, whenever the three weights are positive and the lattice reproduces the money-market growth of the quote: c (1 + (v2 + e²)(cosh dx - 1)/dx² + e sinh dx / dx) = s₀ e^{rτ}. The reference measure is the uniform law on the three children.

theoremMathFin.trinomial_exp_moment_of_isPricingMeasuresource
∀ {v2 e dx : ℝ}, dx ≠ 0 → (∀ (k : Fin 3), 0 < trinomialWeights v2 e dx k) → ∀ (c s₀ r : ℝ) {τ : NNReal}, 0 < τ → (Market.oneDate (Measure.ofWeights Finset.univ fun x => 3⁻¹) ⋯ s₀ r τ).IsPricingMeasure τ (trinomialLaw v2 e dx) → c * (1 + (v2 + e ^ 2) * (Real.cosh dx - 1) / dx ^ 2 + e * Real.sinh dx / dx) = s₀ * Real.exp (r * ↑τ)

The converse: for a date τ > 0, a trinomial law that prices the one-date market of trinomialNodes c dx has the lattice's exponential moment equal to s₀ e^{rτ}. So the weights price the market if and only if that one equation holds.