Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expectation and Variance #18

Closed
Peter230655 opened this issue Aug 21, 2021 · 8 comments
Closed

Expectation and Variance #18

Peter230655 opened this issue Aug 21, 2021 · 8 comments

Comments

@Peter230655
Copy link

I love to play around (that is all I am doing, I am semi retired) with SDEINT.
It gives possible realizations of the stochastic system. ( I usually use sympy.physics.mechanics to get equations of motion for some mechanical system, and then ‚exite it‘ with white noise forces).

It would be nice, if in addition, one could get the expectation and the variance of the solution.
Something like:

R, E, V = itoint(f, G, times, all=True) giving everything
R = itoint(f, G, times, all=False) giving only a realisation

Just a thought.

@mattja
Copy link
Owner

mattja commented Feb 13, 2022

With the exception of some very simple systems, the mean and variance would just be estimated from a sample, after simulating multiple sample paths.
It is quite quick to do that using numpy after simulation (or during iterated simulation), so I think not necessary to add this to sdeint itself.

@mattja mattja closed this as completed Feb 13, 2022
@Peter230655
Copy link
Author

Peter230655 commented Feb 13, 2022 via email

@Peter230655
Copy link
Author

Peter230655 commented Feb 13, 2022 via email

@mattja
Copy link
Owner

mattja commented Feb 14, 2022

Hi Peter,
Both 1. and 2. are false in general.

@Peter230655
Copy link
Author

Peter230655 commented Feb 14, 2022 via email

@Peter230655
Copy link
Author

Peter230655 commented Feb 18, 2022 via email

@Peter230655
Copy link
Author

Peter230655 commented Feb 18, 2022 via email

@Peter230655
Copy link
Author

Peter230655 commented Apr 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants