How to make a random function $\eta(t)$ to insert in a differential equation for NDSolve?
Edit: example: to solve equations like $\frac{dx}{dt}=\eta(t)$
How to make a random function $\eta(t)$ to insert in a differential equation for NDSolve?
Edit: example: to solve equations like $\frac{dx}{dt}=\eta(t)$
I think what he means is the following (I could be wrong though). In Mathematica white noise is represented by WienerProcess "also known as Brownian motion, a continuous-time random walk, or integrated white Gaussian noise." ~ Documentation. So adopting (actually simplifying) this example we get the following:
\[ScriptCapitalP] =
ItoProcess[\[DifferentialD]x[t] == σ \[DifferentialD]w[t],
x[t], {x, x0}, t, w \[Distributed] WienerProcess[]]
ItoProcess[{{0}, {{σ}}, x[t]}, {{x}, {x0}}, {t, 0}]
Simulate the process for different values of the variance parameter:
Table[ListLinePlot[
RandomFunction[\[ScriptCapitalP] /. {x0 -> 5}, {0, 4, 0.01}, 10],
PlotLabel ->
Row[{"σ", "\[Equal]", N@σ}]], {σ, {1/4, 1/2,
1, 2}}]

You can find many characteristics now - see details on the page a linked above, but here is a taste - find the probability density function of the value of the process:
PDF[\[ScriptCapitalP][t], x]
E^(-((x - x0)^2/(2 t σ^2)))/(Sqrt[2 π] Sqrt[t σ^2])
NDSolve[]indeed does not have SDE-solving capability, but the new functions in 9 will be useful. – J. M.'s missing motivation May 15 '13 at 04:15NDSolve[]started supporting DAEs and DDEs; maybe a future version might add SDE support, but not now. Thus, you might need to roll your own solution. If you can't or won't use version 9, you may have to implement the Itō process on your own. – J. M.'s missing motivation May 15 '13 at 04:30