MindFormal v1.0.0One Mind

MathFin.Foundations.DiscreteIto

The discrete Itô identity #

For a real sequence X and any functions f, f', f'' (no derivative relation is assumed), write ΔX_k = X_{k+1} − X_k and let R_k be what is left of the step f(X_{k+1}) − f(X_k) after its second-order Taylor terms at X_k:

R_k = f(X_{k+1}) − f(X_k) − f'(X_k)·ΔX_k − ½·f''(X_k)·(ΔX_k)².

Then, for every N,

f(X_N) − f(X_0) = Σ_{k<N} f'(X_k)·ΔX_k + ½·Σ_{k<N} f''(X_k)·(ΔX_k)² + Σ_{k<N} R_k.

The identity is exact and holds path by path; the analysis lies in bounding R_k, which the modules that use it do. Proof: induction on N. At N = 0 both sides are 0. Passing from n to n + 1 adds the step f(X_{n+1}) − f(X_n) on the left and the three terms of index n on the right, and these are equal by the definition of R_n.

noncomputable def MathFin.discreteTaylorRemainder (f f' f'' : ℝ → ℝ) (Xk Xkp1 : ℝ) :

The second-order Taylor remainder of the step from Xk to Xkp1: f(Xkp1) − f(Xk) − f'(Xk)·(Xkp1 − Xk) − ½·f''(Xk)·(Xkp1 − Xk)².

Equations
Instances For
    theorem MathFin.discrete_ito_formula (N : ℕ) (X : ℕ → ℝ) (f f' f'' : ℝ → ℝ) :
    f (X N) - f (X 0) = ∑ k ∈ Finset.range N, f' (X k) * (X (k + 1) - X k) + 1 / 2 * ∑ k ∈ Finset.range N, f'' (X k) * (X (k + 1) - X k) ^ 2 + ∑ k ∈ Finset.range N, discreteTaylorRemainder f f' f'' (X k) (X (k + 1))

    The discrete Itô identity. For a real sequence X, any f, f', f'' and any N, f(X_N) − f(X_0) is the sum over the first N steps of f'(X_k)·ΔX_k, plus half the sum of f''(X_k)·(ΔX_k)², plus the sum of the remainders discreteTaylorRemainder f f' f'' (X k) (X (k+1)).