# Numerical solution of rough and stochastic PDEs by regression techniques

Given a $d$-dimensional $\alpha$-Hölder continuous geometric rough path , $\frac{1}{3}<\alpha \le \frac{1}{2}$, we aim to solve an equation of the form
$− d X = L ( X ) d t + ∑ k = 1 d Γ k ( X ) d W k , X ( T , ⋅ ) = g ,$where we define $L f ( ζ ) := 1 2 t r ( σ ( ζ ) σ ( ζ ) T D 2 f ( ζ ) ) + ⟨ b ( ζ ) , D f ( ζ ) ⟩ + c ( ζ ) f ( ζ ),$ $\begin{array}{r}{\mathrm{\Gamma }}_{k}f\left(\zeta \right):=⟨{\beta }_{k}\left(\zeta \right),Df\left(\zeta \right)⟩+{\gamma }_{k}\left(\zeta \right)f\left(\zeta \right)\end{array}$
for a suitable test function $f:{\mathbb{R}}^{n}\to \mathbb{R}$. Moreover, let all above functions be of suitable dimension and "smooth enough''.

In the following, this kind of rough partial differential equation is solved numerically for a particular case. We set $c,{\gamma }_{k}\equiv 0$, the noise/space dimension $\mathrm{d, n}=2$, the terminal time $T=1$ and the terminal value $g\left(\zeta \right)=\mathrm{exp}\left\{-\frac{1}{2}{‖\zeta ‖}^{2}\right\}$. We insert linear expressions for $\sigma ,b,{\beta }_{1},{\beta }_{2}$ and obtain $\begin{array}{rl}-dX\left(t,\zeta \right)=& \phantom{\rule{thickmathspace}{0ex}}\left[\frac{1}{2}\left(C\zeta {\right)}^{T}{D}^{2}X\left(t,\zeta \right)C\zeta +\left(A\zeta {\right)}^{T}DX\left(t,\zeta \right)\right]dt+\left({N}_{1}\zeta {\right)}^{T}DX\left(t,\zeta \right)d{\mathbf{W}}_{t}^{1}+\left({N}_{2}\zeta {\right)}^{T}DX\left(t,\zeta \right)d{\mathbf{W}}_{t}^{2},\\ X\left(1,\zeta \right)=& \phantom{\rule{thickmathspace}{0ex}}g\left(\zeta \right)=\mathrm{exp}\left\{-\frac{1}{2}{‖\zeta ‖}^{2}\right\},\end{array}$ where $A,C,{N}_{1},{N}_{2}$ are commuting $2×2$ matrices and $W$ is a path of a two-dimensional fractional Brownian motion with Hurst index $H=0.4$ which looks as follows Using Feynman-Kac's formular, the above problem can be reduced to an ordinary rough differential equation since $X ( t , ζ ) = E g ( x 1 t , ζ ) ,$ where for $t\le r\le 1$ the process ${x}_{\cdot }^{t,\zeta }$ solves the following hybrid Stratonovich-rough differential equation: $d x r = ( A − 1 2 C 2 ) x r d t + C x r ∘ d B r + N 1 x r d W r 1 + N 2 x r d W r 2 , x t = ζ , (1)$ where $B$ is a standard Brownian motion. Equation (1) is well-defined as a rough differential equation driven by the joint rough of $B$ and $W$.

The Feynman-Kac formular only leads to a point-wise solution of a rough partial differential equation. Therefore, we use a regression ansatz in the spatial component: $X ( t , ⋅ ) ≈ X ~ ( t , ⋅ ) := ∑ k = 1 K κ k ( t ) ψ k ( ⋅ ) .$ The procedure can be visualized (for one fixed $t$) as follows:

where the dots corrspond to solutions of the rough differential equation for different initial values and noise, and the and the surface corresonds to the estimated solution of the rough PDE.
We need to discretise (1) with an Euler scheme in time in order to determine the optimal coefficients ${\kappa }_{1},\dots ,{\kappa }_{K}$ for $\stackrel{~}{X}$. Moreover, we sample the initial condition in (1) to have a computational efficient procedure. By doing so, we compute the regression solution on the domain $\left[0,1{\right]}^{2}$ for ${10}^{6}$ samples, a step size of ${2}^{-9}$ in the Euler scheme and $K=36$ basis functions. The regression solution is given in the following video.

In the above video the forward movement of $\stackrel{~}{X}$ can be seen, i.e., if the movie is stop at a certain point, the resulting picture shows the plot of the function $\stackrel{~}{X}\left(t,\cdot \right):\left[0,1{\right]}^{2}\to \mathbb{R}$ for a fixed time $t\in \left[0,1\right]$. The x- and the y-axis represent the components ${\zeta }_{1}$ and ${\zeta }_{2}$, respectively, of the spatial variable $\zeta =\left({\zeta }_{1},{\zeta }_{2}\right)\in \left[0,1{\right]}^{2}$.