Hello I was trying to compute mean of multiple Stratonovich integral (for $W$ standard Wiener process).
$$ J_{(1,1)} = \int_0^1 \left(\int_0^s 1\,\circ \mathrm{d}W_t\right) \circ \mathrm{d}W_s $$
Using the following code
proc = StratonovichProcess[{
\[DifferentialD]x[t] == \[DifferentialD]w[t],
\[DifferentialD]y[t] == x[t] \[DifferentialD]w[t]
}, {x[t], y[t]}, {{x, y}, {0, 0}},
t, {w \[Distributed] WienerProcess[]}];
symbolic Mean
gives correct result:
Mean[proc[t]]
{0, t/2}
However RandomFunction
gives samples with incorrect mean:
samples = RandomFunction[proc, {0, 1, 1/2^10}, 1000]["LastValues"];
Mean[samples]
{0.0270488, 0.0491107} (*Both values random*)
StandardDeviation[proc[t]]
. $\endgroup$StandardDeviaton[proc[t]]/Sqrt[nsamples]
this is much smaller than 0.5. I thought it's quite obvious that 0.04 != 0.50 even with noise. $\endgroup$