I am new in Mathematica and stochastic process too.
I would like to compute (auto)correlation function from real data. So I decide try/test Mathematica script on OrnsteinUhlenbeck
process, before it will be used. The script is
proc1 = OrnsteinUhlenbeckProcess[0, 0.1, 2];
q = RandomFunction[proc1, {0, 10, 0.05}, 4];
nc = ParallelTable[d1 = q["Path", jj]; CorrelationFunction[d1[[All, 2]], ii], {jj, 1, 4}, {ii, 1, 20, 1}];
w1 = Mean[nc];
rs = CorrelationFunction[proc1, t1];
xdat = Table[ii, {ii, 0.0, 0.95, 0.05}];
Show[Plot[rs, {t1, 0.0, 1}, PlotRange -> All], ListPlot[TemporalData[w1, {xdat}]], PlotRange -> All]
The last plots are not the same. Thank you for your help and sorry for bad english.