Stochastic calculus

Introduction.

When you have a function f, interpreted as a table

x f(x)
0 1
1 2
2 5

you can think of the "discrete derivative" Δf as the extended table

x f(x) Δf(x)
0 1 -
1 2 1
2 5 3

The usual derivative is not a "real" thing: it emerges when you take increasingly smaller steps Δx for the x column and you consider the ratio Δf(x)/Δx.
The problem of recover f from Δf, or even from df/dx is called integration. So far, so good. But, what if Δf(x)/Δx does not correspond to a fixed list of values but, instead, to a random list? We enter into the realm of stochastic calculus. Indeed, the reconstruction of a function from this noisy derivative is Itô integral or Stratonovich integral.

General diagram

%%{init: {'themeVariables': { 'fontSize': '13px', 'nodeSpacing': 30, 'rankSpacing': 25 }}}%%

graph TD
    A["Stochastic Process"]

    subgraph Discrete-Time
        C["Markov Chain"]
        D["Random Walk"]
    end

    subgraph Continuous-Time
        G["Semimartingale"]
        E["Brownian Motion"]
    end

    A -->|Markov property| B["Markov Process"]

    B --> C
    C --> D
    B --> G
    G --> E

    %% Random Walk approximation to Brownian
    D -.->|scaling limit| E

    %% Itô Integral as operator
    G -.->|Itô integral operator| H["New Processes"]

    %% Outputs: Martingales, SDEs, Diffusions
    H --> F["Martingale"]
    H --> I["Itô Diffusion"]

    %% Style
    classDef operator fill:#f9f,stroke:#333,stroke-width:2px;
    class G,H,J operator