Open stochasticguy opened 2 years ago
I can take a look. Did you check if the issue is actually specific to SDEs? I think that could even have issues for ODEs at the moment, as we mostly test/have examples for initial conditions and parameters.
See also: https://github.com/SciML/SciMLSensitivity.jl/issues/352 https://github.com/SciML/SciMLSensitivity.jl/issues/46
Thanks for your answer!. Yes, unfortunately it seems it's not supported at the moment.
Do you know what would imply to implement it?
Is this well-defined? I am not sure. I think we might want to throw a nice error somehow mentioning that.
IIRC, for ODEs, one can compute it by adding an additional integration (similar to the gradient with respect to the parameter)
$$ \frac{d \lambda_t}{dt} = - \lambda \frac{d f(u,p,t)}{dt}, $$
where
$\lambda$ is the adjoint state, such that $\lambda_t(t=t0) = \frac{dL}{dt}|{t=t_0}$ . The sensitivities with respect to the initial and final time points can be computed even easier I think, see https://frankschae.github.io/post/bouncing_ball/ .
Yes, and we should add the ODE one. But for SDEs, it's + a random process whose derivative is not defined in a point-wise way. I'm not entirely sure that exists? Its average derivative at the end point is the drift term, but I'm not sure the strong derivative exists
Hi,
I’m using this amazing package to get the sensitivities of a SDE problem. Unfortunately, the results I obtain are not correct. I know that are not correct because I can compare them with analytical solutions.
The problem can be defined by:
When computing:
I get the following values:
that are not correct at all.
On the other hand, when I replace the
mean_of_solution
method by:the results I get from computing:
are now:
this results are all correct except for
res1[4]
which is far from the correct value. Furthermore,res1[4]
presents a big variability.The correct results for this problem are:
which, as I mentioned at the beginning, can be obtained by means of closed form solutions.
Any idea or comment is welcome.
Thanks in advance!